>>640
正解

C++
https://ideone.com/09pUlf

312500はどうやって求めました?