Title |
User |
Message |
Date Posted |
Re: Something is wrong, but what? |
jargon |
Your code fails on sample case 1. |
Mar 28, 2020 - 8:46:34 pm UTC |
Something is wrong, but what? |
Brian_Z |
My code works for all cases when I submitted it except the first. I got 10/10 in all cases, but in the first I got 0/10. Can someone hint to me what I'm doing wrong? I've read over the question 10 tim... |
Mar 25, 2020 - 2:47:01 am UTC |
Re: IDK |
jargon |
I don't think .5 works on your code. It isn't an int, so you can't read it with nextInt(). |
Feb 14, 2018 - 8:10:56 am UTC |
Re: Why is my code wrong |
magicalsoup |
Use ciel |
Feb 14, 2018 - 4:09:12 am UTC |
IDK |
NovaStar987 |
I know why my errors happen. Inputs like -.5 would cause an InputMismatchException, yet -.5 clearly means -0.5. And yet things like .5 works. How the heck do I solve this problem? |
Feb 14, 2018 - 2:18:10 am UTC |
... |
PEGPro2016 |
Can someone please tell me what is wrong with my code? I believe I'm using setprecision correctly. |
Nov 16, 2017 - 12:49:08 am UTC |
Re: Help with First Testcase |
porso7 |
Thanks! |
Oct 16, 2016 - 3:32:00 pm UTC |
Re: Help with First Testcase |
spencereir |
1. Don't use float, double is better 2. Don't use roundf, instead use cout |
Oct 16, 2016 - 1:01:40 pm UTC |
Help with First Testcase |
porso7 |
I'm having trouble with the first test case and I have no idea what the issue is. Can anyone help? |
Oct 16, 2016 - 6:19:13 am UTC |
Re: Why is my code wrong |
jargon |
setprecision doesn't quite work how you think it does. |
Mar 11, 2016 - 5:06:22 pm UTC |