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 1644. A Whole Lot of Walnuts

Why I have got WA14
Posted by bilol 29 Dec 2008 18:32
I have got wa 14 and don't know why

Edited by author 29.12.2008 18:33
Re: Why I have got WA14
Posted by Varun Sharma 13 Oct 2009 07:33
Bilol,

Well, its almost a year now, but will write it down anyway. My WA program program was generating this:

Input

5
3 hungry
4 hungry
5 hungry
5 satisfied
6 hungry

Output
5
But the correct answer is Inconsistent.

So, try to find maximum hungry value and minimum satisfied value and apply the given conditions.

Varun