| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78071 | 张黄源 | 15求两个数的最大公约数 | C++ | Runtime Error | 0 MS | 264 KB | 189 | 2024-06-16 14:18:45 |
#include<iostream> using namespace std; int main() { int m,n,x; int i; cin>>m>>n; while(i < m && i < n) { if(m % i==0){ x = i; } i++; } cout<<x; return 0; }
Runtime Error:Floating point exception