#include <stdio.h> #include <stdlib.h>

int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) { double h, w; scanf("%lf %lf", &h, &w); double t = (h - 100) * 0.9; if (abs(w - t) < t * 0.1) { printf("You are wan mei!\n"); } else if (w > t) { printf("You are tai pang le!\n"); } else { printf("You are tai shou le!\n"); } } return 0; }

C语言代码:计算标准体重并判断身材是否完美

原文地址: https://www.cveoy.top/t/topic/oPIz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录