Lucky Thief

Problem Number: 
12 918
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
10 1 1 100000 100000 1 100000 24334 89549 23 5768 9923 10001 63423 63424 893 1234 6712 90876 99001 99010
Problem Id: 
12918