QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#415018#1817. AND PermutationPrinceton_TigersRE 46ms24232kbC++174.5kb2024-05-20 07:55:322024-05-20 07:55:32

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 22524kb

input:

6
0
1
4
5
2
6

output:

4
6
0
2
5
1

result:

ok OK!

Test #2:

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

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
68
129
48
116
214
82
238
290
311
276
314
83
122
2
17
158
168
41
47
195
337
306
29
261
140
74
323
262
10
384
319
39
59
36
98
80
303
24
0
288
283
96
206
277
63
291
304
182
420
174
145
416
194
142
269
112
302
58
188
162
34
210
202
267
281
250
130
257
53
317
215
236
198
15
305
297
422
131
4
31
149
2...

result:

ok OK!

Test #3:

score: 0
Accepted
time: 46ms
memory: 24232kb

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:

82316
41360
37635
71299
73504
65996
8968
35216
100643
109953
32770
3096
32913
2723
2816
68880
37520
65816
85452
20612
99842
62598
13318
115713
76033
16608
107280
3496
10256
2504
82212
116992
3745
99362
58769
3232
69121
19628
36896
704
36560
36482
74496
59520
771
93569
99584
484
40195
115728
5124
712...

result:

ok OK!

Test #4:

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

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: 29ms
memory: 23392kb

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:

16773
4120
2768
8961
1089
15408
85
25653
2501
25092
277
584
16517
25281
20608
11297
10544
570
23072
11300
130
52
2056
10928
6776
11025
27473
10772
25780
27268
5637
30768
14384
10916
11428
27605
4680
2580
209
7184
8917
2384
8192
2689
26948
10836
1557
2260
28320
9268
9504
23092
14368
8496
20501
8532
3...

result:

ok OK!

Test #6:

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

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
38
394
271
137
40
11
155
0

result: