delete pics to save space
This commit is contained in:
15
history_source/信息学奥赛一本通/1.4.4.11.cpp
Normal file
15
history_source/信息学奥赛一本通/1.4.4.11.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int ans=0,a,b,c;
|
||||
cin>>a>>b>>c;
|
||||
for(int i=0;i<=c/a+1;i++)
|
||||
{
|
||||
for(int j=0;j<=(c-i*a)/b+1;j++)
|
||||
if(i*a+j*b==c) ans++;
|
||||
}
|
||||
cout<<ans<<endl;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user