Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40225 | 奚晨瑞 | 不定方程求解 | C++ | Accepted | 1 MS | 240 KB | 187 | 2024-02-08 14:15:40 |
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int S=0; for(int x=0;x<=c/a;x++){ if((c-a*x)%b==0){ S++; } } cout<<S; return 0; }