QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#470493#1834. Eulerian?GenshinImpactsFaultAC ✓24ms3792kbC++14825b2024-07-10 14:21:262024-07-10 14:21:26

Judging History

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

  • [2024-07-10 14:21:26]
  • 评测
  • 测评结果:AC
  • 用时:24ms
  • 内存:3792kb
  • [2024-07-10 14:21:26]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 500010;
mt19937 rnd(chrono::system_clock::now().time_since_epoch().count());
int n, m;
int a[N];

int main() {
	ios::sync_with_stdio(0); cin.tie(nullptr);
	cin >> n;
	for(int i = 1; i <= n; i++) a[i] = i;
	cout << "? " << n;
	for(int i = 1; i <= n; i++) cout << " " << i;
	cout << endl;
	cin >> m;
	for(int i = 1; i <= 25; i++) {
		shuffle(a + 1, a + n + 1, rnd);
		int x, y;
		cout << "? " << n / 2;
		for(int j = 1; j <= n / 2; j++) cout << " " << a[j];
		cout << endl;
		cin >> x;
		cout << "? " << n - n / 2;
		for(int j = n / 2 + 1; j <= n; j++) cout << " " << a[j];
		cout << endl;
		cin >> y;
		if((m - x - y) % 2) {
			cout << "! NO" << endl;
			return 0;
		}
	}
	cout << "! YES" << endl;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2
0
0
0
1

output:

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

result:

ok correct

Test #2:

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

input:

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

output:

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

result:

ok correct

Test #3:

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

input:

4
3
0
0

output:

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

result:

ok correct

Test #4:

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

input:

4
4
1
0

output:

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

result:

ok correct

Test #5:

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

input:

4
5
1
1

output:

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

result:

ok correct

Test #6:

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

input:

10
10
2
3

output:

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

result:

ok correct

Test #7:

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

input:

10
11
3
2
3
3

output:

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

result:

ok correct

Test #8:

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

input:

100
100
28
21

output:

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

result:

ok correct

Test #9:

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

input:

100
256
58
67

output:

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

result:

ok correct

Test #10:

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

input:

1000
1488
353
390

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

input:

1000
11488
2875
2824

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

input:

10000
100000
24872
25284
24930
24999

output:

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

input:

10000
99999
24927
24716
24959
25150
25069
24840
24827
24901

output:

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

input:

10
10
2
2
0
0
1
1
2
2
1
1
2
2
2
2
3
3
3
3
3
3
2
2
2
2
3
3
2
2
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
3
3

output:

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

result:

ok correct

Test #15:

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

input:

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

output:

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

result:

ok correct

Test #16:

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

input:

1000
1000
243
243
241
241
245
245
241
241
250
250
247
247
245
245
248
248
247
247
255
255
247
247
262
262
255
255
233
233
239
239
241
241
247
247
239
239
248
248
247
247
249
249
254
254
246
246
267
267
255
255

output:

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

result:

ok correct

Test #17:

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

input:

10000
10000
2482
2482
2514
2514
2513
2513
2477
2477
2508
2508
2497
2497
2508
2508
2485
2485
2490
2490
2453
2453
2480
2480
2519
2519
2499
2499
2500
2500
2494
2494
2464
2464
2482
2482
2451
2451
2478
2478
2521
2521
2546
2546
2489
2489
2480
2480
2484
2484
2497
2497

output:

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

result:

ok correct

Test #18:

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

input:

10000
10000
2529
2529
2469
2469
2497
2497
2514
2514
2480
2480
2511
2511
2459
2459
2464
2464
2547
2547
2513
2513
2505
2505
2539
2539
2541
2541
2497
2497
2483
2483
2528
2528
2462
2462
2495
2495
2536
2536
2502
2502
2462
2462
2476
2476
2533
2533
2511
2511
2471
2471

output:

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

input:

10000
10000
2484
2484
2418
2418
2506
2506
2518
2518
2494
2494
2501
2501
2503
2503
2504
2504
2503
2503
2508
2508
2503
2503
2503
2503
2503
2503
2478
2478
2505
2505
2475
2475
2461
2461
2490
2490
2508
2508
2522
2522
2500
2500
2470
2470
2514
2514
2499
2499
2470
2470

output:

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

result:

ok correct

Test #20:

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

input:

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

output:

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

result:

ok correct

Test #21:

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

input:

1000
2000
532
486
534
506
513
495
485
527
508
490
513
475
501
527
524
506
499
503
506
520
500
524
515
491
510
492
498
518
495
475
513
515
492
488
506
518
492
488
491
485
486
508
495
501
486
492
528
446
489
493

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

input:

1000
11000
2739
2805
2748
2762
2755
2815
2789
2695
2641
2813
2773
2757
2749
2763
2779
2709
2755
2697
2758
2754
2792
2694
2797
2711
2838
2698
2791
2727
2851
2669
2752
2750
2785
2791
2875
2671
2836
2678
2807
2769
2726
2786
2845
2725
2762
2824
2685
2715
2764
2748

output:

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

result:

ok correct

Test #23:

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

input:

10000
90000
22334
22470
22609
22675
22391
22683
22432
22508
22350
22884
22376
22538
22497
22507
22703
22487
22476
22532
22495
22411
22471
22563
22337
22235
22603
22435
22320
22804
22538
22372
22506
22138
22509
22573
22479
22561
22352
22592
22491
22599
22348
22256
22572
22480
22391
22233
22680
22578
...

output:

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

input:

10000
90000
22290
22598
22545
22217
22326
22624
22398
22514
22426
22416
22497
22633
22770
22354
22460
22580
22578
22508
22441
22549
22496
22488
22712
22380
22390
22372
22144
22604
22573
22305
22503
22567
22478
22492
22350
22738
22506
22564
22431
22559
22325
22435
22484
22556
22761
22221
22645
22297
...

output:

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

result:

ok correct

Test #25:

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

input:

10000
90000
22382
22714
22216
22574
22220
22410
22340
22590
22670
22368
22580
22352
22249
22531
22578
22328
22357
22533
22665
22537
22178
22462
22678
22306
22510
22350
22755
22213
22418
22570
22390
22678
22725
22283
22531
22535
22410
22444
22710
22314
22601
22311
22711
22375
22465
22673
22621
22263
...

output:

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

input:

10000
90000
22545
22395
22777
22349
22566
22502
22723
22389
22551
22401
22445
22491
22431
22501
22340
22396
22441
22667
22499
22329
22492
22388
22545
22467
22328
22556
22549
22595
22401
22223
22750
22458
22527
22229
22303
22477
22563
22561
22222
22658
22371
22597
22592
22320
22736
22432
22349
22641
...

output:

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

input:

10000
90000
22470
22708
22444
22628
22434
22850
22514
22626
22571
22489
22316
22592
22453
22737
22313
22707
22631
22523
22583
22401
22868
22426
22434
22502
22664
22572
22577
22555
22620
22418
22415
22737
22463
22409
22661
22401
22330
22324
22491
22725
22540
22428
22422
22734
22514
22466
22474
22718
...

output:

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

input:

10000
90000
22401
22549
22509
22193
22630
22482
22337
22645
22372
22540
22407
22549
22552
22324
22550
22388
22442
22530
22287
22763
22692
22238
22590
22538
22485
22455
22497
22767
22353
22761
22734
22510
22607
22263
22523
22149
22616
22508
22369
22449
22081
22877
22420
22410
22748
22254
22418
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 #29:

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

input:

10000
90000
22316
22556
22556
22616
22214
22558
22833
22353
22627
22435
22342
22610
22516
22528
22572
22508
22475
22127
22508
22654
22575
22349
22492
22348
22918
22474
22821
22473
22653
22509
22645
22411
22443
22665
22380
22572
22652
22556
22930
22112
22602
22762
22480
22528
22763
22583
22576
22520
...

output:

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

result:

ok correct

Test #30:

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

input:

10000
90000
22721
22453
22260
22628
22531
22503
22245
22515
22492
22540
22657
22231
22577
22347
22565
22335
22337
22583
22640
22320
22312
22602
22349
22665
22627
22413
22416
22494
22445
22519
22466
22460
22409
22471
22507
22381
22780
22344
22590
22328
22250
22620
22612
22292
22613
22421
22523
22379
...

output:

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

input:

10000
90000
22519
22525
22510
22292
22536
22492
22536
22710
22748
22232
22545
22421
22405
22683
22336
22290
22688
22428
22239
22865
22480
22464
22677
22363
22309
22487
22325
22407
22517
22613
22639
22133
22617
22523
22370
22600
22695
22307
22298
22532
22308
22484
22479
22533
22487
22621
22649
22869
...

output:

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

input:

10000
90000
22456
22634
22407
22413
22491
22509
22298
22568
22442
22564
22645
22035
22320
22494
22659
22509
22368
22658
22424
22450
22411
22767
22462
22550
22304
22534
22769
22179
22462
22438
22092
22644
22473
22275
22531
22663
22362
22736
22621
22437
22588
22396
22388
22526
22504
22476
22486
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 #33:

score: 0
Accepted
time: 14ms
memory: 3740kb

input:

10000
90000
22803
22529
22499
22457
22667
22719
22441
22597
22437
22579
22664
22442
22626
22564
22725
22299
22580
22688
22557
22593
22416
22614
22917
22187
22594
22404
22417
22757
22524
22350
22499
22517
22332
22562
22452
22704
22605
22677
22345
22897
22290
22616
22401
22909
22696
22290
22290
22708
...

output:

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

result:

ok correct

Test #34:

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

input:

10000
90000
22892
22364
22244
22634
22580
22434
22413
22319
22148
22488
22615
22359
22441
22563
22405
22555
22421
22569
22418
22616
22403
22571
22464
22428
22718
22388
22469
22445
22478
22230
22484
22496
22546
22360
22497
22595
22317
22737
22376
22664
22587
22347
22367
22715
22641
22391
22421
22467
...

output:

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

input:

10000
90000
22419
22521
22435
22277
22435
22669
22580
22624
22481
22763
22572
22398
22611
22455
22613
22447
22545
22543
22688
22392
22608
22260
22264
22706
22518
22510
22621
22329
22660
22450
22443
22487
22457
22611
22425
22423
22531
22673
22256
22536
22378
22334
22442
22488
22299
22673
22201
22745
...

output:

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

input:

10000
90000
22497
22353
22884
22228
22399
22689
22409
22671
22453
22439
22711
22417
22607
22543
22242
22594
22355
22309
22378
22524
22529
22359
22395
22537
22544
22646
22272
22584
22624
22610
22633
22703
22591
22387
22708
22368
22571
22489
22457
22545
22695
22381
22541
22559
22552
22526
22511
22575
...

output:

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

input:

10000
90000
22524
22522
22596
22418
22405
22629
22746
22464
22353
22537
22867
22319
22265
22541
22513
22635
22204
22420
22501
22387
22309
22681
22580
22522
22822
22422
22510
22300
22771
22389
22391
22731
22341
22685
22348
22512
22402
22658
22440
22730
22837
22609
22566
22380
22591
22265
22598
22440
...

output:

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

input:

10000
90000
22367
22773
22510
22638
22300
22720
22684
22360
22614
22496
22608
22682
22586
22454
22566
22342
22371
22509
22441
22757
22694
22172
22462
22456
22482
22514
22262
22616
22403
22527
22408
22488
22658
22362
22557
22371
22336
22704
22543
22451
22887
22013
22396
22420
22471
22573
22483
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 #39:

score: 0
Accepted
time: 18ms
memory: 3624kb

input:

10000
90000
22574
22306
22554
22356
22463
22353
22517
22411
22560
22268
22514
22436
22450
22384
22850
22310
22584
22274
22764
22480
22646
22538
22758
22286
22620
22236
22303
22667
22617
22323
22352
22772
22463
22489
22596
22324
22201
22609
22499
22421
22328
22690
22484
22680
22722
22408
22382
22716
...

output:

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

input:

10000
90000
22470
22492
22946
22150
22417
22677
22642
22500
22221
22563
22537
22269
22666
22466
22315
22365
22370
22562
22519
22365
22705
22407
22426
22696
22628
22416
22650
22588
22214
22624
22444
22612
22780
22108
22328
22542
22473
22381
22401
22461
22430
22430
22269
22499
22404
22802
22357
22535
...

output:

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

result:

ok correct

Test #41:

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

input:

10000
90000
22481
22515
22326
22620
22399
22661
22566
22486
22521
22553
22666
22350
22493
22477
22675
22513
22367
22449
22628
22410
22621
22587
22249
22707
22297
22619
22412
22436
22752
22102
22552
22686
22266
22678
22496
22404
22377
22461
22408
22538
22545
22427
22551
22357
22658
22604
22383
22529
...

output:

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

result:

ok correct

Test #42:

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

input:

10000
90000
22463
22453
22249
22389
22398
22456
22765
22269
22568
22394
22449
22699
22568
22530
22698
22438
22254
22568
22556
22436
22475
22421
22429
22361
22442
22354
22583
22393
22540
22516
22297
22581
22329
22577
22536
22496
22277
22545
22331
22659
22438
22546
22674
22654
22592
22306
22199
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 #43:

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

input:

10000
90000
22650
22218
22302
22612
22354
22504
22333
22735
22303
22705
22441
22493
22408
22446
22347
22585
22546
22566
22521
22555
22566
22268
22704
22218
22233
22597
22356
22694
22551
22705
22219
22705
22857
22087
22491
22361
22498
22680
22621
22665
22550
22714
22393
22655
22372
22768
22272
22414
...

output:

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

input:

10000
90000
22539
22499
22632
22332
22466
22642
22658
22390
22678
22512
22319
22595
22584
22344
22588
22544
22479
22603
22386
22666
22480
22460
22580
22738
22637
22251
22717
22249
22566
22402
22631
22329
22415
22341
22312
22442
22792
22290
22379
22545
22279
22403
22366
22562
22301
22543
22437
22517
...

output:

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

input:

10000
90000
22753
22233
22518
22314
22549
22551
22210
22468
22703
22733
22755
22393
22445
22711
22456
22632
22448
22496
22451
22475
22446
22264
22518
22412
22630
22450
22359
22597
22301
22611
22492
22494
22402
22648
22575
22527
22483
22481
22464
22498
22450
22574
22442
22690
22636
22534
22465
22479
...

output:

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

input:

10000
90000
22619
22549
22366
22606
22708
22604
22291
22625
22401
22495
22211
22489
22422
22566
22745
22241
22371
22473
22250
22734
22401
22557
22473
22445
22683
22353
22223
22625
22581
22857
22560
22598
22251
22597
22619
22273
22443
22673
22473
22711
22685
22309
22672
22486
22638
22332
22201
22751
...

output:

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

input:

10000
90000
22543
22489
22507
22485
22557
22343
22359
22537
22432
22322
22837
22401
22514
22532
22606
22296
22407
22717
22639
22505
22364
22628
22478
22528
22312
22450
22282
22418
22748
22268
22422
22490
22487
22373
22591
22371
22585
22365
22726
22092
22581
22369
22642
22420
22445
22609
22572
22442
...

output:

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

input:

10000
90000
22410
22448
22306
22750
22271
22513
22460
22340
22429
22533
22666
22476
22238
22618
22460
22530
22539
22429
22534
22648
22581
22585
22840
22400
22534
22712
22670
22422
22504
22478
22676
22568
22635
22647
22592
22468
22696
22364
22344
22716
22435
22461
22527
22729
22511
22425
22532
22548
...

output:

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

input:

10000
90000
22313
22733
22575
22547
22324
22400
22161
22491
22501
22519
22479
22551
22457
22615
22449
22729
22615
22263
22878
22356
22522
22204
22350
22454
22657
22365
22584
22530
22455
22281
22381
22573
22627
22219
22554
22672
22375
22695
22377
22349
22573
22101
22546
22380
22537
22587
22292
22632
...

output:

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

result:

ok correct

Test #50:

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

input:

10000
90000
22405
22581
22606
22628
22476
22538
22725
22467
22376
22560
22545
22285
22508
22384
22567
22311
22483
22677
22574
22650
22209
22635
22453
22607
22521
22561
22434
22666
22649
22313
22645
22395
22642
22332
22689
22461
22631
22439
22409
22547
22809
22007
22574
22592
22507
22227
22548
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 #51:

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

input:

10000
90000
22476
22758
22401
22487
22592
22478
22601
22405
22375
22499
22653
22627
22600
22304
22424
22528
22649
22335
22436
22490
22624
22466
22320
22548
22429
22403
22561
22593
22549
22699
22583
22581
22592
22268
22482
22624
22395
22377
22422
22558
22500
22628
22676
22568
22331
22635
22737
22311
...

output:

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

input:

10000
90000
22899
22365
22400
22762
22204
22824
22555
22403
22672
22396
22429
22493
22245
22595
22396
22540
22535
22387
22695
22273
22557
22439
22220
22560
22383
22633
22619
22137
22635
22215
22212
22592
22328
22718
22501
22269
22467
22405
22421
22509
22201
22693
22635
22647
22437
22565
22436
22610
...

output:

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

result:

ok correct

Test #53:

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

input:

10000
90000
22388
22354
22455
22463
22388
22516
22617
22561
22277
22393
22686
22708
22827
22573
22345
22613
22748
22438
22625
22427
22706
22212
22551
22577
22476
22488
22262
22558
22524
22704
22741
22491
22718
22386
22502
22370
22500
22582
22375
22595
22341
22515
22446
22432
22402
22560
22672
22480
...

output:

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

input:

10000
90000
22556
22510
22807
22017
22494
22604
22425
22627
22390
22560
22543
22481
22431
22513
22217
22599
22582
22368
22769
22301
22471
22533
22602
22554
22523
22393
22357
22595
22391
22593
22735
22285
22650
22482
22381
22609
22591
22459
22870
22592
22546
22442
22550
22492
22729
22523
22553
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 #55:

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

input:

10000
90000
22205
22641
22681
22697
22474
22700
22508
22350
22516
22684
22589
22167
22653
22479
22476
22662
22716
22284
22444
22386
22556
22404
22678
22448
22600
22388
22695
22525
22583
22377
22314
22668
22326
22622
22339
22639
22694
22160
22392
22338
22557
22339
22293
22545
22591
22783
22689
22107
...

output:

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

input:

10000
90000
22460
22538
22547
22665
22375
22293
22562
22462
22764
22520
22316
22804
22388
22562
22559
22509
22379
22551
22470
22274
22477
22451
22411
22411
22295
22525
22605
22303
22337
22479
22501
22457
22505
22427
22309
22489
22344
22574
22467
22455
22485
22629
22461
22769
22400
22544
22789
22423
...

output:

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

input:

10000
90000
22513
22645
22693
22465
22610
22446
22442
22362
22811
22249
22308
22618
22423
22589
22523
22361
22320
22592
22695
22263
22594
22478
22490
22316
22399
22533
22594
22280
22449
22295
22606
22566
22443
22545
22621
22523
22503
22543
22295
22649
22490
22302
22573
22515
22676
22380
22535
22453
...

output:

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

result:

ok correct

Test #58:

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

input:

10000
90000
22530
22662
22191
22621
22557
22449
22349
22625
22641
22521
22288
22662
22327
22685
22287
22589
22292
22712
22584
22384
22376
22782
22580
22522
22629
22421
22452
22384
22818
22134
22517
22405
22596
22428
22349
22647
22453
22789
22648
22126
22538
22392
22236
22676
22508
22394
22105
22877
...

output:

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

input:

10000
90000
22395
22701
22524
22694
22369
22383
22395
22653
22281
22503
22482
22470
22477
22419
22522
22430
22715
22371
22546
22262
22595
22445
22635
22319
22433
22735
22422
22432
22573
22509
22330
22642
22662
22276
22650
22474
22540
22510
22270
22602
22639
22455
22623
22287
22608
22392
22574
22578
...

output:

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

input:

10000
90000
22328
22610
22739
22315
22587
22435
22416
22436
22567
22677
22857
22399
22673
22541
22662
22216
22626
22728
22373
22373
22493
22605
22515
22567
22397
22369
22381
22437
22415
22595
22563
22417
22919
22097
22155
22829
22578
22456
22771
22445
22450
22566
22377
22673
22263
22511
22578
22614
...

output:

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

input:

10000
90000
22643
22321
22596
22192
22651
22473
22501
22277
22464
22326
22541
22545
22373
22593
22445
22551
22478
22522
22413
22515
22804
22346
22711
22453
22671
22563
22654
22518
22206
22536
22561
22239
22328
22818
22467
22483
22275
22519
22631
22473
22384
22410
22666
22342
22587
22357
22563
22403
...

output:

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

result:

ok correct

Test #62:

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

input:

10000
90000
22434
22682
22421
22431
22431
22613
22372
22658
22615
22387
22525
22361
22521
22535
22292
22658
22710
22398
22597
22621
22765
22119
22649
22177
22816
22136
22618
22384
22513
22643
22309
22503
22336
22340
22651
22469
22553
22495
22329
22511
22653
22493
22450
22524
22449
22559
22490
22562
...

output:

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

input:

10000
90000
22279
22633
22670
22508
22486
22472
22289
22781
22485
22623
22297
22725
22336
22712
22311
22517
22472
22566
22610
22398
22553
22449
22451
22363
22325
22643
22717
22633
22368
22712
22605
22491
22385
22779
22479
22639
22390
22334
22491
22491
22605
22469
22201
22955
22428
22734
22613
22479
...

output:

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

input:

10000
90000
22638
22488
22323
22559
22503
22737
22288
22554
22564
22248
22910
22250
22423
22539
22729
22349
22423
22557
22283
22635
22630
22490
22393
22403
22432
22600
22254
22380
22446
22542
22435
22565
22625
22255
22532
22206
22510
22492
22627
22437
22399
22551
22229
22657
22757
22351
22695
22611
...

output:

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

result:

ok correct

Test #65:

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

input:

10000
90000
22498
22502
22331
22525
22738
22456
22513
22517
22494
22558
22620
22228
22178
22538
22284
22546
22498
22384
22396
22602
22507
22415
22535
22433
22715
22483
22521
22401
22355
22753
22582
22274
22730
22148
22726
22220
22366
22530
22433
22561
22715
22133
22426
22744
22326
22574
22649
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 #66:

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

input:

10000
90000
22548
22362
22688
22406
22703
22255
22769
22593
22694
22382
22424
22554
22577
22503
22646
22534
22401
22761
22351
22367
22564
22360
22509
22469
22210
22688
22643
22681
22460
22568
22400
22826
22625
22637
22378
22436
22592
22606
22331
22415
22432
22400
22531
22335
22596
22312
22280
22546
...

output:

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

input:

10000
90000
22356
22734
22188
22702
22556
22272
22498
22408
22232
22338
22549
22289
22654
22456
22303
22723
22405
22589
22392
22718
22247
22639
22465
22571
22334
22274
22597
22493
22563
22603
22330
22792
22294
22658
22731
22151
22572
22644
22338
22580
22746
22354
22818
22272
22513
22461
22626
22656
...

output:

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

input:

10000
90000
22515
22347
22305
22617
22564
22368
22315
22531
22280
22692
22541
22597
22775
22303
22340
22684
22246
22698
22396
22582
22337
22777
22523
22485
22244
22658
22665
22261
22392
22642
22481
22283
22479
22503
22278
22506
22568
22576
22359
22547
22550
22358
22183
22767
22232
22536
22584
22222
...

output:

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

input:

10000
90000
22495
22439
22543
22353
22356
22376
22525
22231
22672
22446
22953
22047
22697
22319
22361
22645
22384
22542
22619
22441
22606
22352
22523
22353
22620
22636
22580
22510
22578
22274
22320
22656
22354
22452
22254
22670
22405
22539
22371
22635
22486
22636
22639
22229
22518
22244
22308
22760
...

output:

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

input:

10000
90000
22639
22419
22651
22355
22564
22332
22702
22460
22753
22411
22089
22977
22085
22717
22499
22501
22536
22394
22445
22385
22278
22384
22553
22421
22636
22392
22650
22336
22515
22305
22439
22413
22539
22495
22542
22518
22366
22504
22377
22665
22628
22482
22707
22223
22292
22552
22673
22317
...

output:

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

input:

10000
90000
22570
22440
22362
22422
22641
22265
22450
22548
22528
22398
22344
22558
22384
22546
22690
22430
22510
22570
22287
22489
22447
22647
22603
22563
22388
22438
22436
22606
22646
22440
22493
22585
22347
22761
22603
22353
22637
22383
22394
22594
22546
22514
22536
22534
22793
22257
22407
22625
...

output:

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

result:

ok correct

Test #72:

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

input:

10000
90000
22434
22666
22791
22519
22449
22469
22361
22377
22437
22589
22736
22068
22664
22590
22242
22524
22824
22202
22645
22543
22648
22282
22676
22684
22365
22449
22265
22755
22635
22429
22490
22588
22695
22317
22623
22345
22700
22554
22638
22368
22469
22411
22544
22682
22512
22654
22431
22577
...

output:

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

result:

ok correct

Test #73:

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

input:

10000
89999
22438
22595
22216
22513
22206
22756

output:

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

input:

10000
89999
22453
22366
22540
22666

output:

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

result:

ok correct

Test #75:

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

input:

10000
89999
22344
22841
22034
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 #76:

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

input:

10000
89999
22596
22592

output:

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

input:

10000
89999
22563
22622
22420
22455
22311
22414
22562
22484

output:

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

input:

10000
89999
22387
22660
22336
22644

output:

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

result:

ok correct

Test #79:

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

input:

10000
89999
22297
22567

output:

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

result:

ok correct

Test #80:

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

input:

10000
89999
22498
22403
22484
22371
22327
22803

output:

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

input:

10000
89999
22476
22622

output:

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

input:

10000
89999
22502
22437
22552
22328

output:

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

result:

ok correct

Test #83:

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

input:

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

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

input:

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

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

input:

10000
89999
22259
22460
22316
22857
22223
22934
22579
22487

output:

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

input:

10000
89999
22660
22285
22475
22392
22520
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 #87:

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

input:

10000
89999
22868
22252

output:

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

input:

10000
89999
22580
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 #89:

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

input:

10000
89999
22702
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 #90:

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

input:

10000
89999
22457
22592
22489
22501

output:

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

input:

10000
89999
22676
22556

output:

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

input:

10000
89999
22254
22652

output:

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

result:

ok correct

Test #93:

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

input:

10000
89999
22835
22376
22291
22574
22378
22523
22410
22626

output:

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

result:

ok correct

Test #94:

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

input:

10000
89999
22478
22560

output:

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

input:

10000
89999
22549
22626
22522
22650

output:

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

input:

10000
89999
22440
22576

output:

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

input:

10000
89999
22353
22625

output:

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

result:

ok correct

Test #98:

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

input:

10000
89999
22402
22413
22352
22443
22878
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 #99:

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

input:

10000
89999
22382
22656

output:

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

input:

10000
89999
22516
22499
22418
22514

output:

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

result:

ok correct

Test #101:

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

input:

10000
89999
22461
22360
22516
22508

output:

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

input:

10000
89999
22846
22412

output:

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

input:

10000
89999
22342
22563
22561
22553

output:

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

result:

ok correct

Test #104:

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

input:

10000
89999
22322
22396

output:

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

result:

ok correct

Test #105:

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

input:

10000
89999
22692
22415
22458
22693
22475
22274
22272
22387
22744
22413
22742
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 #106:

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

input:

10000
89999
22433
22387

output:

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

input:

10000
89999
22426
22491
22499
22622
22553
22464
22638
22562

output:

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

result:

ok correct

Test #108:

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

input:

10000
89999
22404
22601
22389
22644
22549
22622
22496
22700

output:

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

result:

ok correct

Test #109:

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

input:

10000
89999
22286
22478

output:

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

input:

10000
89999
22439
22604
22639
22634
22643
22367

output:

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

result:

ok correct

Test #111:

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

input:

10000
89999
22805
22422
22642
22519
22463
22399

output:

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

input:

10000
89999
22236
22614

output:

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

input:

10000
89999
22305
22446
22220
22613
22624
22411
22538
22515
22691
22396
22231
22479

output:

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

input:

10000
89999
22315
22500
22482
22711
22683
22476
22799
22287

output:

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

input:

10000
89999
22636
22424

output:

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

input:

10000
89999
22285
22509

output:

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

input:

10000
89999
22553
22413

output:

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

result:

ok correct

Test #118:

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

input:

10000
89999
22393
22802
22741
22430
22542
22267
22342
22495
22451
22527

output:

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

input:

10000
89999
22594
22578

output:

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

result:

ok correct

Test #120:

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

input:

10000
89999
22806
22235
22541
22342
22481
22517

output:

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

input:

10000
89999
22752
22532

output:

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

result:

ok correct

Test #122:

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

input:

10000
89999
22424
22432

output:

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

result:

ok correct