Hi,
Got AC in this one after solving a similar problem -- COMMANDO (APIO10A). My code was right except the fact that it could try to multiply two high longs and the result overflowed which led to the WA. Adjusting data type set everything right! What's more interesting is that it took 19 days and a similar problem for me to actually get there!