QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 512 MB
Statistics

Note that $1 \leq T \leq 1.1 \times 10^4$