[恢]hdu 2004

2011-12-12 03:41:00

地址:http://acm.hdu.edu.cn/showproblem.php?pid=2004

题意:中文。

代码:

# include <stdio.h>


int main ()
{
int num ;
char tab[] = "EEEEEEDCBAA" ;
while (~scanf ("%d", &num))
{
if (num < 0 || num > 100)
puts ("Score is error!") ;
else printf ("%c\n", tab[num/10]) ;
}
return 0 ;
}



posted @ 2012-01-06 14:13  Seraph2012  阅读(145)  评论(0编辑  收藏  举报