Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1055 | 曾浩森 | 15求两个数的最大公约数 | C++ | Runtime Error | 1995 MS | 252 KB | 257 | 2023-07-01 14:35:59 |
#include<iostream> using namespace std; int main(){ int a,b,s,i; cin>>a>>b; if(a>b) i=b; else i=a; while(1){ if(a%i==0&&b%i==0){ cout<<i; break; } i++; } }
Runtime Error:[ERROR] A not allowed system call. Call ID:275