top1编程
← 返回题目
题解

【入门】能不能进入待选名单?

1 条题解

  • 0
    @ 2026-7-28 22:09:44
    #include <bits/stdc++.h>
    using namespace std;
    
    
    int main(){
    	int x,y,z;
    	cin>>x>>y>>z;
    	if(x >= 86 && y >= 86 && z >= 86 && (x + y + z) / 3 >= 90){
    		cout<<"good";
    	} else{
    		cout<<"sorry";
    	}
    }
    
    • 1