提交时间:2024-01-26 09:48:27

运行 ID: 128793

#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n; cin>>a>>b>>c; n=0; for(int x=0;x<=c;x++){ for(int y=0;y<=c;y++){ if(a*x+b*y==c){ n++; cout<<c; } } } return 0; }