Page 1 of 1

11225 - Tarot scores.

Posted: Thu Jul 12, 2007 8:00 pm
by hamedv
what's wrong with my code???

Code: Select all

 GOT AC, silly mistake

Silly mistake

Posted: Sun Dec 02, 2007 9:42 am
by jjtse
Likewise, I bet I have a silly mistake in here somewhere. I've been pulling my hair out trying to find out what it is. Anyone got any ideas?


note:
Since the score is always an integer, I avoided the use of doubles/floats

Code: Select all

 code deleted 

Ending blank line

Posted: Sun Dec 02, 2007 11:25 pm
by vkubushyn
You are printing an ending blank line. They count that as wrong answer. I had it also, and once I removed it it got AC. Do not print a blank line after the last hand.

Posted: Mon Dec 03, 2007 3:08 am
by jjtse
traditionally, that extra blank line should've showed up as a presentation error. I guess this new judging system doesn't work the same way.

Re: 11225 - Tarot scores

Posted: Thu May 01, 2014 10:13 pm
by wiedzmac
Hey,
I've got problem with this task. I'm pretty sure that my solution is correct. It must be some kind of printing error but i can't find it by myself. Can you help me?

This is my code :

Code: Select all

AC

Re: 11225 - Tarot scores

Posted: Fri May 02, 2014 7:01 am
by uDebug
wiedzmac wrote:I've got problem with this task. I'm pretty sure that my solution is correct. It must be some kind of printing error but i can't find it by myself. Can you help me?
Don't print a newline on top. Just output a newline between hands.

Also, don't forget the period at the end.

On the sample input, your code outputs

Code: Select all


Hand #1
Game lost by 31 point(s)

Hand #2
Game won by 0 point(s)
But it should output

Code: Select all

Hand #1
Game lost by 31 point(s).

Hand #2
Game won by 0 point(s).

Re: 11225 - Tarot scores

Posted: Fri May 02, 2014 9:02 am
by wiedzmac
Is it really my code?

Code: Select all

AC
Output is correct.

Re: 11225 - Tarot scores

Posted: Fri May 02, 2014 9:13 am
by uDebug
wiedzmac wrote:Is it really my code?
Yes, it really is your code. Try reading what's written above again - carefully.

Re: 11225 - Tarot scores

Posted: Fri May 02, 2014 9:16 am
by uDebug
wiedzmac wrote:Is it really my code?
Yes, it really is your code. Try reading what's written above again - carefully.

Re: 11225 - Tarot scores

Posted: Fri May 02, 2014 11:25 am
by wiedzmac
Thanks!