Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137256 彭士宝 公约数问题 C++ Accepted 1 MS 272 KB 288 2025-11-16 22:10:26

Tests(10/10):


Code:

#include <iostream> using namespace std; int gcd(int a, int b) { if (b == 0) { return a; } else { return gcd(b, a % b); } } int main() { int x, y; cin >> x >> y; int result = gcd(x, y); cout << result << endl; return 0; }