#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,ans=0; cin>>a>>b>>c; for(int x=0;x<=c;x++) for(int y=0;y<=c;y++) if(a*x+b*y==c) ans++; cout<<ans<<endl; return 0; }
使用您的 清北信奥登峰计划 通用账户