
标签:
水题。。。
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
#define rep(i,s,t) for(int i=s;i<=t;i++)
int main(){
    int ans=0,n;scanf("%d",&n);
    rep(i,1,n) ans+=n/i;
    printf("%d\n",ans);
    return 0;
} 

bzoj1968: [Ahoi2005]COMMON 约数研究
标签:
原文地址:http://www.cnblogs.com/fighting-to-the-end/p/5859352.html