QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#934113#9889. Element SwappingMaMengQi AC ✓380ms26576kbC++171.3kb2025-03-14 14:26:082025-03-14 14:26:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 380ms
memory: 26576kb

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