QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#50723#1834. Eulerian?ybw051114AC ✓47ms3868kbC++4.9kb2022-09-28 20:30:012022-09-28 20:30:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2
0
0
1
0

output:

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

result:

ok correct

Test #2:

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

input:

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

output:

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

result:

ok correct

Test #3:

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

input:

4
3
0
1
1
0
1
1

output:

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

result:

ok correct

Test #4:

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

input:

4
4
0
1

output:

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

result:

ok correct

Test #5:

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

input:

4
5
0
2

output:

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

result:

ok correct

Test #6:

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

input:

10
10
4
1

output:

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

result:

ok correct

Test #7:

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

input:

10
11
6
2

output:

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

result:

ok correct

Test #8:

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

input:

100
100
18
30
23
25
35
15
35
16

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
56
77

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

input:

1000
1488
420
318
366
396
396
329

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

input:

1000
11488
3186
2499

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

input:

10000
100000
26278
24237

output:

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

input:

10000
99999
26023
23946
25153
24899

output:

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

input:

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

output:

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

result:

ok correct

Test #15:

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

input:

100
100
19
21
23
25
38
20
30
18
23
25
26
26
27
25
23
21
29
21
34
18
26
20
27
25
22
38
20
28
30
18
20
34
29
21
22
22
24
28
24
20
19
39
32
14
27
15
27
23
26
18
27
19
20
28
31
15
23
29

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

input:

1000
1000
285
233
245
255
265
225
253
241
235
263
279
243
264
234
240
274
316
204
221
237
274
230
268
234
279
239
252
238
213
285
261
251
234
246
232
264
261
275
251
265
282
226
263
247
226
266
221
263
241
273
239
245
268
254
264
268
248
278

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

input:

10000
10000
2596
2402
2526
2528
2493
2545
2487
2509
2507
2449
2474
2548
2512
2426
2476
2516
2413
2571
2416
2532
2572
2476
2510
2464
2497
2439
2409
2459
2476
2462
2461
2463
2440
2546
2462
2526
2468
2528
2521
2491
2537
2425
2538
2446
2513
2417
2456
2550
2439
2423
2554
2480
2491
2583
2464
2478
2460
2468

output:

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

input:

10000
10000
2529
2583
2526
2442
2440
2536
2454
2528
2475
2503
2472
2490
2345
2605
2455
2537
2493
2503
2508
2500
2535
2449
2507
2545
2522
2540
2460
2542
2483
2533
2477
2477
2478
2490
2584
2478
2451
2439
2433
2561
2431
2533
2476
2538
2558
2482
2523
2419
2542
2518
2447
2521
2543
2475
2484
2582
2529
2479

output:

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

input:

10000
10000
2461
2515
2551
2467
2440
2536
2458
2532
2477
2505
2500
2518
2380
2640
2498
2580
2455
2465
2514
2506
2580
2494
2488
2526
2513
2531
2491
2573
2497
2547
2527
2527
2510
2522
2546
2440
2533
2521
2409
2537
2470
2572
2465
2527
2522
2446
2547
2443
2531
2507
2457
2531
2556
2488
2444
2542
2550
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 #20:

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

input:

100
200
26
84
72
28
28
68
54
52
55
43
45
51
44
58
53
47
54
44
55
43
33
69
51
49
44
48
59
39
64
48
42
56
42
48
61
41
60
28
50
54
46
50
39
53
41
47
65
47
61
37
36
52
57
41
60
42
53
57

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

input:

1000
2000
458
530
521
477
466
522
505
469
463
533
493
507
534
478
586
418
452
566
461
529
579
407
500
510
503
519
470
546
533
489
489
503
551
415
514
520
489
513
476
498
488
498
478
502
462
540
496
524
467
533
482
486
509
479
530
496
495
495

output:

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

result:

ok correct

Test #22:

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

input:

1000
11000
2657
2885
2963
2601
2569
2907
2855
2645
2738
2756
2807
2771
2790
2750
3005
2539
2529
3007
2518
2882
3062
2408
2832
2582
2692
2744
2652
2830
2791
2655
2872
2734
3194
2438
2717
2765
2736
2790
2634
2824
2773
2741
2674
2786
2561
2917
2785
2741
2458
2986
2710
2722
2713
2765
2885
2737
2666
2794

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

input:

10000
90000
22504
22616
22904
21978
22138
22866
22134
22736
22377
22631
22047
22685
21182
23962
22117
23187
22550
22708
22387
22455
22884
22008
22298
22808
22816
22410
21991
22991
22448
22556
22152
22680
22190
22714
22954
22074
22245
22727
21948
22884
22013
23073
21954
22872
22378
22454
22871
21919
...

output:

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

input:

10000
90000
22130
22862
22831
22103
22164
22868
22124
23142
22235
22903
22561
22431
21196
23854
22153
23093
22387
22705
22274
22592
23115
22023
22479
22679
22765
22413
22338
22740
22301
22561
22517
22649
22577
22405
22873
22331
22437
22401
22005
23275
21885
23047
22428
22786
22967
22109
23219
22001
...

output:

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

input:

10000
90000
23350
21370
22764
22094
22503
22485
22080
23004
22163
22771
21837
22977
23294
22008
22749
22393
22484
22380
21544
23524
22409
22639
22261
22531
22549
22705
21185
23543
22867
22203
22699
22529
22107
23043
22388
22516
22246
22624
22272
22746
22715
22241
22011
22821
21954
23122
21839
23045
...

output:

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

input:

10000
90000
23326
21732
22755
22063
22727
22421
22059
22875
22441
22477
21994
23218
23048
22034
22881
21991
22331
22791
21484
23306
22591
22429
22567
22313
22748
22170
21228
23872
22917
22285
22549
22517
21532
23332
22193
22839
22453
22617
22400
22672
22599
22251
21849
22947
21945
23023
21886
22958
...

output:

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

input:

10000
90000
23403
21413
22655
22137
22701
22407
21809
22829
22410
22462
22197
22797
23026
21746
22773
22245
22273
22717
21492
23578
22384
22452
22404
22872
22822
22370
21566
23540
22878
22084
22818
22318
22078
22874
22139
22873
22022
23144
22355
22693
22782
22038
22134
22800
21931
23147
21949
23335
...

output:

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

input:

10000
90000
23291
21655
22681
22169
22791
22223
22024
23118
22261
22849
22240
22858
23089
22059
22787
22155
22483
22619
21423
23311
22287
22653
22394
22532
22231
22453
21467
23685
22899
22143
22600
22544
21787
22927
22201
22831
22156
22882
22588
22694
22756
21976
22216
22846
22038
22894
21669
23249
...

output:

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

input:

10000
90000
22955
21909
23181
21811
22306
22600
21893
23355
22333
22545
22659
22091
22323
22585
23468
21542
21868
23010
22819
22151
22142
22768
22392
22584
23218
21608
22227
23031
22587
22217
22193
22933
21991
23059
22263
22845
23113
21667
21184
23852
23096
22066
21918
23202
23240
21762
22429
22689
...

output:

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

input:

10000
90000
23259
21627
23018
22272
22305
22603
22058
23016
22296
22846
22519
22507
22313
22711
23266
21876
21740
23068
22865
22151
22550
22440
22274
22758
23712
21384
22535
22737
22889
22419
22087
22753
22077
23099
21877
23031
22900
22004
21467
23361
22788
22030
22043
22915
23304
21538
22372
22714
...

output:

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

input:

10000
90000
23116
22134
23227
21965
22460
22496
21753
23159
22464
22600
22457
22345
22636
22316
23430
21536
22015
23103
22753
22161
22262
22898
22641
22367
23163
21551
22233
22711
22810
22244
22352
22808
21821
23223
22248
22696
22913
21835
21443
23593
22966
22240
22127
22831
23231
21833
22412
22620
...

output:

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

input:

10000
90000
23017
21745
22909
21945
22433
22611
22071
22995
22464
22634
22595
22431
22540
22348
23625
21443
21991
22863
23047
21901
22258
22904
22337
22433
23406
21604
22175
22811
22736
22380
22357
22871
22019
22951
22069
22853
23395
21669
21379
23921
23003
21991
22060
22936
23166
21772
22383
22335
...

output:

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

result:

ok correct

Test #33:

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

input:

10000
90000
23332
21690
22955
22121
22813
22291
23062
22084
22238
22910
22032
22814
22853
22139
23085
21831
22909
22037
22803
22055
21709
23449
22170
22698
23185
21861
22306
22422
21953
22893
22272
22634
22531
22657
22800
22302
22891
22125
22940
21820
22821
22229
22393
22647
22164
23088
22029
22863
...

output:

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

input:

10000
90000
23152
21562
22792
22304
22660
22576
22908
21890
22569
22557
22150
22930
22797
22301
22728
22222
22787
22183
22829
22309
21461
23361
22591
22453
23469
21597
22038
22836
22290
22528
22331
22749
22382
23056
22386
22502
23034
22076
22819
22215
22913
22277
22429
22751
22334
22824
22166
23032
...

output:

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

input:

10000
90000
23292
21922
22981
21957
22544
22426
23161
22055
22174
22830
21891
23133
23120
21858
22890
21940
23097
21975
22924
22104
21867
23271
22261
22499
22891
22001
21944
22950
22210
22636
22510
22772
22290
22724
22436
22814
22802
22166
22537
22257
22694
22054
22267
22701
22377
22701
22214
22886
...

output:

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

input:

10000
90000
22916
21968
23283
21833
22546
22282
22635
22419
22016
22876
22029
23231
22841
22235
22928
22140
22883
22199
22774
21944
21790
23266
22463
22709
23381
21629
21866
23070
22197
22983
22053
22735
22456
22644
22405
22363
22795
22425
23034
21980
22771
22219
22219
22645
22543
22569
22069
23019
...

output:

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

input:

10000
90000
22849
22201
22155
23083
22553
22441
22306
22436
22523
22295
21927
23075
22720
22246
22560
22634
22063
22719
22495
22631
23199
21643
22016
23096
21966
22894
22396
22542
21639
23243
23369
21863
22905
22349
22071
22693
22155
22693
23301
21805
22549
22233
22839
22117
21822
23034
22691
22635
...

output:

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

input:

10000
90000
23130
21884
22376
22672
22429
22719
22434
22454
22471
22477
21940
22954
22629
22549
22419
22471
22084
22912
22636
22812
23104
21858
22066
22942
21942
22956
22542
22528
22021
23047
23406
21798
22637
22473
22245
22755
22613
22579
22900
22138
22740
22170
22914
22068
21444
23124
22482
22820
...

output:

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

input:

10000
90000
22855
22359
22281
22643
22940
22284
22287
22701
22543
22465
22140
22888
22496
22504
22453
22409
21938
22868
22537
22279
23258
21752
22163
22957
22211
23089
22804
22432
22033
23337
23231
21649
22755
22111
21953
23027
22384
22710
22984
21798
22848
22104
22967
22039
22160
22874
22628
22312
...

output:

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

input:

10000
90000
22843
22459
22096
22846
22661
22271
22271
22803
22399
22617
21898
22866
22722
22312
22545
22517
21942
23014
22616
22370
23508
21648
21914
23062
21774
23322
22490
22332
22006
22988
23479
21495
22811
22259
22340
22788
22219
22735
22878
22234
22762
22186
23098
21784
21839
23351
22508
22502
...

output:

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

input:

10000
90000
22502
22410
22967
21831
22350
22652
22738
22074
21897
22909
21821
23095
22378
22826
22042
23060
22309
22759
22184
22658
22956
22092
22757
22089
22595
22547
22161
22987
22750
22310
21992
22856
22604
22394
21787
23127
23042
22000
23327
21665
22597
22449
22041
22877
22870
22550
22217
22489
...

output:

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

input:

10000
90000
22514
22394
23013
22047
22522
22392
23160
21824
21850
23218
21946
23084
22165
22633
22019
22801
22390
22868
21984
23082
23111
21947
23012
21698
22428
22532
21870
23142
22711
22335
22097
22733
22491
22541
21882
22884
22428
22418
23347
21651
22637
22381
22396
22650
22694
22308
22484
22598
...

output:

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

input:

10000
90000
22265
22643
23185
21889
22467
22517
22967
22067
21786
23452
21951
23003
22067
23005
21898
23086
22006
23106
22210
22668
22786
22296
22837
21951
22345
22633
22095
22945
22388
22628
22154
22960
22423
22647
21918
23088
22476
22666
23426
21626
22640
22180
22275
22775
22682
22492
22473
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 #44:

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

input:

10000
90000
22336
22422
23233
22035
22290
22420
22910
22050
21735
23221
21992
22850
21737
23241
22017
23065
22171
22865
22239
22917
23237
21893
22967
21807
22811
22323
22464
22520
22447
22443
21926
22848
22224
22732
21762
23350
22587
22329
23362
21948
22353
22635
22357
22843
22902
22310
22425
22477
...

output:

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

input:

10000
90000
21856
22884
21941
22849
22627
22363
22935
22083
22986
21956
22363
22759
21866
23004
22444
22346
22199
22961
22518
22678
22109
23189
21511
23291
22662
22242
22294
22230
22327
22881
22615
22445
22545
22429
23031
22321
22755
22231
22205
22607
22189
22611
21993
22957
23153
22049
22830
22168
...

output:

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

input:

10000
90000
22082
22780
22158
22882
23241
21809
23231
21831
23151
21775
22368
22642
22288
22998
22359
22519
21964
22870
22306
22712
21879
23215
21692
23312
23132
22090
22789
22265
22028
22812
22329
22487
22732
22392
22619
22367
22590
22408
22366
22838
21833
23109
21989
23177
23231
21575
22930
22122
...

output:

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

input:

10000
90000
22213
22605
22188
22800
22954
22274
23116
21938
22897
22083
22503
22515
22065
22847
22562
22608
21950
22860
22363
22501
21718
23446
21788
23226
22858
22114
22568
22436
22302
22732
22745
22181
22425
22351
22615
22403
22764
22228
22080
22774
22142
22752
21772
22980
23502
21610
22738
22218
...

output:

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

input:

10000
90000
22234
22840
22299
22735
23067
21971
23353
21653
22995
22009
22444
22916
22190
23074
22468
22476
22157
22961
22613
22595
21746
23270
21869
23101
22821
22203
22512
22266
22003
23067
22712
22176
22870
22282
22660
22232
23148
22110
22328
22832
22048
22924
21894
23236
23341
21729
22955
22303
...

output:

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

input:

10000
90000
22501
22429
21836
23008
22126
22812
21488
23324
22675
22579
22522
22482
23099
21953
22079
22879
21804
23336
21540
23378
21950
23180
23097
21927
22495
22503
22193
22673
23064
22232
23020
21986
22060
22848
22159
22819
22341
22605
23522
21456
21984
22856
22385
22555
22149
22615
22727
22435
...

output:

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

result:

ok correct

Test #50:

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

input:

10000
90000
22317
22873
22251
22567
22276
22726
21747
23259
22645
22543
22372
22446
23127
21921
21817
22853
22020
23158
21663
23073
22325
23041
22988
22128
22662
22478
22154
22958
23019
21719
22960
21860
22007
22803
22100
22752
22592
22406
23795
21345
22094
22732
22332
22362
22283
22693
22750
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 #51:

score: 0
Accepted
time: 37ms
memory: 3756kb

input:

10000
90000
22399
22743
22403
22427
22082
22860
21538
23556
22573
22447
22382
22418
22735
22093
22223
22783
21843
23247
21611
23369
22181
22991
22954
21938
22579
22443
22239
22823
23058
22046
22885
22045
22101
22889
22073
22873
22121
22693
23768
21382
22175
22631
22835
22075
22121
22833
22505
22545
...

