답안 #20416

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20416 2017-02-11T09:33:08 Z KDH(#46, kdh9949) 채점 시스템 (OJUZ11_judge) C++
100 / 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 = 10; 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);
                                     ^
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
2 Correct 36 ms 2020 KB Output is correct
3 Correct 36 ms 2020 KB Output is correct
4 Correct 33 ms 2020 KB Output is correct
5 Correct 33 ms 2020 KB Output is correct
6 Correct 36 ms 2020 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
2 Correct 36 ms 2020 KB Output is correct
3 Correct 36 ms 2020 KB Output is correct
4 Correct 33 ms 2020 KB Output is correct
5 Correct 33 ms 2020 KB Output is correct
6 Correct 36 ms 2020 KB Output is correct
7 Correct 43 ms 2020 KB Output is correct
8 Correct 43 ms 2020 KB Output is correct
9 Correct 49 ms 2020 KB Output is correct
10 Correct 43 ms 2020 KB Output is correct
11 Correct 26 ms 2020 KB Output is correct