# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
74359 | khsoo01 | 채점 시스템 (OJUZ11_judge) | C++11 | 48 ms | 13628 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<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
int main()
{
scanf("%lld",&n);
for(int i=1;i<=n;i++) {
ll A, B, T, C = 10, R = 0;
scanf("%lld%lld",&A,&B);
T = A / 10;
while(T) {C *= 10; T /= 10;}
while(C + A <= B) {C *= 10; R++;}
printf("%lld\n",R);
}
}
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... |