QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#268062#6521. Swapping Operationucup-team1727TL 1ms3812kbC++142.3kb2023-11-28 00:56:412023-11-28 00:56:42

詳細信息

Test #1:

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

input:

3
6
6 5 4 3 5 6
6
1 2 1 1 2 2
5
1 1 2 2 2

output:

7
3
3

result:

ok 3 number(s): "7 3 3"

Test #2:

score: -100
Time Limit Exceeded

input:

1000
100
803046221 177233942 164782937 53823867 383853667 250036100 888743479 576687945 737272231 801579441 647643785 393059353 401516062 663466861 308544510 825328494 162739603 501761995 570908380 655227403 444493122 844535039 208303132 493226172 421479971 634680694 396627047 787471115 335787136 16...

output:


result: