QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214713#6553. Shared Memory Switchucup-team1133#RE 1ms3508kbC++202.1kb2023-10-14 23:18:242023-10-14 23:18:24

详细

Test #1:

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

input:

14 5
1 1 1 2 2 2 -1 1 -1 1 -1 1 -1 1

output:

9
2 6 8 5 4 10 12 1 14 

result:

ok n=14

Test #2:

score: 0
Accepted
time: 0ms
memory: 3488kb

input:

14 4
1 1 1 2 2 2 -1 1 -1 1 -1 1 -1 1

output:

8
2 6 4 8 10 12 1 14 

result:

ok n=14

Test #3:

score: 0
Accepted
time: 0ms
memory: 3440kb

input:

0 0

output:

0

result:

ok n=0

Test #4:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

0 1

output:

0

result:

ok n=0

Test #5:

score: -100
Runtime Error

input:

3 0
1 -1 2

output:


result: