Rosetta Problems

数式とクエリ

https://atcoder.jp/contests/bitflyer2018-final/tasks/bitflyer2018_final_e