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!

fuch_prog_er #13 [2] // Problem 1213. Cockroaches! 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!
evjava Re: #13 // Problem 1213. Cockroaches! 3 Oct 2010 21:56
Thank you!!
llypd Re: #13 // Problem 1213. Cockroaches! 10 Mar 2013 08:07
Thank you