Download spoj_cpp_clean/ACPC10A/ACPC10A-5.cpp from slayone/uva_spoj_raw: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ACPC10A/ACPC10A-5.cpp
- Command line
-
hf download hf://datasets/slayone/uva_spoj_raw/spoj_cpp_clean/ACPC10A/ACPC10A-5.cpp
-
curl -L -o ACPC10A-5.cpp https://huggingface.co/datasets/slayone/uva_spoj_raw/resolve/main/spoj_cpp_clean/ACPC10A/ACPC10A-5.cpp
353 Bytes
| using namespace std; | |
| int main() | |
| { | |
| int a,b,c,d; | |
| cin>>a>>b>>c; | |
| while(a!=0||b!=0||c!=0) | |
| { | |
| d=b-a; | |
| if(d==(c-b)) | |
| { | |
| cout<<"AP "<<(c+d)<<endl; | |
| } | |
| else | |
| { | |
| d=b/a; | |
| cout<<"GP "<<(c*d)<<endl; | |
| } | |
| cin>>a>>b>>c; | |
| } | |
| return 0; | |
| } | |