Rosetta Problems

RSQ and RAQ

https://onlinejudge.u-aizu.ac.jp/problems/DSL_2_G