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 1213. Cockroaches!

#13
Posted by fuch_prog_er 11 Feb 2009 23:59
When the number of compartments is 0 you should output 0 (not -1),maybe you guessed why i said "not -1",because when you output (Number_of_Compartments-1) the answer will be -1 because Number_of_Compartments=0 ,maybe it will help you.
Good Luck!
Re: #13
Posted by evjava 3 Oct 2010 21:56
Thank you!!
Re: #13
Posted by llypd 10 Mar 2013 08:07
Thank you