- 【基础题】零件
零件
- 2024-2-25 15:48: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...
Information
- ID
- 210
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 9
- Tags
- # Submissions
- 108
- Accepted
- 39
- Uploaded By