Page 1 of 1

11841 - Y-game

Posted: Mon Sep 20, 2010 1:23 pm
by krien
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.

Re: 11841 - Y-game

Posted: Mon Sep 20, 2010 3:22 pm
by Khongor_SMCS
Your tests are incorrect, in each coordinate x+y+z must equal to n

Re: 11841 - Y-game

Posted: Mon Sep 20, 2010 5:51 pm
by krien
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.

Re: 11841 - Y-game

Posted: Mon Sep 20, 2010 8:25 pm
by pdwd

Code: Select all

Willy
Willy
Benny
Willy
Benny
Benny
Benny
Willy
Benny
Benny
Benny
Benny
Benny
Benny