Cod sursa(job #2884429)
Utilizator | Data | 3 aprilie 2022 15:29:50 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.3 kb |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ifstream fin ("euclid2.in");
ofstream fout ("euclid2.out");
int main(){
ios_base::sync_with_stdio(false);
int t; fin >> t;
while (t--){
int a , b; fin >> a >> b;
fout << __gcd(a , b) << '\n';
}
}