Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1242 李羽 15求两个数的最大公约数 C++ Runtime Error 1996 MS 268 KB 236 2023-08-23 10:17:00

Tests(0/10):


Code:

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


Run Info:

Runtime Error:[ERROR] A not allowed system call.
Call ID:275