CC • 1年前
#include <bits/stdc++.h> using namespace std; int main() { int m, n; cin >> m >> n; while (m && n) { if (m > n) { m %= n; } else { n %= m; } } cout << m + n; return 0; }
评论:
6
请先登录,才能进行评论