Problem: https://mirror.codeforces.com/contest/1459/problem/C Editorial: https://mirror.codeforces.com/blog/entry/85750
The solution is all about like 4*10^5 many gcd computations of large (Int64) numbers. It appears that Haskell is too slow do just this!
C++ solution passes in ~ 1.3 sec (https://mirror.codeforces.com/contest/1459/submission/102278594). Haskell on the other hand exceeds TL (2 sec) with both Int64 and Integer types.
Integer https://mirror.codeforces.com/contest/1459/submission/102279283
Int64 https://mirror.codeforces.com/contest/1459/submission/102279784
Disappointing. Your thoughts?