10654 - The Uxuhul Voting System

All about problems in Volume 106. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Yoko
New poster
Posts: 4
Joined: Wed Jul 28, 2004 6:15 pm

10654 - The Uxuhul Voting System

Post by Yoko »

Hi,

How I do it? I try many things and all is wrong :cry:
Please, help... I
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post by Larry »

Look closely at the constraints.. and try to think backwards..
coze
New poster
Posts: 26
Joined: Tue Nov 27, 2007 7:56 am
Location: Japan

Re: 10654 - The Uxuhul Voting System

Post 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.
Post Reply

Return to “Volume 106 (10600-10699)”