Submission #20428

# Submission time Handle Problem Language Result Execution time Memory
20428 2017-02-11T12:19:50 Z CodingBug(#51, CodingBug) 채점 시스템 (OJUZ11_judge) C++
0 / 100
46 ms 2020 KB
#include <bits/stdc++.h>
using namespace std;
int a,b;

int main(){
//	freopen("input.txt","r",stdin);
	int t;
	scanf("%d",&t);
	while(t--){
		scanf("%d %d",&a,&b);
		int k=1e9;
		while(k>b-a) k/=10;
		while(a) k/=10,a/=10;
		while(k) k/=10,a++;
		printf("%d\n",a);
	}
	return 0;
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:8:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&t);
                ^
judge.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&a,&b);
                       ^
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
2 Incorrect 43 ms 2020 KB Output isn't correct
3 Incorrect 39 ms 2020 KB Output isn't correct
4 Incorrect 33 ms 2020 KB Output isn't correct
5 Incorrect 39 ms 2020 KB Output isn't correct
6 Incorrect 39 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 2020 KB Output isn't correct
2 Incorrect 43 ms 2020 KB Output isn't correct
3 Incorrect 39 ms 2020 KB Output isn't correct
4 Incorrect 33 ms 2020 KB Output isn't correct
5 Incorrect 39 ms 2020 KB Output isn't correct
6 Incorrect 39 ms 2020 KB Output isn't correct
7 Incorrect 46 ms 2020 KB Output isn't correct
8 Incorrect 39 ms 2020 KB Output isn't correct
9 Incorrect 46 ms 2020 KB Output isn't correct
10 Incorrect 39 ms 2020 KB Output isn't correct
11 Incorrect 39 ms 2020 KB Output isn't correct