Download spoj_cpp_clean/ALICESIE/ALICESIE-7.cpp from slayone/uva_spoj_raw: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ALICESIE/ALICESIE-7.cpp
- Command line
-
hf download hf://datasets/slayone/uva_spoj_raw/spoj_cpp_clean/ALICESIE/ALICESIE-7.cpp
-
curl -L -o ALICESIE-7.cpp https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ALICESIE/ALICESIE-7.cpp
360 Bytes
| using namespace std; | |
| int main() { | |
| int t; | |
| long long int n; | |
| scanf( "%d", &t ); | |
| while ( t > 0 ) { | |
| scanf( "%lld", &n ); | |
| if ( n % 2 == 0 ) { | |
| printf( "%lld\n", n / 2 ); | |
| } | |
| else { | |
| printf( "%lld\n", n / 2 + 1 ); | |
| } | |
| --t; | |
| } | |
| return 0; | |
| } | |