Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151298 李昱龙 方程求解 C++ Runtime Error 0 MS 264 KB 249 2026-04-11 15:17:38

Tests(0/10):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int a,b,sum=0; cin>>a>>b; for(int x=0;x<=a;x++){ if(b%x==0&&b%(a-x)==0&&x*(a-x)==b){ sum++; } } if(sum==0){ cout<<"No"; } else{ cout<<"Yes"; } return 0; }


Run Info:

Runtime Error:Floating point exception