Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128722 黄曦 不定方程的解 C++ 通过 100 0 MS 248 KB 193 2024-01-26 09:06:07

Tests(4/4):


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


测评信息: