You are viewing a single comment's thread. Return to all comments →
Accepted by using __int128_t in C++. (only for comparision)
bool is_less(int64_t x1, int64_t y1, int64_t x2, int64_t y2) { return (__int128_t)x1 * y2 < (__int128_t)x2 * y1; }
search the answer in continued fraction tree. floating point error will cause problem.
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #71: Ordered fractions
You are viewing a single comment's thread. Return to all comments →
Accepted by using __int128_t in C++. (only for comparision)
search the answer in continued fraction tree. floating point error will cause problem.