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

Tests(0/1):


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


测评信息: