UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#91030#1467. 曹冲养猪DeNeRATe1000ms516kbC++11599b2020-02-15 12:54:082020-02-15 12:54:09

answer


详细

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

Test #1:

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

input:

5
11 10
9 8
7 6
5 4
4 3

output:

13859

result:

ok single line: '13859'

Test #2:

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

input:

4
101 1
100 1
27 26
169 1

output:

39258701

result:

ok single line: '39258701'

Test #3:

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

input:

9
1 0
3 1
5 1
7 1
11 1
13 1
17 1
19 1
23 1

output:

1

result:

ok single line: '1'

Test #4:

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

input:

8
2 1
3 1
5 1
7 1
41 27
67 56
29 12
1093 3

output:

14205104551

result:

ok single line: '14205104551'

Test #5:

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

input:

7
289 88
23 16
15 13
13 4
11 1
8 2
7 1

output:

489777058

result:

ok single line: '489777058'

Test #6:

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

input:

6
17 1
15 1
13 1
11 1
8 1
7 1

output:

1

result:

ok single line: '1'

Test #7:

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

input:

10
2 1
3 2
5 4
7 6
11 10
13 12
17 16
19 18
23 22
29 28

output:

6469693229

result:

ok single line: '6469693229'

Test #8:

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

input:

1
1093258 129842

output:

129842

result:

ok single line: '129842'

Test #9:

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

input:

2
99982 19823
99983 92834

output:

2696734327

result:

ok single line: '2696734327'

Test #10:

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

input:

3
9982 923
9983 1234
9985 4321

output:

206771281471

result:

ok single line: '206771281471'