File size: 206 Bytes
c4b0eef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a,b;
cin>>a;
b=0;
for(int i=1;i<=((int)sqrt(a));i++)
b=b+((a/i)-i+1);
cout<<b<<endl;
return 0;
}
|