답안 #20656

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20656 2017-02-13T10:42:56 Z errorist(#79, andy627) 채점 시스템 (OJUZ11_judge) C++14
0 / 100
39 ms 1116 KB
#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;
        }
        printf("%d\n",cnt);
    }

    return 0;
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:6:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&n);
                     ^
judge.cpp:11:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld %lld",&p,&t);
                                 ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 23 ms 1116 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 23 ms 1116 KB Output isn't correct
2 Incorrect 23 ms 1116 KB Output isn't correct
3 Incorrect 29 ms 1116 KB Output isn't correct
4 Incorrect 36 ms 1116 KB Output isn't correct
5 Incorrect 29 ms 1116 KB Output isn't correct
6 Incorrect 39 ms 1116 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 23 ms 1116 KB Output isn't correct
2 Incorrect 23 ms 1116 KB Output isn't correct
3 Incorrect 29 ms 1116 KB Output isn't correct
4 Incorrect 36 ms 1116 KB Output isn't correct
5 Incorrect 29 ms 1116 KB Output isn't correct
6 Incorrect 39 ms 1116 KB Output isn't correct
7 Incorrect 39 ms 1116 KB Output isn't correct
8 Incorrect 39 ms 1116 KB Output isn't correct
9 Incorrect 39 ms 1116 KB Output isn't correct
10 Incorrect 36 ms 1116 KB Output isn't correct
11 Incorrect 29 ms 1116 KB Output isn't correct