```c #include <stdio.h> int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) { int gender, height, weight; scanf("%d %d %d", &gender, &height, &weight); if (gender == 1) { // 男生 if (height < 130) { printf("duo chi yu! "); } else if (height > 130) { printf("ni li hai! "); } else { printf("wan mei! "); } if (weight < 27) { printf("duo chi rou!\n"); } else if (weight > 27) { printf("shao chi rou!\n"); } else { printf("wan mei!\n"); } } else { // 女生 if (height < 129) { printf("duo chi yu! "); } else if (height > 129) { printf("ni li hai! "); } else { printf("wan mei! "); } if (weight < 25) { printf("duo chi rou!\n"); } else if (weight > 25) { printf("shao chi rou!\n"); } else { printf("wan mei!\n"); } } } return 0; } ``` [2024-10-30 16:30:00 | AI写代码神器 | 365点数解答]