Ants, Aphids and a Ladybug

Problem Number: 
10 939
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
20 1 2 2 3 3 4 4 5 2 6 6 7 7 8 6 9 9 10 9 11 2 12 12 13 13 14 14 15 6 16 16 17 17 18 9 19 19 20 7 11 5 15 8 18 10 20 1 1 0
Problem Id: 
10939