# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20659 | errorist (#35) | 채점 시스템 (OJUZ11_judge) | C++14 | 53 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 <stdio.h>
int main(){
long long n,t,p;
scanf("%lld",&n);
while(n--){
int cnt=0;
long long m=1;
scanf("%lld %lld",&p,&t);
while(m<=p) m*=10;
while(1){
if(m+p<=t){
cnt++;
m*=10;
}
else break;
}
if(p==0){
cnt--;
if(m/10+t<=p) cnt--;
}
printf("%d\n",cnt);
}
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... |