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

Hint
Posted by hoan 14 Dec 2010 23:48
there is only one answer or no answer, therefor if the solution exist it's the shortest.
hope can help you.
GOOD LUCK!!!
Re: Hint
Posted by Tony Beta Lambda 18 Feb 2012 10:58
No, consider the following case:
3
1 -1
1 -1
1 2 3 -1
both 3 and 1 2 3 are correct answer but 3 is the shortest.
Re: Hint
Posted by __Emiapwil__ 13 Apr 2012 15:20
Read the description carefully! Your case is wrong because technician 1 and 2 can replace each other!

As the condition indicates that these vectors are linear independent, it's likely that there be zero or one solution.