Problem : 2004 ( 成绩转换 ) Judge Status : Accepted
RunId : 5995511 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5995511 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h> 2 char r[11]={'E','E','E','E','E','E','D','C','B','A','A'}; 3 int main() 4 { 5 int s; 6 while (scanf("%d",&s)!=EOF) 7 { 8 if(s>100||s<0) 9 printf("Score is error!\n"); 10 else 11 printf("%c\n",r[s/10]); 12 } 13 return 0; 14 }