- ACM
123
- 2024-2-25 15:53:21 @
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a=100;
for(int i=0;a-i*5>0;i++)
{
for(int j=0;a-i*5-j*3>0;j++)
{
int k=(a-i*5-j*3)*3;
if(i+j+k==100)
{
cout<<i<<" "<<j<<" "<<k<<endl;
}
}
}
return 0;
}
0 comments
No comments so far...