BZOJ_1698

 1 #include <cstdio>
 2   
 3 int n,ans;
 4   
 5 int main(){
 6     scanf("%d",&n);
 7     for (int i=1;i<=n;i++) ans+=n/i;
 8     printf("%d\n",ans);
 9     return 0;
10 }
View Code

 

posted @ 2015-12-28 10:56  443singer  阅读(94)  评论(0编辑  收藏  举报