提交时间:2024-02-13 13:50:56

运行 ID: 40559

#include<iostream> using namespace std; int main(){ int a,b,c,x,y,s=0; cin>>a>>b>>c; for(x=0;x<=c/a;x++){ y=(c-a*x)/b; if(a*x+b*y==c)s++;。 } cout<<s; return 0; }