//2609254 2011-07-31 20:08:14 Accepted 3479 C++ 0 180 ylwh!
#include <stdio.h>
char codes[][10]={"Dragon", "Rabbit", "Tiger", "Ox", "Rat", "Pig", "Dog", "Rooster",
"Monkey", "Ram", "Horse", "Snake"};
int main()
{
int t, n;
scanf("%d", &t);
while(t--)
{
scanf("%d", &n);
printf("%s\n", codes[ n%12 ]);
}
return 0;
}
zoj 3479 Chinese Zodiac
最新推荐文章于 2018-07-28 08:38:58 发布