1 条题解

  • 0
    @ 2025-11-15 10:24:35
    #include<iostream>
    using namespace std;
    int main(){ // C++ 6级 天气
    	int n;
    	cin>>n;
    	switch(n){
    		case 1: cout<<"sunny";break;
    		case 2: cout<<"cloudy";break;
    		case 3: cout<<"rainy";break;
    		case 4: cout<<"snowy";break;
    		case 5: cout<<"foggy";break;
    		case 6: cout<<"stormy";break;
    		case 7: cout<<"hazy";break;
    		case 8: cout<<"windy";break;
    		case 9: cout<<"drizzly";break;
    		case 10: cout<<"thunderstorm";break;
    		default:cout<<"invalid input";
    	}
    	return 0;
    }
    
    
    
    • 1

    信息

    ID
    1978
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    (无)
    递交数
    12
    已通过
    11
    上传者