ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1222. Chernobyl’ Eagles

What answer for n=2?
Posted by Ikari [pskov] - Andrey Marchenko 28 Dec 2007 20:39
I think that correct answer for n=2 is 1, because if one of eagles has 2 heads and another 0 heads then IQ will be 2*0=0, isn't it? But my program had WA3 in that case. When I wrote 2 in output for n=2, I got accepted. Why?
Re: What answer for n=2?
Posted by Bohdan Istrashkin 28 Dec 2007 21:50
because you can have only ONE eagle with 2 heads in group, so IQ = 2. There was no obligations that group should consist of >=2 eagles...


Edited by author 28.12.2007 21:55

Edited by author 28.12.2007 21:55
Re: What answer for n=2?
Posted by Ikari [pskov] - Andrey Marchenko 28 Dec 2007 22:31
OK, I understand, thx =)