题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1968
代码:
**#include <cstdio>**
**int n,ans=0;**
**int main(){**
** scanf("%d",&n);**
** for (int i=0;i++<n;) ans+=n/i;**
** printf("%d\n",ans);**
** return 0;**
**}**
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1968
代码:
**#include <cstdio>**
**int n,ans=0;**
**int main(){**
** scanf("%d",&n);**
** for (int i=0;i++<n;) ans+=n/i;**
** printf("%d\n",ans);**
** return 0;**
**}**