답안 #20490

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20490 2017-02-12T05:14:11 Z CYI(#67, choyi0521) 채점 시스템 (OJUZ11_judge) C++
0 / 100
43 ms 1116 KB
#include<cstdio>
int p, t, n;
int main() {
    for (scanf("%d", &n); n--;) {
        scanf("%d%d", &p, &t);
        int r = 0;
        long long i = 1;
        for (; i <= p;) i *= 10;
        for (; p+i <= t; i*=10) r++;
        printf("%d\n", r);
    }
    return 0;
}

Compilation message

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