Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75392 sh25_shenpy 不定方程求解 C++ 编译错误 0 MS 0 KB 272 2025-12-06 13:12:08

Tests(0/0):


#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; } delete e,i,j,n,f,w; cout<<sum; return 0; }


测评信息: