QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#124222#1834. Eulerian?ZhangYiDeAC ✓32ms3648kbC++173.2kb2023-07-14 13:24:312023-07-14 13:24:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3484kb

input:

3
2
0
0
1
0

output:

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

result:

ok correct

Test #2:

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

input:

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

output:

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

result:

ok correct

Test #3:

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

input:

4
3
0
0

output:

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

result:

ok correct

Test #4:

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

input:

4
4
0
1

output:

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

result:

ok correct

Test #5:

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

input:

4
5
0
1
1
1

output:

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

result:

ok correct

Test #6:

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

input:

10
10
2
0
2
2
2
4
2
4
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
3
2

output:

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

result:

ok correct

Test #7:

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

input:

10
11
2
4

output:

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

result:

ok correct

Test #8:

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

input:

100
100
24
28
29
26

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

input:

100
256
75
46

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

input:

1000
1488
391
371
354
381

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

input:

1000
11488
2887
2860

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

input:

10000
100000
25126
25060
25100
24916
25140
24895

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

input:

10000
99999
24803
24969

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

input:

10
10
3
3
1
1
1
3
1
5
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
0
10
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
1
1
2
2
4
4
3
3
3
3
3
3
2
2

output:

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

result:

ok correct

Test #15:

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

input:

100
100
26
26
26
26
23
25
22
26
21
25
16
42
10
36
0
100
0
100
0
100
0
100
0
100
0
100
0
100
24
24
23
23
26
26
24
24
29
29
22
22
20
20
27
27
25
25
23
23
24
24
24
24
29
29
26
26
26
26

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

input:

1000
1000
242
242
257
257
257
257
245
251
251
259
241
263
237
259
240
262
238
260
247
269
0
1000
0
1000
0
1000
0
1000
249
249
255
255
249
249
258
258
259
259
247
247
240
240
247
247
254
254
251
251
252
252
246
246
257
257
256
256
249
249

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

input:

10000
10000
2526
2526
2531
2531
2551
2551
2517
2517
2522
2536
2455
2471
2506
2522
2530
2546
2397
2635
2406
2644
2334
2572
1694
3502
1670
3478
334
6716
2464
2464
2553
2553
2522
2522
2484
2484
2497
2497
2459
2459
2454
2454
2500
2500
2481
2481
2505
2505
2495
2495
2473
2473
2490
2490
2511
2511
2506
2506

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

input:

10000
10000
2462
2462
2427
2427
2518
2518
2461
2461
2466
2480
2516
2532
2495
2511
2541
2557
2382
2620
2366
2604
2393
2631
1703
3511
1677
3485
312
6694
2468
2468
2528
2528
2504
2504
2511
2511
2507
2507
2456
2456
2437
2437
2511
2511
2512
2512
2503
2503
2471
2471
2524
2524
2525
2525
2496
2496
2522
2522

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

input:

10000
10000
2478
2478
2518
2518
2481
2481
2526
2526
2514
2528
2460
2476
2442
2458
2447
2463
2380
2618
2394
2632
2416
2654
1665
3473
1699
3507
331
6713
2523
2523
2507
2507
2507
2507
2532
2532
2523
2523
2498
2498
2483
2483
2497
2497
2493
2493
2535
2535
2461
2461
2492
2492
2492
2492
2526
2526
2512
2512

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

input:

100
200
53
55
46
44
41
53
39
59
57
51
23
77
19
93
0
200
0
200
0
200
0
200
0
200
0
200
0
200
36
54
50
50
46
56
55
39
38
56
40
54
45
57
36
56
51
45
54
50
60
42
49
47
55
53
60
42
47
43

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

input:

1000
2000
480
510
463
549
493
509
493
531
492
514
492
544
469
519
509
505
450
520
481
519
0
2000
0
2000
0
2000
0
2000
480
504
510
502
484
468
503
479
478
522
503
501
465
529
532
500
519
521
491
503
491
513
483
477
520
478
459
531
490
492

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

