QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#542330#8936. Team Arrangementucup-team3925#TL 8ms13208kbC++142.6kb2024-09-01 00:25:522024-09-01 00:25:54

详细

Test #1:

score: 100
Accepted
time: 8ms
memory: 12992kb

input:

3
2 3
1 2
2 2
4 5 100

output:

9

result:

ok single line: '9'

Test #2:

score: 0
Accepted
time: 4ms
memory: 12964kb

input:

3
1 3
3 3
2 3
1 1 100

output:

100

result:

ok single line: '100'

Test #3:

score: 0
Accepted
time: 8ms
memory: 12980kb

input:

2
1 1
2 2
1 1

output:

impossible

result:

ok single line: 'impossible'

Test #4:

score: 0
Accepted
time: 8ms
memory: 13208kb

input:

3
2 3
1 2
2 2
-100 -200 100000

output:

-300

result:

ok single line: '-300'

Test #5:

score: -100
Time Limit Exceeded

input:

9
1 4
2 5
3 4
1 5
1 1
2 5
3 5
1 3
1 1
1 1 1 1 1 1 1 1 1

output:


result: