66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

11024a  •  6天前


include<bits/stdc++.h>

using namespace std; int main() {

int cock,hen,chick;
for(int cock=0;cock<=20;cock++){
for(int hen=0;hen<=33;hen++){
int chick=(100-cock-hen);
if(cock*5+hen*3+chick/3==100&&chick%3==0){
cout<<cock<<" "<<hen<<" "<<chick<<endl;
}
}
}
return 0;
}

评论:

请先登录,才能进行评论