提交时间:2024-01-26 09:06:07
运行 ID: 128722
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,x,y,i=0; cin>>a>>b>>c; for(x=0;a*x<=c;x++) {for(y=0;b*y<=c;y++) {if(a*x+b*y==c) i++;}} cout<<i; }