Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
40559 王shizhao 不定方程求解 C++ 编译错误 0 MS 0 KB 184 2024-02-13 13:50:56

Tests(0/0):


#include<iostream> using namespace std; int main(){ int a,b,c,x,y,s=0; cin>>a>>b>>c; for(x=0;x<=c/a;x++){ y=(c-a*x)/b; if(a*x+b*y==c)s++;。 } cout<<s; return 0; }


测评信息: