Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97527 | 唐安轩 | 按班分组 | C++ | Accepted | 1 MS | 268 KB | 296 | 2024-11-16 10:30:09 |
#include <iostream> int gcd(int c, int s) { while (s != 0) { int temp = s; s = c % s; c = temp; } return c; } int main() { int a,b,d; std::cin>>a; std::cin>>b; d=gcd(a, b); std::cout << d << std::endl; return 0; }