답안 #20402

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20402 2017-02-11T04:29:23 Z Evnormal(#39, kriii) 채점 시스템 (OJUZ11_judge) C++14
0 / 100
43 ms 1116 KB
#include <stdio.h>

int N;

int main()
{
	scanf ("%d",&N); while (N--){
		long long a,b;
		scanf ("%lld %lld",&a,&b);

		long long u = 1;
		while (!(a < u)) u *= 10;

		int c = 0;
		while (a+u<=b) u *= 10, c++;
		printf ("%d\n",c);
	}

	return 0;
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:7:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf ("%d",&N); while (N--){
                 ^
judge.cpp:9: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 26 ms 1116 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 26 ms 1116 KB Output isn't correct
2 Incorrect 33 ms 1116 KB Output isn't correct
3 Incorrect 33 ms 1116 KB Output isn't correct
4 Incorrect 33 ms 1116 KB Output isn't correct
5 Incorrect 39 ms 1116 KB Output isn't correct
6 Incorrect 29 ms 1116 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 26 ms 1116 KB Output isn't correct
2 Incorrect 33 ms 1116 KB Output isn't correct
3 Incorrect 33 ms 1116 KB Output isn't correct
4 Incorrect 33 ms 1116 KB Output isn't correct
5 Incorrect 39 ms 1116 KB Output isn't correct
6 Incorrect 29 ms 1116 KB Output isn't correct
7 Incorrect 33 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 43 ms 1116 KB Output isn't correct
11 Incorrect 26 ms 1116 KB Output isn't correct