-
Notifications
You must be signed in to change notification settings - Fork 10
/
AE00.cpp
executable file
·60 lines (54 loc) · 1008 Bytes
/
AE00.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
roh_7
ad-hoc-1
AE00
*/
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <numeric>
#include <utility>
#include <limits>
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
using namespace std;
#define INF (int)1e9
#define EPS 1e-9
#define REP(i, a, b) for(int i = a; i < b; ++i)
#define PB push_back
#define MP make_pair
typedef long long ll;
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<PII> VII;
const float PI = 3.1415926535897932384626433832795;
const int MOD = 1000000007;
int main()
{
int n,lim,i;
int ans=0;
cin>>n;
lim=sqrt(n);
for(i=1;i<=lim;i++)
{
ans+=(n/i)-(i-1);
}
cout<< ans;
return 0;
}