Efficient Solutions

Problem Number: 
11 020
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
7 1 100 200 2 100 200 101 202 2 100 200 200 100 5 11 20 20 10 20 10 100 20 1 1 11 1000 1 999 2 998 3 997 4 996 5 995 6 994 7 993 8 992 9 991 10 2 1 8 2 2 2 2 2 2 2 1 1 3 1 3 1 2 1 1 10 10 10 10 9 9 10 8 10 10 8 7 7 6 6 5 7 7 5 100 100
Problem Id: 
11020