12350 - Queen Game
Posted: Sat Apr 20, 2013 9:25 am
Can anyone give a hint on how to solve the problem??
C is up to 10^15.Is there a math solution or there's a quick algorithm?

C is up to 10^15.Is there a math solution or there's a quick algorithm?
