Title |
User |
Message |
Date Posted |
Re: Help |
jargon |
An important skill in computer science is the ability to create your own test cases, and verify your solution. Do some testing of your own. Create some inputs, figure out what the output should be, t... |
Jan 19, 2018 - 7:37:36 pm UTC |
Help |
loltroll21 |
|
Jan 19, 2018 - 5:12:20 pm UTC |
Re: What is wrong? |
FatalEagle |
There are carriage returns ('\r') in the input. |
Apr 19, 2014 - 12:48:26 am UTC |
Re: What is wrong? |
awaykened |
same thing here o.o my code worked when i used raw_input().strip() instead of raw_input() is there a reason to why this is? |
Apr 19, 2014 - 12:46:06 am UTC |
Re: What is wrong? |
jargon |
In case you're curious, here's your exact error output: Traceback (most recent call last): File "./a", line 7, in x=y+x TypeErr... |
Feb 02, 2014 - 6:42:09 am UTC |
Re: What is wrong? |
Butane |
I ended up solving the problem by converting the input into base 10, and then to base 8. However, I got my old code that was done by using the method given in the question, and I added .strip() to the... |
Jan 30, 2014 - 6:17:23 am UTC |
Re: What is wrong? |
Tang |
Hope it's not too late, but I solved this issue (in Python) by using input().strip() instead of only input(). |
Jan 30, 2014 - 6:06:39 am UTC |
What is wrong? |
Butane |
My code works fine, however I get 0 on the test cases. I am a bit confused because the problem seems simple enough, and I tested many different numbers and the program works. Is there something I am m... |
Dec 20, 2013 - 4:30:26 am UTC |