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 1211. Collective Guarantee

Show all messages Hide all messages

Is this test possible? 2rf [Perm School #9] 13 Aug 2009 17:52
Test:

1
1
1

And what is the answer if yes?
Re: Is this test possible? KALO 19 Aug 2009 04:41
Answer is NO.
Re: Is this test possible? RezistaL 4 Apr 2010 21:16
1
1
1
test is impossible
if a[i]=i then a[i]:=0 because
"Mummy has written down at ith position of the line the number of a child that the ith child pointed to, or 0 if the ith child suddenly confessed."
so
1
1
0
and answer is YES