# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20635 | 2017-02-13T05:01:46 Z | ??(#78, jjwdi0) | 채점 시스템 (OJUZ11_judge) | C++11 | 266 ms | 2020 KB |
#include <bits/stdc++.h> using namespace std; int T, A, B; string ar[10] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}; int main() { scanf("%d", &T); for(int i=0; i<T; i++) { scanf("%d %d", &A, &B); string s, t; while(A) s = ar[A % 10] + s, A /= 10; while(B) t = ar[B % 10] + t, B /= 10; int ans = 0; for(int i=0;; i++) { string u = s; for(int j=0; j<i; j++) u = "0" + u; if(u.length() >= t.length()) {ans = i; break;} u = "1" + u; if(u.length() == t.length() && u > t) {ans = i; break;} } printf("%d\n", ans); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 46 ms | 2020 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 46 ms | 2020 KB | Output isn't correct |
2 | Incorrect | 56 ms | 2020 KB | Output isn't correct |
3 | Incorrect | 63 ms | 2020 KB | Output isn't correct |
4 | Incorrect | 59 ms | 2020 KB | Output isn't correct |
5 | Incorrect | 63 ms | 2020 KB | Output isn't correct |
6 | Incorrect | 59 ms | 2020 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 46 ms | 2020 KB | Output isn't correct |
2 | Incorrect | 56 ms | 2020 KB | Output isn't correct |
3 | Incorrect | 63 ms | 2020 KB | Output isn't correct |
4 | Incorrect | 59 ms | 2020 KB | Output isn't correct |
5 | Incorrect | 63 ms | 2020 KB | Output isn't correct |
6 | Incorrect | 59 ms | 2020 KB | Output isn't correct |
7 | Incorrect | 79 ms | 2020 KB | Output isn't correct |
8 | Incorrect | 73 ms | 2020 KB | Output isn't correct |
9 | Incorrect | 83 ms | 2020 KB | Output isn't correct |
10 | Incorrect | 79 ms | 2020 KB | Output isn't correct |
11 | Incorrect | 266 ms | 2020 KB | Output isn't correct |