Title |
User |
Message |
Date Posted |
Help |
nuclearhit |
What is wrong with my code? It works for all my test cases and its always a 7/11. |
Feb 25, 2020 - 1:05:29 am UTC |
Re: Help |
magicalsoup |
first, please read the question carefully next time, there are multiple cases, the first integer tells u how many cases in total, and the cases will follow. your program can only take one case, it sho... |
Aug 24, 2018 - 11:02:51 pm UTC |
Help |
kalset01 |
my code will only garner a 1/11. How should I improve it? |
Aug 24, 2018 - 5:29:47 pm UTC |
Re: Don't understand what's wrong with my solution |
jargon |
Being able to figure out what you're doing wrong is a more important skill than being able to figure out a solution in the first place. Write out some test cases for yourself -- make up some possible... |
Jan 05, 2017 - 5:54:57 am UTC |
Don't understand what's wrong with my solution |
r0gu3 |
I don't know what I'm doing wrong |
Jan 03, 2017 - 9:51:12 pm UTC |
Re: Re: What's wrong with my code |
jargon |
Why 121? 50 grams or part thereof - 150 is 50 grams exactly. As such, only one additional charge is incurred... don't blindly trust your program; if you're asked a question intended to provoke thought... |
Apr 15, 2011 - 2:28:50 am UTC |
Now What's wrong with my code |
john_gobin |
|
Apr 15, 2011 - 2:00:46 am UTC |
Re: Re: What's wrong with my code |
john_gobin |
121 |
Apr 15, 2011 - 1:51:34 am UTC |
Re: Re: What's wrong with my code |
jargon |
if N > 100 then the base cost is 73 cents, plus 24 cents for every additional 50 grams or part thereof. |
Apr 15, 2011 - 1:50:14 am UTC |
Re: Re: What's wrong with my code |
john_gobin |
I don't know |
Apr 15, 2011 - 1:49:20 am UTC |