Combinatorial Expression

Problem Number: 
10 329
Type of Problem: 
Problem Category: 
Input: 
Random Input
Critical Input
Critical Input: 
1 1 100 50 1 0 2 1 30 10 20 10 10 5 1 1 5000 2500 1 0
Random Input: 
1 2 1 1 2 2 3 3 1 2 5 5 1 1 2 1 1 1 340 170 2 2 1 1 336 168 4 4
Problem Id: 
10329