output:

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

input:

10000
90000
22596
22314
22053
22817
22133
22909
21549
23399
22382
22414
22305
22713
22978
22116
22327
22691
22004
23078
21732
23460
21650
22982
22971
21791
22719
22593
22173
22993
22658
21942
22948
21982
22030
23072
22054
23090
22389
22697
23627
21403
22193
22865
22696
22150
22256
22712
22857
21919
...

output:

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

input:

10000
90000
22264
22704
22760
22352
22399
22509
22293
22451
22196
22676
22308
22792
23885
21203
23116
21666
22169
22859
22485
22585
22680
22402
22337
22533
22102
22988
22280
22700
22522
22192
22246
22840
22314
22850
21918
23116
22439
22365
21757
23317
23995
21075
22828
22102
23580
21436
22976
22108
...

output:

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

input:

10000
90000
22007
22997
23053
21909
22716
22244
22110
22894
21949
22881
22177
22815
23845
21157
22939
22127
22076
23224
22548
22568
22723
22129
22258
22932
22229
22863
22179
22801
22524
22520
22122
22750
22141
22911
21785
23153
22611
22185
21738
23364
23770
21012
22789
22257
23371
21409
23006
21942
...

output:

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

input:

10000
90000
22153
22721
22948
21952
22527
22625
22089
22791
22105
22805
21919
22849
24040
21168
23191
21783
21689
23029
22716
22272
22551
22341
21943
22595
22192
22778
22204
22656
22878
22168
22400
22486
22419
22765
21792
23230
22705
22143
21900
23370
23856
21174
22760
21936
23492
21412
22777
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 #56:

score: 0
Accepted
time: 40ms
memory: 3756kb

input:

10000
90000
22818
22352
21215
23877
22873
22059
22182
22700
22347
22615
23053
21653
22213
22609
22555
22473
22363
22815
22859
22387
22052
22944
22592
22670
22720
22322
22059
22945
22294
22522
22871
22119
22863
22123
22894
22300
22577
22435
22301
22727
23081
22029
22577
22509
22694
22724
22083
22813
...

output:

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

input:

10000
90000
23026
22158
21281
23861
22988
22314
22446
22666
22192
22874
22858
22040
22665
22361
22717
22171
21928
23086
22864
22226
21866
22728
22516
22666
22715
22289
22099
22837
22343
22735
22975
21887
22898
22130
22722
22102
22489
22605
22586
22498
22931
22087
22651
22323
22374
22796
22354
22682
...

output:

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

result:

ok correct

Test #58:

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

input:

10000
90000
22869
22175
21052
23748
22959
22001
22429
22507
21896
22970
23255
21509
22679
22455
22443
22733
21993
22919
22699
22071
21923
22977
22663
22531
22657
22333
22290
22970
22432
22336
22885
22025
23175
21881
23080
22056
22185
22779
22394
22676
22750
22124
22666
22136
22205
22811
22035
22789
...

output:

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

input:

10000
90000
22866
21956
21204
23928
23006
22038
22360
22832
22372
22786
23021
22035
22479
22527
22947
22043
22071
22935
22709
22451
22207
22953
22582
22466
22471
22531
22010
23068
22177
22689
22804
22070
22743
22099
22630
22054
22480
22682
22469
22731
23134
22078
22717
22161
22233
22521
22164
22948
...

output:

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

input:

10000
90000
22670
22326
22319
22747
22697
22439
23720
21436
22492
22226
22808
22050
21927
23147
23167
21997
22065
22973
22863
22229
22829
22125
22938
21856
22362
22674
22306
22642
21779
23047
22730
22356
23550
21462
23822
21442
23053
22105
22541
22479
22468
22494
22866
21916
22943
22345
22265
22741
...

output:

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

input:

10000
90000
22852
22092
22455
22225
22106
22720
23386
21532
22441
22435
22873
21919
22070
22824
23261
21747
22605
22629
22386
22506
22883
22217
23176
21934
22119
22845
22404
22550
21700
22994
22357
22553
23024
21950
23538
21776
22787
21985
22629
22483
22306
22742
23034
21840
23063
21897
22104
22686
...

