QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#745404#4252. PermutationZhangYiDe100 ✓1ms4076kbC++206.1kb2024-11-14 09:44:462024-11-14 09:44:48

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3816kb

input:

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

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
1
0
2
1 0
3
2 1 0
4
3 2 1 0
3
1 0 2
4
3 1 0 2
4
2 1 0 3
5
4 2 1 0 3
5
3 2 1 0 4
6
5 3 2 1 0 4
4
1 0 2 3
5
4 1 0 2 3
5
3 1 0 2 4
5
1 0 3 4 2
5
2 1 0 3 4
6
5 2 1 0 3 4
6
4 2 1 0 3 5
6
3 1 0 4 5 2
6
3 2 1 0 4 5
7
6 3 2 1 0 4 5
7
5 3 2 1 0 4 6
7
4 3 1 0 5 6 2
5
1 ...

result:

ok 

Subtask #2:

score: 90
Accepted

Test #2:

score: 90
Accepted
time: 1ms
memory: 3792kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
39993
85709
48645
25391
15360
54084
28947
18808
86735
316
14357
82845
96210
16242
58466
43439
77462
70742
76176
20397
30314
22634
29622
81835
31904
81283
37072
36527
26764
55878
72762
5262
34915
63468
20595
66579
77373
36670
89340
83384
73268
31960
67318
3908...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
21
20 16 8 4 1 0 5 6 3 7 9 10 11 12 13 14 2 15 17 18 19
23
22 12 6 5 1 0 7 8 9 10 4 11 13 14 15 3 16 17 18 19 2 20 21
21
20 17 5 4 1 0 6 7 3 8 9 2 10 11 12 13 14 15 16 18 19
19
13 1 0 5 6 7 8 9 4 10 11 12 14 15 16 3 17 18 2
15
1 0 3 4 2 5 6 7 8 9 10 11 12 13 1...

result:

ok 

Test #3:

score: 90
Accepted
time: 1ms
memory: 4048kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
2147483647
1073741823
536870911
268435455
134217727
67108863
33554431
16777215
8388607
4194303
2097151
1582
24319
38
463
7
1073741503
3
18
3
3780
2
24934
124910
65535
154
1069539071
209452285
1662
3
3
93
4070
131071
502986749
3164
268430159
247
21746
124927
1...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
46
45 1 0 16 17 15 18 19 14 20 21 13 22 23 12 24 25 11 26 27 10 28 29 9 30 31 8 32 33 7 34 35 6 36 37 5 38 39 4 40 41 3 42 43 2 44
44
1 0 16 17 15 18 19 14 20 21 13 22 23 12 24 25 11 26 27 10 28 29 9 30 31 8 32 33 7 34 35 6 36 37 5 38 39 4 40 41 3 42 43 2
43
4...

result:

ok 

Test #4:

score: 90
Accepted
time: 1ms
memory: 4076kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
576460752303423487
288230376151711743
144115188075855871
72057594037927935
36028797018963967
18014398509481983
9007199254740991
4503599627370495
2251799813685247
1125899906842623
562949953421311
8166608599550
16508780543
33554427
43000192155799
62353919
71773...

output:

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

result:

ok 

Test #5:

score: 90
Accepted
time: 1ms
memory: 3832kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
336455856505
197522918480
260689715591
857530435844
89809708292
207893569808
702779448503
917149928374
643600357316
927175148543
51879726697
974331197849
721971572596
902469653832
936157710917
714588060426
276939435899
393954173900
692525720126
762289367234
1...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
53
52 43 32 29 26 19 16 12 8 1 0 9 10 7 11 13 14 15 17 18 20 21 22 6 23 24 25 27 28 30 31 33 34 35 36 5 37 38 4 39 40 41 42 44 45 46 3 47 48 2 49 50 51
51
46 43 33 28 24 21 18 9 7 6 1 0 8 10 11 12 5 13 14 4 15 16 3 17 19 20 22 23 25 26 27 29 30 31 32 34 35 36 ...

result:

ok 

Test #6:

score: 90
Accepted
time: 0ms
memory: 3848kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
330061280882697
570108406837011
246465711199350
844437948491708
542197441405836
481743322695013
913237337833838
634038564781156
969749245791701
445335878892049
722391184659757
25600568975288
304176471716316
934030664268458
770565383569314
38589802113902
56387...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
60
59 55 42 32 10 8 1 0 9 11 12 13 7 14 15 16 17 18 19 6 20 21 22 23 24 25 26 5 27 28 29 30 31 33 34 35 4 36 37 38 39 3 40 41 43 44 45 2 46 47 48 49 50 51 52 53 54 56 57 58
65
60 50 47 44 40 35 32 26 23 16 7 1 0 8 9 10 11 12 13 6 14 15 17 18 19 20 21 22 24 25 ...

result:

ok 

Test #7:

score: 90
Accepted
time: 1ms
memory: 4060kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
9808783958425241
800256975993528789
891794666437715812
154809014071580277
262143300778136084
508038278751820218
855062810898478629
196129157832150290
519747744582635554
544132224659269080
335568667826635843
978219202156109836
887928188166976766
57068450616591...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
72
71 63 60 52 49 43 33 29 23 13 10 1 0 11 12 14 15 16 9 17 18 19 8 20 21 22 24 25 26 27 28 30 31 32 34 35 36 7 37 38 6 39 40 41 5 42 44 45 46 47 48 50 51 53 54 55 56 4 57 58 3 59 61 62 64 65 66 67 2 68 69 70
82
81 78 75 72 61 43 35 32 29 16 14 13 1 0 15 17 18...

result:

ok 

Test #8:

score: 90
Accepted
time: 1ms
memory: 4068kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
576460752303423488
576460752303423489
576460752303423490
576460752303423491
576460752303423492
576460752303423493
576460752303423494
576460752303423495
576460752303423496
576460752303423497
576460752303423498
576460752303423499
576460752303423500
576460752303...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
60
2 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
61
60 2 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3...

result:

ok 

Test #9:

score: 90
Accepted
time: 1ms
memory: 3900kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
999999999999999901
999999999999999902
999999999999999903
999999999999999904
999999999999999905
999999999999999906
999999999999999907
999999999999999908
999999999999999909
999999999999999910
999999999999999911
999999999999999912
999999999999999913
999999999999...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
82
81 78 72 54 48 45 36 27 1 0 16 17 18 15 19 20 14 21 22 23 24 25 26 28 29 30 13 31 32 33 12 34 35 37 38 39 11 40 41 42 43 10 44 46 47 49 50 51 52 9 53 55 56 57 8 58 59 60 61 62 7 63 64 6 65 66 5 67 68 4 69 70 3 71 73 74 75 76 2 77 79 80
81
73 55 49 46 37 28 ...

result:

ok 

Test #10:

score: 90
Accepted
time: 1ms
memory: 3896kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
333271685633113373
303681151173201623
185954994672690293
695000491456721509
680039555562404861
711731044985538439
725639770789026979
653124604194000671
716161846351295353
727816570890872159
566821251164212697
620956504691616073
845196440395453799
654653854021...

output:

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

result:

ok 

Test #11:

score: 90
Accepted
time: 1ms
memory: 3852kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
11260605527954640
3776579230632
1586488757700
753903936556020250
10601397297904140
810787108223734551
544021594614225000
609804018090927660
212587386929622705
334981274861463750
759012209987031
879302565815602500
156896254323644472
501935537823034315
23356411...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
67
62 55 52 43 35 25 20 8 7 1 0 9 10 11 12 13 14 15 16 17 18 19 21 22 23 6 24 26 27 28 5 29 30 31 32 33 34 36 37 38 39 40 41 4 42 44 45 46 47 3 48 49 50 51 53 54 56 57 58 59 2 60 61 63 64 65 66
57
53 50 47 39 33 30 20 1 0 10 11 12 9 13 14 15 8 16 17 7 18 19 21...

result:

ok 

Test #12:

score: 90
Accepted
time: 1ms
memory: 3888kb

input:

a92b3f80-b312-8377-273c-3916024d7f2a
100
450283905890997362
288230376151711743
298023223876953124
789730223053602815
558545864083284006
144115188075855871
150094635296999120
999999999999999999
505447028499293770
184884258895036415
665416609183179840
155568095557812223
437893890380859374
720575940379...

output:

6cad0f33-b1bd-3a3e-1a8d-c4af23adfcbf
OK
82
80 76 69 66 63 60 57 51 48 43 40 34 28 25 20 1 0 10 11 12 13 14 9 15 16 8 17 18 7 19 21 22 23 6 24 26 27 29 30 31 5 32 33 35 36 37 38 4 39 41 42 44 45 46 47 49 50 52 53 54 3 55 56 58 59 61 62 64 65 67 68 70 71 72 73 74 2 75 77 78 79 81
86
1 0 30 31 29 32 33...

result:

ok 

Extra Test:

score: 0
Extra Test Passed