QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#768485#1834. Eulerian?GeekmenAC ✓27ms3988kbC++141.1kb2024-11-21 11:14:592024-11-21 11:15:02

Judging History

你现在查看的是最新测评结果

  • [2024-11-21 11:15:02]
  • 评测
  • 测评结果:AC
  • 用时:27ms
  • 内存:3988kb
  • [2024-11-21 11:14:59]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int n, m;

vector<int> cs(vector<int> S) {
	vector<int> st(n + 1, 0), ans;
	for (auto i : S) st[i] = 1; 
	for (int i = 1; i <= n; i ++)
		if (!st[i]) ans.push_back(i);
	return ans;
}
int ask(vector<int> S) {
	int C1 = 0, C2 = 0;
	if (S.size() > 1) {
		cout << "? " << S.size() << " ";
		for (auto i : S) cout << i << " ";
		cout << endl;
		cin >> C1;
	}
	if (n - S.size() > 1) {
		vector<int> Cv = cs(S);
		cout << "? " << Cv.size() << " ";
		for (auto i : Cv) cout << i << " ";
		cout << endl;
		cin >> C2;
	}
	return C1 * 2 + m - C1 - C2;
}

int main() {
	cin >> n;
	cout << "? " << n << " ";
	for (int i = 1; i <= n; i ++) cout << i << " ";
	cout << endl;
	cin >> m;
	
	vector<int> base = {2, 3, 5, 7, 11};
	for (auto v : base) {
		if (v > n) break;
		for (int i = 0; i < v - 1; i ++) {
			vector<int> S;
			for (int j = v; i + j <= n; j += v) S.push_back(i + j);
			if (!S.size()) continue;
			if (ask(S) & 1) {
				cout << "! NO" << endl;
				return 0;
			}
		}
	}
	cout << "! YES" << endl;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3620kb

input:

3
2
0
1

output:

? 3 1 2 3 
? 2 1 3 
? 2 1 2 
! NO

result:

ok correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

3
3
1
1

output:

? 3 1 2 3 
? 2 1 3 
? 2 1 2 
! YES

result:

ok correct

Test #3:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

4
3
0
0

output:

? 4 1 2 3 4 
? 2 2 4 
? 2 1 3 
! NO

result:

ok correct

Test #4:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

4
4
1
0

output:

? 4 1 2 3 4 
? 2 2 4 
? 2 1 3 
! NO

result:

ok correct

Test #5:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

4
5
1
0
3
2

output:

? 4 1 2 3 4 
? 2 2 4 
? 2 1 3 
? 3 1 2 4 
? 3 1 2 3 
! NO

result:

ok correct

Test #6:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

10
10
0
2
0
4
0
3

output:

? 10 1 2 3 4 5 6 7 8 9 10 
? 5 2 4 6 8 10 
? 5 1 3 5 7 9 
? 3 3 6 9 
? 7 1 2 4 5 7 8 10 
? 3 4 7 10 
? 7 1 2 3 5 6 8 9 
! NO

result:

ok correct

Test #7:

score: 0
Accepted
time: 1ms
memory: 3836kb

input:

10
11
4
2

output:

? 10 1 2 3 4 5 6 7 8 9 10 
? 5 2 4 6 8 10 
? 5 1 3 5 7 9 
! NO

result:

ok correct

Test #8:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

100
100
28
24
16
50
17
45
5
63
2
68
5
71
11
65
2
76
3
65
2
71

output:

? 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 
?...

result:

ok correct

Test #9:

score: 0
Accepted
time: 1ms
memory: 3548kb

input:

100
256
46
75

output:

? 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 
?...

result:

ok correct

Test #10:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

1000
1488
371
391
163
649
190
662
63
958

output:

? 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...

result:

ok correct

Test #11:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

1000
11488
2860
2887

output:

? 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...

result:

ok correct

Test #12:

score: 0
Accepted
time: 5ms
memory: 3612kb

input:

10000
100000
25060
25126
10993
44437
11127
44150

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #13:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

10000
99999
24969
24803

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #14:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

10
10
3
3
0
4
1
5
0
6
8
8
8
8
8
8
8

output:

? 10 1 2 3 4 5 6 7 8 9 10 
? 5 2 4 6 8 10 
? 5 1 3 5 7 9 
? 3 3 6 9 
? 7 1 2 4 5 7 8 10 
? 3 4 7 10 
? 7 1 2 3 5 6 8 9 
? 2 5 10 
? 8 1 2 3 4 6 7 8 9 
? 9 1 2 3 4 5 7 8 9 10 
? 9 1 2 3 4 5 6 8 9 10 
? 9 1 2 3 4 5 6 7 9 10 
? 9 1 2 3 4 5 6 8 9 10 
? 9 1 2 3 4 5 6 7 9 10 
? 9 1 2 3 4 5 6 7 8 10 
? 9 1...

result:

ok correct

Test #15:

score: 0
Accepted
time: 1ms
memory: 3616kb

input:

100
100
26
26
13
47
10
44
3
63
3
65
6
68
3
65
0
72
2
74
1
73
2
76
2
76
2
76
2
84
2
84
1
85
0
84
2
86
1
85
1
85
1
85
2
86
0
84

output:

? 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 
?...

result:

ok correct

Test #16:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

1000
1000
242
242
119
453
123
457
35
635
43
645
45
647
46
648
16
732
12
728
17
733
21
737
25
741
13
729
9
829
9
829
13
833
8
828
8
828
7
827
7
827
9
829
10
830
5
825

output:

? 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...

result:

ok correct

Test #17:

score: 0
Accepted
time: 20ms
memory: 3744kb

input:

10000
10000
2526
2526
1091
4425
1121
4455
409
6409
419
6421
413
6415
418
6420
197
7341
220
7364
208
7352
189
7333
221
7365
209
7355
100
8282
108
8290
88
8272
93
8277
100
8284
92
8276
74
8258
75
8259
90
8274
85
8269

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #18:

score: 0
Accepted
time: 22ms
memory: 3720kb

input:

10000
10000
2462
2462
1086
4420
1132
4466
405
6405
380
6382
381
6383
398
6400
212
7356
185
7329
189
7333
203
7347
197
7341
187
7333
80
8262
79
8261
104
8288
75
8259
72
8256
69
8253
74
8258
77
8261
99
8283
75
8259

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #19:

score: 0
Accepted
time: 25ms
memory: 3920kb

input:

10000
10000
2478
2478
1134
4468
1114
4448
400
6400
386
6388
387
6389
387
6389
209
7353
223
7367
206
7350
219
7363
215
7359
199
7345
78
8260
86
8268
86
8270
77
8261
74
8258
76
8260
77
8261
80
8264
95
8279
101
8285

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #20:

score: 0
Accepted
time: 2ms
memory: 3588kb

input:

100
200
55
53
25
87
19
95
4
132
7
129
6
136
8
126
4
156
1
157
9
147
2
158
5
149
4
146
3
171
1
165
0
168
0
180
1
167
1
155
2
166
2
166
0
170
0
168

output:

? 100 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 
?...

result:

ok correct

Test #21:

score: 0
Accepted
time: 2ms
memory: 3856kb

input:

1000
2000
510
480
210
908
220
858
74
1284
70
1248
78
1272
72
1282
33
1453
47
1509
26
1472
34
1500
41
1461
33
1451
17
1651
14
1650
9
1681
23
1649
23
1647
19
1655
20
1650
20
1654
19
1659
17
1651

output:

? 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...

result:

ok correct

Test #22:

score: 0
Accepted
time: 3ms
memory: 3632kb

input:

1000
11000
2841
2783
1251
4945
1229
4857
457
6995
399
7041
411
7059
392
7076
235
8075
245
8031
231
8111
227
8193
231
8087
240
8078
78
9042
93
9163
86
9038
83
9127
89
9125
92
9068
83
9081
70
9112
89
9141
92
9186

output:

? 1000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...

result:

ok correct

Test #23:

score: 0
Accepted
time: 25ms
memory: 3676kb

input:

10000
90000
22479
22495
10145
39933
9969
39997
3649
57843
3662
57426
3605
57387
3593
57863
1770
66134
1845
65723
1773
66283
1809
66405
1863
65993
1866
66094
760
74274
754
74564
705
74297
759
74539
766
74306
708
74448
751
74309
737
74289
741
74295
706
74550

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #24:

score: 0
Accepted
time: 26ms
memory: 3792kb

input:

10000
90000
22145
22643
9906
39888
10276
39908
3530
57866
3556
57426
3488
57612
3728
57406
1768
65828
1863
66093
1860
65844
1720
66218
1830
66284
1761
66523
819
74263
782
74372
721
74271
682
74422
787
74355
719
74595
724
74554
709
74533
762
74382
734
74140

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #25:

score: 0
Accepted
time: 21ms
memory: 3972kb

input:

10000
90000
22410
22466
10248
39460
9689
40303
3681
57769
3564
57512
3627
57449
3587
57657
1794
66318
1772
66192
1873
66175
1868
66162
1829
66119
1931
65939
733
74279
776
74338
682
74456
744
74346
747
74191
768
74632
739
74319
708
74794
719
73877
699
74487

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #26:

score: 0
Accepted
time: 21ms
memory: 3740kb

input:

10000
90000
22375
22507
10042
40056
9901
40133
3544
57692
3587
57509
3646
57420
3539
57539
1793
66349
1843
66269
1791
66057
1917
66013
1804
66332
1904
65840
701
74465
703
74691
746
74352
746
74320
715
74471
734
74238
759
74065
768
74314
749
74493
754
74386

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #27:

score: 0
Accepted
time: 20ms
memory: 3968kb

input:

10000
90000
22346
22504
10069
40011
10124
39932
3581
57543
3577
57619
3644
57414
3608
57858
1780
66374
1799
66069
1821
66219
1790
66224
1872
65852
1843
66091
756
74508
737
74473
808
74096
702
74432
734
74180
735
74319
734
74552
776
74422
766
74404
719
74393

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #28:

score: 0
Accepted
time: 25ms
memory: 3876kb

input:

10000
90000
22321
22641
9829
40191
10132
39662
3528
57530
3607
57353
3559
57461
3525
57743
1803
66049
1739
66109
1880
65908
1840
66258
1825
66281
1854
65808
745
74295
696
74550
703
74437
801
74205
716
74468
748
74216
715
74419
718
74478
786
74346
738
74532

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #29:

score: 0
Accepted
time: 25ms
memory: 3736kb

input:

10000
90000
22438
22548
10095
39663
9936
40156
3570
57478
3715
57589
3754
57454
3523
57801
1833
65923
1789
66035
1869
65825
1786
66102
1780
66424
1722
66470
792
74340
751
74213
726
74862
763
74237
780
74338
743
74417
787
74279
735
74479
730
74516
717
74325

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #30:

score: 0
Accepted
time: 25ms
memory: 3744kb

input:

10000
90000
22715
22365
10034
39810
9941
40047
3695
57141
3598
57394
3431
57989
3510
57998
1813
66009
1883
66251
1878
66032
1862
66314
1874
66160
1844
65948
750
74432
725
74229
742
74362
729
74663
748
74224
751
74307
752
74412
807
74247
738
74572
735
74607

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #31:

score: 0
Accepted
time: 27ms
memory: 3788kb

input:

10000
90000
22384
22534
10030
40110
10030
40014
3728
57276
3552
57902
3540
57754
3571
57741
1769
66225
1807
66249
1910
66158
1851
65885
1879
66253
1876
65998
707
74287
706
74496
753
74487
756
74518
740
74318
787
74169
692
74440
710
74370
719
74351
706
74174

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #32:

score: 0
Accepted
time: 21ms
memory: 3624kb

input:

10000
90000
22646
22268
9870
40010
9988
40000
3530
57484
3573
57423
3576
57528
3724
57710
1807
66235
1803
66325
1903
65843
1853
66059
1789
66139
1787
66139
736
74524
758
74182
714
74264
795
74305
716
74606
750
74334
728
74456
743
74417
734
74506
781
74297

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #33:

score: 0
Accepted
time: 25ms
memory: 3736kb

input:

10000
90000
22336
22544
10047
40113
9951
39783
3574
57824
3618
57394
3483
57793
3637
57435
1880
65972
1803
65907
1771
66389
1848
66264
1882
65914
1881
66173
797
74145
706
74584
728
74364
732
74312
788
74116
731
74709
748
74296
789
74327
721
74437
753
74575

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #34:

score: 0
Accepted
time: 24ms
memory: 3744kb

input:

10000
90000
22176
22424
9793
40199
9986
39980
3642
57616
3527
57911
3555
57385
3694
57538
1855
66281
1770
66312
1781
66359
1965
65801
1932
65962
1859
65941
785
74363
772
74354
726
74316
778
74332
767
74293
731
74399
768
74496
750
74352
754
74258
687
74913

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #35:

score: 0
Accepted
time: 18ms
memory: 3740kb

input:

10000
90000
22663
22203
9891
40083
10070
39704
3622
57796
3619
57725
3559
57693
3683
57263
1881
66137
1802
66316
1824
66182
1817
66345
1880
65924
1895
65999
733
74703
728
74152
718
74426
711
74373
737
74659
711
74309
765
74469
736
74498
752
74362
736
74290

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #36:

score: 0
Accepted
time: 25ms
memory: 3772kb

input:

10000
90000
22583
22255
9942
39986
9968
40088
3573
58019
3689
57115
3525
57863
3561
57849
1837
66489
1858
66108
1868
65912
1872
66048
1837
65993
1854
66206
755
74277
782
74262
792
73972
737
74495
717
74501
759
74357
700
74566
741
74517
696
74448
763
74331

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #37:

score: 0
Accepted
time: 19ms
memory: 3972kb

input:

10000
90000
22553
22403
10040
39926
9794
40102
3669
57513
3648
57640
3713
57577
3701
57559
1858
66048
1820
66420
1832
66074
1794
66126
1829
65913
1788
66326
715
74521
748
74192
766
74506
725
74435
715
74515
720
74570
714
74316
738
74398
742
74228
772
74140

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #38:

score: 0
Accepted
time: 21ms
memory: 3748kb

input:

10000
90000
22652
22464
9958
40244
10010
39754
3520
58006
3501
57853
3750
57296
3643
57523
1844
66000
1933
65989
1902
66150
1920
66302
1828
66052
1777
66363
712
74468
754
74576
742
74454
782
74346
742
74468
739
74435
741
74641
817
74291
760
74162
771
74213

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #39:

score: 0
Accepted
time: 22ms
memory: 3652kb

input:

10000
90000
22380
22834
9902
40344
10099
39709
3685
57381
3433
57975
3625
57647
3690
57402
1815
66169
1820
66054
1831
66109
1829
66157
1789
65981
1751
66317
779
74155
745
74279
800
74338
750
74426
712
74532
766
74372
696
74480
704
74326
736
74596
731
74447

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #40:

score: 0
Accepted
time: 25ms
memory: 3972kb

input:

10000
90000
22532
22576
10207
40149
10064
40214
3586
57768
3547
58015
3604
57416
3681
57709
1897
65957
1796
66264
1808
66158
1804
66258
1868
66190
1870
66172
740
74438
755
74405
719
74221
769
74335
735
74623
706
74226
804
74386
703
74363
719
74613
721
74417

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #41:

score: 0
Accepted
time: 26ms
memory: 3708kb

input:

10000
90000
22356
22516
9963
39989
9785
40201
3724
57396
3570
57862
3612
57514
3596
57544
1891
66203
1842
66040
1835
66401
1836
66146
1873
65941
1900
66060
713
74525
708
74344
707
74347
745
74393
795
74221
715
74461
747
74429
777
74181
740
74334
682
74676

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #42:

score: 0
Accepted
time: 26ms
memory: 3728kb

input:

10000
90000
22266
22610
9962
40258
10248
39782
3555
57731
3561
57685
3634
57504
3655
57567
1868
66228
1885
65945
1865
66197
1836
66136
1839
66583
1934
65828
753
74471
738
74444
743
74477
719
74277
720
74584
715
74357
653
74469
750
74332
742
74134
712
74186

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #43:

score: 0
Accepted
time: 22ms
memory: 3972kb

input:

10000
90000
22370
22522
9899
40111
10030
39788
3600
57714
3719
57515
3641
57687
3538
57540
1786
66282
1860
65944
1861
66153
1842
66308
1829
66079
1887
65983
712
74464
720
74432
749
74457
729
74369
756
74404
748
74486
745
74399
753
74383
743
74415
735
74159

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #44:

score: 0
Accepted
time: 24ms
memory: 3772kb

input:

10000
90000
22737
22515
10091
39645
9859
40299
3627
57701
3606
57356
3571
57831
3532
57818
1813
66073
1828
66428
1797
66105
1851
65935
1816
66044
1880
66140
754
74424
711
74355
724
74510
768
74428
735
74339
753
74727
752
74274
767
74431
696
74384
764
74344

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #45:

score: 0
Accepted
time: 24ms
memory: 3568kb

input:

10000
90000
22326
22446
10063
39957
10084
40042
3577
57687
3665
57491
3641
57811
3605
57543
1882
65970
1863
65925
1849
66089
1762
66464
1817
66399
1784
66190
755
74683
768
74576
726
74626
779
74255
749
74155
799
74205
731
74373
744
74508
765
74345
744
74396

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #46:

score: 0
Accepted
time: 20ms
memory: 3688kb

input:

10000
90000
22481
22451
9894
39790
9780
40468
3596
57474
3618
57634
3609
57593
3630
57584
1900
65980
1795
66301
1778
66186
1846
66382
1856
66096
1885
65929
769
74781
754
74304
772
74378
730
74436
766
74488
764
74404
724
74510
769
74285
809
74135
758
74336

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #47:

score: 0
Accepted
time: 20ms
memory: 3716kb

input:

10000
90000
22373
22833
10003
40125
10160
39818
3737
57439
3587
57847
3610
57882
3647
57509
1749
66113
1746
66160
1856
66102
1764
66348
1880
65972
1858
66042
777
74603
747
74411
744
74368
747
74483
715
74477
741
74567
749
74677
773
74211
747
74381
809
74199

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #48:

score: 0
Accepted
time: 22ms
memory: 3740kb

input:

10000
90000
22466
22660
10023
39659
10070
40134
3560
57786
3704
57668
3525
57891
3622
57672
1779
66213
1871
65923
1842
65976
1813
65995
1796
66180
1776
66456
756
74298
731
74575
719
74799
794
74018
753
74245
750
74382
746
74346
756
74570
754
74450
747
74511

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #49:

score: 0
Accepted
time: 26ms
memory: 3768kb

input:

10000
90000
22369
22761
9822
40268
10058
39902
3657
57517
3576
57594
3670
57510
3586
57586
1803
66359
1844
66116
1806
66128
1872
66174
1872
65956
1796
66212
721
74321
791
74295
780
74454
715
74263
812
74200
803
74211
805
74337
715
74535
740
74558
721
74591

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #50:

score: 0
Accepted
time: 18ms
memory: 3604kb

input:

10000
90000
22513
22661
10044
39962
10178
39648
3543
57717
3569
57361
3524
57644
3543
57645
1817
66229
1859
66361
1723
66277
1830
66006
1876
65976
1868
66026
716
74630
766
74138
754
74458
720
74448
743
74475
797
74407
798
74328
793
73939
688
74672
762
74494

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #51:

score: 0
Accepted
time: 25ms
memory: 3704kb

input:

10000
90000
22161
22817
10035
39919
10166
39828
3548
57462
3568
57762
3618
57528
3647
57697
1895
65833
1919
66141
1809
66225
1805
66205
1933
66049
1860
66246
749
74369
751
74345
736
74260
757
74495
731
74319
704
74564
733
74561
795
73951
758
74466
724
74602

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #52:

score: 0
Accepted
time: 25ms
memory: 3728kb

input:

10000
90000
22529
22579
10012
40148
9951
39837
3595
57683
3648
57650
3568
57570
3585
57577
1809
66309
1827
66203
1860
66088
1828
65992
1764
66108
1758
66280
760
74382
740
74676
719
74179
747
74421
741
74319
716
74378
741
74487
770
74414
765
74331
725
74317

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #53:

score: 0
Accepted
time: 21ms
memory: 3676kb

input:

10000
90000
22646
22128
9969
39827
9820
40110
3626
57692
3604
57584
3544
57750
3568
57564
1798
66216
1813
66043
1801
65935
1804
66242
1773
66125
1893
66239
743
74407
731
74279
766
74326
689
74483
733
74497
730
74522
751
74243
725
74049
696
74696
748
74218

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #54:

score: 0
Accepted
time: 25ms
memory: 3524kb

input:

10000
90000
22500
22440
10182
40068
10258
39884
3520
57774
3629
57761
3549
57805
3679
57133
1712
66356
1841
66085
1847
66119
1858
65980
1918
66266
1862
66048
765
74261
729
74391
689
74669
788
74254
693
74737
672
74272
743
74293
738
74326
768
74202
745
74409

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #55:

score: 0
Accepted
time: 25ms
memory: 3748kb

input:

10000
90000
22643
22355
10034
40216
9922
39738
3536
57610
3735
57549
3533
57569
3487
57749
1909
65955
1820
66272
1867
65991
1815
66419
1848
65668
1775
66487
736
74432
732
74434
749
74273
721
74403
752
74490
720
74180
712
74280
713
74365
719
74527
694
74434

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #56:

score: 0
Accepted
time: 19ms
memory: 3676kb

input:

10000
90000
22611
22459
10316
39334
9742
40398
3502
57506
3480
57912
3502
57732
3655
57121
1836
66172
1846
66106
1771
66081
1866
65998
1805
66319
1866
66128
698
74624
754
74342
711
74085
749
74429
720
74600
742
74390
695
74541
777
74229
724
74140
679
74543

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #57:

score: 0
Accepted
time: 22ms
memory: 3744kb

input:

10000
90000
22642
22266
9945
40009
10092
40190
3708
57474
3568
57812
3703
57547
3593
57567
1814
66122
1859
65905
1825
65967
1803
66121
1859
66353
1844
66070
762
74234
740
74342
749
74353
707
74579
749
74429
754
74176
736
74162
744
74464
729
74453
727
74551

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #58:

score: 0
Accepted
time: 25ms
memory: 3684kb

input:

10000
90000
22466
22500
10115
39985
10033
40117
3535
57589
3610
57468
3582
57438
3526
57610
1779
66321
1851
66011
1860
66556
1767
65995
1863
66091
1818
66202
750
74322
781
74067
747
74613
678
74366
735
74375
727
74561
762
74328
734
74244
694
74494
751
74511

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #59:

score: 0
Accepted
time: 22ms
memory: 3744kb

input:

10000
90000
22556
22512
10126
39970
9952
40334
3678
57634
3677
57641
3624
57956
3656
57552
1777
66147
1847
66181
1786
66412
1802
65956
1789
66107
1841
66035
761
74427
739
74401
810
74342
735
74491
743
74301
736
74214
784
74142
723
74495
704
74620
717
74481

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #60:

score: 0
Accepted
time: 25ms
memory: 3900kb

input:

10000
90000
22522
22848
10217
39493
9729
40343
3596
57826
3733
57617
3605
57601
3574
57728
1758
66246
1837
66277
1877
66029
1875
66073
1868
66226
1873
66151
739
74495
742
74492
752
74192
734
74302
715
74421
775
74399
727
74535
719
74525
744
74414
744
74224

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #61:

score: 0
Accepted
time: 21ms
memory: 3720kb

input:

10000
90000
22625
22537
10244
39746
9937
39953
3577
57559
3541
57817
3635
57433
3598
57586
1833
66143
1896
66096
1831
66149
1830
66230
1859
66111
1883
66209
749
74437
706
74382
729
74381
773
74327
781
74371
720
74660
693
74619
725
74407
746
74184
759
74279

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #62:

score: 0
Accepted
time: 25ms
memory: 3976kb

input:

10000
90000
22332
22546
10090
40172
10062
40068
3715
57533
3668
57502
3733
57839
3466
57772
1826
66184
1854
66160
1804
66050
1823
66129
1840
66130
1831
66023
728
74638
772
74482
784
74060
743
74627
730
74542
729
74467
769
74413
775
74307
798
74388
727
74211

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #63:

score: 0
Accepted
time: 25ms
memory: 3744kb

input:

10000
90000
22692
22202
9755
40209
9944
39620
3550
57896
3653
57525
3649
57389
3647
57751
1872
66140
1871
65917
1810
66214
1826
66242
1851
66281
1806
66294
747
74515
744
74448
774
74396
742
74514
774
74190
742
74114
781
74317
767
74309
704
74860
761
74319

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #64:

score: 0
Accepted
time: 22ms
memory: 3716kb

input:

10000
90000
22514
22568
9936
39912
9983
39955
3546
57826
3734
57444
3681
57655
3567
57847
1775
66099
1854
65894
1846
66190
1757
66295
1922
66002
1830
66004
750
74170
788
74150
691
74873
761
74421
797
74371
725
74487
716
74312
787
74211
698
74508
737
74457

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #65:

score: 0
Accepted
time: 22ms
memory: 3932kb

input:

10000
90000
22472
22082
10076
39844
10064
39944
3538
57602
3563
57731
3656
57910
3750
57252
1765
66415
1845
66017
1809
66143
1900
65806
1797
66345
1820
66036
748
74656
780
74294
700
74510
746
74208
759
74355
751
74503
756
74392
729
74443
745
74233
754
74344

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #66:

score: 0
Accepted
time: 26ms
memory: 3988kb

input:

10000
90000
22403
22647
9986
40312
10160
39838
3633
57607
3582
57268
3623
57265
3439
58055
1845
66201
1800
66104
1881
66127
1744
66264
1825
66079
1784
66420
745
74379
758
74592
741
74197
745
74511
758
74218
760
74326
782
74512
738
74156
725
74481
741
74485

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #67:

score: 0
Accepted
time: 25ms
memory: 3720kb

input:

10000
90000
22327
22623
9913
40115
10058
39886
3592
57548
3560
57462
3655
57377
3538
57774
1846
65912
1823
65951
1810
66170
1812
66424
1850
66184
1817
66307
749
74231
717
74553
755
74443
707
74529
751
74381
746
74158
711
74773
719
74293
696
74262
761
74323

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #68:

score: 0
Accepted
time: 25ms
memory: 3744kb

input:

10000
90000
22645
22349
9974
40290
9871
40267
3592
57630
3575
57671
3597
57663
3574
57554
1814
66318
1937
65737
1803
66469
1824
66114
1826
66096
1770
66192
800
74282
709
74485
792
74344
769
74449
739
74471
742
74160
755
74449
678
74518
747
74193
731
74557

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #69:

score: 0
Accepted
time: 23ms
memory: 3940kb

input:

10000
90000
22721
22267
9961
40087
9836
39974
3626
57594
3687
57699
3677
57453
3524
57686
1836
66468
1814
66060
1848
66122
1782
66232
1846
65750
1807
66221
764
74270
779
74537
754
74460
732
74430
677
74193
700
74538
733
74353
715
74545
751
74259
792
74574

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #70:

score: 0
Accepted
time: 25ms
memory: 3740kb

input:

10000
90000
22523
22251
10026
40096
10011
40019
3692
57534
3695
57415
3594
57688
3591
57561
1807
66189
1800
66060
1802
66126
1797
66375
1945
65905
1816
65940
793
74219
731
74441
738
74182
748
74414
763
74361
712
74646
741
74165
749
74273
713
74699
719
74527

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #71:

score: 0
Accepted
time: 20ms
memory: 3900kb

input:

10000
90000
22844
22332
10080
39930
9955
39977
3538
57720
3717
57213
3530
57822
3641
57517
1854
65952
1866
65974
1917
65755
1732
66276
1834
66414
1831
66305
752
74366
734
74360
747
74459
808
74134
738
74340
697
74433
738
74422
670
74626
747
74435
757
74339

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #72:

score: 0
Accepted
time: 21ms
memory: 3748kb

input:

10000
90000
22461
22605
10022
39816
9968
40066
3617
57697
3643
57361
3560
57342
3505
57813
1851
66089
1823
65947
1899
66089
1827
66271
1828
66068
1799
66147
756
74542
806
74158
793
74517
719
74499
782
74126
816
74086
706
74300
756
74428
729
74653
696
74632

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #73:

score: 0
Accepted
time: 6ms
memory: 3680kb

input:

10000
89999
22479
22494
10145
39932
9969
39996
3649
57843

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #74:

score: 0
Accepted
time: 3ms
memory: 3736kb

input:

10000
89999
22144
22643
9906
39887
10275
39908
3530
57865
3556
57426

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #75:

score: 0
Accepted
time: 3ms
memory: 3620kb

input:

10000
89999
22410
22466

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #76:

score: 0
Accepted
time: 3ms
memory: 3732kb

input:

10000
89999
22375
22507

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #77:

score: 0
Accepted
time: 3ms
memory: 3700kb

input:

10000
89999
22346
22504

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #78:

score: 0
Accepted
time: 3ms
memory: 3732kb

input:

10000
89999
22321
22641

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #79:

score: 0
Accepted
time: 4ms
memory: 3744kb

input:

10000
89999
22437
22548
10095
39663

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #80:

score: 0
Accepted
time: 4ms
memory: 3908kb

input:

10000
89999
22715
22364
10034
39810

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #81:

score: 0
Accepted
time: 3ms
memory: 3768kb

input:

10000
89999
22384
22534

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #82:

score: 0
Accepted
time: 7ms
memory: 3976kb

input:

10000
89999
22646
22267
9870
40009
9988
39999
3530
57483
3573
57423

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #83:

score: 0
Accepted
time: 3ms
memory: 3964kb

input:

10000
89999
22336
22544

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #84:

score: 0
Accepted
time: 3ms
memory: 3896kb

input:

10000
89999
22176
22424

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #85:

score: 0
Accepted
time: 4ms
memory: 3660kb

input:

10000
89999
22663
22202
9891
40083

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #86:

score: 0
Accepted
time: 12ms
memory: 3676kb

input:

10000
89999
22583
22254
9942
39985
9968
40087
3573
58018
3689
57114
3525
57862
3561
57848
1837
66488
1858
66107
1868
65912

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #87:

score: 0
Accepted
time: 12ms
memory: 3716kb

input:

10000
89999
22552
22403
10039
39926
9794
40101
3669
57512
3648
57639
3712
57577
3701
57558
1858
66047
1820
66419
1832
66074

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #88:

score: 0
Accepted
time: 3ms
memory: 3732kb

input:

10000
89999
22652
22464

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #89:

score: 0
Accepted
time: 2ms
memory: 3672kb

input:

10000
89999
22380
22834

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #90:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

10000
89999
22532
22576

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #91:

score: 0
Accepted
time: 3ms
memory: 3628kb

input:

10000
89999
22356
22516

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #92:

score: 0
Accepted
time: 7ms
memory: 3740kb

input:

10000
89999
22266
22609
9962
40257
10247
39782
3555
57730
3561
57685

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #93:

score: 0
Accepted
time: 3ms
memory: 3712kb

input:

10000
89999
22370
22522

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #94:

score: 0
Accepted
time: 2ms
memory: 3768kb

input:

10000
89999
22737
22515

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #95:

score: 0
Accepted
time: 3ms
memory: 3900kb

input:

10000
89999
22326
22446

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #96:

score: 0
Accepted
time: 3ms
memory: 3684kb

input:

10000
89999
22481
22451

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #97:

score: 0
Accepted
time: 3ms
memory: 3768kb

input:

10000
89999
22373
22833

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #98:

score: 0
Accepted
time: 3ms
memory: 3536kb

input:

10000
89999
22466
22660

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #99:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

10000
89999
22369
22761

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #100:

score: 0
Accepted
time: 5ms
memory: 3596kb

input:

10000
89999
22512
22661
10044
39961
10178
39648

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #101:

score: 0
Accepted
time: 5ms
memory: 3680kb

input:

10000
89999
22161
22816
10035
39918
10166
39828

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #102:

score: 0
Accepted
time: 3ms
memory: 3968kb

input:

10000
89999
22529
22579

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #103:

score: 0
Accepted
time: 1ms
memory: 3548kb

input:

10000
89999
22646
22128

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #104:

score: 0
Accepted
time: 4ms
memory: 3904kb

input:

10000
89999
22500
22439
10182
40068

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #105:

score: 0
Accepted
time: 3ms
memory: 3732kb

input:

10000
89999
22643
22355

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #106:

score: 0
Accepted
time: 3ms
memory: 3668kb

input:

10000
89999
22611
22459

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #107:

score: 0
Accepted
time: 3ms
memory: 3660kb

input:

10000
89999
22642
22266

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #108:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

10000
89999
22465
22500
10115
39985

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #109:

score: 0
Accepted
time: 0ms
memory: 3936kb

input:

10000
89999
22555
22512
10126
39970

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #110:

score: 0
Accepted
time: 3ms
memory: 3672kb

input:

10000
89999
22522
22848

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #111:

score: 0
Accepted
time: 4ms
memory: 3744kb

input:

10000
89999
22624
22537
10244
39745
9936
39953
3577
57559

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #112:

score: 0
Accepted
time: 4ms
memory: 3716kb

input:

10000
89999
22332
22545
10090
40172

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #113:

score: 0
Accepted
time: 3ms
memory: 3720kb

input:

10000
89999
22692
22202

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #114:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

10000
89999
22514
22568

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #115:

score: 0
Accepted
time: 2ms
memory: 3828kb

input:

10000
89999
22471
22082
10076
39844

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #116:

score: 0
Accepted
time: 3ms
memory: 3960kb

input:

10000
89999
22403
22647

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #117:

score: 0
Accepted
time: 3ms
memory: 3768kb

input:

10000
89999
22327
22623

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #118:

score: 0
Accepted
time: 3ms
memory: 3732kb

input:

10000
89999
22645
22349

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #119:

score: 0
Accepted
time: 4ms
memory: 3680kb

input:

10000
89999
22721
22266
9961
40086
9835
39974
3626
57593
3687
57698
3677
57453

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #120:

score: 0
Accepted
time: 5ms
memory: 3912kb

input:

10000
89999
22523
22250
10026
40096

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #121:

score: 0
Accepted
time: 4ms
memory: 3808kb

input:

10000
89999
22843
22332
10080
39930

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct

Test #122:

score: 0
Accepted
time: 4ms
memory: 3776kb

input:

10000
89999
22461
22605

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok correct