Greetings to everybody.
I would like to invite you to take part in the next Codeforces competition, which will be held on 5th of December at 11:00 MSK. This competition will be a part of WCS olympiads (click here for details) and usual Codeforces round at the same time.
This competition, as all previous WCS contests, is sponsored by Yandex and ABBYY.
The official rules of the competition are ACM-ICPC rules. The duration of the competition is 3 hours.
Those who don't participate in selection to WCS will be displayed as "out of competition" in the result table. But everybody will get rating for this competition according to the merged result table.
This time the authors of the problems are Natalia Bondarenko and I. Thanks to Edvard Davtyan for his help in preparing the contest and to Maria Belova for translating problem statements.
Don't forget to register in order to take part in the competition. Good luck at the contest!
UPD: The results of the contest. Congratulations to tourist, the winner of WCS contest, and to Petr, the winner of beta round #43.
UPD. ответ можно не выкладывать. я взял верный код у тех, кто задачу сдал =)
But overall, the problems are very nice, thanks!
What if I refuse to take the treasure? And how do you imagine getting a negative number of coins?
YES
0 0
-2 -1
-2 -3
0 -1
YES
0 0
1 0
1 2
-1 1
YES
0 0
1 0
2 1
3 2
All of them passed the tests.
For the test case n=4,I've got series of different answers for that among Accepted programs.
thanks
thanks
Could someone post it please?