Title |
User |
Message |
Date Posted |
Re: Re: i dont get it |
ilovepi |
thnx late reply LOLZ |
Jan 26, 2011 - 2:00:18 pm UTC |
Re: Re: ???? |
ilovepi |
Yes. That's exactly what's wrong. BTW, you don't always have to copy codes from PEG. Try making codes of your own, following what they taught you with the original code. |
Jan 22, 2011 - 11:34:37 pm UTC |
Re: ???? |
bbi5291 |
You forgot a semicolon. It helps us debug if you indent your code. |
Jan 22, 2011 - 4:52:14 pm UTC |
???? |
GeerthanSrikantharajah |
what's wrong with my program? |
Jan 22, 2011 - 4:09:33 pm UTC |
Re: Confused XD |
bbi5291 |
No. As a general principle, you may assume that if the problem statement says nothing about what to do in case some pathological condition arises, then it never actually does arise in the test data. |
Jan 12, 2011 - 6:14:35 am UTC |
Confused XD |
helios26 |
Would there be the possibility of their being no number for the output, because the crossing out part reaches N before K? ~helios |
Jan 12, 2011 - 2:57:26 am UTC |
Re: help plsss |
bbi5291 |
On six of the eight test cases, you get error 200 (division by zero). The only way this could possibly have occurred is that you mod by s at some point when s is zero. And since s starts at 1 and only... |
Jan 09, 2011 - 12:37:24 am UTC |
help plsss |
Niema |
Can sm1 plss tell me watz wrong wid my program |
Jan 08, 2011 - 4:09:51 pm UTC |
Re: i dont get it |
bbi5291 |
its completely clear. 2. Find the smallest number not already crossed out and call it P; P is prime. 3. Cross out P and all its multipl... |
Jan 07, 2011 - 11:01:41 pm UTC |
i dont get it |
ilovepi |
i dont really get wat to cross out... |
Jan 07, 2011 - 10:59:22 pm UTC |