Hello!
This contest has been prepared by Artem Rakhov and other participants of Petrozavodsk Training Camp from Saratov State University. We stopped solving problems of the camp, missed the lecture by Vitaly Goldstein (do not be angry, Vitaly), but the round has been prepared and we are waiting for you - the participants.
Happy hacking,
MikeMirzayanov and team Codeforces
UPD:
Test: #16, time: 50 ms., memory: 2688 KB, exit code: 0, checker exit code: 2, verdict: WRONG_ANSWER
Input
509149
Output
1
Answer
509149 1
Checker Log
wrong output format Not sorted and uniqued
What's wrong with this answer? It is looks like all is ok (sorted and unique)
I think u need 1 more revision...
I think u missed a "be" after "last trees" ...
and what is len?
So, for each tree you check which height of the first tree would keep it unchanged.
Choose for the first tree the height that satisfies more trees.
Why the first tree is so special...?
Problem B: try to declare arrays out of main function (global)
Hope it helped.
Hope it helped. :)
goh tu in emtehanu!