Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73999 文 按班分组 C++ Accepted 1 MS 272 KB 213 2024-05-20 21:56:04

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; int c = a%b; while(c != 0) { a=b; b=c; c = a%b; } cout<<b; return 0; }