410800: GYM104118 B Better than Bitcoin

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

B. Better than Bitcointime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputExamplesInput
2
3 7 7
8 2 5
Output
2
4
Input
3
1859 19 7
1967 2 17
2000 29 29
Output
213519321
1086566377
0

加入题单

上一题 下一题 算法标签: