参考代码:
#include<bits/stdc++.h> using namespace std; string s1[10]={"geng","xin","ren","gui","jia","yi","bing","ding","wu","ji"}; string s2[12]={"shen","you","xu","hai","zi","chou","yin","mao","chen","si","wu","wei"}; int main() { int n; cin>>n; cout<<s1[n%10]<<s2[n%12]<<endl; return 0; }
0.0分
0 人评分
简单的a+b (C语言代码)浏览:689 |
买不到的数目 (C++代码)浏览:909 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:561 |
十->二进制转换 (C语言代码)浏览:1330 |
字符串问题 (C语言代码)浏览:1634 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:940 |
C语言程序设计教程(第三版)课后习题6.10 (C语言代码)浏览:588 |
wu-淘淘的名单 (C++代码)浏览:1532 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:616 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:580 |