一本通1101

//qf
#include<bits/stdc++.h>
#define f(i,j,n) for(register int i=j;i<=n;i++)
using namespace std;
int a,b,c;
int x,y;
int sum=0;
signed main(){
  	cin>>a>>b>>c;
  	for(x=0;x<=c/a;x++) {
		y=(c-a*x)/b;
		if(a*x+b*y==c) sum++;
  	}
  	cout<<sum<<endl;
	return 0;
}
posted @ 2019-04-12 21:59  Isaunoya  阅读(202)  评论(0编辑  收藏  举报
TOP