#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int main( int argc , char * argv[] ) {
int a,d;
long int count = 0;
float b,c;
cin >> a;
b=a;
c=sqrt(b);
d=c;
for( int i=1 ; i <= d ; i++ ) {
printf("%d/%d - %d-%i\n" , a,i,d,i);
count = count + ( (a/i) - (d-i) );
}
cout << count << endl;
return 0;
}
Arpit's Newsletter read by 15000+ engineers
🔥 Thrice a week, in your inbox, an essay about system design, distributed systems, microservices, programming languages internals, or a deep dive on some super-clever algorithm, or just a few tips on building highly scalable distributed systems.