I don't know where to post question about algorithm, so I think I will post here 
Welll, I can't code big integer arithmatic operation... it seems many of spoj's problem need calculation that exceed 64 bit data type...
Can you give any snippet of code...?
or maybe explain me how to code big integer...
thx 