15 条题解

  • 0
    @ 2026-5-31 18:46:40
    #include <bits/stdc++.h>
    using namespace std;
    const int N=1e5+10; 
    int n;
    char a[][30]={
    "zero",
    "one",
    "two",
    "three",
    "four",
    "five",
    "six",
    "seven",
    "eight",
    "nine",
    "ten",
    "eleven",
    "twelve",
    "thirteen",
    "fourteen",
    "fiftenn",
    "sixteen",
    "seventeen",
    "eighteen",
    "nineteen",
    "twenty",
    "twenty one",
    "twenty two",
    "twenty three",
    "twenty four",
    "twenty five",
    "twenty six",
    "twenty seven",
    "twenty eight",
    "twenty nine",
    "thirty",
    "thirty one",
    "thirty two",
    "thirty three",
    "thirty four",
    "thirty five",
    "thirty six",
    "thirty seven",
    "thirty eight",
    "thirty nine",
    "forty",
    "forty one",
    "forty two",
    "forty three",
    "forty four",
    "forty five",
    "forty six",
    "forty seven",
    "forty eight",
    "forty nine",
    "fifty",
    "fifty one",
    "fifty two",
    "fifty three",
    "fifty four",
    "fifty five",
    "fifty six",
    "fifty seven",
    "fifty eight",
    "fifty nine",
    };
    int main()
    {
       int n,m;
       cin>>n>>m;
       cout<<a[n]<<" ";
       if(n==0)
       {
       	cout<<"o'clock";
       }
       else
       {
       	    cout<<a[m];
       }
    }
    

    信息

    ID
    1084
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    242
    已通过
    89
    上传者