# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20429 | CodingBug (#35) | 채점 시스템 (OJUZ11_judge) | C++98 | 49 ms | 2020 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;
int a,b;
int main(){
// freopen("input.txt","r",stdin);
int t;
scanf("%d",&t);
while(t--){
scanf("%d %d",&a,&b);
if(a==0){
while(b) b/=10,a++;
a--;
}else{
int k=1e9;
while(k>b-a) k/=10;
while(a) k/=10,a/=10;
while(k) k/=10,a++;
}
printf("%d\n",a);
}
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... |