## 11841 - Y-game

Moderator: Board moderators

krien
New poster
Posts: 5
Joined: Mon Sep 20, 2010 12:51 pm

### 11841 - Y-game

I reckon that the statement is a little confusing. Could anyone say me what is the correct output for these cases?

Code: Select all

``````3 4
2 0 1
3 0 0
0 2 1
0 3 0
3 2
0 0 3
0 1 2
2 3
2 0 0
1 1 0
0 2 0
3 4
1 0 2
1 1 1
2 0 1
3 0 0
3 4
3 0 0
2 0 1
1 0 2
0 1 2
2 3
0 1 1
1 1 0
2 0 0
3 4
3 0 0
2 1 0
1 2 0
0 3 0
2 2
1 0 1
0 1 1
2 3
2 0 0
1 0 1
0 1 1
2 3
1 0 1
0 1 1
1 1 0
2 3
0 0 2
1 0 1
2 0 0
1 2
0 0 1
0 1 0
1 2
1 0 0
0 0 1
0 1
0 0 0
0 0
``````
Thanks to all!

P.D: I was wrong on some input data. Can anyone say the correct output for this data? thanks again.
Last edited by krien on Mon Sep 20, 2010 5:35 pm, edited 1 time in total.

Khongor_SMCS
New poster
Posts: 15
Joined: Thu Jun 18, 2009 12:01 pm
Contact:

### Re: 11841 - Y-game

Your tests are incorrect, in each coordinate x+y+z must equal to n

krien
New poster
Posts: 5
Joined: Mon Sep 20, 2010 12:51 pm

### Re: 11841 - Y-game

Khongor_SMCS wrote:Your tests are incorrect, in each coordinate x+y+z must equal to n
Thanks Khongor_SMCS. I checked the input data and the tests are currently correct.

pdwd
New poster
Posts: 19
Joined: Sat May 15, 2010 4:35 pm

### Re: 11841 - Y-game

Code: Select all

``````Willy
Willy
Benny
Willy
Benny
Benny
Benny
Willy
Benny
Benny
Benny
Benny
Benny
Benny
``````