Page 1 of 1

162 - Beggar My NeighBour

Posted: Fri Jan 08, 2016 5:53 pm
by pirituba
Hi, I don't understand why I'm receiving Presentation Error.
My java code. Somebody can help me please?

Code: Select all

Remove AC
Tks

Re: 162 - Beggar My NeighBour

Posted: Wed Jan 13, 2016 4:04 pm
by Zyaad Jaunnoo
When you output the number of cards in the winner's hand, it should right justified in a field of width 3 (specified in the problem statement).

PS: Please do search the forum for an existing post about a problem before creating a new one.

Re: 162 - Beggar My NeighBour

Posted: Wed Jan 13, 2016 4:34 pm
by pirituba
Tks man, I will do this in the next post.
I found a post with a critical input and saw the problem.

When result is
0 1
My output must be
0 1 with 3 fields not two.

sya...

Re: 162 - Beggar My NeighBour

Posted: Sat Sep 10, 2016 7:22 pm
by ahmedShawky
Hi This code gets WA even though it passed all the test cases in uDebug
http://ideone.com/LJWUWw
Note: I handeled the case where the size of the deck is less than 10 and I made right justified.
Can someone help me?