The 11th Zhejiang University Programming Contest - C/ Chinese Zodiac
返回目录 题目大意:输入今年(2011)虚岁年龄,输出他的生肖属相。 题目类型:基础模拟题 题目分析:很明显的%12循环数,0~11记录生肖,注意生肖顺序应该是从今年的兔倒着数过去的。 代码: //子(鼠)丑(牛)寅(虎)卯(兔)辰(龙)巳(蛇)午(马)未(羊)申(猴)酉(鸡)戌(狗)亥(猪)//兔//"Rabbit","Dragon","Snake","Horse","Ram","Monkey"