output:

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

input:

10000
90000
22933
22267
22278
22354
22305
22501
23415
21405
22626
22374
23021
22245
21631
23185
23384
21788
22066
22882
22663
22333
22855
21905
23141
22025
22111
22699
22639
22559
21935
23093
22646
22264
23495
21531
23787
21349
22863
22157
22513
22447
22431
22455
22966
22072
22905
22165
22250
22854
...

output:

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

input:

10000
90000
22941
22387
22372
22872
22285
22807
23396
21684
22459
22727
22901
22215
21618
23120
23134
21816
21890
23086
22903
22249
23120
22166
23433
21867
22209
22595
22396
22512
22207
23007
22652
22368
23593
21669
23790
21380
22623
22349
22493
22301
22518
22546
22712
22026
22818
22220
22274
22600
...

output:

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

input:

10000
90000
22570
22460
22519
22703
21184
23880
21880
23068
22992
21944
21434
23342
22383
22411
22446
22734
21848
23260
22304
22978
22076
22788
21821
23083
22786
22386
22480
22654
21738
23390
22546
22396
22091
22707
21498
23454
22403
22445
22963
22017
22641
22445
22950
21946
22146
22774
22541
22463
...

output:

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

input:

10000
90000
22427
22747
22206
22766
21306
23536
21842
23256
23165
21965
21623
23391
22423
22601
22217
22691
21869
23357
22217
22575
22600
22430
21703
23511
23167
21931
23082
21964
21502
23298
22563
22469
21830
23142
21688
23456
22171
23037
23230
21952
22587
22235
23076
21752
21946
22792
22493
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 #66:

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

input:

10000
90000
22333
22943
22191
22779
21430
23642
21960
22968
23237
21799
21311
23339
22213
22817
22300
22634
21769
23073
22316
22702
22372
22434
21841
23107
22898
22060
22762
22446
21850
23326
22578
22360
21694
23444
21297
23403
22245
22643
23187
21925
22785
22237
22850
22030
22011
22987
22242
22766
...

output:

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

input:

10000
90000
22397
22649
22691
22483
21165
23867
22288
22812
23187
21861
21512
23348
22718
22228
22349
22583
21705
23319
22133
23129
22153
22819
21860
23314
23012
22002
22497
22443
21948
23124
22468
22572
21887
23153
21637
23535
22217
22695
23241
21759
22250
22584
22666
22050
22143
22511
22576
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 #68:

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

input:

10000
90000
23469
21545
22574
22498
23014
22112
22123
22937
22380
22484
22607
22483
22039
22975
22557
22301
22433
22355
21566
23194
21789
23167
22395
22543
22186
22810
21851
22967
22644
22382
22400
22598
21900
22978
23049
21961
23292
21648
22359
22593
22945
21725
22916
22048
22144
22798
22151
22655
...

output:

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

input:

10000
90000
23625
21361
22422
22542
22564
22274
22370
22858
22510
22562
22718
22210
22151
23007
22459
22569
22434
22472
21931
23077
21512
23530
22361
22463
22271
22951
21995
23065
22511
22599
22342
22732
21928
23220
23114
21986
23295
21717
22453
22835
22954
22088
22556
22456
22143
22997
22121
22911
...

output:

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

input:

10000
90000
23572
21280
22548
22558
22865
22359
22129
22755
22683
22155
22490
22398
22357
22815
22499
22795
22452
22494
22285
23141
21739
23365
22237
22559
22091
22673
22064
22914
22672
22654
22438
22608
22035
22945
23341
21961
23224
21958
22385
22593
22745
22199
22554
22258
22538
22670
22068
22944
...

output:

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

input:

10000
90000
23865
21393
22270
22886
22709
22407
22235
22699
22374
22402
22761
22319
22195
22843
22598
22524
22733
22269
21940
23140
21442
23448
22045
22753
22411
22601
22282
23006
23010
22164
22632
22498
21876
23140
23366
21826
23152
21932
22137
22949
22605
22133
22554
22316
22035
22869
22374
22468
...

output:

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

input:

10000
90000
23429
21879
23035
21913
22465
22425
22945
22107
21501
23359
22582
22664
22523
22385
22413
22479
23135
21835
22524
22508
22698
22212
22608
22406
22392
22564
21644
23364
22357
22859
22525
22367
22432
22642
22326
22620
22703
22369
22826
22224
22468
22724
23088
22182
22408
22526
22390
22620
...

output:

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

input:

10000
89999
23413
21525

output:

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

input:

10000
89999
23145
21910
22972
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 #75:

score: 0
Accepted
time: 11ms
memory: 3816kb

input:

10000
89999
22956
21862

output:

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

input:

10000
89999
23466
21497
23109
21800
22097
22746
22982
21957
21515
23335

output:

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

input:

10000
89999
23221
21871

output:

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

input:

10000
89999
23349
21879

output:

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

input:

10000
89999
22236
22741
22381
22753

output:

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

input:

10000
89999
22023
22952
22183
22701

output:

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

input:

10000
89999
22407
23082
22452
22633
22570
22214

output:

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

input:

10000
89999
22310
22748

output:

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

input:

10000
89999
21905
22670
22543
22813

output:

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

input:

10000
89999
22452
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 #85:

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

input:

10000
89999
22374
22439
22579
22412
22735
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 #86:

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

input:

10000
89999
22040
23020

output:

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

input:

10000
89999
22461
22621

output:

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

result:

ok correct

Test #88:

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

input:

10000
89999
23178
21677
22553
22585

output:

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

input:

10000
89999
22829
21879

output:

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

input:

10000
89999
23420
21859
22568
22400

output:

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

input:

10000
89999
23034
22300

output:

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

input:

10000
89999
22782
22208

output:

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

input:

10000
89999
22578
22051
22485
22480
22980
21611
22493
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 #94:

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

input:

10000
89999
22901
22000
22652
22314

output:

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

input:

10000
89999
22724
21833
22423
22706
23570
21654

output:

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

result:

ok correct

Test #96:

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

input:

10000
89999
22592
22279
22441
22780
23644
21582

output:

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

input:

10000
89999
23258
21649
22312
22757
21694
23042

output:

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

input:

10000
89999
23490
21460

output:

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

input:

10000
89999
23334
21704

output:

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

input:

10000
89999
23499
21569

output:

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

input:

10000
89999
23522
21495
22490
22409
21697
23309

output:

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

input:

10000
89999
23654
21655
22413
22511

output:

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

input:

10000
89999
23347
21854
22426
22835
21691
23417

output:

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

input:

10000
89999
23412
21501
22003
23045

output:

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

input:

10000
89999
23233
21628
22081
22650
21470
23523
21583
23376
22158
22779
22438
22277
22468
22351
22038
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 #106:

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

input:

10000
89999
23382
21485
22355
22614
21869
23119

output:

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

input:

10000
89999
22286
22823
22007
22964
23151
21667

output:

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

input:

10000
89999
22197
22783

output:

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

result:

ok correct

Test #109:

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

input:

10000
89999
22288
22823
22320
22985
23335
21579

output:

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

input:

10000
89999
21897
22839

output:

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

input:

10000
89999
22178
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 #112:

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

input:

10000
89999
22236
23166

output:

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

input:

10000
89999
22119
22694
22242
22972

output:

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

input:

10000
89999
22097
23151

output:

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

input:

10000
89999
22975
21891

output:

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

input:

10000
89999
23210
21872

output:

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

input:

10000
89999
22934
22101
21931
23131

output:

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

input:

10000
89999
23144
21738

output:

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

input:

10000
89999
23380
21823
21986
23044

output:

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

input:

10000
89999
23130
21876

output:

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

result:

ok correct

Test #121:

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

input:

10000
89999
23123
22000
22354
22648

output:

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

input:

10000
89999
23059
22075

output:

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

result:

ok correct