input:

1000
11000
2783
2841
2744
2794
2731
2683
2734
2770
2742
2802
2532
2972
2613
2895
2714
2814
2673
2841
2617
2829
0
11000
0
11000
0
11000
0
11000
2672
2748
2734
2738
2728
2770
2789
2763
2731
2789
2911
2689
2664
2756
2706
2820
2784
2774
2799
2709
2813
2689
2773
2777
2825
2717
2860
2646
2734
2748

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

input:

10000
90000
22495
22479
22341
22937
22301
22475
22612
22296
22491
22509
22504
22546
22534
22416
22185
22871
21536
23828
21579
23465
21033
23991
15273
31123
15107
31313
2961
60211
22514
22778
22411
22551
22804
22434
22614
22472
22613
22277
22123
22605
22564
22558
22186
22860
22282
22484
22526
22556
2...

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

input:

10000
90000
22643
22145
22135
22669
22791
22363
22714
22616
22611
22471
22288
22860
22404
22594
22290
22520
21291
23449
21536
23584
21593
23319
15217
31381
15151
31115
3007
60193
22788
22532
22708
22434
22472
22452
22359
22773
22559
22401
22049
22861
22862
22182
22524
22538
22520
22310
22544
22562
2...

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

input:

10000
90000
22466
22410
22550
22532
22355
22651
22486
22518
22574
22430
22345
22539
22310
22372
22581
22329
21241
23819
21346
23602
21502
23406
15062
31134
15179
31369
2902
60552
22487
22651
22530
22692
22466
22372
22580
22446
22354
22378
22413
22575
22379
22655
22397
22537
22652
22594
22370
22382
2...

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

input:

10000
90000
22507
22375
22233
22611
22724
22390
22653
22341
22307
22817
22567
22447
22381
22637
22406
22640
21591
23549
21391
23601
21592
23554
15097
31295
14804
31542
2946
60350
22693
22411
22452
22554
22476
22470
22236
22560
22202
22732
22490
22420
22365
22777
22536
22390
22528
22440
22665
22261
2...

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

input:

10000
90000
22504
22346
22453
22431
22600
22364
22435
22371
22336
22534
22476
22282
22169
22911
22710
22512
21558
23622
21335
23591
21250
23754
15070
31386
15103
31235
2919
60605
22204
22384
22605
22371
22416
22378
22766
22386
22390
22776
22561
22595
22678
22086
22597
22597
22417
22665
22625
22319
2...

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

input:

10000
90000
22641
22321
22438
22626
22405
22629
22606
22380
22609
22671
22654
22276
22505
22679
22437
22471
21503
23497
21507
23277
21495
23617
14936
31510
15192
31486
3005
60297
22706
22134
22421
22711
22532
22604
22611
22587
22380
22652
22574
22608
22634
22398
22520
22508
22520
22474
22596
22314
2...

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

input:

10000
90000
22548
22438
22445
22533
22563
22395
22484
22360
22719
22423
22500
22384
22621
22499
22729
22505
21053
23843
21507
23627
21499
23755
15136
31360
14871
31671
2990
60208
22868
22168
22402
22318
22323
22563
22534
22554
22212
22410
22589
22447
22454
22526
22486
22256
22571
22439
22637
22553
2...

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

input:

10000
90000
22365
22715
22517
22669
22453
22493
22294
22480
22467
22797
22534
22544
22345
22773
22194
22644
21608
23606
21597
23467
21527
23591
15075
31515
15168
31350
2935
60145
22348
22560
22466
22646
22231
22449
22826
22388
22435
22303
22688
22310
22658
22250
22697
22371
22313
22429
22435
22591
2...

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

input:

10000
90000
22534
22384
22681
22331
22649
22399
22667
22205
22386
22714
22333
22621
22566
22422
22530
22398
21389
23663
21249
23661
21414
23578
15161
31487
15161
31347
2867
60485
22324
22726
22455
22561
22540
22530
22456
22480
22394
22532
22587
22499
22915
22265
22218
22332
22447
22485
22240
22582
2...

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

input:

10000
90000
22268
22646
22627
22557
22563
22479
22407
22543
22488
22726
22623
22405
22293
22767
22500
22706
21390
23712
21759
23789
21509
23383
15017
31337
14972
31412
3003
60337
22714
22468
22503
22411
22424
22324
22047
22643
22271
22737
22429
22745
22473
22529
22356
22678
22444
22402
22189
22407
2...

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

input:

10000
90000
22544
22336
22645
22253
22466
22480
22364
22594
22452
22324
22363
22643
22495
22567
22452
22592
21903
23349
21297
23593
21496
23576
15065
31537
15266
31082
2940
60536
22347
22973
22624
22338
22568
22634
22648
22356
22423
22587
22702
22354
22404
22692
22545
22411
22644
22426
22749
22343
2...

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

input:

10000
90000
22424
22176
22624
22480
22501
22539
22203
22833
22388
22446
22415
22411
22261
22469
22503
22777
21235
23695
21452
23126
21406
23604
14892
31478
15108
31540
3047
60313
22471
22629
22623
22137
22757
22111
22150
22808
22571
22773
22496
22464
22871
22389
22498
22506
22794
22516
22521
22533
2...

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

input:

10000
90000
22203
22663
22385
22457
22690
22460
22497
22561
22708
22400
22082
22672
22192
22716
22462
22322
21382
23550
21456
23614
21449
23789
15321
31259
15112
31510
2882
60706
22463
22505
22129
22739
22496
22572
22548
22572
22639
22593
22860
22234
22779
22415
22444
22510
22593
22329
22724
22360
2...

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

input:

10000
90000
22255
22583
22649
22155
22493
22491
22617
22595
22451
22765
22342
22726
22427
22569
22680
22460
21540
23416
21310
23714
21281
23755
14979
31599
15082
31224
2900
60392
22577
22349
22519
22567
22735
22445
22472
22484
22510
22438
22514
22578
22524
22574
22790
22104
22282
22622
22507
22429
2...

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

input:

10000
90000
22403
22553
22126
22932
22301
22603
22695
22287
22184
22666
22309
22693
22613
22655
22474
22612
21514
23656
21585
23499
21384
23658
15419
30975
15261
31223
2925
60635
22640
22120
22257
22627
22573
22553
22650
22284
22657
22403
22629
22333
22549
22427
22577
22407
22587
22603
22547
22471
2...

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

input:

10000
90000
22464
22652
22488
22830
22395
22745
22512
22504
22557
22579
22371
22519
22635
22603
22518
22308
21604
23452
21409
23619
21226
23916
15128
31504
14922
31690
3004
60080
22387
22441
22679
22501
22371
22641
22291
22727
22648
22166
22577
22447
22668
22394
22404
22452
22512
22588
22578
22526
2...

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

input:

10000
90000
22834
22380
22537
22231
22275
22583
22735
22175
22189
22541
22388
22698
22264
22628
22110
22938
21469
23363
21374
23586
21643
23211
15059
31169
15143
31439
3014
60550
22468
22402
22524
22480
22511
22561
22752
22540
22265
22575
22665
22375
22155
22667
22346
22692
22714
22086
22574
22440
2...

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

input:

10000
90000
22576
22532
22563
22573
22684
22450
22273
22401
22220
22762
22486
22686
22491
22673
22344
22656
21322
23646
21606
23478
21303
23455
15272
31200
15235
31189
2941
60555
22434
22588
22318
22498
22559
22257
22600
22370
22472
22724
22577
22567
22259
22677
22680
22456
22415
22753
22470
22662
2...

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

input:

10000
90000
22516
22356
22545
22531
22179
22487
22466
22450
22385
22667
22221
22577
22607
22567
22620
22512
21580
23174
21313
23535
21374
23618
14973
31571
15141
31339
2874
60412
22254
22750
22448
22526
22713
22683
22454
22510
22218
22474
22342
22736
22767
22461
22383
22533
22787
22585
22571
22237
2...

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

input:

10000
90000
22610
22266
22660
22166
22335
22525
22520
22434
22305
22431
22603
22593
22375
22649
22411
22709
21645
23333
21352
23558
21433
23649
14910
31560
14980
31620
2934
60366
22751
22519
22731
22373
22358
22644
22340
22606
22326
22490
22167
22445
22472
22564
22449
22483
22468
22488
22295
22641
2...

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

input:

10000
90000
22522
22370
22577
22637
22489
22807
22516
22440
22594
22476
22207
22675
22635
22727
22334
22384
21527
23347
21700
23486
21255
23891
14957
31495
15340
31206
2977
60377
22295
22691
22842
22290
22527
22483
22407
22565
22664
22532
22591
22687
22659
22069
22535
22435
22386
22514
22375
22133
2...

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

input:

10000
90000
22515
22737
22471
22689
22625
22095
22488
22128
22486
22550
22341
22889
22544
22450
22489
22547
21437
23407
21386
23878
21529
23461
15355
31197
14919
31387
2978
60342
22797
22503
22331
22727
22747
22443
22588
22734
22495
22245
22457
22303
22471
22487
22455
22413
22536
22760
22345
22529
2...

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

input:

10000
90000
22446
22326
22516
22606
22421
22531
22621
22355
22407
22509
22394
22750
22436
22492
22586
22434
21406
23456
21517
23485
21444
23564
14940
31418
15066
31588
2987
60525
22345
22569
22488
22560
22350
22564
22722
22494
22493
22515
22498
22580
22633
22433
22403
22581
22470
22454
22710
22348
2...

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

input:

10000
90000
22451
22481
22515
22561
22773
22467
22325
22579
22476
22498
22481
22543
22724
22374
22245
22587
21501
23565
21501
23659
21313
23555
15233
31209
14867
31721
2969
60159
22750
22232
22496
22570
22444
22556
22412
22354
22165
22653
22205
22765
22530
22384
22513
22191
22452
22388
22455
22457
2...

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

input:

10000
90000
22833
22373
22599
22619
22563
22503
22322
22632
22751
22531
22359
22539
22336
22758
22591
22389
21338
23774
21554
23692
21466
23542
15098
31330
14742
31726
2886
60022
22397
22551
22542
22550
22582
22484
22518
22584
22535
22327
22464
22294
22781
22389
22834
22262
22487
22473
22712
22302
2...

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

input:

10000
90000
22660
22466
22310
22722
22553
22635
22343
22613
22607
22535
22295
22471
22281
22551
22500
22434
21270
23800
21525
23323
21440
23888
14965
31423
15213
31173
2979
60351
22269
22449
22474
22520
22329
22537
22523
22469
22550
22450
22780
22514
22279
22689
22441
22479
22353
22623
22363
22497
2...

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

input:

10000
90000
22761
22369
22290
22656
22540
22540
22492
22334
22598
22272
22479
22493
22349
22915
22114
22784
21316
23698
21086
23792
21178
23642
15230
31214
15335
31295
2866
60732
22776
22360
22629
22367
22687
22581
22584
22386
22502
22464
22718
22358
22473
22299
22273
22587
22633
22455
22578
22312
2...

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

input:

10000
90000
22661
22513
22643
22249
22604
22088
22637
22449
22317
22503
22432
22568
22079
22655
22202
22938
21071
23687
21568
23624
21594
23554
15123
31477
14983
31395
2861
60391
22540
22232
22232
22742
22755
22419
22600
22338
22280
22618
22610
22480
22454
22522
22479
22419
22422
22602
22564
22490
2...

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

input:

10000
90000
22817
22161
22443
22625
22700
22568
22244
22474
22611
22365
22438
22436
22282
22656
22326
22500
21457
23569
21558
23610
21377
23737
14986
31300
15016
31372
2961
60227
22595
22437
22339
22683
22352
22728
22339
22361
22245
22593
22586
22298
22489
22555
22430
22658
22603
22307
22453
22531
2...

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

input:

10000
90000
22579
22529
22628
22378
22363
22659
22318
22618
22302
22828
22518
22712
22562
22478
22456
22702
21604
23112
21463
23497
21632
23528
15113
31395
15411
31373
2879
60473
22281
22737
22437
22477
22081
22591
22640
22506
22089
22949
22605
22513
22572
22282
22612
22338
22869
22335
22663
22359
2...

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

input:

10000
90000
22128
22646
22512
22422
22524
22370
22688
22508
22476
22488
22387
22645
22286
22836
22536
22232
21228
23748
21194
23858
21182
23772
15159
31493
15023
31463
2948
60190
22404
22564
22403
22345
22589
22681
22457
22527
22631
22603
22568
22530
22227
22759
22626
22696
22242
22700
22492
22394
2...

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

input:

10000
90000
22440
22500
22309
22671
22493
22621
22684
22430
22417
22637
22431
22689
22713
22505
22568
22646
21259
23817
21336
23426
21566
23562
15100
31236
15214
31246
2916
60536
22439
22589
22653
22315
22721
22319
22478
22766
22375
22519
22461
22455
22814
22480
22740
22312
22385
22267
22458
22468
2...

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

input:

10000
90000
22355
22643
22539
22515
22316
22506
22462
22574
22503
22563
22545
22631
22578
22362
22452
22310
21533
23643
21380
23490
21182
23576
15073
31219
15100
31306
2898
60486
22244
22618
22180
22772
22472
22320
22447
22515
22347
22595
22495
22369
22779
22347
22871
22327
22488
22532
22954
21890
2...

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

input:

10000
90000
22459
22611
22791
22419
22776
22232
22376
22712
22648
22442
22261
22633
22247
22725
22380
22664
21446
23524
21366
23714
21276
23764
14991
31365
15163
31175
2863
60579
22464
22374
22664
22330
22559
22511
22611
22491
22446
22400
22568
22608
22361
22727
22352
22640
22339
22667
22505
22489
2...

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

input:

10000
90000
22266
22642
22602
22450
22557
22653
22518
22480
22573
22425
22696
22368
22360
22754
22278
22904
21404
23676
21257
23827
21354
23452
15157
31195
15154
31574
2913
60419
22759
22211
22404
22616
22571
22265
22313
22471
22488
22466
22471
22437
22433
22521
22583
22351
22725
22585
22494
22578
2...

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

input:

10000
90000
22500
22466
22401
22419
22592
22300
22470
22522
22363
22551
22337
22705
22338
22754
22351
22453
21279
23677
21418
23640
21550
23584
14918
31386
14995
31437
2980
60394
22541
22519
22529
22545
22413
22455
22453
22663
22392
22660
22126
22762
22300
22754
22469
22559
22557
22415
22515
22545
2...

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

input:

10000
90000
22512
22556
22342
22516
22607
22217
22520
22428
22562
22586
22253
22649
22301
22741
22565
22581
21582
23648
21433
23561
21475
23625
15330
31354
14837
31419
2972
60330
22497
22533
22347
22351
22413
22617
22691
22547
22160
22670
22673
22323
22772
22494
22265
22665
22394
22626
22516
22326
2...

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

input:

10000
90000
22848
22522
22340
22580
22355
22715
22672
22488
22320
22532
22400
22490
22311
22377
22081
22797
21528
23434
21334
23812
21269
23563
15256
31454
14984
31308
2868
60282
22426
22606
22522
22526
22645
22433
22473
22679
22302
22474
22389
22631
22664
22404
22665
22569
22504
22386
22419
22647
2...

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

input:

10000
90000
22537
22625
22261
22667
22769
22465
22492
22384
22396
22426
22456
22748
22457
22273
22134
22618
21414
23474
21624
23640
21484
23354
15007
31405
15002
31444
2988
60320
22614
22500
22312
22786
22720
22412
22678
22398
22359
22547
22783
22399
22558
22418
22091
22789
22532
22412
22387
22573
2...

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

input:

10000
90000
22546
22332
22559
22439
22476
22592
22465
22501
22348
22734
22421
22341
22732
22316
22501
22659
21508
23532
21343
23487
21435
23673
15141
31281
14836
31664
2951
60279
22431
22591
22612
22360
22676
22318
22655
22537
22788
22138
22462
22314
22487
22361
22420
22706
22771
22521
22126
22492
2...

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

input:

10000
90000
22202
22692
22417
22467
22591
22607
22795
22307
22263
22715
22402
22492
22352
22534
22362
22638
21528
23644
21237
23669
21454
23790
15115
31237
15122
31288
2908
60662
22714
22238
22376
22556
22649
22249
22219
22479
22798
22396
22701
22319
22507
22421
22339
22737
22224
22684
22506
22474
2...

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

input:

10000
90000
22568
22514
22600
22358
22531
22339
22274
22754
22348
22830
22495
22387
22450
22616
22162
22770
21322
23760
21385
23739
21428
23666
15281
31171
15122
31058
2880
60388
22533
22533
22388
22518
22656
22226
22695
22315
22413
22347
22416
22664
22485
22509
22372
22486
22672
22390
22688
22510
2...

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

input:

10000
90000
22082
22472
22569
22411
22356
22550
22777
22191
22365
22289
22515
22241
22374
22850
22151
22721
21608
23422
21508
23628
21326
23572
15250
31540
15103
31189
3008
60350
22521
22625
22455
22727
22418
22560
22491
22629
22523
22597
22612
22542
22689
22433
22151
22731
22752
22388
22406
22674
2...

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

input:

10000
90000
22647
22403
22631
22497
22385
22495
22468
22658
22191
22795
22446
22652
22474
22570
22757
22245
21699
23467
21390
23646
21231
23761
15006
31150
15161
31125
2915
60365
22513
22455
22417
22575
22275
22809
22537
22691
22403
22589
22626
22380
22209
22781
22464
22640
22469
22693
22488
22332
2...

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

input:

10000
90000
22623
22327
22349
22569
22334
22714
22505
22671
22567
22169
22538
22800
22457
22631
22468
22586
21630
23490
21546
23598
21151
23591
14993
31439
15133
31417
2935
60363
22520
22348
22271
22619
22422
22330
22455
22869
22305
22397
22502
22390
22528
22464
22242
22784
22530
22614
22712
22256
2...

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

input:

10000
90000
22349
22645
22254
22556
22397
22755
22122
22788
22583
22689
22715
22475
22349
22679
22744
22400
21307
23597
21437
23911
21619
23447
15509
30971
15190
31032
2924
60742
22568
22524
22355
22573
22401
22595
22359
22617
22572
22522
22714
22590
22786
22182
22513
22561
22735
22569
22435
22329
2...

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

input:

10000
90000
22267
22721
22561
22311
22279
22749
22320
22354
22262
22744
22381
22925
22241
22373
22364
22780
21398
23730
21379
23629
21254
23852
15204
31382
14892
31564
2978
60212
22706
22296
22697
22301
22694
22252
22408
22638
22586
22590
22407
22759
22489
22287
22384
22598
22441
22475
22379
22711
2...

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

input:

10000
90000
22251
22523
22567
22375
22460
22606
22551
22721
22339
22659
22237
22769
22470
22472
22406
22496
21194
23800
21254
23626
21439
23415
15098
31494
15043
31397
2958
60202
22513
22459
22491
22473
22478
22514
22458
22664
22688
22380
22459
22735
22551
22717
22249
22703
22623
22421
22384
22602
2...

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

input:

10000
90000
22332
22844
22766
22312
22465
22677
22361
22491
22447
22573
22558
22386
22242
22642
22354
22410
21284
23436
21501
23451
21329
23839
14840
31728
15062
31472
2982
60134
22682
22494
22581
22367
22486
22356
22255
22817
22440
22566
22567
22545
22307
22395
22360
22608
22557
22333
22621
22295
2...

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

input:

10000
90000
22605
22461
22480
22336
22472
22778
22433
22651
22580
22636
22225
22841
22335
22697
22047
23009
21475
23569
21349
23597
21543
23517
15225
31329
14832
31500
2890
60602
22541
22463
22543
22625
22208
22748
22514
22602
22525
22565
22573
22267
22818
22132
22178
22482
22585
22641
22449
22499
2...

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

input:

10000
89999
22494
22479
22341
22936
22301
22475

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

input:

10000
89999
22643
22144
22135
22669

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

input:

10000
89999
22466
22410

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

input:

10000
89999
22507
22375

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

input:

10000
89999
22504
22346

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

input:

10000
89999
22641
22321

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

input:

10000
89999
22548
22437
22445
22532
22563
22395

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

input:

10000
89999
22364
22715
22516
22669
22453
22493

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

input:

10000
89999
22534
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 #82:

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

input:

10000
89999
22267
22646
22626
22557
22562
22479
22407
22543

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

input:

10000
89999
22544
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 #84:

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

input:

10000
89999
22424
22176

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

input:

10000
89999
22202
22663
22385
22456
22690
22460

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

input:

10000
89999
22254
22583
22649
22155

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

input:

10000
89999
22403
22552
22125
22932
22301
22603

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

input:

10000
89999
22464
22652

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

input:

10000
89999
22834
22380

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

input:

10000
89999
22576
22532

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

input:

10000
89999
22516
22356

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

input:

10000
89999
22609
22266
22660
22166

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

input:

10000
89999
22522
22370

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

input:

10000
89999
22515
22737

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

input:

10000
89999
22446
22326

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

input:

10000
89999
22451
22481

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

input:

10000
89999
22833
22373

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

input:

10000
89999
22660
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 #99:

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

input:

10000
89999
22761
22369

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

input:

10000
89999
22661
22512
22643
22249

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

input:

10000
89999
22816
22161
22443
22625

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

input:

10000
89999
22579
22529

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

input:

10000
89999
22128
22646

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

input:

10000
89999
22439
22500
22309
22670
22493
22620
22684
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 #105:

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

input:

10000
89999
22355
22643

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

input:

10000
89999
22459
22611

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

input:

10000
89999
22266
22642

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

input:

10000
89999
22500
22465
22401
22418
22592
22299
22470
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 #109:

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

input:

10000
89999
22512
22555
22341
22516
22606
22217
22520
22428

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

input:

10000
89999
22848
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: 5ms
memory: 3640kb

input:

10000
89999
22537
22624
22260
22667
22769
22465

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

input:

10000
89999
22545
22332
22559
22439

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

input:

10000
89999
22202
22692

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

input:

10000
89999
22568
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 #115:

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

input:

10000
89999
22082
22471
22568
22411
22356
22550

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

input:

10000
89999
22647
22403

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

input:

10000
89999
22623
22327

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

input:

10000
89999
22349
22645

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

input:

10000
89999
22266
22721
22560
22311
22279
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 #120:

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

input:

10000
89999
22250
22523
22567
22375

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

input:

10000
89999
22332
22843
22766
22311
22465
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 #122:

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

input:

10000
89999
22605
22461

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