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 21Output
3Input
8 4 2 4 9 10 1 2 4 5 5 7 2 10 11 11 11 13Output
6Input
4 100 100 101 101 102 102 103 103 104Output
2