T708711 向上取整的数论分块

题目背景

rt.

题目描述

你需要求出: $$ \sum_{i=1}^{n}⌈\frac{𝑛}{𝑖}⌉ $$ **多测。**

输入格式

第1行一个整数T表示测试点组数。 之后T行每行一个整数$n$.

输出格式

T行,每行一个整数表示答案

说明/提示

对于 $100\%$ 的数据 $n\leq 10^{9} \space \space T\leq 1000$ 题解: https://blog.csdn.net/qq_45809243/article/details/137957715 https://www.luogu.com.cn/article/spma9yqr