410805: GYM104118 G Gallivanting Merchant

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

Description

G. Gallivanting Merchanttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputExamplesInput
3 5
2 6
6 11
16 21
Output
3
Input
8 4
2 4
9 10
1 2
4 5
5 7
2 10
11 11
11 13
Output
6
Input
4 100
100 101
101 102
102 103
103 104
Output
2

加入题单

上一题 下一题 算法标签: