- robin 的博客
百钱买百鸡
- @ 2025-11-9 19:13:51
#include<bits/stdc++.h>
using namespace std;
int main(){
int cnt=0;
for(int i=0;i<=100/5;i++){
for(int j=0;j<=100/3;j++){
for(int k=0;k<=100;k++){
if(i+j+k==100&&i*5+j*3+k/3.0==100){
cnt++;
cout<<i<<" "<<j<<" "<<k<<endl;
}
}
}
}
return 0;
}