QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#414941#1817. AND PermutationPrinceton_Tigers#WA 7ms6020kbC++171.5kb2024-05-20 04:00:282024-05-20 04:00:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

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
72
53
214
82
238
42
311
294
314
51
122
32
144
278
288
168
47
195
337
114
92
261
141
74
323
390
18
384
319
15
59
64
98
320
303
80
16
416
283
0
206
277
63
291
17
6
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
36
87
20
88
...

result:

ok OK!

Test #3:

score: -100
Wrong Answer
time: 7ms
memory: 6020kb

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:

70049
49537
41752
79392
100642
0
300
32902
99112
118145
60672
35873
39553
4325
3280
118016
1224
68096
68737
396
40977
40067
1038
82956
65612
237
99201
3094
19492
18916
65826
71937
2689
0
123281
85192
91136
19692
67684
8833
2752
3728
65796
23184
0
91281
68610
902
44305
66848
34051
71264
105632
8704
1...

result:

wrong answer Output value not an unused input value.