Gears on a Board

Problem Number: 
407
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
20 100 5 5 -300 4 43 100 18 10 43 74 8 8 71 100 10 6 71 74 16 20
Problem Id: 
407