pastebin

Paste Search Dynamic
Recent pastes
gcd
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.         int x,y;
  7.     cin>>x>>y;
  8.  
  9. while(__gcd(x,y)==1){
  10.   x++,y++;
  11. }
  12.  
  13. cout<<x<< endl<<y<<endl;
  14.  
  15. }
Parsed in 0.003 seconds