pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
Binance
2 hours ago
Jsonutility argumentexception
4 hours ago
base OnStartAuthority
4 hours ago
NetworkClient AddPlayer
4 hours ago
WebGL Failed to load resource
4 hours ago
Unity err memory
4 hours ago
Unity Package Cache error
4 hours ago
JNI Error
4 hours ago
GLFW Error
4 hours ago
Process crashed
4 hours ago
gcd
#include <iostream>
#include <bits/stdc++.h>
using
namespace
std;
int
main
(
)
{
int
x,y;
cin>>x>>y;
while
(
__gcd
(
x,y
)
==
1
)
{
x++,y++;
}
cout<<x<< endl<<y<<endl;
}
Parsed in 0.003 seconds