Rosetta Problems

Equation

https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_ck