Download spoj_cpp_clean/AE00/AE00-21.cpp from slayone/uva_spoj_raw: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/AE00/AE00-21.cpp
- Command line
-
hf download hf://datasets/slayone/uva_spoj_raw/spoj_cpp_clean/AE00/AE00-21.cpp
-
curl -L -o AE00-21.cpp https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/AE00/AE00-21.cpp
334 Bytes
| /* | |
| math > number theory | |
| difficulty: none | |
| date: none | |
| by: @brpapa | |
| */ | |
| 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; | |
| } |