# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20578 | 키-파 (#35) | 채점 시스템 (OJUZ11_judge) | C++98 | 1000 ms | 1116 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
using namespace std;
int main() {
int n;
scanf("%d", &n);
while (n--) {
int t, p;
scanf("%d%d", &t, &p);
int temp = t, p10 = 1;
while (temp > 0) {
p10 *= 10;
temp /= 10;
}
int c = 0;
while (p10 + t <= p) {
++c;
p10 *= 10;
}
printf("%d\n", c);
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |