Download spoj_cpp_clean/ACPC10A/ACPC10A-9.cpp from slayone/uva_spoj_raw: direct link, hf CLI and curl.
- Browser
- Download file 826 Bytes
-
https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ACPC10A/ACPC10A-9.cpp
- Command line
-
hf download hf://datasets/slayone/uva_spoj_raw/spoj_cpp_clean/ACPC10A/ACPC10A-9.cpp
-
curl -L -o ACPC10A-9.cpp https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ACPC10A/ACPC10A-9.cpp
826 Bytes
| /* | |
| **************************************************************** | |
| **************************************************************** | |
| -> Coded by Stavros Chryselis | |
| -> Visit my github for more solved problems over multiple sites | |
| -> https://github.com/StavrosChryselis | |
| -> Feel free to email me at stavrikios@gmail.com | |
| **************************************************************** | |
| **************************************************************** | |
| */ | |
| int main() | |
| { | |
| int l,m,n; | |
| scanf("%d",&l); | |
| scanf("%d",&m); | |
| scanf("%d",&n); | |
| while(1) | |
| { | |
| if(m==0&&n==0&&l==0) | |
| break; | |
| else if((2*m)==(n+l)) | |
| printf("AP %d\n",(n+(m-l))); | |
| else | |
| printf("GP %d\n",(n*(m/l))); | |
| scanf("%d",&l); | |
| scanf("%d",&m); | |
| scanf("%d",&n); | |
| } | |
| return 0; | |
| } | |