Rosetta Problems

ICPC 2022 miền Nam - E: Sum of Squares

https://oj.vnoi.info/problem/icpc22_mn_e