답안 #23364

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
23364 2017-05-07T04:54:53 Z gs14004 Can polan into space? (OJUZ11_space) C++11
0 / 100
266 ms 2020 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef long double llf;
typedef pair<int, int> pi;

int get_jarisoo(int x){
	if(x == 0) return 1;
	int ans = 0;
	while(x){
		ans++;
		x /= 10;
	}
	return ans;
}

lint pw[18];

int main(){
	pw[0] = 1;
	for(int i=1; i<18; i++)pw[i] = pw[i-1] * 10;
	int q;
	cin >> q;
	while(q--){
		int a, b;
		cin >> a >> b;
		int z = get_jarisoo(a);
		for(int i=0; ; i++){
			if(a + pw[z + i] > b){
				printf("%d\n", i);
				break;
			}
		}
	}
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2020 KB Unexpected end of file - int32 expected
2 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
3 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
4 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
5 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
6 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
7 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
8 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
9 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
10 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
11 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
12 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
13 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
14 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 3]
15 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
16 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 4]
17 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
18 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
19 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
20 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
21 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2020 KB Unexpected end of file - int32 expected
2 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
3 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
4 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
5 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
6 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
7 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
8 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
9 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
10 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
11 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
12 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
13 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
14 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 3]
15 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
16 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 4]
17 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
18 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
19 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
20 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
21 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
22 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 9]
23 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
24 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
25 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
26 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
27 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
28 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
29 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
30 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 15]
31 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
32 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
33 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
34 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
35 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
36 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
37 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2020 KB Unexpected end of file - int32 expected
2 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
3 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
4 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
5 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
6 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
7 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
8 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
9 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
10 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
11 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
12 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
13 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
14 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 3]
15 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
16 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 4]
17 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
18 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
19 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
20 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
21 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
22 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 9]
23 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
24 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
25 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
26 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
27 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
28 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
29 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
30 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 15]
31 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
32 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
33 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
34 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
35 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
36 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
37 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
38 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 21]
39 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
40 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
41 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
42 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
43 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
44 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
45 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
46 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 269]
47 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
48 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 151]
49 Incorrect 3 ms 2020 KB Integer 0 violates the range [1, 300]
50 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 299]
51 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 211]
52 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
53 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2020 KB Unexpected end of file - int32 expected
2 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
3 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
4 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
5 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
6 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
7 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
8 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
9 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
10 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
11 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
12 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
13 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
14 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 3]
15 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
16 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 4]
17 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
18 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
19 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
20 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
21 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
22 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 9]
23 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
24 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
25 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
26 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
27 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
28 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
29 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
30 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 15]
31 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
32 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
33 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
34 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
35 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
36 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
37 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
38 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 21]
39 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
40 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
41 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
42 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
43 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
44 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
45 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
46 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 269]
47 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
48 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 151]
49 Incorrect 3 ms 2020 KB Integer 0 violates the range [1, 300]
50 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 299]
51 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 211]
52 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
53 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
54 Incorrect 3 ms 2020 KB Integer 0 violates the range [1, 301]
55 Incorrect 13 ms 2020 KB Integer 0 violates the range [1, 10000]
56 Incorrect 23 ms 2020 KB Integer 0 violates the range [1, 10000]
57 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
58 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
59 Incorrect 36 ms 2020 KB Integer 0 violates the range [1, 10000]
60 Incorrect 36 ms 2020 KB Integer 0 violates the range [1, 10000]
61 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
62 Incorrect 16 ms 2020 KB Integer 0 violates the range [1, 7141]
63 Incorrect 6 ms 2020 KB Integer 0 violates the range [1, 1929]
64 Incorrect 9 ms 2020 KB Integer 0 violates the range [1, 10000]
65 Incorrect 16 ms 2020 KB Integer 0 violates the range [1, 10000]
66 Incorrect 43 ms 2020 KB Integer 0 violates the range [1, 9999]
67 Incorrect 13 ms 2020 KB Integer 0 violates the range [1, 4821]
68 Incorrect 6 ms 2020 KB Integer 0 violates the range [1, 3111]
69 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2020 KB Unexpected end of file - int32 expected
2 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
3 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
4 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
5 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
6 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
7 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 2]
8 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 7]
9 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
10 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
11 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
12 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
13 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
14 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 3]
15 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
16 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 4]
17 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
18 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
19 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
20 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 8]
21 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 6]
22 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 9]
23 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
24 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
25 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
26 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
27 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
28 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
29 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
30 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 15]
31 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
32 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
33 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
34 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
35 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 19]
36 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
37 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 20]
38 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 21]
39 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
40 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
41 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
42 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
43 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
44 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
45 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
46 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 269]
47 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
48 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 151]
49 Incorrect 3 ms 2020 KB Integer 0 violates the range [1, 300]
50 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 299]
51 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 211]
52 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
53 Incorrect 0 ms 2020 KB Integer 0 violates the range [1, 300]
54 Incorrect 3 ms 2020 KB Integer 0 violates the range [1, 301]
55 Incorrect 13 ms 2020 KB Integer 0 violates the range [1, 10000]
56 Incorrect 23 ms 2020 KB Integer 0 violates the range [1, 10000]
57 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
58 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
59 Incorrect 36 ms 2020 KB Integer 0 violates the range [1, 10000]
60 Incorrect 36 ms 2020 KB Integer 0 violates the range [1, 10000]
61 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
62 Incorrect 16 ms 2020 KB Integer 0 violates the range [1, 7141]
63 Incorrect 6 ms 2020 KB Integer 0 violates the range [1, 1929]
64 Incorrect 9 ms 2020 KB Integer 0 violates the range [1, 10000]
65 Incorrect 16 ms 2020 KB Integer 0 violates the range [1, 10000]
66 Incorrect 43 ms 2020 KB Integer 0 violates the range [1, 9999]
67 Incorrect 13 ms 2020 KB Integer 0 violates the range [1, 4821]
68 Incorrect 6 ms 2020 KB Integer 0 violates the range [1, 3111]
69 Incorrect 19 ms 2020 KB Integer 0 violates the range [1, 10000]
70 Incorrect 36 ms 2020 KB Integer 0 violates the range [1, 10001]
71 Runtime error 143 ms 2020 KB Execution timed out (wall clock limit exceeded)
72 Runtime error 169 ms 2020 KB Execution timed out (wall clock limit exceeded)
73 Runtime error 266 ms 2020 KB Execution timed out (wall clock limit exceeded)
74 Runtime error 213 ms 2020 KB Execution timed out (wall clock limit exceeded)
75 Runtime error 233 ms 2020 KB Execution timed out (wall clock limit exceeded)
76 Runtime error 156 ms 2020 KB Execution timed out (wall clock limit exceeded)
77 Incorrect 223 ms 2020 KB Integer 0 violates the range [1, 81829]
78 Runtime error 183 ms 2020 KB Execution timed out (wall clock limit exceeded)
79 Runtime error 229 ms 2020 KB Execution timed out (wall clock limit exceeded)
80 Runtime error 166 ms 2020 KB Execution timed out (wall clock limit exceeded)
81 Incorrect 56 ms 2020 KB Integer 0 violates the range [1, 39999]
82 Incorrect 263 ms 2020 KB Integer 0 violates the range [1, 134821]
83 Runtime error 159 ms 2020 KB Execution timed out (wall clock limit exceeded)
84 Runtime error 196 ms 2020 KB Execution timed out (wall clock limit exceeded)
85 Runtime error 236 ms 2020 KB Execution timed out (wall clock limit exceeded)
86 Runtime error 233 ms 2020 KB Execution timed out (wall clock limit exceeded)
87 Runtime error 209 ms 2020 KB Execution timed out (wall clock limit exceeded)
88 Incorrect 86 ms 2020 KB Integer 0 violates the range [1, 31911]
89 Runtime error 253 ms 2020 KB Execution timed out (wall clock limit exceeded)
90 Incorrect 203 ms 2020 KB Integer 0 violates the range [1, 100000]
91 Incorrect 23 ms 2020 KB Integer 0 violates the range [1, 10001]
92 Runtime error 136 ms 2020 KB Execution timed out (wall clock limit exceeded)