Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98802 | 廖宸睿 | 最大公约数(函数) | C++ | Runtime Error | 0 MS | 268 KB | 326 | 2024-11-23 14:50:47 |
#include <iostream> #include <cstdio> using namespace std; int a(int e,int w){ int q=0; while(e%(w%e)!=0){ e=e/2; w=w/2; } return w%e; } int main() { int m,n; cin>>m>>n; cout<<a(m,n); return 0; }
Runtime Error:Floating point exception