Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78108 张黄源 按班分组 C++ Time Limit Exceeded 1000 MS 264 KB 199 2024-06-16 14:38:01

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { int a,b,w=1; int i = 1; cin>>a>>b; while(i <= a&&i <= b){ if(a % i == 0&&b % i == 0){ w = i; } } cout<<w; return 0; }