# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20416 | 2017-02-11T09:33:08 Z | KDH(#46, kdh9949) | 채점 시스템 (OJUZ11_judge) | C++ | 49 ms | 2020 KB |
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int tc; scanf("%d", &tc); while(tc--){ ll x, y; scanf("%lld%lld", &x, &y); ll i; for(i = 10; i <= x; i *= 10); int ans = 0; while(i + x <= y){ ans++; i *= 10; } printf("%d\n", ans); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 29 ms | 2020 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 29 ms | 2020 KB | Output is correct |
2 | Correct | 36 ms | 2020 KB | Output is correct |
3 | Correct | 36 ms | 2020 KB | Output is correct |
4 | Correct | 33 ms | 2020 KB | Output is correct |
5 | Correct | 33 ms | 2020 KB | Output is correct |
6 | Correct | 36 ms | 2020 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 29 ms | 2020 KB | Output is correct |
2 | Correct | 36 ms | 2020 KB | Output is correct |
3 | Correct | 36 ms | 2020 KB | Output is correct |
4 | Correct | 33 ms | 2020 KB | Output is correct |
5 | Correct | 33 ms | 2020 KB | Output is correct |
6 | Correct | 36 ms | 2020 KB | Output is correct |
7 | Correct | 43 ms | 2020 KB | Output is correct |
8 | Correct | 43 ms | 2020 KB | Output is correct |
9 | Correct | 49 ms | 2020 KB | Output is correct |
10 | Correct | 43 ms | 2020 KB | Output is correct |
11 | Correct | 26 ms | 2020 KB | Output is correct |