Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128774 汤雨帆 不定方程的解 C++ 通过 100 0 MS 244 KB 207 2024-01-26 09:33:34

Tests(4/4):


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


测评信息: