QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500891#1834. Eulerian?MaMengQiAC ✓1884ms3956kbC++202.2kb2024-08-01 23:19:392024-08-01 23:19:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

input:

3
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
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
? 1 1
? 2 2 3
? 1 2
? 2 3 1
? 1 1
? 2 2 3
? 1 1
? 2 2 3
? 1 2
? 2 3 1
? 1 3
? 2 1 2
? 1 1
? 2 3 2
? 1 1
? 2 3 2
? 1 2
? 2 3 1
? 1 2
? 2 3 1
? 1 2
? 2 1 3
? 1 1
? 2 3 2
? 1 3
? 2 1 2
? 1 2
? 2 1 3
? 1 1
? 2 2 3
? 1 1
? 2 2 3
? 1 2
? 2 1 3
? 1 3
? 2 1 2
? 1 3
? 2 1 2
? 1 2
? 2 1 3
? 1 2
? 2 ...

result:

ok correct

Test #3:

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

input:

4
3
0
0

output:

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

result:

ok correct

Test #4:

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

input:

4
4
1
0

output:

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

result:

ok correct

Test #5:

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

input:

4
5
1
0
0
1
1
1

output:

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

result:

ok correct

Test #6:

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

input:

10
10
0
2
0
2
2
3

output:

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

result:

ok correct

Test #7:

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

input:

10
11
3
1

output:

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

result:

ok correct

Test #8:

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

input:

100
100
27
19
25
25
28
24
20
26
30
27

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

input:

100
256
61
63
50
67

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

input:

1000
1488
373
346

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

input:

1000
11488
2882
2888
2811
2930

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

input:

10000
100000
25231
24675
24783
25049
25021
24960

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 126ms
memory: 3692kb

input:

10000
99999
25047
24928
25197
25005

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 3ms
memory: 3660kb

input:

10
10
2
2
2
2
3
3
2
2
3
3
2
2
1
1
2
2
3
3
3
3
3
3
3
3
2
2
1
1
1
1
2
2
2
2
3
3
3
3
1
1
4
4
2
2
2
2
2
2
2
2
1
1
3
3
2
2
3
3

output:

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

result:

ok correct

Test #15:

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

input:

100
100
30
30
25
25
30
30
29
29
29
29
27
27
28
28
23
23
27
27
28
28
25
25
25
25
22
22
29
29
25
25
26
26
27
27
25
25
21
21
24
24
22
22
26
26
27
27
25
25
26
26
28
28
21
21
22
22
21
21

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

input:

1000
1000
235
235
255
255
246
246
260
260
252
252
262
262
243
243
261
261
247
247
264
264
251
251
247
247
243
243
236
236
264
264
250
250
262
262
242
242
250
250
253
253
245
245
242
242
245
245
252
252
257
257
250
250
250
250
250
250
251
251

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

input:

10000
10000
2490
2490
2476
2476
2489
2489
2506
2506
2491
2491
2528
2528
2493
2493
2469
2469
2479
2479
2528
2528
2484
2484
2508
2508
2507
2507
2523
2523
2535
2535
2519
2519
2493
2493
2513
2513
2513
2513
2506
2506
2524
2524
2498
2498
2464
2464
2488
2488
2509
2509
2509
2509
2483
2483
2494
2494
2500
2500

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1867ms
memory: 3656kb

input:

10000
10000
2529
2529
2485
2485
2453
2453
2477
2477
2482
2482
2501
2501
2559
2559
2533
2533
2511
2511
2528
2528
2452
2452
2499
2499
2510
2510
2515
2515
2496
2496
2461
2461
2469
2469
2479
2479
2517
2517
2481
2481
2489
2489
2493
2493
2532
2532
2496
2496
2491
2491
2444
2444
2488
2488
2525
2525
2492
2492

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1869ms
memory: 3696kb

input:

10000
10000
2502
2502
2519
2519
2513
2513
2517
2517
2478
2478
2520
2520
2514
2514
2506
2506
2511
2511
2489
2489
2488
2488
2508
2508
2502
2502
2485
2485
2474
2474
2469
2469
2507
2507
2507
2507
2525
2525
2481
2481
2470
2470
2511
2511
2522
2522
2478
2478
2529
2529
2504
2504
2503
2503
2483
2483
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 #20:

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

input:

100
200
55
47
49
59
56
50
45
55
45
41
47
57
41
51
50
46
52
56
56
44
62
44
54
40
50
52
48
58
59
45
49
55
41
59
55
41
48
44
45
51
43
63
52
60
52
48
50
54
46
54
55
53
63
47
39
57
49
51

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

input:

1000
2000
512
484
503
495
490
486
486
538
517
493
495
499
490
494
490
468
508
488
503
503
494
510
475
505
525
499
541
475
478
504
491
485
468
516
474
510
481
519
506
494
500
494
487
511
487
497
502
500
494
496
513
489
502
504
512
490
495
483

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

input:

1000
11000
2820
2734
2800
2726
2776
2708
2806
2696
2740
2722
2822
2706
2782
2732
2736
2840
2742
2826
2738
2730
2737
2813
2761
2695
2828
2670
2690
2762
2660
2836
2774
2704
2868
2630
2745
2779
2744
2794
2721
2787
2717
2719
2767
2669
2867
2701
2715
2663
2720
2726
2851
2695
2766
2754
2703
2751
2749
2755

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

input:

10000
90000
22437
22473
22746
22354
22337
22681
22984
22320
22384
22530
22379
22575
22529
22365
22370
22494
22171
22629
22436
22814
22407
22297
22665
22287
22516
22604
22381
22487
22587
22385
22285
22663
22533
22211
22689
22529
22457
22627
22243
22635
22296
22704
22609
22399
22735
22423
22482
22618
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1865ms
memory: 3704kb

input:

10000
90000
22373
22609
22226
22698
22417
22495
22319
22455
22334
22608
22627
22443
22178
22606
22500
22520
22573
22759
22495
22553
22459
22407
22415
22665
22497
22533
22587
22567
22500
22648
22458
22666
22215
22637
22545
22433
22464
22572
22491
22555
22355
22739
22235
22515
22547
22547
22345
22647
...

output:

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

result:

ok correct

Test #25:

score: 0
Accepted
time: 1856ms
memory: 3696kb

input:

10000
90000
22224
22728
22442
22548
22523
22471
22449
22493
22619
22577
22349
22967
22436
22686
22207
22729
22500
22472
22349
22473
22538
22492
22364
22532
22571
22283
22555
22473
22373
22385
22401
22367
22711
22343
22450
22558
22412
22542
22845
22117
22467
22355
22472
22724
22527
22405
22451
22415
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1864ms
memory: 3712kb

input:

10000
90000
22312
22614
22461
22511
22129
22859
22432
22450
22355
22599
22416
22620
22436
22488
22582
22658
22711
22297
22491
22561
22216
22672
22398
22594
22401
22387
22514
22524
22588
22434
22575
22519
22698
22408
22375
22575
22404
22434
22786
22422
22675
22277
22625
22447
22718
22456
22425
22595
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1882ms
memory: 3836kb

input:

10000
90000
22561
22349
22840
22434
22407
22549
22495
22627
22527
22571
22473
22483
22338
22590
22301
22553
22651
22003
22481
22495
22480
22636
22397
22673
22477
22725
22592
22340
22505
22357
22510
22450
22395
22523
22447
22697
22478
22490
22599
22549
22677
22447
22598
22336
22526
22732
22324
22340
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1871ms
memory: 3920kb

input:

10000
90000
22340
22496
22355
22325
22660
22416
22873
22219
22501
22575
22493
22525
22403
22673
22396
22722
22561
22707
22367
22431
22525
22245
22474
22422
22486
22580
22770
22324
22400
22364
22227
22449
22536
22498
22575
22457
22149
22701
22520
22690
22121
22533
22705
22295
22581
22287
22343
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 #29:

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

input:

10000
90000
22795
22223
22461
22645
22432
22592
22475
22559
22373
22439
22313
22747
22722
22400
22704
22156
22639
22291
22685
22491
22454
22390
22688
22296
22693
22579
22279
22501
22587
22427
22396
22586
22373
22801
22279
22535
22336
22790
22275
22715
22328
22658
22175
22941
22348
22480
22473
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 #30:

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

input:

10000
90000
22226
22596
22568
22388
22401
22555
22608
22302
22762
22178
22427
22665
22443
22399
22827
22191
22792
22234
22501
22485
22651
22391
22639
22235
22842
22264
22557
22577
22436
22612
22771
22239
22257
22625
22399
22363
22422
22588
22402
22512
22578
22516
22406
22786
22581
22393
22519
22631
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1875ms
memory: 3700kb

input:

10000
90000
22801
22071
22529
22721
22598
22504
22446
22764
22249
22685
22410
22482
22405
22517
22601
22571
22448
22472
22640
22252
22524
22476
22749
22419
22418
22356
22696
22498
22589
22423
22385
22547
22658
22504
22409
22769
22273
22473
22456
22346
22474
22804
22437
22649
22546
22520
22534
22520
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1864ms
memory: 3924kb

input:

10000
90000
22534
22736
22122
22600
22374
22650
22672
22254
22509
22485
22804
22298
22662
22392
22444
22394
22620
22406
22386
22458
22636
22684
22575
22613
22339
22529
22720
22390
22600
22524
22549
22579
22162
22818
22568
22536
22228
22820
22652
22454
22374
22722
22377
22779
22523
22457
22307
22801
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1858ms
memory: 3760kb

input:

10000
90000
22445
22557
22322
22286
22693
22455
22293
22287
22569
22291
22433
22561
22705
22261
22429
22623
22243
22561
22652
22410
22270
22580
22300
22570
22467
22307
22280
22622
22257
22651
22473
22477
22205
22435
22324
22520
22545
22273
22707
22355
22235
22671
22526
22836
22587
22571
22465
22553
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1866ms
memory: 3696kb

input:

10000
90000
22427
22755
22363
22539
22520
22522
22616
22398
22129
22579
22416
22612
22458
22426
22404
22620
22432
22464
22493
22507
22456
22660
22373
22689
22560
22194
22201
22647
22406
22318
22502
22480
22487
22449
22596
22340
22578
22738
22544
22640
22522
22486
22787
22381
22406
22454
22769
22421
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1870ms
memory: 3764kb

input:

10000
90000
22485
22457
22448
22478
22232
22430
22335
22763
22761
22309
22395
22663
22602
22350
22267
22677
22333
22739
22290
22532
22781
22379
22463
22323
22760
22472
22461
22539
22617
22335
22540
22706
22140
22682
22482
22470
22511
22409
22581
22519
22450
22368
22531
22423
22408
22632
22476
22316
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1874ms
memory: 3692kb

input:

10000
90000
22775
22497
22722
22692
22408
22600
22423
22499
22473
22603
22610
22346
22612
22256
22523
22405
22486
22534
22414
22544
22560
22412
22493
22705
22431
22611
22643
22451
22417
22431
22414
22604
22394
22810
22546
22354
22567
22283
22462
22508
22688
22288
22671
22463
22425
22563
22234
22690
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1861ms
memory: 3716kb

input:

10000
90000
22556
22408
22401
22593
22570
22644
22475
22415
22561
22699
22304
22860
22360
22414
22517
22423
22451
22513
22500
22444
22583
22559
22283
22391
22721
22397
22509
22449
22399
22715
22434
22588
22382
22430
22212
22962
22666
22354
22625
22269
22539
22485
22393
22559
22777
22243
22678
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 #38:

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

input:

10000
90000
22710
22804
22610
22504
22247
22693
22590
22654
22410
22628
22341
22455
22459
22457
22382
22512
22403
22463
22612
22560
22543
22305
22582
22418
22694
22426
22721
22127
22511
22321
22416
22652
22467
22425
22532
22410
22446
22718
22544
22492
22440
22766
22510
22488
22654
22296
22533
22513
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1859ms
memory: 3704kb

input:

10000
90000
22787
22465
22845
22261
22796
22044
22512
22500
22572
22450
22316
22450
22698
22424
22446
22552
22479
22577
22444
22438
22483
22569
22836
22348
22687
22547
22640
22448
22766
22636
22625
22383
22429
22453
22661
22649
22542
22446
22829
22551
22236
22606
22516
22302
22622
22520
22627
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 #40:

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

input:

10000
90000
22601
22657
22692
22358
22424
22504
22354
22398
22356
22634
22390
22486
22482
22582
22448
22316
22622
22652
22349
22271
22555
22419
22453
22499
22375
22225
22502
22774
22320
22628
22370
22490
22486
22566
22533
22423
22448
22638
22460
22452
22501
22221
22198
22628
22770
22258
22650
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 #41:

score: 0
Accepted
time: 1860ms
memory: 3696kb

input:

10000
90000
22032
22718
22659
22353
22579
22495
22672
22418
22385
22671
22598
22252
22295
22675
22411
22449
22532
22394
22432
22448
22442
22562
22671
22507
22716
22566
22821
22275
22442
22522
22615
22475
22366
22474
22427
22567
22741
22135
22603
22465
22530
22592
22728
22244
22648
22252
22569
22453
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1876ms
memory: 3720kb

input:

10000
90000
22551
22487
22532
22472
22659
22541
22901
22371
22459
22305
22702
22180
22457
22525
22592
22418
22504
22692
22471
22331
22253
22651
22312
22552
22405
22561
22505
22643
22443
22411
22656
22454
22577
22249
22642
22430
22414
22514
22799
22415
22809
22477
22743
22553
22334
22798
22357
22427
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1860ms
memory: 3700kb

input:

10000
90000
22658
22270
22381
22603
22403
22453
22594
22420
22594
22336
22309
22797
22615
22383
22353
22611
22618
22420
22243
22583
22573
22337
22593
22283
22269
22551
22321
22381
22670
22314
22582
22616
22486
22308
22485
22313
22448
22712
22587
22355
22181
22583
22436
22632
22363
22397
22456
22462
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1855ms
memory: 3932kb

input:

10000
90000
22598
22562
22288
22410
22365
22619
22443
22557
22602
22422
22412
22580
22522
22486
22484
22664
22624
22542
22517
22577
22359
22459
22490
22484
22494
22384
22226
22650
22283
22475
22370
22926
22727
22287
22391
22489
22742
22352
22328
22646
22496
22260
22600
22186
22306
22778
22797
22451
...

output:

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

result:

ok correct

Test #45:

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

input:

10000
90000
22238
22590
22783
22409
22599
22225
22904
22192
22405
22597
22309
22615
22611
22471
22350
22652
22539
22391
22394
22536
22699
22347
22689
22157
22317
22705
22657
22415
22525
22407
22622
22326
22556
22290
22505
22419
22350
22558
22482
22310
22367
22301
22596
22390
22314
22680
22322
22698
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1868ms
memory: 3844kb

input:

10000
90000
22612
22394
22410
22650
22514
22356
22715
22365
22707
21997
22698
22424
22485
22687
22747
22383
22580
22504
22485
22261
22584
22526
22537
22661
22667
22341
22407
22557
22374
22382
22651
22267
22459
22663
22394
22470
22419
22535
22522
22512
22643
22477
22588
22414
22505
22541
22262
22864
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1861ms
memory: 3700kb

input:

10000
90000
22646
22504
22272
22720
22618
22588
22489
22507
22424
22518
22267
22771
22461
22595
22800
22386
22406
22584
22774
22338
22521
22405
22549
22385
22839
22237
22343
22505
22469
22569
22499
22309
22300
22456
22870
22172
22492
22474
22471
22637
22434
22580
22511
22639
22406
22628
22572
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 #48:

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

input:

10000
90000
22245
22577
22349
22581
22188
22614
22564
22366
22612
22420
22704
22452
22230
22708
22748
22514
22224
22980
22581
22349
22248
22550
22379
22489
22666
22522
22597
22571
22403
22319
22428
22418
22372
22516
22256
22634
22526
22320
22427
22515
22503
22277
22523
22225
22196
22792
22527
22685
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1870ms
memory: 3700kb

input:

10000
90000
22372
22550
22628
22404
22211
22685
22342
22470
22558
22470
22490
22538
22638
22412
22336
22794
22794
22162
22255
22415
22685
22385
22647
22389
22489
22413
22433
22491
22382
22498
22660
22294
22295
22691
22640
22318
22413
22717
22649
22557
22879
22115
22387
22811
22779
22225
22427
22505
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1863ms
memory: 3696kb

input:

10000
90000
22541
22467
22799
22369
22493
22293
22708
22356
22523
22647
22387
22451
22705
22199
22731
22263
22414
22530
22523
22629
22290
22538
22583
22503
22728
22324
22462
22460
22344
22468
22616
22084
22242
22238
22402
22526
22444
22560
22632
22518
22487
22547
22636
22252
22561
22425
22236
22744
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1880ms
memory: 3648kb

input:

10000
90000
22148
22708
22618
22294
22653
22151
22322
22686
22718
22242
22549
22347
22485
22299
22358
22526
22449
22611
22374
22550
22640
22590
22506
22376
22391
22391
22750
22370
22302
22324
22532
22092
22513
22393
22383
22683
22600
22434
22381
22589
22307
22557
22379
22527
22360
22704
22572
22552
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1884ms
memory: 3732kb

input:

10000
90000
22471
22501
22365
22619
22741
22631
22377
22683
22416
22704
22642
22398
22517
22603
22472
22398
22216
22790
22506
22624
22756
22308
22345
22349
22600
22632
22377
22571
22479
22523
22646
22488
22466
22536
22582
22472
22444
22614
22491
22537
22157
22765
22585
22317
22225
22649
22471
22573
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1861ms
memory: 3920kb

input:

10000
90000
22485
22691
22602
22836
22496
22440
22716
22136
22600
22204
22514
22596
22580
22642
22522
22486
22650
22360
22663
22429
22515
22641
22305
22587
22365
22525
22338
22418
22364
22384
22590
22616
22367
22707
22591
22245
22306
22660
22257
22583
22725
22397
22628
22420
22174
22674
22581
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 #54:

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

input:

10000
90000
22822
22376
22382
22522
22151
22887
22369
22401
22824
22088
22277
22721
22399
22625
22555
22455
22362
22488
22303
22655
22519
22325
22659
22455
22514
22522
22589
22507
22689
22589
22703
22497
22701
22245
22574
22424
22203
22795
22295
22625
22462
22486
22606
22578
22705
22313
22488
22526
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1861ms
memory: 3720kb

input:

10000
90000
22783
22225
22252
22828
22480
22578
22580
22188
22431
22283
22500
22576
22381
22525
22306
22676
22651
22417
22715
22553
22585
22329
22203
22791
22446
22550
22522
22368
22433
22449
22723
22611
22501
22449
22537
22675
22462
22536
22854
22012
22641
22139
22194
22624
22511
22377
22704
22052
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1860ms
memory: 3724kb

input:

10000
90000
22464
22590
22210
22796
22639
22355
22219
22781
22469
22567
22402
22542
22489
22513
22334
22638
22739
22279
22378
22740
22462
22496
22361
22593
22573
22449
22647
22043
22498
22560
22662
22358
22694
22298
22701
22271
22478
22266
22463
22269
22379
22381
22509
22395
22319
22611
22208
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

Test #57:

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

input:

10000
90000
22437
22543
22521
22585
22573
22345
22580
22498
22540
22202
22386
22552
22378
22456
22480
22574
22391
22591
22442
22686
22480
22608
22558
22558
22493
22463
22575
22173
22334
22550
22527
22375
22304
22592
22699
22415
22585
22389
22655
22447
22430
22532
22359
22729
22817
22525
22310
22610
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1865ms
memory: 3696kb

input:

10000
90000
22541
22299
22298
22750
22214
22584
22668
22534
22346
22676
22518
22534
22304
22590
22700
22292
22704
22436
22409
22413
22662
22610
22645
22561
22516
22332
22249
22283
22643
22275
22361
22405
22577
22507
22536
22868
22265
22453
22364
22460
22565
22281
22439
22447
22857
22341
22396
22246
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1868ms
memory: 3720kb

input:

10000
90000
22335
22593
22579
22487
22527
22511
22471
22543
22506
22494
22384
22322
22297
22643
22397
22755
22448
22380
22449
22361
22608
22342
22409
22605
22604
22528
22216
22436
22007
22865
22418
22472
22617
22659
22486
22492
22565
22481
22327
22573
22571
22509
22517
22541
22690
22500
22887
22145
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1873ms
memory: 3956kb

input:

10000
90000
22524
22428
22125
22623
22193
22735
22394
22534
22379
22437
22469
22543
22682
22454
22244
22690
22353
22607
22676
22304
22322
22444
22470
22526
22726
22256
22702
22430
22343
22819
22442
22494
22692
22570
22451
22481
22554
22508
22716
22280
22355
22671
22246
22338
22429
22347
22483
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 #61:

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

input:

10000
90000
22384
22708
22287
22395
22665
22511
22717
22377
22480
22476
22600
22686
22568
22474
22614
22418
22554
22636
22254
22716
22551
22693
22650
22616
22541
22477
22350
22530
22754
22354
22407
22623
22429
22643
22692
22322
22538
22530
22141
22713
22356
22732
22382
22582
22801
22173
22675
22495
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1870ms
memory: 3696kb

input:

10000
90000
22358
22790
22354
22390
22548
22634
22494
22496
22187
22857
22347
22525
22663
22433
22627
22483
22323
22671
22128
22598
22742
22150
22399
22337
22579
22543
22577
22693
22383
22479
22503
22539
22400
22490
22757
22417
22339
22531
22568
22588
22491
22409
22484
22398
22441
22539
22544
22372
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1877ms
memory: 3932kb

input:

10000
90000
22592
22592
22726
22348
22046
22848
22566
22432
22670
22340
22525
22223
22811
22203
22325
22541
22358
22554
22273
22703
22405
22673
22498
22408
22727
22473
22584
22442
22574
22336
22363
22715
22694
22508
22750
22460
22522
22528
22543
22661
22486
22598
22438
22566
22216
22636
22696
22322
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1866ms
memory: 3764kb

input:

10000
90000
22573
22667
22480
22540
22359
22679
22675
22419
22462
22370
22247
22813
22648
22320
22220
22474
22343
22497
22822
22400
22556
22258
22543
22631
22733
22341
22322
22504
22743
22347
22767
22393
22469
22601
22261
22647
22468
22590
22445
22493
22842
22154
22773
22405
22515
22699
22735
22197
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1869ms
memory: 3952kb

input:

10000
90000
22675
22379
22428
22682
22427
22633
22537
22523
22483
22491
22236
22822
22488
22670
22613
22623
22601
22421
22443
22407
22632
22612
22706
22228
22649
22255
22590
22266
22434
22524
22358
22704
22679
22525
22545
22165
22275
22775
22171
22801
22455
22465
22482
22420
22553
22317
22465
22443
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1871ms
memory: 3928kb

input:

10000
90000
22470
22460
22561
22825
22167
22685
22046
22730
22292
22636
22319
22279
22424
22520
22653
22369
22362
22690
22515
22793
22200
22776
22579
22381
22441
22461
22722
22344
22537
22543
22495
22275
22471
22389
22484
22566
22586
22258
22266
22514
22678
22294
22542
22338
22497
22475
22449
22393
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1865ms
memory: 3720kb

input:

10000
90000
22433
22489
22637
22137
22420
22412
22548
22232
22415
22363
22616
22432
22797
22241
22711
22457
22581
22465
22475
22767
22386
22462
22637
22185
22563
22505
22576
22532
22413
22607
22456
22578
22089
22735
22511
22527
22577
22441
22470
22682
22528
22558
22544
22452
22245
22705
22579
22525
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1860ms
memory: 3716kb

input:

10000
90000
22609
22711
22666
22624
22330
22590
22322
22564
22717
22275
22459
22489
22501
22571
22869
22381
22513
22473
22389
22645
22432
22522
22641
22497
22525
22705
22294
22562
22635
22171
22585
22301
22474
22488
22639
22281
22410
22414
22486
22252
22522
22516
22319
22427
22334
22730
22390
22324
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1873ms
memory: 3920kb

input:

10000
90000
22740
22300
22517
22517
22790
22232
22555
22637
22452
22510
22285
22653
22342
22584
22370
22616
22295
22625
22726
22172
22766
22154
22474
22390
22785
22371
22598
22574
22646
22384
22250
22478
22429
22261
22672
22498
22558
22494
22653
22551
22689
22275
22346
22718
22290
22838
22867
22305
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 1869ms
memory: 3656kb

input:

10000
90000
22697
22421
22772
22316
22656
22456
22254
22582
22305
22711
22673
22541
22533
22509
22115
22793
22280
22626
22340
22398
22593
22443
22544
22462
22500
22450
22388
22646
22480
22804
22782
22490
22225
22779
22527
22661
22675
22283
22252
22678
22369
22691
22503
22451
22585
22461
22364
22568
...

output:

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

result:

ok correct

Test #71:

score: 0
Accepted
time: 1869ms
memory: 3724kb

input:

10000
90000
22562
22244
22474
22470
22576
22386
22335
22545
22507
22411
22491
22743
22418
22546
22252
22502
22460
22386
22627
22355
22211
22755
22620
22434
22630
22510
22585
22607
22835
22187
22492
22300
22572
22458
22214
22414
22376
22726
22541
22281
22536
22660
22268
22390
22402
22546
22438
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 #72:

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

input:

10000
90000
22421
22463
22473
22245
22574
22598
22565
22601
22284
22758
22463
22441
22741
22275
22438
22366
22439
22509
22857
22241
22486
22350
22430
22554
22414
22442
22632
22416
22512
22244
22469
22765
22613
22503
22315
22753
22323
22591
22659
22297
22742
22682
22430
22428
22243
22799
22447
22673
...

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 62ms
memory: 3704kb

input:

10000
89999
22335
22417

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 195ms
memory: 3952kb

input:

10000
89999
22607
22300
22344
22693
22666
22256

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 62ms
memory: 3696kb

input:

10000
89999
22496
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 #76:

score: 0
Accepted
time: 130ms
memory: 3648kb

input:

10000
89999
22482
22601
22620
22454

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3692kb

input:

10000
89999
22336
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 #78:

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

input:

10000
89999
22321
22297

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 189ms
memory: 3648kb

input:

10000
89999
22318
22527
22659
22356
22280
22750

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3936kb

input:

10000
89999
22278
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 #81:

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

input:

10000
89999
22520
22631
22320
22520

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3844kb

input:

10000
89999
22435
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 #83:

score: 0
Accepted
time: 66ms
memory: 3804kb

input:

10000
89999
22447
22561

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 126ms
memory: 3652kb

input:

10000
89999
22691
22368
22614
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 #85:

score: 0
Accepted
time: 66ms
memory: 3648kb

input:

10000
89999
22462
22594

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3920kb

input:

10000
89999
22511
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 #87:

score: 0
Accepted
time: 66ms
memory: 3656kb

input:

10000
89999
22488
22434

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 324ms
memory: 3720kb

input:

10000
89999
22551
22222
22553
22368
22507
22266
22340
22273
22481
22429

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 130ms
memory: 3952kb

input:

10000
89999
22584
22539
22554
22470

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3700kb

input:

10000
89999
22544
22516

output:

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

result:

ok correct

Test #91:

score: 0
Accepted
time: 67ms
memory: 3948kb

input:

10000
89999
22383
22579

output:

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

result:

ok correct

Test #92:

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

input:

10000
89999
22375
22473

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 125ms
memory: 3724kb

input:

10000
89999
22611
22404
22547
22469

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3696kb

input:

10000
89999
22339
22445

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 65ms
memory: 3676kb

input:

10000
89999
22485
22183

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 62ms
memory: 3936kb

input:

10000
89999
22790
22142

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3916kb

input:

10000
89999
22469
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 #98:

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

input:

10000
89999
22240
22705
22644
22274

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 321ms
memory: 3696kb

input:

10000
89999
22452
22355
22304
22397
22353
22448
22519
22488
22510
22308

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 67ms
memory: 3648kb

input:

10000
89999
22711
22499

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 123ms
memory: 3756kb

input:

10000
89999
22649
22488
22511
22629

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 65ms
memory: 3716kb

input:

10000
89999
22258
22520

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 126ms
memory: 3700kb

input:

10000
89999
22519
22516
22582
22724

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 258ms
memory: 3652kb

input:

10000
89999
22482
22671
22421
22544
22438
22637
22454
22366

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 193ms
memory: 3916kb

input:

10000
89999
22281
22662
22419
22692
22343
22453

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 67ms
memory: 3700kb

input:

10000
89999
22390
22680

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 451ms
memory: 3852kb

input:

10000
89999
22484
22635
22753
22342
22575
22448
22446
22607
22710
22373
22608
22367
22348
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 #108:

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

input:

10000
89999
22558
22457
22488
22618

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 130ms
memory: 3704kb

input:

10000
89999
22277
22686
22368
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 #110:

score: 0
Accepted
time: 66ms
memory: 3724kb

input:

10000
89999
22359
22661

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 135ms
memory: 3932kb

input:

10000
89999
22676
22411
22479
22547

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 65ms
memory: 3636kb

input:

10000
89999
22498
22456

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 67ms
memory: 3656kb

input:

10000
89999
22899
22587

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 62ms
memory: 3860kb

input:

10000
89999
22354
22890

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3620kb

input:

10000
89999
22804
22282

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 130ms
memory: 3916kb

input:

10000
89999
22712
22327
22587
22333

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 66ms
memory: 3716kb

input:

10000
89999
22296
22660

output:

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

result:

ok correct

Test #118:

score: 0
Accepted
time: 66ms
memory: 3692kb

input:

10000
89999
22821
22351

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 171ms
memory: 3636kb

input:

10000
89999
22217
22574
22394
22616

output:

? 10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 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: 127ms
memory: 3688kb

input:

10000
89999
22551
22410
22710
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 #121:

score: 0
Accepted
time: 62ms
memory: 3852kb

input:

10000
89999
22535
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 #122:

score: 0
Accepted
time: 191ms
memory: 3648kb

input:

10000
89999
22548
22763
22580
22397
22492
22544

output:

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

result:

ok correct