Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39035 fuhaoze 不定方程求解 C++ 通过 605 MS 244 KB 227 2024-01-30 14:39:36

Tests(1/1):


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


测评信息: