QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744009#1834. Eulerian?ocharin#AC ✓26ms3968kbC++201.3kb2024-11-13 20:34:472024-11-13 20:34:47

Judging History

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

  • [2024-11-13 20:34:47]
  • 评测
  • 测评结果:AC
  • 用时:26ms
  • 内存:3968kb
  • [2024-11-13 20:34:47]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define int long long

std::mt19937_64 mrand(std::chrono::steady_clock().now().time_since_epoch().count());

int rnd(int l, int r) {
    return mrand() % (r - l + 1) + l;
}


int query(std::vector<int> q) {
    std::cout << "? " << q.size() << " ";
    for (auto x : q) {
        std::cout << x << " ";
    }
    std::cout << std::endl;

    int x;
    std::cin >> x;
    return x;
}

void solve() {
    int n;
    std::cin >> n;
    std::vector<int> all;
    for (int i = 1; i <= n; i++) {
        all.push_back(i);
    }

    int tot = query(all);
    bool flag = true;
    for (int i = 1; i <= 29; i++) {
        std::vector<int> a, b;
        for (int i = 1; i <= n; i++) {
            if (rnd(0, 1)) {
                a.push_back(i);
            } else {
                b.push_back(i);
            }
        }

        int x = query(a);
        int y = query(b);
        if ((tot - x - y) % 2 == 1) {
            flag = false;
            break;
        }
    }

    std::cout << (flag ? "! YES" : "! NO") << std::endl;
}

signed main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int t = 1;
    // std::cin >> t;

    while(t --) {
        solve();
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2
0
1

output:

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

result:

ok correct

Test #2:

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

input:

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

output:

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

result:

ok correct

Test #3:

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

input:

4
3
0
1
0
2

output:

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

result:

ok correct

Test #4:

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

input:

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

output:

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

result:

ok correct

Test #5:

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

input:

4
5
1
1

output:

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

result:

ok correct

Test #6:

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

input:

10
10
0
4
0
6
2
2
2
5

output:

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

result:

ok correct

Test #7:

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

input:

10
11
0
7
4
2

output:

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

result:

ok correct

Test #8:

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

input:

100
100
33
23
26
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: 1ms
memory: 3528kb

input:

100
256
68
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 #10:

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

input:

1000
1488
398
345

output:

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

result:

ok correct

Test #11:

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

input:

1000
11488
3121
2611
2724
3089

output:

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

result:

ok correct

Test #12:

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

input:

10000
100000
24683
25097
24312
25822
25409
24486

output:

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

result:

ok correct

Test #13:

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

input:

10000
99999
24997
24994
25507
24549

output:

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

result:

ok correct

Test #14:

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

input:

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

output:

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

result:

ok correct

Test #15:

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

input:

100
100
26
22
24
22
24
28
28
30
23
25
24
26
22
28
19
33
18
34
33
15
26
22
18
36
27
25
27
21
27
19
15
35
30
22
22
28
19
37
34
18
29
27
22
28
29
25
30
22
19
31
23
31
24
20
15
33
28
24

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

input:

1000
1000
253
237
257
271
216
286
244
252
253
263
227
241
245
243
258
254
271
243
248
244
248
236
255
249
247
233
212
238
232
278
256
246
258
238
227
253
252
238
227
265
251
243
256
250
231
287
246
268
252
266
243
277
267
225
232
274
236
280

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

input:

10000
10000
2507
2519
2521
2505
2525
2507
2522
2440
2351
2575
2491
2563
2485
2515
2594
2424
2437
2517
2523
2485
2472
2454
2517
2509
2522
2510
2491
2487
2478
2494
2497
2477
2540
2444
2518
2422
2513
2497
2454
2458
2462
2506
2543
2519
2477
2505
2442
2510
2468
2490
2434
2526
2528
2506
2527
2551
2560
2444

output:

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

input:

10000
10000
2546
2558
2437
2455
2520
2476
2575
2445
2526
2418
2573
2491
2477
2533
2461
2531
2469
2535
2510
2476
2494
2506
2384
2506
2456
2502
2563
2431
2499
2543
2567
2477
2431
2499
2473
2509
2453
2545
2422
2486
2454
2540
2445
2555
2514
2518
2470
2584
2521
2345
2448
2462
2520
2512
2576
2388
2483
2539

output:

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

input:

10000
10000
2366
2616
2521
2555
2594
2516
2515
2485
2463
2563
2459
2499
2514
2500
2508
2460
2435
2545
2450
2544
2453
2483
2524
2494
2498
2504
2457
2471
2440
2536
2533
2515
2460
2586
2413
2527
2524
2558
2458
2484
2394
2608
2489
2607
2435
2599
2493
2465
2483
2459
2510
2448
2545
2533
2433
2513
2449
2547

output:

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

result:

ok correct

Test #20:

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

input:

100
200
42
54
60
32
40
58
50
48
44
52
63
37
66
40
54
40
67
35
52
58
69
33
43
43
42
46
66
50
38
56
49
59
42
62
42
54
61
47
38
54
37
45
62
46
33
57
50
66
40
58
44
56
70
32
45
53
60
42

output:

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

result:

ok correct

Test #21:

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

input:

1000
2000
490
512
544
476
512
512
551
465
493
483
559
463
528
466
497
535
533
473
513
479
488
500
504
512
529
505
519
455
552
468
517
499
437
553
489
527
506
524
534
484
543
443
539
435
555
437
512
488
561
485
471
501
443
571
487
509
474
506

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

input:

1000
11000
2779
2693
2891
2683
2746
2786
2981
2551
2987
2495
2711
2865
2533
2977
2713
2757
2632
2952
2729
2813
2863
2687
2773
2651
2687
2785
2879
2699
2717
2769
2606
2858
2456
3026
2512
2998
2596
2942
2734
2754
2576
2938
2572
2892
2842
2808
2767
2699
2748
2672
2765
2727
2688
2776
2753
2823
2459
3079

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

input:

10000
90000
22141
22861
23061
21967
22949
22029
23057
22041
22435
22417
23168
21426
22204
22468
23202
21694
22887
22481
22669
22229
22394
22452
22013
23095
22211
23011
22760
22296
22327
22601
23209
22053
22671
22435
21832
23432
23554
21476
22342
22652
22732
22446
22489
22645
22627
22317
23250
21612
...

output:

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

input:

10000
90000
22405
22283
21658
23194
22406
22432
21965
22741
22305
22615
21191
23485
22424
22734
22919
22015
22277
22587
23528
21632
22327
22685
22635
22445
22233
23067
22771
22075
23025
22117
22235
22991
22886
21990
22887
22293
23501
21681
22369
22759
23002
21960
22657
22303
22343
22537
22338
22498
...

output:

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

input:

10000
90000
21548
23372
23391
21407
22423
22437
22555
22469
22770
22202
22784
21980
23310
21740
22858
22122
22583
22419
22508
22390
22595
22359
22397
22363
22265
22813
21901
23307
22001
23093
23104
21854
22860
21984
22890
22098
22478
22236
22755
22279
22714
22400
22359
22683
22731
22345
22298
22752
...

output:

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

input:

10000
90000
22810
21854
22528
22240
22844
22324
22804
22174
22207
22449
22131
22755
22442
22450
22274
22738
23140
21930
22629
22447
22101
22825
22869
22153
22858
22036
22763
22467
22829
22363
22917
22121
22981
21919
22141
22717
21814
23410
22462
22626
22888
22226
22971
21925
22327
22597
22414
22554
...

output:

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

input:

10000
90000
22602
22278
22715
22349
22352
22482
22372
22672
22382
22346
22558
22496
22724
22232
23013
21913
23585
21215
22983
22009
22882
21838
21359
23571
21824
23112
22602
22626
22087
22825
22290
22640
21894
23030
22039
23197
23020
22054
22320
22656
22832
22200
22705
22149
23058
21966
22783
22121
...

output:

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

result:

ok correct

Test #28:

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

input:

10000
90000
21938
23278
22187
22473
22405
22491
22603
22479
23058
22238
23113
22029
22383
22569
22227
22893
22759
22233
22812
22092
21964
22888
22680
22234
22289
22683
22607
22327
22586
22378
22871
22177
22689
22151
23193
21705
22446
22812
22603
22401
22260
22616
22313
22417
22326
22706
21963
22981
...

output:

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

input:

10000
90000
22394
22588
22049
22831
22497
22221
23111
21891
22298
22964
22284
22822
22712
22386
21559
23121
22295
22563
23033
22183
22125
22737
22802
22030
22403
22531
22498
22504
22113
22823
22306
22676
23071
21961
21817
23079
22616
22576
22676
22296
22539
22621
21973
23007
22893
22067
21882
23010
...

output:

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

input:

10000
90000
22174
23152
23275
22007
22679
22217
22419
22583
22593
22641
22660
22606
23338
21680
21470
23518
22780
22232
22969
22265
22415
22505
22841
22333
23816
21558
22120
22516
23484
21340
22499
22473
22159
23089
21642
23328
22077
23091
22478
22354
22410
22660
22472
22488
22107
22645
21650
23648
...

output:

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

input:

10000
90000
23457
21555
22369
22743
22817
22459
22125
22605
22335
22825
22167
22643
22565
22351
21848
23502
22666
22740
21984
23022
21979
22949
21996
22806
22722
22410
23064
21770
22465
22327
22834
22484
21833
23171
22327
22553
21637
23545
22803
22265
23102
21942
22668
22408
23082
22014
23409
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 #32:

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

input:

10000
90000
22749
22185
22356
22544
22360
22658
21297
23703
23219
21777
22147
22805
22483
22377
21807
23413
23143
21621
22443
22447
22410
22814
22922
22168
23037
21975
22982
22104
22446
22566
21983
22867
23196
21676
22049
23051
23015
22001
22649
22449
22852
22506
22699
22383
22104
22930
23265
21911
...

output:

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

input:

10000
90000
22809
22123
22766
22252
22664
22244
22139
22875
21694
23294
23408
21700
22357
22369
22663
22383
23475
21561
22365
22561
22287
22773
22289
22729
22352
22516
21829
23219
23482
21934
22457
22593
23419
21489
22938
22058
21821
23325
22567
22445
22580
22390
23176
21890
22045
23079
21561
23299
...

output:

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

input:

10000
90000
23081
21703
22174
22668
23190
21662
22266
22588
22924
22206
21799
23039
23603
21335
21906
23210
22299
22741
22969
21653
21981
23149
21683
23323
22825
22365
21528
23360
22197
22697
23288
21650
22033
22691
22264
22916
21892
23020
22879
22095
22745
22147
23045
22255
23229
22037
22818
22264
...

output:

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

result:

ok correct

Test #35:

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

input:

10000
90000
22179
22811
22455
22581
22566
22342
22642
22326
22469
22493
23376
21674
22964
21880
22163
22929
22519
22201
22549
22429
22218
22544
22108
22962
22213
22929
22288
22838
22218
22852
22603
22343
22170
22838
22078
22866
22096
22860
22059
22877
22196
22860
22551
22537
21851
23029
21897
23223
...

output:

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

input:

10000
90000
23184
21794
22654
22470
22185
22801
21828
23210
22508
22388
22837
21999
22436
22718
23068
22174
21467
23743
22441
22227
23222
21752
22329
22641
22109
22703
22435
22649
22366
22498
21741
23117
22620
22286
22148
22878
21250
23434
21844
23182
22191
22535
23381
21719
21535
23007
22583
22519
...

output:

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

input:

10000
90000
23153
21891
22876
22140
23104
21948
22144
22672
22380
22702
22613
22367
22748
22110
22418
22646
21511
23563
21752
23116
21891
23307
21996
22872
22682
22274
22301
22879
21672
23284
23179
21909
23145
21575
22426
22864
22885
22249
22311
22755
21579
23487
23013
21949
22355
22621
21335
23717
...

output:

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

input:

10000
90000
22208
23096
22503
22539
21843
22997
22744
22308
22967
21909
22468
22386
22056
23120
22379
22719
22545
22501
22412
22766
22586
22290
22627
22363
21223
23587
22382
22538
22162
22934
23030
22166
23213
21797
22434
22598
22784
22534
22575
22551
22420
22518
22442
22394
21849
23203
22864
22092
...

output:

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

result:

ok correct

Test #39:

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

input:

10000
90000
21999
23019
22322
22748
22673
22403
21641
23459
22377
22605
21750
23078
22014
22910
22663
22233
22421
22489
22343
22761
23365
21825
22648
22154
22420
22988
22038
22874
23312
21980
22478
22542
23055
22045
22745
21985
22951
22133
22290
22730
22202
22616
22802
22224
21834
23006
22655
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 #40:

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

input:

10000
90000
22556
22494
21832
23214
22502
22514
23084
21872
22452
22434
22872
22092
22773
22295
22461
22501
22432
22784
21946
22938
22584
22442
21930
23160
22488
22452
22558
22764
21707
23485
23412
21758
23194
21660
21729
23171
22230
22724
22441
22531
21801
23027
22631
22327
22023
23169
22772
22490
...

output:

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

input:

10000
90000
23346
21614
23048
21902
22552
22496
21380
23538
23041
22159
22889
22119
22125
22979
22206
22664
22523
22421
22943
22059
22348
22800
22716
22214
22854
22082
22998
21942
22218
22818
22787
22207
21877
22917
22523
22719
21846
23018
23050
21786
22164
22874
21954
22874
22655
22255
22780
22128
...

output:

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

result:

ok correct

Test #42:

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

input:

10000
90000
23409
21517
23545
21539
22559
22295
23005
22223
22669
22249
21761
23149
22816
22336
22182
22596
22127
22877
22963
22087
23048
22132
22013
23169
22524
22476
22510
22276
22942
22026
22805
22185
22229
22805
23067
21905
22824
22056
22759
22355
21718
23286
22849
22273
23113
21899
22872
22356
...

output:

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

result:

ok correct

Test #43:

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

input:

10000
90000
23078
22110
21319
23837
21261
23561
22623
22375
22682
22198
21913
23081
22129
22727
22034
23090
22418
22458
22568
22436
22190
22754
23364
21698
21253
23783
21975
22841
22106
22946
22180
22810
22917
22163
23700
21482
22408
22548
23188
21850
22235
22695
22959
22099
22999
22133
22396
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 #44:

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

input:

10000
90000
23163
21811
22186
22840
23010
21964
22238
22702
22183
22909
22597
22425
21931
23001
21524
23624
23407
21721
22649
22479
22469
22677
23441
21873
21433
23505
22744
22402
22256
22760
22486
22418
22261
23161
22321
22653
22075
22919
21750
23264
22849
22035
22875
22121
22186
22676
22217
22819
...

output:

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

result:

ok correct

Test #45:

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

input:

10000
90000
22336
22650
22019
22923
22876
22088
22116
23050
22608
22310
23169
21887
22258
22818
21749
23499
22231
22875
22504
22380
22820
22272
21865
23141
22257
22537
22604
22200
23060
21938
21898
22798
22007
23103
21260
23672
22235
22619
23419
21625
21654
23278
22818
22386
22717
22323
22465
22521
...

output:

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

input:

10000
90000
22528
22326
21680
23298
21611
23295
22638
22480
21815
22999
22500
22654
22254
22754
22413
22359
21798
23278
22589
22381
22951
22067
22318
22782
22051
22947
21890
23318
22365
22605
21894
23172
22453
22299
22409
22379
22230
22782
22521
22553
22172
22748
22204
22830
22281
22607
23113
21793
...

output:

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

input:

10000
90000
21956
23070
22745
22299
21605
23353
22382
22552
21873
23153
21784
23000
22958
22132
22274
22880
22382
22590
22726
22424
22328
22544
23193
21905
22188
23030
22748
22114
22606
22124
22603
22119
23570
21916
23343
21811
21425
23565
22405
22543
22583
22707
23687
21471
22392
22624
23380
21598
...

output:

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

input:

10000
90000
22468
22642
22926
22142
23014
22006
23478
21580
22313
22563
21641
23401
22440
22680
22195
22831
22127
22599
22222
22594
22948
22034
21652
23170
22965
22267
21803
23315
22054
22918
22902
22054
22270
22900
22533
22419
22070
23012
22965
22515
22205
22765
22663
22411
22506
22500
21994
22956
...

output:

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

input:

10000
90000
23042
21942
22494
22688
22686
22378
22833
22203
22989
21961
22179
22707
21542
23424
22434
22642
22452
22608
22092
22816
22351
22287
21689
23373
21711
23569
23134
21694
21935
23155
22332
22776
23589
21127
22636
22280
22277
22631
22733
22577
22301
22887
23329
21683
22665
22371
22168
22856
...

output:

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

input:

10000
90000
22447
22647
21916
22936
22232
22788
22512
22616
22697
22245
22760
22406
22897
21965
22532
22244
23354
21528
22214
22688
22417
22281
22385
22593
22756
22240
22641
22311
22866
22314
22775
22241
22421
22509
22231
22797
22506
22706
22410
22664
22726
22200
22403
22733
22713
22243
22238
22874
...

output:

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

input:

10000
90000
22077
22819
22424
22636
22998
22124
22459
22679
22100
22884
22521
22413
22489
22611
22928
22024
22033
22863
22110
22578
23902
21354
21976
22998
22663
22395
22356
22670
22323
22707
23156
21882
22882
22232
23002
22070
22761
22487
22177
22715
22470
22524
22297
22623
22011
22979
22869
22085
...

output:

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

input:

10000
90000
23332
21702
22078
22994
22488
22470
22251
22859
22564
22250
23327
21523
22289
22701
23133
21847
23010
21994
21958
23104
22982
21928
22445
22533
22283
22679
22247
22765
22591
22301
21794
23350
23253
21843
22530
22510
22979
22217
23211
21939
22289
22797
21846
23218
22289
22629
23239
22187
...

output:

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

input:

10000
90000
22092
22834
22562
22550
22426
22534
22070
22780
22969
22183
22621
22211
21740
23306
22624
22298
22864
22158
22451
22569
22742
22114
22644
22508
22536
22464
22901
22283
22578
22274
22684
22202
21955
22965
23004
22088
22505
22413
22878
22428
22674
22206
23100
21854
22335
22693
22416
22736
...

output:

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

input:

10000
90000
22481
22557
22446
22500
22703
22573
23276
21616
23032
22110
21591
23551
21819
23195
22431
22525
22138
23172
22560
22524
21488
23674
21813
23247
22887
22033
22946
21850
22747
21979
22620
22422
22473
22401
23183
21917
22111
22841
22662
22554
22779
22161
22183
22767
23340
21716
21266
23752
...

output:

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

input:

10000
90000
22869
22263
22937
22211
22618
22474
22249
22831
23844
21358
22854
22084
22630
22348
21975
22967
22698
22644
22721
22217
21930
23154
22659
22309
22600
22442
22417
22539
22852
22132
22781
22197
22787
22193
21721
23397
22433
22615
22734
22196
22574
22524
22883
21975
22405
22717
22610
22198
...

output:

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

input:

10000
90000
22158
22654
21959
23015
22104
23032
24062
21304
22893
22005
22836
22226
21959
23277
22177
22813
22251
22757
22637
22675
22827
22487
22074
22766
21716
23544
21468
23436
22202
22500
22891
22567
22694
22142
22782
21990
22240
22628
23031
22091
23196
21708
23027
22033
22481
22429
22653
22157
...

output:

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

input:

10000
90000
22649
22341
22401
22589
22830
22296
22006
23020
22236
22722
23445
21701
22557
22305
22777
22477
22715
22529
22379
22711
23545
21333
22350
22650
22323
22627
22269
22873
22084
22968
22424
22580
23545
21611
23043
22029
22164
22670
22480
22714
22270
22680
22524
22570
22980
22356
21238
23690
...

output:

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

input:

10000
90000
22440
22654
22376
22884
22827
22375
22840
22156
22814
22202
22098
22864
22262
22694
22165
22931
22405
22363
22832
22178
22636
22278
22078
22728
22592
22662
22709
22323
22551
22421
22657
22395
21270
23414
22548
22414
22056
22932
22616
22250
23043
22025
22656
22378
22820
22208
22075
22703
...

output:

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

input:

10000
90000
22413
22333
23139
21723
22786
22186
22536
22484
22540
22180
22164
22804
22137
22845
22445
22549
22147
22769
23153
21921
22745
22409
23017
22079
23763
21537
22881
21923
22313
22363
23139
21799
23233
21907
22693
22453
22858
22246
22438
22384
23016
21784
22514
22474
21878
22902
22551
22235
...

output:

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

result:

ok correct

Test #60:

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

input:

10000
90000
22209
22779
22016
23060
23054
21808
22563
22247
23209
21835
22608
22648
22203
22499
21702
23306
22379
22679
22805
22207
22462
22508
22016
22958
22361
22641
22219
22819
21667
23055
22225
22721
22478
22580
21932
23078
22391
22237
22818
22312
22350
22674
23425
21871
22510
22400
23093
22143
...

output:

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

input:

10000
90000
22145
22899
22002
22792
22297
22887
23387
21435
22716
22302
23019
22151
22180
22738
21989
22785
22560
22228
22720
22248
22705
22153
22416
22358
22702
22434
22141
22593
22530
22372
23084
21630
22673
22077
22803
22081
23064
22004
22984
21726
22221
22609
22615
22071
22358
22686
22147
22831
...

output:

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

result:

ok correct

Test #62:

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

input:

10000
90000
22777
22549
22710
22524
22481
22427
22550
22656
22605
22709
22289
22579
22571
22261
22188
22912
22316
22922
21744
23038
22152
22762
21780
22952
22824
22128
22262
22878
22335
22659
21528
23288
22229
22703
21837
23261
22889
22349
22260
22642
22443
22605
22743
22297
22426
22388
22503
22757
...

output:

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

input:

10000
90000
21908
22938
21524
23608
23053
21955
23046
21646
22200
22562
22596
22596
22502
22580
22898
21946
22255
23053
22752
22254
22606
22162
22415
22615
23270
21774
22977
21991
21996
22910
23142
21998
21570
23480
22532
22310
22649
22369
22077
22881
22138
23058
21836
23196
22709
22365
23487
21553
...

output:

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

input:

10000
90000
22384
22720
23064
22116
23327
21571
22332
22492
22827
22069
21475
23587
22533
22515
23129
21947
21922
22910
21658
23450
23036
22004
22611
22181
23068
21988
22707
22183
22822
22186
22818
22040
22611
22547
22117
23075
21852
23046
22032
23028
21941
23149
22634
22550
22303
22623
21917
23171
...

output:

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

input:

10000
90000
23075
21945
22903
22127
22225
22913
22834
22142
22426
22654
22544
22550
22743
22255
22137
22827
23293
21931
23200
21810
22061
22989
22954
21906
22302
22948
22954
22198
22817
22269
22123
22493
21711
23573
22005
23113
22492
22652
24021
21047
22453
22445
22881
22223
22491
22651
22844
22134
...

output:

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

result:

ok correct

Test #66:

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

input:

10000
90000
22510
22438
21922
23314
22643
22281
22126
22882
22466
22640
23699
21379
22335
22455
22054
22796
23064
22152
21812
23028
23139
22051
22693
22121
22784
22360
23399
21599
22609
22441
22078
23006
22036
23146
22903
21939
22655
22381
22907
22217
22090
22940
22549
22449
22609
22757
22404
22590
...

output:

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

input:

10000
90000
22275
22671
22695
22411
22812
22194
21940
23282
21697
23285
23520
21442
22900
22452
22178
22668
22742
22498
22818
22202
21772
23260
22797
22451
23319
21873
21831
23427
22258
22738
21978
22986
22119
22925
22745
22291
22737
22103
21636
23364
22697
22381
22189
22887
21937
23225
22336
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 #68:

score: 0
Accepted
time: 17ms
memory: 3916kb

input:

10000
90000
22995
22071
23038
22238
22129
22941
22668
22084
21667
23335
22836
22056
22572
22402
23267
21919
22865
22043
23248
21712
22473
22655
22292
22680
22551
22545
22516
22578
22780
22134
22059
22805
22120
22834
22854
22076
21935
23055
22937
22131
22499
22409
22093
22997
22676
22432
22862
21940
...

output:

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

input:

10000
90000
22335
22559
22984
21896
22583
22431
22657
22125
21936
22974
22409
22821
22541
22107
21971
23101
22918
22084
22632
22176
23257
21917
21693
23209
22740
22456
22058
22942
22180
22512
21880
23188
22268
22850
21988
22878
21830
23392
22466
22534
22088
22786
22012
22952
22366
22374
23393
21695
...

output:

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

input:

10000
90000
22219
22855
22683
21925
22942
22018
21769
23119
22153
23023
22626
22456
22759
22461
22902
22164
22088
22888
22899
22129
21913
22883
23833
21335
22454
22408
22245
22707
23276
21676
22715
22449
22901
22271
23148
21832
22189
22879
22469
22635
22225
22709
21886
22950
22632
22250
22133
22779
...

output:

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

input:

10000
90000
23064
21886
22056
22934
23256
21736
22425
22681
21668
23272
23841
20949
22358
22610
23048
21844
21853
22973
22629
22521
22744
22074
23041
22129
23111
21875
21619
23211
22884
22320
22521
22653
22262
22820
22467
22441
22117
22721
23542
21588
22457
22471
22538
22976
21859
23061
23039
22079
...

output:

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

input:

10000
90000
22019
22985
22686
22068
21810
23366
22341
22831
23276
21872
22433
22481
21874
23150
22332
22722
22987
22151
22691
22215
23198
21988
23370
21672
22532
22534
22323
22413
22342
22750
21965
23223
22543
22405
22514
22612
23243
21611
22709
22439
22123
22949
22853
22085
23016
21786
23051
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 #73:

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

input:

10000
89999
22375
22633

output:

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

result:

ok correct

Test #74:

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

input:

10000
89999
23296
21748

output:

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

input:

10000
89999
22267
22601

output:

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

input:

10000
89999
22385
22184
23516
21789
22482
22498

output:

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

input:

10000
89999
22423
22605

output:

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

result:

ok correct

Test #78:

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

input:

10000
89999
22418
22544

output:

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

result:

ok correct

Test #79:

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

input:

10000
89999
22610
22534

output:

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

result:

ok correct

Test #80:

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

input:

10000
89999
22018
23336

output:

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

result:

ok correct

Test #81:

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

input:

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

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

input:

10000
89999
23182
21574

output:

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

result:

ok correct

Test #83:

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

input:

10000
89999
22273
22845

output:

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

input:

10000
89999
22205
22889

output:

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

result:

ok correct

Test #85:

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

input:

10000
89999
22159
22705

output:

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

input:

10000
89999
22626
22221
21703
23281

output:

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

input:

10000
89999
22286
22814

output:

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

result:

ok correct

Test #88:

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

input:

10000
89999
21757
23258
21962
22998

output:

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

result:

ok correct

Test #89:

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

input:

10000
89999
22650
22268

output:

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

result:

ok correct

Test #90:

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

input:

10000
89999
22315
22754
22548
22380

output:

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

result:

ok correct

Test #91:

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

input:

10000
89999
21859
23288
22628
22420

output:

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

result:

ok correct

Test #92:

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

input:

10000
89999
22809
22182
21536
23324

output:

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

result:

ok correct

Test #93:

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

input:

10000
89999
22753
22354
22572
22428

output:

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

result:

ok correct

Test #94:

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

input:

10000
89999
22565
22728
21881
23233

output:

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

result:

ok correct

Test #95:

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

input:

10000
89999
22383
22617

output:

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

input:

10000
89999
22709
22406
22950
21909
21995
23044
22815
22119

output:

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

result:

ok correct

Test #97:

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

input:

10000
89999
22689
22222
22039
23046
23343
21350
22639
22444
23022
21996

output:

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

result:

ok correct

Test #98:

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

input:

10000
89999
22327
22377

output:

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

result:

ok correct

Test #99:

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

input:

10000
89999
23320
21711
23216
21792

output:

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

input:

10000
89999
23132
21743
21663
23144
22791
21902
22644
22171
21683
23023

output:

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

input:

10000
89999
22769
22233

output:

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

input:

10000
89999
23110
21783
22756
22428

output:

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

result:

ok correct

Test #103:

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

input:

10000
89999
21988
23100

output:

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

input:

10000
89999
22520
22472

output:

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

result:

ok correct

Test #105:

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

input:

10000
89999
22469
22576
22245
22731

output:

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

input:

10000
89999
23218
21909
22597
22329

output:

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

result:

ok correct

Test #107:

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

input:

10000
89999
22420
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 #108:

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

input:

10000
89999
23212
21843
22155
22653

output:

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

result:

ok correct

Test #109:

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

input:

10000
89999
22871
22191

output:

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

input:

10000
89999
22500
22336

output:

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

result:

ok correct

Test #111:

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

input:

10000
89999
22606
22251
22799
22580
23400
21558

output:

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

input:

10000
89999
22803
22346
23238
21603
23413
21726
22083
22695

output:

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

result:

ok correct

Test #113:

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

input:

10000
89999
22438
22696

output:

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

result:

ok correct

Test #114:

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

input:

10000
89999
22791
22210
22223
22907

output:

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

result:

ok correct

Test #115:

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

input:

10000
89999
22590
22476

output:

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

input:

10000
89999
22096
23039
22298
22721
23627
21299

output:

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

input:

10000
89999
22604
22228

output:

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

input:

10000
89999
22673
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 #119:

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

input:

10000
89999
22650
22177
21898
23223
22833
22291

output:

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

input:

10000
89999
22376
22873
22515
22405

output:

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

input:

10000
89999
23003
21846
22121
22963

output:

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

input:

10000
89999
22636
22120

output:

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

result:

ok correct