Download spoj_cpp_clean/AE00/AE00-13.cpp from slayone/uva_spoj_raw: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/AE00/AE00-13.cpp
- Command line
-
hf download hf://datasets/slayone/uva_spoj_raw/spoj_cpp_clean/AE00/AE00-13.cpp
-
curl -L -o AE00-13.cpp https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/AE00/AE00-13.cpp
1.27 kB
| typedef long long i64; | |
| template <class T> void make_unique(T& v) {sort(all(v)); v.resize(unique(all(v)) - v.begin());} | |
| using namespace std; | |
| int f(int n){ | |
| int count = 0; | |
| for(int i=1, m=(int)(ceil(sqrt((double)(n)))); i<=m; ++i){ | |
| for(int j=i; i*j<=n; ++j)++count; | |
| } | |
| return count; | |
| } | |
| int main(){ | |
| freopen("data.in","r",stdin); | |
| int n; | |
| while(scanf("%d", &n) == 1){ | |
| int res = f(n); | |
| printf("%d\n",res); | |
| } | |
| return 0; | |
| } |