12-29-2003, 05:42 PM
Aga, I had such a question on a programming tournament (olympiad) once, and the answer is just like:
I got many points on that question
Code:
[pseudocode]
do
do
give highest number from the stack
loop all groups
do
give lowest number from the stack
loop all groups
loop all available 'stack-numbers'
[/pseudocode]
I got many points on that question