1 条题解

  • 1
    @ 2026-7-30 15:10:26
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a, b, c;
    	cin >> a >> b >> c;
    	if ((a + b + c) % 2 == 0) {
    		if (a + b >= c) {
    			cout << "Yes";
    		} else {
    			cout << "No";
    		}
    	} else {
    		cout << "Bad";
    	}
    	return 0;
    }
    
    
    
    • 1

    【入门】判断3个整数是否满足条件

    信息

    ID
    30632
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    15
    已通过
    8
    上传者