QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#415030#1817. AND PermutationPrinceton_TigersRE 0ms22800kbC++175.0kb2024-05-20 08:20:472024-05-20 08:20:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
0
1
4
5
2
6

output:

4
6
0
2
5
1

result:

ok OK!

Test #2:

score: -100
Runtime Error

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
256
280
116
214
83
238
266
311
150
314
114
282
3
128
310
392
168
166
195
337
306
284
261
140
130
323
134
26
384
319
55
122
20
290
176
303
25
70
160
283
1
206
277
63
291
304
294
420
174
272
416
194
142
269
81
302
58
188
66
162
210
202
267
281
250
322
257
84
317
215
236
198
13
305
297
422
74
0

result: