Submission #20415

# Submission time Handle Problem Language Result Execution time Memory
20415 2017-02-11T09:30:06 Z KDH(#46, kdh9949) 채점 시스템 (OJUZ11_judge) C++11
0 / 100
49 ms 2020 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
	int tc; scanf("%d", &tc); while(tc--){
		ll x, y; scanf("%lld%lld", &x, &y);
		ll i; for(i = 1; i <= x; i *= 10);
		int ans = 0;
		while(i + x <= y){ ans++; i *= 10; }
		printf("%d\n", ans);
	}
}

Compilation message

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