QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#415027#1817. AND PermutationPrinceton_TigersRE 31ms23920kbC++175.0kb2024-05-20 08:20:232024-05-20 08:20:24

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 22248kb

input:

6
0
1
4
5
2
6

output:

4
6
0
2
5
1

result:

ok OK!

Test #2:

score: 0
Accepted
time: 7ms
memory: 23920kb

input:

272
315
138
126
6
394
297
44
273
84
200
9
197
396
133
16
46
65
87
86
336
316
174
140
162
250
306
52
188
57
36
63
192
320
388
10
156
15
208
38
32
31
228
30
305
234
384
220
142
72
27
337
110
94
317
304
242
398
209
5
323
29
284
301
309
244
230
261
61
254
266
194
296
275
313
80
206
214
88
308
18
288
106...

output:

196
53
129
152
68
214
83
238
43
311
276
314
114
122
2
144
182
168
40
47
195
337
19
29
261
141
66
323
390
26
384
319
55
59
20
258
272
303
17
24
288
283
256
206
277
63
291
64
310
96
174
145
416
194
78
269
81
302
50
188
162
35
210
202
267
281
250
322
257
180
317
215
236
198
39
305
297
422
74
0
31
149
2...

result:

ok OK!

Test #3:

score: 0
Accepted
time: 31ms
memory: 23036kb

input:

5134
36416
73248
85220
2072
16524
36385
101507
91137
17604
22
640
70530
66850
107792
81952
163
84260
46246
45090
101411
18824
66360
116881
400
50338
109824
17508
122881
98691
99843
36481
1696
102658
27008
2566
4
32900
103171
1153
104706
69923
82280
19616
66849
17540
36870
8352
117777
82156
6785
6780...

output:

74129
49286
37633
67489
102179
90496
16488
39808
72195
109953
67584
19492
39552
23169
3520
76048
1224
65601
85184
16836
33826
62598
13348
67105
69637
4261
101248
1420
3116
18832
82272
76032
19616
37376
124288
3232
19712
27792
32770
1196
36560
44176
102658
43136
68386
91537
17408
4102
40707
17680
542...

result:

ok OK!

Test #4:

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

input:

15
10
0
11
13
2
14
4
1
5
6
8
12
3
7
9

output:

5
0
4
2
13
1
11
14
10
9
7
3
12
8
6

result:

ok OK!

Test #5:

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

input:

3237
9776
12036
8229
2100
10676
17349
26144
2690
30256
3088
27328
31796
3344
54
3637
16908
17030
31749
8593
153
20020
2305
24980
17413
1155
16524
1068
16576
2881
1139
10416
1924
17284
1042
16969
1066
28084
24608
29220
25125
19744
26117
128
28724
4760
17792
27008
17696
4372
6784
19157
8577
405
19072
...

output:

6272
16593
18832
64
16968
6200
405
8272
2501
16932
1077
961
25252
26113
24578
10449
11313
760
20004
2816
8385
720
3617
6768
27152
849
9169
6677
24756
19332
17664
30753
10289
23045
11444
27605
585
208
3089
6352
8917
6392
4612
2945
18757
12852
1589
14868
10817
17429
9504
22036
26144
33
16533
12309
299...

result:

ok OK!

Test #6:

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

input:

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

output:

10
21
18
2
16
1
17
31
5
12
13
29
23
6
26
8
14
19
7
28
27
9
11
4
25
22
30
3
24
15
20
0

result:

ok OK!

Test #7:

score: -100
Runtime Error

input:

286
304
63
445
257
143
170
407
68
55
44
256
53
176
310
4
436
356
33
6
442
160
38
314
273
296
420
299
173
64
408
0
401
169
423
40
284
135
187
358
397
301
70
260
393
190
174
36
428
65
183
421
21
390
58
28
73
288
434
403
104
10
405
443
168
46
43
171
47
398
311
185
279
413
15
277
23
19
20
42
261
278
139...

output:

143
384
66
190
304
277
104
443
392
403
62
8
271
137
298
11
155
0

result: