Time limit
3000 ms
OS
Linux
Descriptions:

Ducci Sequence

UVA - 1594