Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
71675 sh25_wangsj 不定方程求解 C++ Accepted 0 MS 244 KB 245 2025-10-26 20:29:11

Tests(1/1):


#include <iostream> using namespace std; int main() { int a,b,c,x=0,j=0,d; cin>>a>>b>>c; while(a*x<=c){ d=c-a*x; if(d%b==0){ j=j+1; } x=x+1; } cout<<j; return 0; }


Judgement Protocol: