Challenge 'Mod'

Post Reply
macz
Posts: 5
Joined: Sat Oct 25, 2008 11:12 am

Challenge 'Mod'

Post by macz »

hi all,

i wrote a HVM version of the requested mod operation - working for me perfectly
even with special cases like 2 mod 2 or also 5 mod 12 and such stuff.

looks all good for me

all i get is:

5 test(s) passed
and then "..my hvm string" is incorrect without any parameters for which the error occured
can anyone of the guys who solved this perhaps have a look ?

thanks & regards
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

my solution works perfectly

btw, you don't need extra cases. my solution counts 12 instructions
you can use the fact all numbers get floor'd
Last edited by m!nus on Fri Oct 31, 2008 11:13 pm, edited 1 time in total.
macz
Posts: 5
Joined: Sat Oct 25, 2008 11:12 am

Post by macz »

i was asking for having a look - but i think i know where my problem is -
i guess i have too many cycles

cu
macz
Posts: 5
Joined: Sat Oct 25, 2008 11:12 am

Post by macz »

ok solved it - thanks
Post Reply