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

Common Board

Problem 1277 The task and the input
Posted by Ksenya 10 Dec 2003 01:47
Can anybody explain me why for the Input#1 the answer is NO but for
Input#2 - YES. The data is similar except the amount of policemen. The
planet where museum is situated is #1 then we shouldn't use policemen
for planet #2 and planet #3 (according to the text of the task). And
we shouldn't use policemen for planet #4 because it is next to #5
where thief is. So for each of the data cases we have the similar
input but different answers. Who can explain me that fact?