Rosetta Problems

ふたつの通貨 (Two Currencies)

https://atcoder.jp/contests/joisp2023/tasks/joisp2023_a