This commit is contained in:
e2hang
2025-09-16 23:10:48 +08:00
parent e9519e8558
commit 24522486f1
10 changed files with 249 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#include <iostream>
using namespace std;
int gcd(int a, int b){
if(b == 0) return a;
return gcd(b, a % b);
}
int main(){
int a, b;
cin >> a >> b;
cout << gcd(a, b) << endl;
return 0;
}