QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#464631#8860. Pirate Chestucup-team1005#RE 9868ms5648kbC++201.9kb2024-07-06 13:15:272024-07-06 13:15:27

详细

Test #1:

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

input:

3 1 2 3
2 1 1
2 2 1

output:

4

result:

ok single line: '4'

Test #2:

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

input:

4 1 1 5
2 0 2 2 2

output:

12

result:

ok single line: '12'

Test #3:

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

input:

2 3 3 5
2 2 2 2 2
2 2 2 2 2
2 2 2 2 2

output:

18

result:

ok single line: '18'

Test #4:

score: 0
Accepted
time: 9868ms
memory: 5576kb

input:

499 499 500 500
649850711 869750238 627745405 930778599 956785748 598310756 998020082 659182553 889106939 905912562 606533068 765367617 509331841 519356700 778167157 675754469 808581870 911021086 521336619 618984603 786647531 902669308 804488018 755969003 609652761 767290830 624502151 628733548 9473...

output:

31156455008500822

result:

ok single line: '31156455008500822'

Test #5:

score: 0
Accepted
time: 4236ms
memory: 5648kb

input:

499 499 500 500
999999999 1000000000 999999999 1000000000 1000000000 999999999 1000000000 999999999 1000000000 1000000000 999999999 1000000000 999999999 999999999 1000000000 999999999 1000000000 1000000000 999999999 999999999 1000000000 1000000000 1000000000 1000000000 999999999 1000000000 999999999...

output:

62312562500000999

result:

ok single line: '62312562500000999'

Test #6:

score: 0
Accepted
time: 3070ms
memory: 5644kb

input:

499 499 500 500
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 100000000...

output:

62312562562500250

result:

ok single line: '62312562562500250'

Test #7:

score: 0
Accepted
time: 3074ms
memory: 5576kb

input:

499 499 500 500
1000000000 999999999 999999998 999999997 999999996 999999995 999999994 999999993 999999992 999999991 999999990 999999989 999999988 999999987 999999986 999999985 999999984 999999983 999999982 999999981 999999980 999999979 999999978 999999977 999999976 999999975 999999974 999999973 999...

output:

62297015702750313

result:

ok single line: '62297015702750313'

Test #8:

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

input:

1 1 2 2
0 0
0 0

output:

0

result:

ok single line: '0'

Test #9:

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

input:

1 1 2 2
0 1000000000
0 0

output:

1333333333

result:

ok single line: '1333333333'

Test #10:

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

input:

1 1 2 2
1 1
1 1

output:

1

result:

ok single line: '1'

Test #11:

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

input:

1 1 2 2
2 2
4 2

output:

5

result:

ok single line: '5'

Test #12:

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

input:

1 1 2 2
4 4
4 2

output:

5

result:

ok single line: '5'

Test #13:

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

input:

1 1 2 2
1 2
3 4

output:

5

result:

ok single line: '5'

Test #14:

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

input:

3 2 3 4
1 1 1 1
1 0 1 1
1 1 1 1

output:

6

result:

ok single line: '6'

Test #15:

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

input:

3 2 4 3
1 1 1
1 0 1
1 1 1
1 1 1

output:

6

result:

ok single line: '6'

Test #16:

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

input:

3 3 4 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

output:

36

result:

ok single line: '36'

Test #17:

score: -100
Runtime Error

input:

30 48 120 31
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 10...

output:


result: