下面给出我的解法:
1 for (int z = 12; z <= 36; z++)
2 {
3 int y = 147 - 4 * z;
4 int x = 100 - z - y;
5 if (x > 0)
6 Response.Write(string.Format("{0},{1},{2}<br/>", x, y, z));
7 }
下面给出我的解法:
1 for (int z = 12; z <= 36; z++)
2 {
3 int y = 147 - 4 * z;
4 int x = 100 - z - y;
5 if (x > 0)
6 Response.Write(string.Format("{0},{1},{2}<br/>", x, y, z));
7 }