Pixel · Easy CodeFree
Heavy Eggs, Small Dragons
The dragon nursery is moving to a new cliff. Each baby dragon can carry one egg, if the egg is not too heavy. Pair them up so that as many eggs as possible fly today.
Make as many egg and dragon pairs as possible, and list them.
Every pair must hold, and there must be as many as possible.
E D, the number of eggs and of dragons.E. Line 3: the strengths of dragons 1 to D.K, how many eggs fly.K lines: e d, egg e flies with dragon d.E, D ≤ 1 0007 7 3 8 2 6 9 4 5 5 1 7 1 10 3 6
5 3 6 1 1 6 7 7 3 4 5
Sign in to play. It is free.
Sign in