2 条题解

  • 3

    #include <iostream>
    using namespace std;
    int main( )
    {
    int n;
    cin>>n;
    switch (n)
    {
    case 1:cout<<"Monday";break;
    case 2:cout<<"Tuesday";break;
    case 3:cout<<"Wednesday";break;
    case 4:cout<<"Thursday";break;
    case 5:cout<<"Friday";break;
    case 6:cout<<"Saturday";break;
    case 7:cout<<"Sunday";break;
    default:cout<<"Wrong Answer";
    }
    }

  • 0

    #include<iostream>
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    switch(n)
    {
    case 1:cout<<"Monday"<<endl;break;
    case 2:cout<<"Tuesday"<<endl; break;
    case 3:cout<<"Wednesday"<<endl;break;
    case 4:cout<<"Thursday"<<endl;break;
    case 5:cout<<"Friday"<<endl;break;
    case 6:cout<<"Saturday"<<endl;break;
    case 7:cout<<"Sunday"<<endl;break;
    default:cout<<"Wrong Answer";
    }
    return 0;
    }

  • 1

信息

ID
1713
难度
3
分类
(无)
标签
递交数
387
已通过
180
通过率
47%
被复制
2
上传者