Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128717 黄本瀚 不定方程的解 C++ 解答错误 0 0 MS 240 KB 209 2024-01-26 09:05:02

Tests(0/4):


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


测评信息: