Rosetta Problems

Sum of gcd of Tuples (Hard)

https://atcoder.jp/contests/abc162/tasks/abc162_e