QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#414972#1817. AND PermutationPrinceton_Tigers#RE 7ms56728kbC++173.2kb2024-05-20 06:11:482024-05-20 06:11:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 56728kb

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

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
21
129
384
53
214
83
238
43
311
182
314
51
122
2
80
158
168
136
47
195
337
19
284
261
76
66
323
390
274
320
319
63
58
148
290
176
303
144
18
416
283
160
206
277
6
291
112
55
420
174
145
33
194
14
269
49
302
90
188
418
162
210
202
267
281
250
322
257
164
317
215
236
198
46
305
297
294
74
32
22
14...

result:

ok OK!

Test #3:

score: -100
Runtime Error

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:

65697
386
4867
67012
3875
74008
356
39840
104739
73633
68616
3160
55937
2280
12288
126208
33304
66305
83345
452
13920
19588
5410
107016
792
568
100739
8096
15968
18860
8488
114945
3233
34336
107921
101505
77824
19684
104448
1256
36560
3728
65856
2752
77856
93569
52225
12450
40707
83296
34561
1098
10...

result: