Rosetta Problems

Ai + Bj + Ck = X (1 <= i, j, k <= N)

https://atcoder.jp/contests/abc315/tasks/abc315_g