Today's contest was prepared by Saratov SU 2 team (Maxim Ivanov, Artem Rakhov, Nickolay Kuznetsov).
You will be asked to solve five easy and not so easy problems for some King, whom you hardly heard anything before. The king hopes that the problems won't turn out very difficult to you, and he will have a wide choice among different solutions to each of the problems.
UPD. The contest has finished, thanks to all of you.
The Results table.
Greeting to rng_58 for his win in today's round!
Problem tutorials: A, B, C, D, E.
Thanks to Mike Mirzayanov and Dmitry Matov who helped to prepare this round too.
Problem statements can be downloaded as a single PDF-file:
P.S. Don't forget to look through Codeforces Format contest rules, if you participate for the first time!
it's the same as sample test #2.
check that you use the same compiler and the same settings on your computer as in system.
No, it was absolutely the same.
I didn't look at your solution, but some people had problems with floating-point numbers: they work differently in different compilers.
1 0 1
1.
if b=0 then result(0), end
for i = -1000 to 1000
if process(i)=true then result(i), end
result(NO), end
2.
for i = 0 to 1000
if process(i)=true then result(i), end
if process(-i)=true then result(-i), end
result(NO), end
But following got wrong answer on pretest 6
for i = -1000 to 1000
if process(i)=true then result(i), end
result(NO), end
It seems, it is required to output 0 when b=0, though any other answer may also be correct. I'm not sure about that.
If I am wrong, please anybody explain.
Can anybody give me actual pretest 6 for problem A?
Sorry about my poor English and for re-posting.
It seems the testcases for problem B are not complete.
Sorry, can the tutorial in English?
What happened to the judge?
It's a random test:
"qmdmxlhwjldezdahqtixkbdtvuzjsgoirrwrqrbtulnhixpmghfjcbwgtcikpsgdfgvhxhrlqbmhlffr"
one of the answers:
3
33 1
34 3
80 1
And i really interested your site, although it is in Russian :)