Submission #20748

#TimeUsernameProblemLanguageResultExecution timeMemory
20748eaststar채점 시스템 (OJUZ11_judge)C++11
100 / 100
39 ms1116 KiB
#include <stdio.h>
int main(){
    long long t;
    int n,x,y,s;
    scanf("%d",&n);
    for(;n--;){
        scanf("%d%d",&x,&y);
        s=0;
        for(t=10;t<=x;t*=10);
        for(;t+x<=y;++s,t*=10);
        printf("%d\n",s);
    }
    return 0;
}

Compilation message (stderr)

judge.cpp: In function 'int main()':
judge.cpp:5:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
                   ^
judge.cpp:7:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",&x,&y);
                            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...