Hi Per, I used long double because I have no idea how to solve it using integer arithmetic. I have considered using Chinese Remainder Theorem(as Cho said in previous post) + BigInt to solve this problem, but it is too troublesome. (In the other way, I am too lazy

)
May I know what is the expected approach to solve the problem??