QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#225030#4205. Art Collectionshouzhiyuan100 ✓888ms3840kbC++14971b2023-10-23 21:16:202023-10-23 21:16:21

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 1ms
memory: 3712kb

input:

6
15
10
7
6
7
10

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 6 5 4 3 2 1

result:

ok correct

Test #2:

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

input:

6
9
4
3
6
11
12

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #3:

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

input:

6
9
4
3
6
11
12

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #4:

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

input:

6
9
4
3
6
11
12

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #5:

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

input:

3
1
3
1

output:

942318468 3 1 2 3
942318468 3 2 3 1
942318468 3 3 1 2
539883183 3 1 3 2

result:

ok correct

Test #6:

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

input:

6
0
5
8
9
8
5

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 1 2 3 4 5 6

result:

ok correct

Test #7:

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

input:

6
9
4
3
6
11
12

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 3 4 5 6 1
942318468 6 3 4 5 6 1 2
942318468 6 4 5 6 1 2 3
942318468 6 5 6 1 2 3 4
942318468 6 6 1 2 3 4 5
539883183 6 4 3 5 2 6 1

result:

ok correct

Subtask #2:

score: 15
Accepted

Test #8:

score: 15
Accepted
time: 1ms
memory: 3676kb

input:

40
394
407
374
383
370
405
396
377
408
423
442
439
422
449
452
413
450
419
398
405
368
379
384
405
434
399
398
393
368
353
326
315
316
333
358
381
374
407
378
417

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Test #9:

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

input:

40
394
407
374
383
370
405
396
377
408
423
442
439
422
449
452
413
450
419
398
405
368
379
384
405
434
399
398
393
368
353
326
315
316
333
358
381
374
407
378
417

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Test #10:

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

input:

40
394
407
374
383
370
405
396
377
408
423
442
439
422
449
452
413
450
419
398
405
368
379
384
405
434
399
398
393
368
353
326
315
316
333
358
381
374
407
378
417

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Test #11:

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

input:

40
394
407
374
383
370
405
396
377
408
423
442
439
422
449
452
413
450
419
398
405
368
379
384
405
434
399
398
393
368
353
326
315
316
333
358
381
374
407
378
417

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Test #12:

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

input:

40
780
741
704
669
636
605
576
549
524
501
480
461
444
429
416
405
396
389
384
381
380
381
384
389
396
405
416
429
444
461
480
501
524
549
576
605
636
669
704
741

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Test #13:

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

input:

40
0
39
76
111
144
175
204
231
256
279
300
319
336
351
364
375
384
391
396
399
400
399
396
391
384
375
364
351
336
319
300
279
256
231
204
175
144
111
76
39

output:

942318468 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
942318468 40 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1
942318468 40 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...

result:

ok correct

Subtask #3:

score: 15
Accepted

Test #14:

score: 15
Accepted
time: 6ms
memory: 3648kb

input:

250
31125
30876
30629
30384
30141
29900
29661
29424
29189
28956
28725
28496
28269
28044
27821
27600
27381
27164
26949
26736
26525
26316
26109
25904
25701
25500
25301
25104
24909
24716
24525
24336
24149
23964
23781
23600
23421
23244
23069
22896
22725
22556
22389
22224
22061
21900
21741
21584
21429
21...

output:

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

result:

ok correct

Test #15:

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

input:

250
15389
15490
15637
15652
15735
15674
15577
15582
15575
15626
15695
15902
16095
16332
16227
16398
16645
16480
16635
16634
16491
16378
16357
16478
16717
16616
16825
16634
16773
16914
16927
16678
16615
16458
16513
16486
16415
16658
16589
16362
16381
16568
16355
16244
16475
16354
16533
16492
16487
16...

output:

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

result:

ok correct

Test #16:

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

input:

250
0
249
496
741
984
1225
1464
1701
1936
2169
2400
2629
2856
3081
3304
3525
3744
3961
4176
4389
4600
4809
5016
5221
5424
5625
5824
6021
6216
6409
6600
6789
6976
7161
7344
7525
7704
7881
8056
8229
8400
8569
8736
8901
9064
9225
9384
9541
9696
9849
10000
10149
10296
10441
10584
10725
10864
11001
11136...

output:

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

result:

ok correct

Test #17:

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

input:

250
15389
15490
15637
15652
15735
15674
15577
15582
15575
15626
15695
15902
16095
16332
16227
16398
16645
16480
16635
16634
16491
16378
16357
16478
16717
16616
16825
16634
16773
16914
16927
16678
16615
16458
16513
16486
16415
16658
16589
16362
16381
16568
16355
16244
16475
16354
16533
16492
16487
16...

output:

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

result:

ok correct

Test #18:

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

input:

250
15389
15490
15637
15652
15735
15674
15577
15582
15575
15626
15695
15902
16095
16332
16227
16398
16645
16480
16635
16634
16491
16378
16357
16478
16717
16616
16825
16634
16773
16914
16927
16678
16615
16458
16513
16486
16415
16658
16589
16362
16381
16568
16355
16244
16475
16354
16533
16492
16487
16...

output:

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

result:

ok correct

Test #19:

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

input:

250
15389
15490
15637
15652
15735
15674
15577
15582
15575
15626
15695
15902
16095
16332
16227
16398
16645
16480
16635
16634
16491
16378
16357
16478
16717
16616
16825
16634
16773
16914
16927
16678
16615
16458
16513
16486
16415
16658
16589
16362
16381
16568
16355
16244
16475
16354
16533
16492
16487
16...

output:

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

result:

ok correct

Subtask #4:

score: 15
Accepted

Test #20:

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

input:

444
48125
47894
48235
48054
47879
48012
48109
48308
48041
48286
48549
48950
49337
49768
49483
49162
49603
49632
49283
49476
49527
49238
49411
49726
50159
50252
50655
50658
50219
50554
50145
50062
50193
50044
49719
49886
49481
49918
49677
49644
49309
49146
49127
48690
49115
49188
49561
49264
49453
49...

output:

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

result:

ok correct

Test #21:

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

input:

444
0
443
884
1323
1760
2195
2628
3059
3488
3915
4340
4763
5184
5603
6020
6435
6848
7259
7668
8075
8480
8883
9284
9683
10080
10475
10868
11259
11648
12035
12420
12803
13184
13563
13940
14315
14688
15059
15428
15795
16160
16523
16884
17243
17600
17955
18308
18659
19008
19355
19700
20043
20384
20723
2...

output:

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

result:

ok correct

Test #22:

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

input:

444
48125
47894
48235
48054
47879
48012
48109
48308
48041
48286
48549
48950
49337
49768
49483
49162
49603
49632
49283
49476
49527
49238
49411
49726
50159
50252
50655
50658
50219
50554
50145
50062
50193
50044
49719
49886
49481
49918
49677
49644
49309
49146
49127
48690
49115
49188
49561
49264
49453
49...

output:

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

result:

ok correct

Test #23:

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

input:

444
48125
47894
48235
48054
47879
48012
48109
48308
48041
48286
48549
48950
49337
49768
49483
49162
49603
49632
49283
49476
49527
49238
49411
49726
50159
50252
50655
50658
50219
50554
50145
50062
50193
50044
49719
49886
49481
49918
49677
49644
49309
49146
49127
48690
49115
49188
49561
49264
49453
49...

output:

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

result:

ok correct

Test #24:

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

input:

444
98346
97903
97462
97023
96586
96151
95718
95287
94858
94431
94006
93583
93162
92743
92326
91911
91498
91087
90678
90271
89866
89463
89062
88663
88266
87871
87478
87087
86698
86311
85926
85543
85162
84783
84406
84031
83658
83287
82918
82551
82186
81823
81462
81103
80746
80391
80038
79687
79338
78...

output:

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

result:

ok correct

Test #25:

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

input:

444
48125
47894
48235
48054
47879
48012
48109
48308
48041
48286
48549
48950
49337
49768
49483
49162
49603
49632
49283
49476
49527
49238
49411
49726
50159
50252
50655
50658
50219
50554
50145
50062
50193
50044
49719
49886
49481
49918
49677
49644
49309
49146
49127
48690
49115
49188
49561
49264
49453
49...

output:

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

result:

ok correct

Subtask #5:

score: 20
Accepted

Test #26:

score: 20
Accepted
time: 173ms
memory: 3696kb

input:

2000
984031
983364
984081
984450
983899
984644
984639
984296
985585
986558
984593
986550
985723
985812
984617
985852
987849
987706
987737
988790
988439
988798
988387
986870
988859
989058
990075
991634
990167
991278
992371
990744
989999
991406
992277
990910
991625
991166
989389
990076
991297
989612
9...

output:

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

result:

ok correct

Test #27:

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

input:

2000
984031
983364
984081
984450
983899
984644
984639
984296
985585
986558
984593
986550
985723
985812
984617
985852
987849
987706
987737
988790
988439
988798
988387
986870
988859
989058
990075
991634
990167
991278
992371
990744
989999
991406
992277
990910
991625
991166
989389
990076
991297
989612
9...

output:

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

result:

ok correct

Test #28:

score: 0
Accepted
time: 185ms
memory: 3708kb

input:

2000
0
1999
3996
5991
7984
9975
11964
13951
15936
17919
19900
21879
23856
25831
27804
29775
31744
33711
35676
37639
39600
41559
43516
45471
47424
49375
51324
53271
55216
57159
59100
61039
62976
64911
66844
68775
70704
72631
74556
76479
78400
80319
82236
84151
86064
87975
89884
91791
93696
95599
9750...

output:

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

result:

ok correct

Test #29:

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

input:

2000
1999000
1997001
1995004
1993009
1991016
1989025
1987036
1985049
1983064
1981081
1979100
1977121
1975144
1973169
1971196
1969225
1967256
1965289
1963324
1961361
1959400
1957441
1955484
1953529
1951576
1949625
1947676
1945729
1943784
1941841
1939900
1937961
1936024
1934089
1932156
1930225
1928296...

output:

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

result:

ok correct

Test #30:

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

input:

2000
984031
983364
984081
984450
983899
984644
984639
984296
985585
986558
984593
986550
985723
985812
984617
985852
987849
987706
987737
988790
988439
988798
988387
986870
988859
989058
990075
991634
990167
991278
992371
990744
989999
991406
992277
990910
991625
991166
989389
990076
991297
989612
9...

output:

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

result:

ok correct

Test #31:

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

input:

2000
984031
983364
984081
984450
983899
984644
984639
984296
985585
986558
984593
986550
985723
985812
984617
985852
987849
987706
987737
988790
988439
988798
988387
986870
988859
989058
990075
991634
990167
991278
992371
990744
989999
991406
992277
990910
991625
991166
989389
990076
991297
989612
9...

output:

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

result:

ok correct

Subtask #6:

score: 30
Accepted

Test #32:

score: 30
Accepted
time: 864ms
memory: 3748kb

input:

4000
3954555
3955888
3951985
3950268
3951717
3954462
3950529
3947604
3947247
3950220
3950255
3946766
3947939
3944538
3945343
3942892
3946889
3948746
3950777
3953830
3950433
3948986
3945529
3945400
3941575
3943774
3946791
3950350
3950883
3953994
3952051
3952424
3953679
3957086
3953357
3953990
3953883...

output:

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

result:

ok correct

Test #33:

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

input:

4000
0
3999
7996
11991
15984
19975
23964
27951
31936
35919
39900
43879
47856
51831
55804
59775
63744
67711
71676
75639
79600
83559
87516
91471
95424
99375
103324
107271
111216
115159
119100
123039
126976
130911
134844
138775
142704
146631
150556
154479
158400
162319
166236
170151
174064
177975
18188...

output:

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

result:

ok correct

Test #34:

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

input:

4000
3954555
3955888
3951985
3950268
3951717
3954462
3950529
3947604
3947247
3950220
3950255
3946766
3947939
3944538
3945343
3942892
3946889
3948746
3950777
3953830
3950433
3948986
3945529
3945400
3941575
3943774
3946791
3950350
3950883
3953994
3952051
3952424
3953679
3957086
3953357
3953990
3953883...

output:

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

result:

ok correct

Test #35:

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

input:

4000
7998000
7994001
7990004
7986009
7982016
7978025
7974036
7970049
7966064
7962081
7958100
7954121
7950144
7946169
7942196
7938225
7934256
7930289
7926324
7922361
7918400
7914441
7910484
7906529
7902576
7898625
7894676
7890729
7886784
7882841
7878900
7874961
7871024
7867089
7863156
7859225
7855296...

output:

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

result:

ok correct

Test #36:

score: 0
Accepted
time: 884ms
memory: 3840kb

input:

4000
3954555
3955888
3951985
3950268
3951717
3954462
3950529
3947604
3947247
3950220
3950255
3946766
3947939
3944538
3945343
3942892
3946889
3948746
3950777
3953830
3950433
3948986
3945529
3945400
3941575
3943774
3946791
3950350
3950883
3953994
3952051
3952424
3953679
3957086
3953357
3953990
3953883...

output:

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

result:

ok correct

Test #37:

score: 0
Accepted
time: 884ms
memory: 3712kb

input:

4000
3954555
3955888
3951985
3950268
3951717
3954462
3950529
3947604
3947247
3950220
3950255
3946766
3947939
3944538
3945343
3942892
3946889
3948746
3950777
3953830
3950433
3948986
3945529
3945400
3941575
3943774
3946791
3950350
3950883
3953994
3952051
3952424
3953679
3957086
3953357
3953990
3953883...

output:

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

result:

ok correct