408194: GYM103049 D Dragon Balls

Memory Limit:1024 MB Time Limit:9 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Dragon Ballstime limit per test9 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
1
4 3
Output
5
Input
2
4 3
5 5
Output
12

加入题单

上一题 下一题 算法标签: