QOJ.ac

QOJ

Time Limit: 3 s Memory Limit: 512 MB

# 1671. Japanese Game

Statistics