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

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...
Tratata (barssimfi@mail.ru) Re: I only use full search and I got AC in 0.015 sec. // Problem 1042. Central Heating 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
Could you paste your code here?
What is "bad" in your opinion?