Submission #74359

# Submission time Handle Problem Language Result Execution time Memory
74359 2018-08-31T11:03:52 Z khsoo01 채점 시스템 (OJUZ11_judge) C++11
100 / 100
48 ms 13628 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
 
int main()
{
	scanf("%lld",&n);
	for(int i=1;i<=n;i++) {
		ll A, B, T, C = 10, R = 0;
		scanf("%lld%lld",&A,&B);
		T = A / 10;
		while(T) {C *= 10; T /= 10;}
		while(C + A <= B) {C *= 10; R++;}
		printf("%lld\n",R);
	}
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
  ~~~~~^~~~~~~~~~~
judge.cpp:11:8: 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 35 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 35 ms 1272 KB Output is correct
2 Correct 45 ms 2256 KB Output is correct
3 Correct 40 ms 3440 KB Output is correct
4 Correct 39 ms 4496 KB Output is correct
5 Correct 38 ms 5532 KB Output is correct
6 Correct 41 ms 6476 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 35 ms 1272 KB Output is correct
2 Correct 45 ms 2256 KB Output is correct
3 Correct 40 ms 3440 KB Output is correct
4 Correct 39 ms 4496 KB Output is correct
5 Correct 38 ms 5532 KB Output is correct
6 Correct 41 ms 6476 KB Output is correct
7 Correct 47 ms 8004 KB Output is correct
8 Correct 48 ms 9580 KB Output is correct
9 Correct 45 ms 10836 KB Output is correct
10 Correct 47 ms 12280 KB Output is correct
11 Correct 35 ms 13628 KB Output is correct