Submission #23354

# Submission time Handle Problem Language Result Execution time Memory
23354 2017-05-06T16:43:54 Z kriii 채점 시스템 (OJUZ11_judge) C++14
100 / 100
46 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;
		if (a == 0) 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);
                            ^
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1116 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1116 KB Output is correct
2 Correct 33 ms 1116 KB Output is correct
3 Correct 39 ms 1116 KB Output is correct
4 Correct 33 ms 1116 KB Output is correct
5 Correct 33 ms 1116 KB Output is correct
6 Correct 36 ms 1116 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 1116 KB Output is correct
2 Correct 33 ms 1116 KB Output is correct
3 Correct 39 ms 1116 KB Output is correct
4 Correct 33 ms 1116 KB Output is correct
5 Correct 33 ms 1116 KB Output is correct
6 Correct 36 ms 1116 KB Output is correct
7 Correct 43 ms 1116 KB Output is correct
8 Correct 36 ms 1116 KB Output is correct
9 Correct 43 ms 1116 KB Output is correct
10 Correct 46 ms 1116 KB Output is correct
11 Correct 33 ms 1116 KB Output is correct