Submission #473842

#TimeUsernameProblemLanguageResultExecution timeMemory
473842Ahmed_SolymanEuklid (COCI20_euklid)C++14
0 / 110
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll R(ll a,ll b){ if(a<b)return R(b,a); if(a>=b && b>1)return R(a/b,b); if(a>=b && b==1)return a; } int main() { ll t=1; while(t--){ ll a,b;cin>>a>>b; if(a==b)cout<<a<<" "<<b<<endl; else cout<<a*2<<" "<<a<<endl; } return 0; }

Compilation message (stderr)

euklid.cpp: In function 'll R(ll, ll)':
euklid.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...