Extra spaces in your output may lead to "Wrong Answer".
QOJ.ac
QOJ
Time Limit:
6.0 s
Memory Limit:
1024 MB
Hackable ✓
Xuzhou Regional 2018
H. Rikka with A Long Colour Palette
This problem is prepared by
clrs97 .