Submission #473812

#TimeUsernameProblemLanguageResultExecution timeMemory
473812Ahmed_SolymanEuklid (COCI20_euklid)C++14
4 / 110
1 ms284 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t;cin>>t; while(t--){ ll g,h;cin>>g>>h; if(g==h)cout<<g<<" "<<h<<endl; else{ if(__gcd(2,1)==g)cout<<1<<" "<<2<<endl; else if(__gcd(2,0)==g)cout<<0<<" "<<2<<endl; } } return 0; }
#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...