QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#415005#1817. AND PermutationPrinceton_TigersWA 4888ms16392kbC++141.9kb2024-05-20 07:14:082024-05-20 07:14:08

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 8016kb

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: 10192kb

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
308
256
88
85
214
18
238
34
311
118
314
83
122
46
16
30
416
33
47
195
337
306
29
261
140
74
323
390
26
128
319
158
59
5
35
80
303
24
7
64
283
65
206
277
71
291
112
310
164
174
145
288
194
78
269
81
302
10
188
162
130
210
202
267
281
250
386
257
53
317
215
236
198
15
305
297
6
138
44
94
144
280
6...

result:

ok OK!

Test #3:

score: -100
Wrong Answer
time: 4888ms
memory: 16392kb

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:


result:

wrong output format Unexpected end of file - int64 expected