8 条题解

  • 2
    @ 2023-7-24 20:28:37
    #include<iostream>
    using namespace std;
    int main()
    {int a,b;
    cin>>a>>b;
    if(a+b==1)
    cout<<"one"<<endl;
    if(a+b==2)
    cout<<"two"<<endl;
    if(a+b==3)
    cout<<"three"<<endl;
    if(a+b==4)
    cout<<"four"<<endl;
    if(a+b==5)
    cout<<"five"<<endl;
    if(a+b==6)
    cout<<"six"<<endl;
    if(a+b==7)
    cout<<"seven"<<endl;
    if(a+b==8)
    cout<<"eight"<<endl;
    if(a+b==9)
    cout<<"nine"<<endl;
    if(a+b>9) 
    cout<<"None"<<endl;
    if(a+b<1 ) 
    cout<<"None"<<endl;
    return 0;
    }
    

    信息

    ID
    16
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    6939
    已通过
    2514
    上传者