15 条题解
-
1
#include<bits/stdc++.h> #define int long long using namespace std; const int N=1e4+10; const int INF=0x3f3f3f3f; char a[][30]={"zero","one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "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","sixty"}; int n,m; signed main() { cin >> n >> m; cout << a[n] << " "; if(m==0) { cout << "o'clock"; } else cout << a[m]; return 0; }暴力出奇迹,打表过样例
信息
- ID
- 1084
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 6
- 标签
- 递交数
- 245
- 已通过
- 84
- 上传者