| Title |
User |
Message |
Place |
Date Posted |
| Re: ERROR |
jargon |
Traceback (most recent call last): File "a.out", line 2, in import statistics ImportError: No module named statistics |
fur3 |
Jan 11, 2016 - 5:11:12 am UTC |
| Re: How can I determine that a line is over? |
Butane |
Getline reads until the newline character, so it will automatically only read one line. You are actually reading line by line, its just that the judge clips output so you can't see all of your output.... |
ccc98s1 |
Jan 11, 2016 - 2:24:54 am UTC |
| How can I determine that a line is over? |
xXxP0t4t0MStRxXx |
How can I determine that a line is over? The sample case worked with my code, but for the actual test case, I am getting all of the lines with just one getline. |
ccc98s1 |
Jan 10, 2016 - 11:10:26 pm UTC |
| Re: What?!?!?! |
Butane |
Unfortunately the statistics module was introduced in version 3.4, so it's not supported by the judge. |
q1 |
Jan 10, 2016 - 8:17:33 pm UTC |
| What?!?!?! |
jialeyu |
Can someone please tell me what my error is?!?!?! |
q1 |
Jan 10, 2016 - 6:30:44 pm UTC |
| ERROR |
jialeyu |
Can I please see my whole error? |
fur3 |
Jan 10, 2016 - 6:12:25 pm UTC |
| Re: My code...:( |
Butane |
Are you running your code before you submit? You took in N as a string, and then tried to compare it to an int. Does that make sense? |
primes1 |
Jan 10, 2016 - 4:56:35 pm UTC |
| Re: My code...:( |
Venkat24 |
what does that mean? |
primes1 |
Jan 10, 2016 - 4:50:10 pm UTC |
| Re: My code |
Venkat24 |
Thanks! I just needed to change everything from elif to ifs! |
ccc15j1 |
Jan 10, 2016 - 4:34:29 pm UTC |
| Re: My code |
Butane |
Have you tested the sample inputs? Please make sure your code works for those. Just because your code works for some test cases it doesn't mean it works for all. |
ccc15j1 |
Jan 10, 2016 - 1:40:58 am UTC |