top1编程
← 返回题目
题解

【入门】游乐设施

1 条题解

  • 0
    @ 2026-7-28 22:09:44
    #include <bits/stdc++.h>
    using namespace std;
    
    
    int main(){
    	double x,y;
    	cin>>x>>y;
    	if(x >= 60 && y < 60 || x < 60 && y >= 60){
    		cout<<"green";
    	}else{
    		cout<<"red";
    	}
    }
    
    • 1