File size: 334 Bytes
c4b0eef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
   math > number theory
   difficulty: none
   date: none 
   by: @brpapa
*/
#include <iostream>
#include <queue>
#include <cmath>
using namespace std;

int main() {
   int n, qte = 0;
   cin >> n;

   for (int k = 1; k <= sqrt(n); k++)
      for (int i = k; i * k <= n; i++)
         qte++;

   cout << qte << endl;
   return 0;
}