Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
6408 slx 不定方程求解 C++ 通过 0 MS 244 KB 249 2023-01-23 12:44:00

Tests(1/1):


#include <iostream> using namespace std; int main() { int a,b,c; int x,y; int 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<<endl; return 0; }


测评信息: