Page 1 of 1

10654 - The Uxuhul Voting System

Posted: Wed Jul 28, 2004 6:20 pm
by Yoko
Hi,

How I do it? I try many things and all is wrong :cry:
Please, help... I

Posted: Wed Jul 28, 2004 10:47 pm
by Larry
Look closely at the constraints.. and try to think backwards..

Re: 10654 - The Uxuhul Voting System

Posted: Thu Jun 11, 2009 8:08 pm
by coze
Please explain me why in first example the answer is "NYY"?
Input:

Code: Select all

2                                 
4                                 
8 7 6 5 4 3 2 1
8 6 3 1 2 4 5 7
8 3 6 5 1 2 7 4
1 2 3 4 5 6 7 8
1
1 2 3 4 5 6 7 8
Output:

Code: Select all

NYY
NNY
Thanks in advance.