QOJ.ac

QOJ

Type: Editorial

Status: Open

Posted by: jiangly

Posted at: 2026-02-19 13:09:39

Last updated: 2026-02-19 13:09:59

Back to Problem

题解

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

Comments

No comments yet.