UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119014#1313. 钓鱼Body1002ms1224kbC++1.1kb2020-09-12 22:19:432020-09-12 22:19:45

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

2
1
10 1
2 5
2

output:

31

result:

ok single line: '31'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

8
14
96 31 11 23 83 8 73 19
25 3 10 11 19 4 10 19
89 53 42 70 43 1 74

output:

422

result:

ok single line: '422'

Test #3:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

4
4
10 15 20 17
0 3 4 3
1 2 3

output:

480

result:

ok single line: '480'

Test #4:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

4
4
10 15 50 30
0 3 4 3
1 2 3

output:

724

result:

ok single line: '724'

Test #5:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

2
1
24 42
2 40
5

output:

156

result:

ok single line: '156'

Test #6:

score: 10
Accepted
time: 0ms
memory: 1192kb

input:

3
1
24 24 4
10 5 4
3 1

output:

112

result:

ok single line: '112'

Test #7:

score: 10
Accepted
time: 1ms
memory: 1224kb

input:

25
15
59 84 39 73 15 84 7 11 63 17 18 49 65 55 19 88 89 68 75 56 69 25 58 89 77
18 32 15 66 2 25 5 5...

output:

13884

result:

ok single line: '13884'

Test #8:

score: 10
Accepted
time: 1ms
memory: 1224kb

input:

24
12
51 42 35 62 13 16 31 21 55 11 3 72 67 99 51 64 88 46 83 14 31 15 37 50
20 10 29 22 3 1 27 9 20...

output:

2266

result:

ok single line: '2266'

Test #9:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

10
16
68 23 36 95 25 83 77 16 71 5
1 11 17 20 16 73 39 13 57 5
41 86 98 59 39 30 57 12 3

output:

2408

result:

ok single line: '2408'

Test #10:

score: 10
Accepted
time: 0ms
memory: 1204kb

input:

25
13
84 16 30 3 42 50 87 78 32 15 32 6 82 52 14 59 46 50 23 35 44 39 100 64 62
6 5 4 0 12 40 6 5 18...

output:

792

result:

ok single line: '792'