#include <iostream>
using namespace std;
int main()
{
int a,b,c;
int x,y;
int 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<<endl;
return 0;
}
1101:不定方程求解
最新推荐文章于 2024-09-07 07:08:08 发布