QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#414954#1817. AND PermutationPrinceton_Tigers#WA 155ms73304kbC++172.7kb2024-05-20 05:09:302024-05-20 05:09:31

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
0
1
4
5
2
6

output:

4
6
0
2
5
1

result:

ok OK!

Test #2:

score: 0
Accepted
time: 3ms
memory: 54824kb

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
116
129
48
53
214
82
238
42
311
262
314
51
122
4
144
182
288
168
47
195
337
114
92
261
141
74
323
390
10
384
319
15
59
36
98
320
303
80
18
416
283
64
206
277
63
291
17
54
420
174
145
160
194
71
269
49
302
186
188
418
35
210
202
267
281
250
386
257
85
317
215
236
198
38
305
297
166
11
32
87
20
88...

result:

ok OK!

Test #3:

score: -100
Wrong Answer
time: 155ms
memory: 73304kb

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:

65955
33154
37633
67491
100387
82316
16684
35746
72483
118145
52480
19556
35536
6307
44417
118016
38017
81937
83073
396
46116
19648
1038
67618
74001
4227
72579
3094
16428
18860
82208
61442
10881
38432
123281
68899
69667
19692
99074
16529
42116
36483
45056
34960
69920
69025
40194
902
40707
99584
4225...

result:

wrong answer Output value not an unused input value.