#include using namespace std;

int main() { int N; cin >> N;

for (int i = 0; i < N; i++) {
    int H, W;
    cin >> H >> W;
    
    double standard = (H - 100) * 0.9;
    double difference = W - standard;
    double threshold = standard * 0.1;
    
    if (difference < -threshold) {
        cout << "You are tai shou le!" << endl;
    } else if (difference > threshold) {
        cout << "You are tai pang le!" << endl;
    } else {
        cout << "You are wan mei!" << endl;
    }
}

return 0;

}

C++ 程序:计算标准体重并判断身材

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

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