Cod sursa(job #2568574)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 4 martie 2020 07:59:45
Problema Algoritmul lui Euclid Scor 100
Compilator cpp-64 Status done
Runda r3capitusulare Marime 0.22 kb
#include <bits/stdc++.h>

using namespace std;

ifstream fin("euclid2.in");
ofstream fout("euclid2.out");

main()
{
	int t;
	fin >> t;
	
	for(; t; --t)
	{
		int x, y;
		fin >> x >> y;
		
		fout << __gcd(x, y) << '\n';
	}
}