Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75394 sh25_shenpy 不定方程求解 C++ 运行超时 2000 MS 240 KB 245 2025-12-06 13:14:15

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { short n,f,w,i=0,j,sum=0; cin>>n>>f>>w; j=1.0*(w-n*i)/f; while(j>=0){ if((w-n*i)%f==0){ sum=sum+1; } i=i+1; } cout<<sum; return 0; }


测评信息: