11225 - Tarot scores.

All about problems in Volume 112. 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
hamedv
Learning poster
Posts: 98
Joined: Mon May 07, 2007 8:30 am

11225 - Tarot scores.

Post by hamedv » Thu Jul 12, 2007 8:00 pm

what's wrong with my code???

Code: Select all

 GOT AC, silly mistake

jjtse
Learning poster
Posts: 80
Joined: Mon Aug 22, 2005 7:32 pm
Location: Nevada, US
Contact:

Silly mistake

Post by jjtse » Sun Dec 02, 2007 9:42 am

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 
Last edited by jjtse on Mon Dec 03, 2007 3:09 am, edited 2 times in total.

User avatar
vkubushyn
New poster
Posts: 6
Joined: Fri Oct 26, 2007 11:34 pm
Location: Las Vegas, NV

Ending blank line

Post by vkubushyn » Sun Dec 02, 2007 11:25 pm

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.

jjtse
Learning poster
Posts: 80
Joined: Mon Aug 22, 2005 7:32 pm
Location: Nevada, US
Contact:

Post by jjtse » Mon Dec 03, 2007 3:08 am

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.

wiedzmac
New poster
Posts: 3
Joined: Thu May 01, 2014 10:12 pm

Re: 11225 - Tarot scores

Post by wiedzmac » Thu May 01, 2014 10:13 pm

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
Last edited by wiedzmac on Fri May 02, 2014 11:26 am, edited 1 time in total.

User avatar
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 11225 - Tarot scores

Post by uDebug » Fri May 02, 2014 7:01 am

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).
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.

wiedzmac
New poster
Posts: 3
Joined: Thu May 01, 2014 10:12 pm

Re: 11225 - Tarot scores

Post by wiedzmac » Fri May 02, 2014 9:02 am

Is it really my code?

Code: Select all

AC
Output is correct.
Last edited by wiedzmac on Fri May 02, 2014 11:26 am, edited 1 time in total.

User avatar
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 11225 - Tarot scores

Post by uDebug » Fri May 02, 2014 9:13 am

wiedzmac wrote:Is it really my code?
Yes, it really is your code. Try reading what's written above again - carefully.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.

User avatar
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 11225 - Tarot scores

Post by uDebug » Fri May 02, 2014 9:16 am

wiedzmac wrote:Is it really my code?
Yes, it really is your code. Try reading what's written above again - carefully.
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.

wiedzmac
New poster
Posts: 3
Joined: Thu May 01, 2014 10:12 pm

Re: 11225 - Tarot scores

Post by wiedzmac » Fri May 02, 2014 11:25 am

Thanks!

Post Reply

Return to “Volume 112 (11200-11299)”