1 条题解

  • 2
    @ 2025-12-5 10:12:47
    #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;
    }
    
    • 1

    信息

    ID
    6943
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    6
    已通过
    5
    上传者