3 条题解

  • 1
    @ 2023-6-21 22:26:54

    简单

    #include<bits/stdc++.h>
    using namespace std;
    //用一个字符串记录9个数的英文
    string a[10]={"one","two","three","four","five","six","seven","eight","nine"};
    int main(){
    int n;
    cin>>n;
    if(n<1||n>9) cout<<"-1";
    else cout<<a[n-1];
    return 0;
    }
    

    信息

    ID
    44
    时间
    1000ms
    内存
    16MiB
    难度
    1
    标签
    递交数
    82
    已通过
    54
    上传者