# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
30849 | 2017-07-27T23:01:40 Z | okaybody10 | 채점 시스템 (OJUZ11_judge) | C++ | 1000 ms | 1116 KB |
#include <stdio.h> int wkfltn(int n) { int cnt=0; while(n) { n/=10; cnt++; } return cnt; } int main() { int T; scanf("%d",&T); while(T--) { int S,P; scanf("%d %d",&P,&S); int wkfl=wkfltn(P); int tenpow=1; for(int i=1;i<=wkfl;i++) tenpow*=10; int zerocount=0; while(1) { if(tenpow+P>S) break; zerocount++; tenpow*=10; } printf("%d\n",zerocount); } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 36 ms | 1116 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 36 ms | 1116 KB | Output isn't correct |
2 | Incorrect | 56 ms | 1116 KB | Output isn't correct |
3 | Incorrect | 36 ms | 1116 KB | Output isn't correct |
4 | Incorrect | 33 ms | 1116 KB | Output isn't correct |
5 | Incorrect | 49 ms | 1116 KB | Output isn't correct |
6 | Incorrect | 33 ms | 1116 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 36 ms | 1116 KB | Output isn't correct |
2 | Incorrect | 56 ms | 1116 KB | Output isn't correct |
3 | Incorrect | 36 ms | 1116 KB | Output isn't correct |
4 | Incorrect | 33 ms | 1116 KB | Output isn't correct |
5 | Incorrect | 49 ms | 1116 KB | Output isn't correct |
6 | Incorrect | 33 ms | 1116 KB | Output isn't correct |
7 | Execution timed out | 1000 ms | 1116 KB | Execution timed out |
8 | Execution timed out | 1000 ms | 1116 KB | Execution timed out |
9 | Execution timed out | 1000 ms | 1116 KB | Execution timed out |
10 | Execution timed out | 1000 ms | 1116 KB | Execution timed out |
11 | Execution timed out | 1000 ms | 1116 KB | Execution timed out |