Ideas:
The three chickens from 1 to start for the cycle until you find the number of qualifying all the chickens on the output.
Code:
public class Chicken {
public static void main(String[] args) {
int big = 0, modder = 0, xiao = 0;
for (big = 0; big <= 100; big++) {
for (modder = 0; modder <= 100; modder++) {
for (xiao = 0; xiao <= 100; xiao++) {
if ((3 * big + 2 * modder + xiao / 3) == 100 && (big + modder + xiao) == 100 && xiao % 3 == 0) {
System.out.println("大鸡"+big+"只");
System.out.println("不大不小鸡"+modder+"只");
System.out.println("小鸡"+xiao+"只");
System.out.println();
}
}
}
}
}
}
Run effect diagram: