Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
71664 sh25_ganzy 不定方程求解 C++ Accepted 0 MS 236 KB 228 2025-10-26 19:00:38

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,cnt=0; cin>>a>>b>>c; for(int x=0;x<=c/a;x++){ if((c-a*x)%b==0){ cnt++; } } cout<<cnt; return 0; }


Judgement Protocol: