1 条题解

  • 0
    @ 2025-12-11 10:24:42
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	ios::sync_with_stdio(false);
    	cin.tie(nullptr);
    	
    	int N;
    	cin >> N;
    	while (N--) {
    		int H, W_shijin;
    		cin >> H >> W_shijin;
    		
    		// 市斤 -> 公斤
    		double W = W_shijin / 2.0;
    		
    		// 标准体重
    		double S = (H - 100) * 0.9;
    		
    		// 允许误差 10%
    		double limit = S * 0.1;
    		
    		if (fabs(W - S) < limit) {
    			cout << "You are wan mei!\n";
    		} else if (W > S) {
    			cout << "You are tai pang le!\n";
    		} else {
    			cout << "You are tai shou le!\n";
    		}
    	}
    	return 0;
    }
    
    
    
    • 1

    信息

    ID
    135
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    (无)
    递交数
    1
    已通过
    1
    上传者