Problem : Judge Status : AcceptedRunId : 5995511 Language : C Author : Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include2 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 else11 printf("%c\n",r[s/10]);12 }13 return 0;14 }