QOJ.ac

QOJ

Type: Editorial

Status: Open

Posted by: jiangly

Posted at:

Last updated:

Back to Problem

题解

矩形的高和宽分别只有 $O(\sqrt n)$ 种,枚举之后求和即可。时间复杂度 $O(n)$。

Comments

No comments yet.