Codemaster
رفتن به کانال در Telegram
💯% Working Solution Provider of any Codechef Contest Very Trustable
نمایش بیشتر5 799
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-127 روز
-7330 روز
آرشیو پست ها
5 799
#include <bits/stdc++.h>
#define int long long
#define vi vector<int>
#define vb vector<bool>
#define get(a) \
for (auto &i : a) \
cin >> i
#define put(a) \
for (auto &i : a) \
cout << i << " "
#define endl "\n"
#define sp << " " <<
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
const int N = 1e6 + 2;
const int mod = 1e9 + 7;
const int INF = LLONG_MAX;
using namespace std;
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;cin>>t;
while(t--){
int x,y;cin>>x>>y;
cout<<__gcd(x,y)<<endl;
}
return 0;
}
