QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#903388#9889. Element SwappingNatsuhi Kage (Qiyu Feng, Jianing Liu, Zemu Zhu) AC ✓133ms21036kbC++202.0kb2025-02-17 11:26:192025-02-17 11:26:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
6 61 237
1 1 4 5 1 4
3 20190429 92409102
1 2 3

output:

2
0

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 133ms
memory: 21036kb

input:

2248
99 160179430 7044622501380
14228 14228 14228 53098 53098 14228 53098 14228 14228 14228 53098 53098 53098 14228 53098 14228 14228 53098 53098 53098 53098 14228 53098 53098 53098 53098 14228 14228 14228 14228 53098 14228 14228 14228 53098 53098 53098 14228 53098 14228 53098 14228 53098 14228 5309...

output:

27
21
22
20
34
28
23
27
30
29
20
30
27
20
26
26
27
24
24
19
23
29
31
21
23
40
26
24
33
38
23
20
23
25
17
33
25
23
24
22
23
20
27
20
24
23
28
28
21
29
21
17
29
21
27
21
25
21
29
29
24
25
25
27
21
31
19
28
22
24
32
33
23
36
22
34
27
19
20
30
28
22
22
19
19
19
30
21
27
31
23
23
24
21
27
21
25
34
26
40
...

result:

ok 2248 lines

Extra Test:

score: 0
Extra Test Passed