QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#707522#1834. Eulerian?ship2077AC ✓33ms3912kbC++23605b2024-11-03 16:20:432024-11-03 16:20:43

Judging History

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

  • [2024-11-03 16:20:43]
  • 评测
  • 测评结果:AC
  • 用时:33ms
  • 内存:3912kb
  • [2024-11-03 16:20:43]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
mt19937 mt(time(NULL));
constexpr int M=10005;
int n,ans,ans1,ans2,vis[M];
int main(){
	cin>>n; cout<<"? "<<n;
	for (int i=1;i<=n;i++) cout<<" "<<i;cout<<endl;
	cin>>ans;
	for (int k=1;k<30;k++){ int sum=0;
		for (int i=1;i<=n;i++) vis[i]=mt()&1,sum+=vis[i];
		cout<<"? "<<sum;
		for (int i=1;i<=n;i++) if (vis[i]) cout<<" "<<i;cout<<endl;
		cin>>ans1;
		cout<<"? "<<n-sum;
		for (int i=1;i<=n;i++) if (!vis[i]) cout<<" "<<i;cout<<endl;
		cin>>ans2;
		if (ans1+ans2-ans&1) return cout<<"! NO"<<endl,0;
	}
	cout<<"! YES"<<endl;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2
0
1

output:

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

result:

ok correct

Test #2:

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

input:

3
3
0
1
1
0
0
1
0
1
0
1
1
0
0
3
1
0
0
3
1
0
0
1
1
0
1
0
1
0
1
0
0
3
3
0
0
1
1
0
1
0
1
0
0
1
3
0
0
1
3
0
0
1
0
1
0
1
0
3

output:

? 3 1 2 3
? 1 1
? 2 2 3
? 2 1 2
? 1 3
? 1 1
? 2 2 3
? 1 1
? 2 2 3
? 1 3
? 2 1 2
? 2 1 3
? 1 2
? 0
? 3 1 2 3
? 2 2 3
? 1 1
? 0
? 3 1 2 3
? 2 1 3
? 1 2
? 1 2
? 2 1 3
? 2 2 3
? 1 1
? 2 1 3
? 1 2
? 2 1 3
? 1 2
? 2 1 3
? 1 2
? 0
? 3 1 2 3
? 3 1 2 3
? 0
? 1 3
? 2 1 2
? 2 1 2
? 1 3
? 2 1 2
? 1 3
? 2 1 3
? ...

result:

ok correct

Test #3:

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

input:

4
3
0
1
0
0

output:

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

result:

ok correct

Test #4:

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

input:

4
4
0
1

output:

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

result:

ok correct

Test #5:

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

input:

4
5
1
1

output:

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

result:

ok correct

Test #6:

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

input:

10
10
3
2

output:

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

result:

ok correct

Test #7:

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

input:

10
11
2
4

output:

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

result:

ok correct

Test #8:

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

input:

100
100
32
20
34
17

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: 0ms
memory: 3792kb

input:

100
256
58
74
92
53

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: 3792kb

input:

1000
1488
420
323

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: 3676kb

input:

1000
11488
3214
2615

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: 4ms
memory: 3760kb

input:

10000
100000
24314
25598
24840
25227

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: 3ms
memory: 3712kb

input:

10000
99999
24116
25782

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: 0ms
memory: 3792kb

input:

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

output:

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

result:

ok correct

Test #15:

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

input:

100
100
30
32
15
43
21
35
22
32
27
17
24
22
26
26
18
32
30
30
18
30
33
19
28
24
27
25
27
25
17
31
23
29
25
29
28
28
27
23
21
25
19
19
24
26
23
25
18
22
17
27
26
24
25
23
22
24
27
25

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: 3ms
memory: 3744kb

input:

1000
1000
224
292
247
249
250
282
222
260
275
241
264
236
248
250
231
263
250
268
253
257
256
272
245
263
267
229
239
265
247
253
299
235
258
238
227
273
236
298
241
229
282
242
267
255
240
252
254
240
275
227
256
260
221
279
252
242
252
218

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: 23ms
memory: 3896kb

input:

10000
10000
2452
2586
2483
2523
2499
2481
2569
2399
2546
2460
2511
2533
2501
2399
2462
2502
2563
2421
2525
2561
2493
2499
2475
2535
2554
2398
2436
2536
2522
2476
2556
2488
2500
2552
2673
2415
2551
2507
2531
2423
2515
2463
2533
2503
2526
2498
2488
2532
2521
2529
2539
2421
2530
2424
2538
2522
2561
2461

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: 28ms
memory: 3844kb

input:

10000
10000
2451
2585
2488
2528
2491
2473
2565
2395
2533
2447
2503
2525
2555
2453
2489
2529
2529
2387
2463
2499
2482
2488
2492
2552
2595
2439
2417
2517
2540
2494
2552
2484
2444
2496
2567
2309
2528
2484
2594
2486
2580
2528
2528
2498
2529
2501
2480
2524
2501
2509
2582
2464
2534
2428
2524
2508
2563
2463

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: 31ms
memory: 3864kb

input:

10000
10000
2443
2577
2474
2514
2542
2524
2572
2402
2587
2501
2481
2503
2548
2446
2468
2508
2606
2464
2504
2540
2523
2529
2462
2522
2607
2451
2490
2590
2520
2474
2569
2501
2518
2570
2620
2362
2492
2448
2555
2447
2544
2492
2518
2488
2494
2466
2443
2487
2520
2528
2570
2452
2564
2458
2470
2454
2528
2428

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: 1ms
memory: 3672kb

input:

100
200
45
63
15
87
35
67
38
56
72
38
48
48
51
45
39
73
53
45
35
61
58
34
51
53
46
60
46
46
38
70
45
51
52
46
54
62
58
52
33
69
51
51
42
58
50
48
48
52
37
59
53
57
52
50
50
68
49
39

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: 3ms
memory: 3740kb

input:

1000
2000
414
600
502
492
489
567
465
573
518
452
532
462
484
500
476
544
484
520
456
516
499
477
503
493
537
483
482
506
491
487
579
435
540
478
442
558
449
591
492
502
561
469
539
469
447
525
520
518
541
455
522
464
456
590
488
502
547
481

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: 3724kb

input:

1000
11000
2417
3095
2755
2747
2516
3016
2544
2960
2978
2528
2801
2643
2824
2736
2638
2890
2703
2757
2658
2836
2699
2841
2670
2844
3053
2449
2666
2842
2690
2844
3099
2445
2842
2682
2561
2989
2417
3075
2872
2680
2936
2536
2827
2699
2562
2906
2861
2651
2951
2441
2703
2811
2351
3105
2781
2725
3001
2597

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: 32ms
memory: 3764kb

input:

10000
90000
22131
23037
22165
22799
22659
22337
23112
21880
22698
22110
22267
22495
22880
22240
22239
22771
23256
21866
22410
22504
22353
22545
22264
22706
23037
21903
21737
23085
22931
22137
22795
21973
22228
22626
23869
21297
22716
22446
22897
22231
22657
22329
22497
22523
22721
22241
22274
22734
...

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: 29ms
memory: 3896kb

input:

10000
90000
22115
23121
22411
22587
22708
22336
23202
21870
22591
22223
22293
22505
23019
22141
22212
22546
23086
21852
22296
22818
22452
22426
22373
22855
23171
21585
22046
22934
22690
22010
22797
22375
22462
22760
23785
21257
22908
22158
23098
22038
22847
21963
22486
22228
22848
22230
22492
22612
...

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: 28ms
memory: 3708kb

input:

10000
90000
21644
23274
22275
22737
22606
22388
23176
21806
22995
22133
22549
22403
23034
21810
22421
22563
23309
21711
22428
22430
22114
22706
22572
22410
23275
21749
22343
23017
22762
22092
22928
22138
22391
22809
23807
21213
22687
22199
22911
21899
22871
22213
22780
22074
22526
22220
22350
22566
...

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: 31ms
memory: 3692kb

input:

10000
90000
22208
22942
22307
22863
22575
22403
22755
22255
22395
22411
22179
22865
22745
22369
22591
22559
22856
22140
22029
22895
23428
21764
22418
22590
22739
22301
23443
21449
22532
22716
22414
22222
22397
22735
22262
22970
22825
22309
21985
22907
22854
22166
22076
22896
22603
22475
22741
22127
...

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: 32ms
memory: 3724kb

input:

10000
90000
22407
22671
22120
22802
22745
22305
22748
22442
22569
22563
22502
22868
22787
22091
22518
22180
22892
22168
21835
23021
22805
21985
22126
22696
22510
22616
23045
21769
22405
22599
22715
22297
22152
22946
22198
22578
22704
22080
21793
23195
23107
21923
22135
22749
22609
22197
22522
22536
...

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: 32ms
memory: 3764kb

input:

10000
90000
22006
22886
22164
22740
22122
22616
22668
22470
22438
22420
22478
22432
22587
22245
22400
22506
22572
22068
22252
23022
22957
21937
22386
22732
22837
22321
23009
21879
22181
22545
22570
22316
22408
22774
22267
22745
22556
22336
21954
23024
23137
21993
22256
22612
22766
22108
22578
22384
...

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: 32ms
memory: 3768kb

input:

10000
90000
22286
22588
22052
22836
22527
22455
22902
21946
22567
22401
22107
22827
22565
22421
22548
22452
22408
22436
22234
22860
23359
21821
22536
22946
22758
22458
23556
21786
22443
22739
22771
22297
22214
22910
22148
22642
22855
22321
22055
22839
23257
21837
22203
22847
22652
22312
22617
22361
...

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: 30ms
memory: 3848kb

input:

10000
90000
22024
22774
22143
22815
22695
22251
22842
22112
22610
22354
22105
22883
22576
22446
22581
22781
23016
21782
21683
23191
23246
21874
22483
22815
22548
22324
23176
21808
22292
22844
22619
22311
22315
22731
22342
22706
22603
22459
21992
23138
22946
21788
22603
22717
22789
22109
22440
22524
...

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: 32ms
memory: 3844kb

input:

10000
90000
22310
22718
22193
22797
22419
22547
22732
22564
22636
22258
22419
22689
22752
22450
22417
22483
22450
22472
22255
22711
23112
21744
22319
22709
23096
22236
23241
21675
22431
22557
22838
22180
22136
22548
22422
22592
22418
22280
21955
23269
22928
22192
22236
22722
22735
22375
22382
22640
...

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: 33ms
memory: 3700kb

input:

10000
90000
22957
22175
22567
22285
22220
22628
22478
22658
22203
22629
22416
22390
22721
22347
23105
21753
22648
22404
22161
22827
22447
22367
22846
22178
22272
22656
22447
22339
21699
23293
23271
21631
22476
22490
22239
22847
23546
21510
22280
22606
22428
22394
22328
22446
22449
22519
22858
22110
...

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: 32ms
memory: 3908kb

input:

10000
90000
22867
21923
22330
22584
22646
22558
22187
22673
22270
22920
22074
23086
22884
22166
23023
21835
22355
22459
22168
22714
22534
22528
22943
22057
22605
22429
22816
21920
21346
23646
23110
21718
22683
22551
22107
22945
23585
21351
22598
22490
22178
22680
22746
22546
22456
22520
22381
22567
...

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: 32ms
memory: 3760kb

input:

10000
90000
22964
22072
22574
22394
22387
22659
22253
22733
21947
23125
22082
23014
22627
22235
23018
21928
22667
22419
22211
22645
22711
22219
22768
22144
22628
22256
22901
22185
21713
23319
23322
21776
22789
22477
21913
22987
23513
21623
22572
22572
22590
22258
22772
22554
22166
22840
22651
22259
...

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: 21ms
memory: 3820kb

input:

10000
90000
22928
21886
22247
22525
22295
22303
22638
22544
22124
23010
22180
22970
22796
22010
23313
22057
22899
22255
22404
22472
22143
22703
22638
22340
22476
22588
22766
22282
21815
23067
23137
21831
22295
22667
22599
22617
23093
21879
22626
22046
22457
22559
22714
22504
22080
22984
22506
22474
...

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: 31ms
memory: 3756kb

input:

10000
90000
22881
22073
22590
22292
22424
22406
22268
22586
22348
22698
22352
22734
22497
22375
23519
21795
22146
22624
22616
22588
22843
22307
22889
21941
22335
22381
22577
22313
21703
23377
23473
21629
22481
22655
21941
22833
23373
21807
22398
22544
22241
22505
23294
21760
22305
22719
22602
22514
...

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: 32ms
memory: 3760kb

input:

10000
90000
23207
21947
22341
22499
22323
22623
22335
22717
22318
22736
22266
22742
22636
22152
22966
21906
22510
22322
22503
22667
22541
22279
23009
22061
22619
22417
22907
22087
21622
23242
23282
21740
22432
22500
21878
22790
23355
21685
22491
22501
22839
22149
22622
22440
22185
22925
22384
22264
...

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: 26ms
memory: 3816kb

input:

10000
90000
22120
22644
22917
22213
22481
22533
22282
22546
22612
22386
22813
22149
22827
22249
22371
22595
22771
22311
21723
23383
22380
22608
22162
22736
22618
22348
22406
22376
21481
23299
22482
22632
21560
23418
22540
22474
22355
22685
22568
22496
21896
23150
22550
22202
22392
22860
22472
22430
...

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: 32ms
memory: 3704kb

input:

10000
90000
22181
22915
23107
22307
22507
22501
22252
22886
22529
22547
23042
21862
22877
21987
22891
22341
23016
21942
21891
23149
22292
22578
21966
23210
22537
22415
22428
22530
21680
23458
22355
22625
22056
22972
22516
22432
22157
22793
22554
22548
22691
22553
22727
22155
22737
22385
22446
22708
...

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: 22ms
memory: 3788kb

input:

10000
90000
22491
22731
22776
22368
22714
22498
22427
22619
22362
22878
22889
22365
22878
22022
22577
22513
22912
21928
22036
22768
22993
22037
22230
22740
22066
22822
22512
22614
21663
23315
22455
22463
21898
23102
22346
22616
22336
22540
22505
22349
22537
22295
22459
22675
22452
22882
22430
22584
...

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: 27ms
memory: 3848kb

input:

10000
90000
22271
22677
22817
22039
22505
22553
22301
22865
22327
22539
23083
21751
23148
21746
22458
22530
23044
22186
21950
22944
22413
22687
21871
22863
22599
22237
22647
22263
21839
23191
22581
22483
22314
22866
22345
22531
22309
22801
22567
22345
22337
22679
22478
22544
22155
22779
22430
22404
...

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: 32ms
memory: 3756kb

input:

10000
90000
22302
22538
22878
21940
22288
22448
22394
22614
22394
22438
23071
22139
22652
22242
22437
22473
23044
21914
22111
23143
22489
22375
21795
22835
22704
22104
22399
22613
21728
23300
22604
22444
22310
22682
22346
22590
22216
22710
22591
22513
22612
22354
22993
22123
22514
22208
22187
22817
...

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: 31ms
memory: 3764kb

input:

10000
90000
22089
22855
23111
22035
22195
22673
22450
22610
22657
22083
22908
22102
22924
21954
22351
22635
23112
21646
21929
23157
22503
22523
21949
22933
22611
22639
22799
22467
21891
23423
22588
22346
21793
23211
22266
22530
22355
22615
22247
22475
22896
22220
22349
22631
22233
22587
22451
22615
...

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: 3860kb

input:

10000
90000
22049
22867
22486
22372
21891
22937
22976
22046
22829
22287
22111
22561
22640
22434
22506
22616
23140
21804
22932
22048
22300
22732
22390
22448
23383
21869
22575
22549
22968
21802
22315
22665
22776
22072
23197
21677
23034
22094
21998
23164
22000
22956
21764
23106
22652
22224
22871
22121
...

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: 3760kb

input:

10000
90000
21907
23153
22403
22489
21744
23060
23003
21949
23071
21833
22112
22696
23169
22279
22437
22569
23172
21836
22938
22146
22301
22871
22863
22213
23228
21592
22463
22515
22925
22111
22519
22563
22974
22194
23145
21985
23245
21799
22302
22784
22321
22869
21764
22988
22696
22182
22888
22474
...

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: 32ms
memory: 3768kb

input:

10000
90000
22195
22871
22555
22467
22091
22935
23073
21977
22689
22149
22307
22757
22878
22040
22419
22603
23050
22086
22962
22066
22408
22334
22450
22426
23494
21640
22585
22175
23007
22017
22646
22208
22788
22174
23058
21850
23287
21707
21961
22903
22160
22780
21955
23213
22891
22169
22618
22336
...

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: 32ms
memory: 3700kb

input:

10000
90000
22129
22859
22351
22507
22066
22796
23030
22052
22669
22059
22102
22820
22958
21948
22436
22642
22853
21963
22595
22231
22189
22765
22549
22533
23341
21517
22730
22284
23319
22077
22411
22539
22726
22480
23139
22165
22636
22318
22050
22788
22091
22873
21599
23419
22747
22355
22508
22286
...

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: 32ms
memory: 3848kb

input:

10000
90000
22072
22934
22540
22528
21891
23275
23042
21718
22727
22353
22179
23145
22863
21931
22623
22735
23071
22011
23040
22104
22258
22700
22651
22271
23167
21849
22397
22469
23260
21642
22563
22493
22848
22090
23137
21745
22727
22243
21962
23058
22393
22591
21816
23190
22797
22419
22575
22413
...

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: 32ms
memory: 3840kb

input:

10000
90000
21534
23428
22535
22337
22152
22880
22791
22163
22751
22311
22281
22865
23110
21744
22513
22631
23354
21586
22978
21972
22172
23036
22518
22328
23212
21752
22546
22428
23204
21668
22389
22235
22836
22286
23408
21810
23163
22155
22169
22669
22262
22764
21786
23290
22641
22111
22575
22563
...

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: 32ms
memory: 3764kb

input:

10000
90000
22612
22506
22576
22318
22693
22323
22504
22596
22965
22237
23121
21837
23072
22034
23112
22006
22220
22618
22467
22461
22224
22654
22657
22243
23915
21135
21745
23231
22380
22214
22758
22318
23008
22108
22651
22319
21916
22800
22593
22207
22476
22260
22659
22423
21670
23390
22941
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 #51:

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

input:

10000
90000
22183
22735
22234
22626
22644
22404
22539
22377
22617
22441
23341
21581
23243
21697
23049
21977
22150
22606
22367
22597
22295
22519
22368
22586
23493
21457
21900
23302
22854
22308
22855
22493
22898
21736
22282
22496
21636
23426
22394
22304
22513
22375
22601
22441
21597
23445
22818
22082
...

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: 32ms
memory: 3904kb

input:

10000
90000
22431
22607
22234
22710
22678
22398
22576
22412
22643
22125
23063
22097
23322
21648
23010
21932
22047
23093
22091
23083
22170
22918
22323
22585
23436
21426
22250
22630
22540
22632
22644
22406
23264
21760
22914
22248
21841
22923
22643
22297
22917
22403
22978
22278
21899
23281
22813
22207
...

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: 28ms
memory: 3752kb

input:

10000
90000
22456
22484
22263
22823
22800
22074
22451
22465
22873
22229
22686
21986
22916
22268
22760
22196
22009
22811
22598
22612
22192
22810
22510
22560
23484
21398
21941
23417
22689
22131
22691
22317
22787
22153
22217
22705
21487
23579
22908
22220
22320
22548
22649
22357
21702
23148
22667
22209
...

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: 31ms
memory: 3764kb

input:

10000
90000
22557
22391
22433
22867
22495
22535
22045
22797
22672
22084
23001
22143
23305
21989
22589
22485
22401
22887
22398
22714
22493
22679
22719
22369
23521
21729
22154
23086
22601
22231
22644
22182
23115
21873
22534
22396
22075
23299
22740
22374
22663
22251
22539
22669
21889
23355
23071
22095
...

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: 32ms
memory: 3912kb

input:

10000
90000
22368
22672
22346
22476
22745
22353
22240
22590
22634
22402
23207
21915
23000
21834
22741
22253
22040
22868
22196
22646
22273
22725
22711
22497
23502
21526
21899
23103
22566
22378
22758
22128
23506
21722
22564
22360
21977
22931
22989
22243
22714
22254
22591
22453
21478
23594
22931
22217
...

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: 27ms
memory: 3816kb

input:

10000
90000
22682
22348
22365
22629
22621
22471
22076
22826
22858
22102
22781
22125
22198
22762
23403
21769
22642
22546
22395
22855
22376
22584
23038
22042
22976
21952
22906
22024
21530
23334
22535
22473
22716
22312
21967
23065
22500
22342
22828
22218
22649
22495
22702
22338
22545
22337
21411
23613
...

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: 28ms
memory: 3764kb

input:

10000
90000
22599
22345
22438
22584
22502
22134
22199
22841
22847
22285
23177
22107
22313
22711
23460
21378
22784
22444
22362
22826
22627
22473
23262
21840
22798
22266
22756
22152
21302
23438
22477
22555
22766
22314
21860
23040
23189
21795
22708
21894
22501
22459
23026
21954
22327
22619
21414
23430
...

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: 18ms
memory: 3764kb

input:

10000
90000
22592
22482
22758
22238
22532
22418
22098
22696
22766
22238
23071
21895
22191
22351
23287
21569
22665
22361
22437
22847
22481
22427
22983
21967
22872
22076
23146
21892
21094
23872
22328
22584
22877
22139
22137
22877
23036
21960
22972
21908
22490
22522
22961
22257
22881
22275
21503
23587
...

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: 32ms
memory: 3704kb

input:

10000
90000
22764
22442
22576
22282
22885
22143
22243
22639
22424
22500
22949
22087
22100
22944
23116
21556
22904
21992
22412
22974
22535
22697
23001
22057
22696
22184
23054
22038
21267
23949
22682
22226
22583
22327
22049
22901
23003
21917
22757
22441
22340
22562
23008
22336
22639
22203
21736
23516
...

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: 26ms
memory: 3816kb

input:

10000
90000
22864
22116
22519
22495
22571
22315
21973
22957
22360
22668
23084
21948
22225
22779
23472
21402
22457
22577
21985
22949
22550
22370
23208
21688
22785
22273
22928
21812
21056
24284
22434
22452
22553
22071
21909
23207
22981
22031
23052
22252
22435
22335
22904
22176
22449
22373
21379
23709
...

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: 24ms
memory: 3824kb

input:

10000
90000
22646
22414
22506
22412
22371
22359
22129
22819
22802
22248
23104
22066
22230
22456
23287
21805
22550
22480
22030
23092
22496
22438
23079
21855
22870
22108
23047
21831
21500
23440
22610
22308
22556
22476
21994
22588
23007
21875
22866
22040
22760
22234
23034
22124
22827
22093
21079
23959
...

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: 32ms
memory: 3876kb

input:

10000
90000
22922
22138
21921
22839
22607
22363
22733
22401
22064
22810
21859
22931
21573
23425
22690
22214
22831
22165
22936
21990
22304
22876
22958
21966
22205
22463
22989
22397
22560
22508
22472
22414
22189
22791
22923
22205
22559
22565
22930
22082
22516
22512
22061
23021
22739
22195
23318
21878
...

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: 23ms
memory: 3748kb

input:

10000
90000
22552
22364
22101
22891
22341
22637
22909
22093
22232
22566
22291
22875
21574
23422
22679
22389
22654
22672
22426
22598
22263
22693
23208
21704
22072
22726
22932
22132
22550
22358
22450
22308
22261
22681
22797
22225
22473
22459
23025
21955
22219
22657
22057
22969
22839
22119
23190
21966
...

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: 29ms
memory: 3824kb

input:

10000
90000
22850
22452
22271
22733
22616
22776
22617
22377
22028
22922
22266
22528
21536
23414
22789
22125
22503
22395
22766
22374
22508
22702
23316
21752
22273
22743
22689
22299
22747
22213
22798
22318
22423
22699
22934
22002
22732
22288
23279
21971
22611
22483
22148
22792
22776
22070
23208
21654
...

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: 32ms
memory: 3908kb

input:

10000
90000
22481
22193
22259
22599
22287
22921
22476
22528
22332
22832
22162
23062
21357
23553
22509
22499
22753
22051
22729
22223
22568
22256
23074
22022
22543
22705
22902
22080
22307
22565
22560
22352
22510
22384
22727
22037
22655
22493
23206
21812
22619
22577
22008
22964
22838
22406
23264
21542
...

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: 29ms
memory: 3844kb

input:

10000
90000
22639
22385
22036
22928
22333
22835
22658
22500
22296
22846
21904
23010
21330
23592
22586
22174
22916
22348
22746
22274
22330
22560
23100
21704
22221
22659
22700
21988
22519
22605
22736
22482
22387
22721
23103
21833
22248
22682
23044
21756
22305
22537
22288
22702
22649
22467
23032
21796
...

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: 30ms
memory: 3756kb

input:

10000
90000
22865
22147
22030
22950
22239
22731
22657
22263
22348
22612
22182
22966
21392
23522
22579
22481
23021
22335
22793
22237
22521
22629
23054
21832
22189
22727
22969
22073
22600
22534
22622
22288
22224
23012
22916
21970
22390
22442
23095
21771
22320
22704
21767
23143
22591
22275
23094
22002
...

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: 28ms
memory: 3712kb

input:

10000
90000
22392
22514
22377
22487
22462
22282
21955
22969
22410
22642
21818
23414
22546
22534
21818
22974
22852
22050
22572
22430
23079
22063
22678
22390
22605
22143
22701
22373
22990
21930
23074
21898
23622
21266
23288
21808
21965
23069
21958
23206
23105
22063
22457
22335
22861
22139
22590
22248
...

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: 29ms
memory: 3840kb

input:

10000
90000
22452
22368
22641
22427
22208
22592
22031
22955
22534
22342
21674
22950
22428
22514
22039
22961
22720
22294
22437
22975
23097
21823
22448
22776
22707
22385
22690
22348
23470
21612
23054
21882
23904
21336
23053
21659
22090
22968
21673
23227
23394
21454
22652
22400
22877
22263
22386
22566
...

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: 32ms
memory: 3768kb

input:

10000
90000
22360
22630
22460
22364
22486
22506
21968
23328
22588
22564
21904
23162
22332
22610
22095
23043
22628
22286
22439
22653
23268
21856
22661
22193
23026
22032
22434
22512
22993
21687
22764
21984
23663
21387
23105
21911
22151
23057
21775
23371
23389
21881
22644
22376
22666
22390
22418
22580
...

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: 30ms
memory: 3792kb

input:

10000
90000
22870
22398
22348
22586
22342
22690
22485
22787
22448
22484
21846
22926
22394
22660
22141
22813
22653
22369
22403
22573
22909
22163
22626
22264
22709
22181
22618
22634
23170
21872
22926
21922
23700
21318
22907
22065
22176
22842
21757
23263
23357
21797
22320
22384
22621
22453
22737
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 #72:

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

input:

10000
90000
22754
21990
22455
22475
22578
22658
21782
22986
22366
22526
21849
23029
22433
22593
21876
23068
22648
22484
22596
22420
22790
22242
22195
22933
23080
21940
22823
22215
23104
22006
22906
21832
23360
21304
23271
21721
21994
23026
21673
23197
23308
22062
22506
22340
22429
22549
22407
22829
...

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: 4ms
memory: 3712kb

input:

10000
89999
22672
22441
22545
22535

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: 4ms
memory: 3840kb

input:

10000
89999
22580
22367
22068
22506

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: 6ms
memory: 3828kb

input:

10000
89999
22855
22184
22160
22421
22490
22833
22371
22485

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: 3820kb

input:

10000
89999
22932
22362

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: 3908kb

input:

10000
89999
23033
22193

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: 5ms
memory: 3848kb

input:

10000
89999
22997
22068
22736
22357
22548
22396

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: 0ms
memory: 3848kb

input:

10000
89999
22568
22465
22649
22728
22370
22458

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: 9ms
memory: 3844kb

input:

10000
89999
23006
22187
22465
22744
22614
22401
22524
22437
23452
21663
22658
22277
22315
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

Test #81:

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

input:

10000
89999
22808
22212

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: 2ms
memory: 3768kb

input:

10000
89999
22779
22383

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: 2ms
memory: 3896kb

input:

10000
89999
22921
22225

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: 1ms
memory: 3828kb

input:

10000
89999
23083
21833

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: 2ms
memory: 3764kb

input:

10000
89999
22735
22362
22442
22640

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: 8ms
memory: 3892kb

input:

10000
89999
22576
22233
22635
22428
22500
22151
22618
22339
23625
21432
22488
22582

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: 4ms
memory: 3844kb

input:

10000
89999
22652
22055
22017
22825

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: 2ms
memory: 3848kb

input:

10000
89999
22824
22172

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: 5ms
memory: 3844kb

input:

10000
89999
23039
22306
22345
22486
22695
22248
22445
22677

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: 2ms
memory: 3768kb

input:

10000
89999
22762
22348

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: 3912kb

input:

10000
89999
22718
22328

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: 5ms
memory: 3748kb

input:

10000
89999
23715
21108
22465
22544
22126
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 #93:

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

input:

10000
89999
23635
20998
22533
22371

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: 3692kb

input:

10000
89999
23851
21281

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: 2ms
memory: 3772kb

input:

10000
89999
23682
21453
22444
22682

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: 3768kb

input:

10000
89999
23952
21190

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: 6ms
memory: 3696kb

input:

10000
89999
23491
21278
22432
22627
22311
22804
22650
22104

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: 8ms
memory: 3896kb

input:

10000
89999
23289
21604
22253
22690
22542
22451
23108
21813
22430
22355
21993
22769

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: 3ms
memory: 3752kb

input:

10000
89999
23387
21488
22551
22783

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: 4ms
memory: 3820kb

input:

10000
89999
23681
21308
22459
22771

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: 3ms
memory: 3824kb

input:

10000
89999
23620
21215
22242
22670

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: 3816kb

input:

10000
89999
23603
21513

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: 5ms
memory: 3760kb

input:

10000
89999
23627
21452
22590
22495
22209
22549

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: 3708kb

input:

10000
89999
23458
21669
22277
22707

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: 2ms
memory: 3708kb

input:

10000
89999
23866
21388

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: 3892kb

input:

10000
89999
23558
21438

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: 4ms
memory: 3904kb

input:

10000
89999
23843
21274
22052
23092

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: 4ms
memory: 3764kb

input:

10000
89999
23593
21444
22350
22764

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: 2ms
memory: 3764kb

input:

10000
89999
23108
21876

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: 5ms
memory: 3760kb

input:

10000
89999
22971
21888
22173
22668
22438
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 #111:

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

input:

10000
89999
23091
21663

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: 0ms
memory: 3844kb

input:

10000
89999
23426
21622

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: 3820kb

input:

10000
89999
22952
21930

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: 3ms
memory: 3728kb

input:

10000
89999
22849
22047

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: 3ms
memory: 3836kb

input:

10000
89999
23248
21788

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: 0ms
memory: 3848kb

input:

10000
89999
23314
21768

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: 3908kb

input:

10000
89999
23443
21739

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: 7ms
memory: 3796kb

input:

10000
89999
23211
21746
22621
22406
22122
22885
22847
22142
22635
22367

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: 3ms
memory: 3824kb

input:

10000
89999
23259
21817

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: 4ms
memory: 3820kb

input:

10000
89999
23304
21801
22281
22749

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: 2ms
memory: 3800kb

input:

10000
89999
22844
22152

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: 3764kb

input:

10000
89999
23298
21799
22384
22632

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