|
|
back to boardOhhhf! @Last i did it in 0.23 sec and 131KB. see for hints Hi all i didnt see was s might be 0 !!!! u should remeber too: if odd(s) then writeln(0) and also some tests: 5 10 ---> 15876 50 896 ---> 1625625 10 10 ---> 4008004 49 2 ---> 2401 1 20 ---> 0 50 0 ---> 1 (which i didnt think!) Have Nice Time mail me 4 more help aidin_n7@hotmail.com u rule ~nt~ Posted by foxX 7 Mar 2003 23:24 > Hi > all i didnt see was s might be 0 !!!! > u should remeber too: > if odd(s) then writeln(0) > and also some tests: > 5 10 > ---> 15876 > > 50 896 > ---> 1625625 > > 10 10 > ---> 4008004 > > 49 2 > ---> 2401 > > 1 20 > ---> 0 > > 50 0 > ---> 1 (which i didnt think!) > > Have Nice Time > mail me 4 more help > aidin_n7@hotmail.com > Impossible Impossible! This problem's testdata is verry messed up. If you do it with large numbers, you'll see that these results are incorrect. |
|
|