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 1042. Central Heating

I only use full search and I got AC in 0.015 sec.
Posted by Y.Y.M. 6 Jun 2004 12:09
We can prove that nobody will turn the vales more than once,
beacuse if so,he will do things with no effect so that the answer will not be the best one.
So there are 2^N situations.
I only use search with cut some "bad" answer and got AC.
Sorry for my bad English...
Re: I only use full search and I got AC in 0.015 sec.
Posted by Tratata (barssimfi@mail.ru) 16 Jun 2004 02:54
I also tried this method and got TLE. Can you give me your code?  My e-mail is   barssimfi@mail.ru
Re: I only use full search and I got AC in 0.015 sec.
Posted by ZhangXun 14 Nov 2005 11:35
Could you paste your code here?
Re: I only use full search and I got AC in 0.015 sec.
Posted by Nickolas Kakà 20 Jul 2008 10:03
What is "bad" in your opinion?