QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#358591#4205. Art CollectionsDec0Dedd#70 1251ms4128kbC++14558b2024-03-19 21:17:542024-07-04 03:30:13

详细

Subtask #1:

score: 5
Accepted

Test #1:

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

input:

6
15
10
14
11
13
12
12
13
11
14
10
15

output:

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

result:

ok correct

Test #2:

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

input:

6
9
4
8
7
7
10
6
11
9
10
12
9

output:

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

result:

ok correct

Test #3:

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

input:

6
9
4
8
7
7
10
6
11
9
10
12
9

output:

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

result:

ok correct

Test #4:

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

input:

6
9
4
8
7
7
10
6
11
9
10
12
9

output:

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

result:

ok correct

Test #5:

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

input:

3
1
3
2
0
1
1

output:

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

result:

ok correct

Test #6:

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

input:

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

output:

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

result:

ok correct

Test #7:

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

input:

6
9
4
8
7
7
10
6
11
9
10
12
9

output:

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

result:

ok correct

Subtask #2:

score: 15
Accepted

Test #8:

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

input:

40
394
407
395
362
394
403
395
382
390
425
395
386
398
379
389
420
390
405
389
408
396
393
401
384
386
413
395
398
408
369
379
416
406
375
405
384
392
399
411
374
388
399
393
398
380
401
377
406
414
379
397
396
400
395
411
386
404
389
413
386
400
389
391
392
376
393
371
396
372
395
401
394
362
395
4...

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #9:

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

input:

40
394
407
395
362
394
403
395
382
390
425
395
386
398
379
389
420
390
405
389
408
396
393
401
384
386
413
395
398
408
369
379
416
406
375
405
384
392
399
411
374
388
399
393
398
380
401
377
406
414
379
397
396
400
395
411
386
404
389
413
386
400
389
391
392
376
393
371
396
372
395
401
394
362
395
4...

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #10:

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

input:

40
394
407
395
362
394
403
395
382
390
425
395
386
398
379
389
420
390
405
389
408
396
393
401
384
386
413
395
398
408
369
379
416
406
375
405
384
392
399
411
374
388
399
393
398
380
401
377
406
414
379
397
396
400
395
411
386
404
389
413
386
400
389
391
392
376
393
371
396
372
395
401
394
362
395
4...

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #11:

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

input:

40
394
407
395
362
394
403
395
382
390
425
395
386
398
379
389
420
390
405
389
408
396
393
401
384
386
413
395
398
408
369
379
416
406
375
405
384
392
399
411
374
388
399
393
398
380
401
377
406
414
379
397
396
400
395
411
386
404
389
413
386
400
389
391
392
376
393
371
396
372
395
401
394
362
395
4...

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #12:

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

input:

40
780
741
779
742
778
743
777
744
776
745
775
746
774
747
773
748
772
749
771
750
770
751
769
752
768
753
767
754
766
755
765
756
764
757
763
758
762
759
761
760
760
761
759
762
758
763
757
764
756
765
755
766
754
767
753
768
752
769
751
770
750
771
749
772
748
773
747
774
746
775
745
776
744
777
7...

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #13:

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

input:

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

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 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Subtask #3:

score: 15
Accepted

Test #14:

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

input:

250
31125
30876
31124
30877
31123
30878
31122
30879
31121
30880
31120
30881
31119
30882
31118
30883
31117
30884
31116
30885
31115
30886
31114
30887
31113
30888
31112
30889
31111
30890
31110
30891
31109
30892
31108
30893
31107
30894
31106
30895
31105
30896
31104
30897
31103
30898
31102
30899
31101
30...

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

input:

250
15389
15490
15388
15535
15391
15406
15390
15473
15393
15332
15394
15297
15391
15396
15392
15385
15387
15438
15386
15455
15379
15586
15380
15573
15377
15614
15402
15297
15381
15552
15374
15621
15405
15240
15382
15537
15397
15396
15406
15263
15405
15292
15398
15377
15381
15502
15368
15607
15405
15...

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

input:

250
0
249
1
248
2
247
3
246
4
245
5
244
6
243
7
242
8
241
9
240
10
239
11
238
12
237
13
236
14
235
15
234
16
233
17
232
18
231
19
230
20
229
21
228
22
227
23
226
24
225
25
224
26
223
27
222
28
221
29
220
30
219
31
218
32
217
33
216
34
215
35
214
36
213
37
212
38
211
39
210
40
209
41
208
42
207
43
20...

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

input:

250
15389
15490
15388
15535
15391
15406
15390
15473
15393
15332
15394
15297
15391
15396
15392
15385
15387
15438
15386
15455
15379
15586
15380
15573
15377
15614
15402
15297
15381
15552
15374
15621
15405
15240
15382
15537
15397
15396
15406
15263
15405
15292
15398
15377
15381
15502
15368
15607
15405
15...

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

input:

250
15389
15490
15388
15535
15391
15406
15390
15473
15393
15332
15394
15297
15391
15396
15392
15385
15387
15438
15386
15455
15379
15586
15380
15573
15377
15614
15402
15297
15381
15552
15374
15621
15405
15240
15382
15537
15397
15396
15406
15263
15405
15292
15398
15377
15381
15502
15368
15607
15405
15...

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

input:

250
15389
15490
15388
15535
15391
15406
15390
15473
15393
15332
15394
15297
15391
15396
15392
15385
15387
15438
15386
15455
15379
15586
15380
15573
15377
15614
15402
15297
15381
15552
15374
15621
15405
15240
15382
15537
15397
15396
15406
15263
15405
15292
15398
15377
15381
15502
15368
15607
15405
15...

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

input:

444
48125
47894
48124
48465
48125
47944
48124
47949
48123
48256
48124
48221
48121
48320
48132
47865
48119
48364
48118
48381
48115
48516
48116
48503
48113
48544
48138
47853
48139
47818
48110
48551
48129
48158
48142
47793
48123
48316
48128
48179
48141
47852
48122
48295
48113
48428
48104
48537
48129
48...

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

input:

444
0
443
1
442
2
441
3
440
4
439
5
438
6
437
7
436
8
435
9
434
10
433
11
432
12
431
13
430
14
429
15
428
16
427
17
426
18
425
19
424
20
423
21
422
22
421
23
420
24
419
25
418
26
417
27
416
28
415
29
414
30
413
31
412
32
411
33
410
34
409
35
408
36
407
37
406
38
405
39
404
40
403
41
402
42
401
43
40...

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

input:

444
48125
47894
48124
48465
48125
47944
48124
47949
48123
48256
48124
48221
48121
48320
48132
47865
48119
48364
48118
48381
48115
48516
48116
48503
48113
48544
48138
47853
48139
47818
48110
48551
48129
48158
48142
47793
48123
48316
48128
48179
48141
47852
48122
48295
48113
48428
48104
48537
48129
48...

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

input:

444
48125
47894
48124
48465
48125
47944
48124
47949
48123
48256
48124
48221
48121
48320
48132
47865
48119
48364
48118
48381
48115
48516
48116
48503
48113
48544
48138
47853
48139
47818
48110
48551
48129
48158
48142
47793
48123
48316
48128
48179
48141
47852
48122
48295
48113
48428
48104
48537
48129
48...

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

input:

444
98346
97903
98345
97904
98344
97905
98343
97906
98342
97907
98341
97908
98340
97909
98339
97910
98338
97911
98337
97912
98336
97913
98335
97914
98334
97915
98333
97916
98332
97917
98331
97918
98330
97919
98329
97920
98328
97921
98327
97922
98326
97923
98325
97924
98324
97925
98323
97926
98322
97...

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

input:

444
48125
47894
48124
48465
48125
47944
48124
47949
48123
48256
48124
48221
48121
48320
48132
47865
48119
48364
48118
48381
48115
48516
48116
48503
48113
48544
48138
47853
48139
47818
48110
48551
48129
48158
48142
47793
48123
48316
48128
48179
48141
47852
48122
48295
48113
48428
48104
48537
48129
48...

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

input:

2000
984031
983364
984030
984747
984031
984400
984032
983481
984027
984772
984032
984027
984033
983690
984024
985313
984025
984998
984040
982075
984021
985978
984040
983213
984031
984120
984042
982847
984021
985256
984016
986013
984035
983892
984032
984063
984021
985074
984040
983689
984029
984388
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: 531ms
memory: 3900kb

input:

2000
984031
983364
984030
984747
984031
984400
984032
983481
984027
984772
984032
984027
984033
983690
984024
985313
984025
984998
984040
982075
984021
985978
984040
983213
984031
984120
984042
982847
984021
985256
984016
986013
984035
983892
984032
984063
984021
985074
984040
983689
984029
984388
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: 573ms
memory: 3888kb

input:

2000
0
1999
1
1998
2
1997
3
1996
4
1995
5
1994
6
1993
7
1992
8
1991
9
1990
10
1989
11
1988
12
1987
13
1986
14
1985
15
1984
16
1983
17
1982
18
1981
19
1980
20
1979
21
1978
22
1977
23
1976
24
1975
25
1974
26
1973
27
1972
28
1971
29
1970
30
1969
31
1968
32
1967
33
1966
34
1965
35
1964
36
1963
37
1962
3...

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

input:

2000
1999000
1997001
1998999
1997002
1998998
1997003
1998997
1997004
1998996
1997005
1998995
1997006
1998994
1997007
1998993
1997008
1998992
1997009
1998991
1997010
1998990
1997011
1998989
1997012
1998988
1997013
1998987
1997014
1998986
1997015
1998985
1997016
1998984
1997017
1998983
1997018
1998982...

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

input:

2000
984031
983364
984030
984747
984031
984400
984032
983481
984027
984772
984032
984027
984033
983690
984024
985313
984025
984998
984040
982075
984021
985978
984040
983213
984031
984120
984042
982847
984021
985256
984016
986013
984035
983892
984032
984063
984021
985074
984040
983689
984029
984388
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: 569ms
memory: 4100kb

input:

2000
984031
983364
984030
984747
984031
984400
984032
983481
984027
984772
984032
984027
984033
983690
984024
985313
984025
984998
984040
982075
984021
985978
984040
983213
984031
984120
984042
982847
984021
985256
984016
986013
984035
983892
984032
984063
984021
985074
984040
983689
984029
984388
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: 0
Wrong Answer

Test #32:

score: 0
Wrong Answer
time: 1251ms
memory: 4128kb

input:

4000
3954555
3955888
3954556
3950653
3954555
3952838
3954552
3956001
3954551
3957296
3954560
3950627
3954557
3951632
3954554
3954197
3954547
3957520
3954554
3954589
3954561
3951072
3954552
3955725
3954561
3951160
3954552
3955357
3954559
3952108
3954540
3958537
3954545
3956402
3954544
3956575
3954539...

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:

wrong answer Too many queries