内存最少
2025-08-24 16:06:13
发布于:上海
2阅读
0回复
0点赞
#include<cstdio>
using namespace std;
int main(){
int a,b,c,ans=0;
scanf("%d%d%d",&a,&b,&c);
for(int x=0;x<=c/a;x++)
for(int y=0;y<=c/b;y++)
if(a*x+b*y==c)
ans++;
printf("%d",ans);
return 0;
}
这里空空如也




有帮助,赞一个