Title |
User |
Message |
Date Posted |
Re: How do you submit without compile errors? |
magicalsoup |
make sure to make the problem code as your class name |
Dec 02, 2018 - 4:16:57 am UTC |
How do you submit without compile errors? |
AayushKhazanchi |
I tried submitting my solution, but got rejected by the judge despite adding my java file to prevent the error message it gave me. I would appreciate it if someone could suggest a solution. Thank you.... |
Dec 02, 2018 - 12:12:31 am UTC |
Re: How do i fix this? |
jargon |
How to do what? Get the answer? I'm not going to tell you how to do the problem. You may gain some insights by reading the previously posted comments. Also I'm not convinced 100% that you know for s... |
Feb 11, 2016 - 5:02:49 am UTC |
Re: How do i fix this? |
H-Shienh |
so, I don't get it. How to do that no matter the value? |
Feb 11, 2016 - 3:13:45 am UTC |
Re: How do i fix this? |
jargon |
The answer for 2 2 is 3, not 2. In your code, the value of e, which you print, is dependent on previous cases. For example, the following will not work in your code: Input: 2 2 2 1 2 Output: 3 1 |
Feb 11, 2016 - 2:51:18 am UTC |
Re: How do i fix this? |
H-Shienh |
So, from my understanding, for each line, it calculates? example: ------- 1 2(1)prints 1 2 2(2)prints 2 that's how i think the code works, not so sure |
Feb 10, 2016 - 2:10:37 am UTC |
Re: How do i fix this? |
jargon |
Your approach... doesn't make any sense, to be frank. The test cases are independent; there is no reason for later cases to be dependent on earlier cases. |
Feb 09, 2016 - 7:31:03 am UTC |
How do i fix this? |
H-Shienh |
my code worked with the samples, but when i tested it with my own, it came out wrong. Help,please? |
Feb 09, 2016 - 12:48:49 am UTC |
Re: Re: Can anyone help me with the formula? |
bbi5291 |
Asking for answers defeats the point of solving problems. |
Jan 07, 2011 - 7:01:40 pm UTC |
Re: Re: Can anyone help me with the formula? |
ilovepi |
Like what? |
Jan 07, 2011 - 3:40:00 am UTC |