답안 #20383

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20383 2017-02-10T16:18:24 Z 윤지학(#34, gs13068) 채점 시스템 (OJUZ11_judge) C++14
0 / 100
46 ms 1116 KB
#include <cstdio>

int main() {
	long long a, b, t;
	int i, n;
	scanf("%d", &n);
	while (n--) {
		scanf("%lld%lld", &a, &b);
		for (t = 1; t <= a; t *= 10);
		for (i = 0; t + a <= b; i++) t *= 10;
		printf("%d\n", i);
	}
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:6:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
                 ^
judge.cpp:8:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld%lld", &a, &b);
                            ^
# 결과 실행 시간 메모리 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 33 ms 1116 KB Output isn't correct
4 Incorrect 39 ms 1116 KB Output isn't correct
5 Incorrect 33 ms 1116 KB Output isn't correct
6 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 33 ms 1116 KB Output isn't correct
4 Incorrect 39 ms 1116 KB Output isn't correct
5 Incorrect 33 ms 1116 KB Output isn't correct
6 Incorrect 29 ms 1116 KB Output isn't correct
7 Incorrect 43 ms 1116 KB Output isn't correct
8 Incorrect 43 ms 1116 KB Output isn't correct
9 Incorrect 43 ms 1116 KB Output isn't correct
10 Incorrect 46 ms 1116 KB Output isn't correct
11 Incorrect 36 ms 1116 KB Output isn't correct