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 ;
}