답안 #20425

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20425 2017-02-11T11:38:29 Z I_forgot_password(#50, mAng0) 채점 시스템 (OJUZ11_judge) C++
0 / 100
1000 ms 2020 KB
#include<bits/stdc++.h>
int main(){
    int n;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        int m,l;
        scanf("%d%d",&m,&l);
        int jari = 1;
        int nn = m;
        while(nn){
            nn /= 10; jari *= 10;
        }
        int ans = 0,gop = 1;
        for(;gop*jari+m<=l;ans+=1,gop*=10);
        printf("%d\n",ans);
    }
}

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:7:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",&m,&l);
                            ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
2 Incorrect 36 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 39 ms 2020 KB Output isn't correct
5 Incorrect 33 ms 2020 KB Output isn't correct
6 Incorrect 33 ms 2020 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
2 Incorrect 36 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 39 ms 2020 KB Output isn't correct
5 Incorrect 33 ms 2020 KB Output isn't correct
6 Incorrect 33 ms 2020 KB Output isn't correct
7 Execution timed out 1000 ms 2020 KB Execution timed out
8 Execution timed out 1000 ms 2020 KB Execution timed out
9 Execution timed out 1000 ms 2020 KB Execution timed out
10 Execution timed out 1000 ms 2020 KB Execution timed out
11 Execution timed out 1000 ms 2020 KB Execution timed out