Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39033 yuzhengxun 不定方程求解 C++ 编译错误 0 MS 0 KB 236 2024-01-30 14:37:29

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int cnt=0; for(int x=0;x<10000;x++){ for(int y=0;j<10000;y++){ if((a*x+b*y)==c){ cnt++; } } } cout<<cnt; return 0; }


测评信息: