답안 #20685

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20685 2017-02-13T13:49:55 Z 점수판에 아이디와 팀명이 같이 표기되니, 신중하게 적어주세요.(#84, eaststar) 채점 시스템 (OJUZ11_judge) C++11
78 / 100
1000 ms 1116 KB
#include <stdio.h>
int main(){
    int i,n,x,y,s;
    scanf("%d",&n);
    for(;n--;){
        scanf("%d%d",&x,&y);
        s=0;
        for(i=10;i<=x;i*=10);
        for(;i+x<=y;++s,i*=10);
        printf("%d\n",s);
    }
    return 0;
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:4:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
                   ^
judge.cpp:6:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",&x,&y);
                            ^
# 결과 실행 시간 메모리 Grader output
1 Correct 36 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 36 ms 1116 KB Output is correct
2 Correct 36 ms 1116 KB Output is correct
3 Correct 36 ms 1116 KB Output is correct
4 Correct 36 ms 1116 KB Output is correct
5 Correct 39 ms 1116 KB Output is correct
6 Correct 36 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 36 ms 1116 KB Output is correct
2 Correct 36 ms 1116 KB Output is correct
3 Correct 36 ms 1116 KB Output is correct
4 Correct 36 ms 1116 KB Output is correct
5 Correct 39 ms 1116 KB Output is correct
6 Correct 36 ms 1116 KB Output is correct
7 Execution timed out 1000 ms 1116 KB Execution timed out
8 Execution timed out 1000 ms 1116 KB Execution timed out
9 Execution timed out 1000 ms 1116 KB Execution timed out
10 Execution timed out 1000 ms 1116 KB Execution timed out
11 Execution timed out 1000 ms 1116 KB Execution timed out