Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126814 葛锦东 判断身材 C++ Accepted 1 MS 272 KB 286 2025-07-21 17:25:47

Tests(3/3):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int a, d; double n;//标准体重 cin >> a >> d; n = (a - 100) * 0.9; if (d > n * 1.1) { cout << "fat"; } else if (d < n * 0.9) { cout << "thin"; } else { cout << "standard"; } return 0; }