Time limit
1000 ms
Memory limit
65536 kB
OS
Windows
Source
Timus Top Coders: Third Challenge
Author
Nikita Rybak, Ilya Grebnov, Dmitry Kovalioff
Descriptions:

Formula 1

URAL - 1519