2022-08-18 11:51:42 +08:00

15 lines
247 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# L - Harmonic Number (II)
* https://vjudge.net/contest/509210#problem/L
### 题意
res = res + n / i;求和1 ≤ n < 2^31
### 做法
左右两部分考虑
sqrt(n)前的直接求
后面的按n/2~1,n/3~n/2……,n/m)
特判m
### 关键词
### 易错点
* 特判m
### 工具箱
*