| Title |
User |
Message |
Place |
Date Posted |
| Hardcoding |
Jlsajfj |
Damn this question is hard to hardcode. I actually have to assemble the cube into the correct position for all cases past 3 |
rubik |
Jan 23, 2016 - 4:43:08 pm UTC |
| Re: A problem... |
spencereir |
Your logic is simply wrong. What if the day is March 14? This compares as > 2 for day, and < 18 for month, which isn't covered by any of your if statements. |
ccc15j1 |
Jan 23, 2016 - 4:49:45 am UTC |
| A problem... |
DeboTessie |
Quite the same to Venkat24's problem, but even as I changed the elifs to ifs, the code is simply not working on Peg Judge. I am sure that I have done everything right. This question also seems pretty ... |
ccc15j1 |
Jan 23, 2016 - 1:57:53 am UTC |
| Why Is It Wrong ? |
zainnaiz |
I tried every test case I could come up with, yet I still get 6/15. Plz could anyone help, it would be greatly appreciated. THX. |
q4 |
Jan 23, 2016 - 12:23:03 am UTC |
| Re: i dont get whats wrong |
spencereir |
You are overcomplicating your if statements. Just because it works on samples doesn't guarantee that it will work on system tests. |
avatarearth |
Jan 22, 2016 - 11:46:28 am UTC |
| i dont get whats wrong |
Mehar_S |
im getting the sample correct, what is the problem with the code |
avatarearth |
Jan 22, 2016 - 2:14:21 am UTC |
| Re: code |
spencereir |
Well, did you try running this on your computer before submitting to the judge? There's a glaring syntax error on the last line. |
ccc07j1 |
Jan 21, 2016 - 7:22:53 pm UTC |
| Re: ... |
spencereir |
Although, for what it's worth, BigIntegers would be so ridiculously slow when it comes to exponentiation on the level required for this question there's not a chance they could pass in time. I'd wager... |
primes3 |
Jan 21, 2016 - 7:21:14 pm UTC |
| Re: ... |
Venkat24 |
in python there is no integer overflow thats why it cant be used for this and aplusb2 |
primes3 |
Jan 20, 2016 - 11:57:55 pm UTC |
| Re: why doesnt it work? |
Mehar_S |
print(int(variable) only rounds to 166, and there is no syntax error, can someone look at my code and tell me whats wrong? |
dwiteoct07p2 |
Jan 20, 2016 - 11:56:21 pm UTC |