Question regarding Challenge 'Mod'

Post Reply
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Question regarding Challenge 'Mod'

Post by eike42 »

5 test(s) passed
'xxx' is incorrect.

On the other challenges it always told me the results of the failed tests. Is this not always turned on? I'm a bt confused what might have gone wrong...
MerickOWA
Posts: 182
Joined: Mon Apr 07, 2008 5:54 pm
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post by MerickOWA »

view the source of the html you get back. I'm betting the error message is in there. Theres an extra '<' in the html which shouldn't be there, so depending on your browser, you may get the error message, or the browser might just interpret it as a bad html tag and drop that whole section.

Theres 6 tests too, so its also possible that you're failing the last test, altho, im not sure why it wouldn't show it (unless its because of the previously mentioned html bug)
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Post by eike42 »

damn... was hoping it was only 5 tests ;)

Thanks for the hint... will try tomorrow :)
eike42
Posts: 15
Joined: Sun Oct 26, 2008 1:17 pm

Post by eike42 »

Ah... it was in the source... cycle limit exceeded :lol:

Reminds me of an easier way to do :D
Grammaton
Posts: 9
Joined: Tue Nov 04, 2008 11:32 am
Location: Bavaria, Germany

Post by Grammaton »

I had the same problem,
first i didn't understand fully what was meant by the cycle value, but after looking into the python source i figured out that using minus is not leading to the solution.
Then i used another calculation way, i think its obvious which one :-)
the funny thing is, with the second solution i also past the next level fast mod.
I am asking me which code can pass "Mod" but not "Fast Mod" :-)
Post Reply