#include
#include
#include
int main(int argc, char *argv[])
{int t;
char grade;
while(scanf("%d",&t)!=EOF)
{if(t<0||t>100)
printf("Score is error!\n"); //这里掉了换行符了。
else if(t==100)
printf("A\n");
else
{switch(t/10)
{
case 9:grade='A';break;
case 8:grade='B';break;
case 7:grade='C';break;
case 6:grade='D';break;
default:grade='E';break;}
printf("%c\n",grade);}}
//system("PAUSE");
return 0;
}
#include
#include
using namespace std;
int main()
{
int t;
char s[1005];
string word;
scanf("%d",&t);
getchar();
while(t--)
{
gets(s);
word="";
int len=strlen(s);
s[len]=' ';
if(s[0]!=' ')word+=s[0];
else cout << ' ';
for(int i=1;i<=len;i++)
{
if(s[i]==' '&&s[i-1]!=' ')
{
cout<
word="";
continue;
}
else if(s[i]==' ')
{
if(i!=len)
cout<<' ';
}
else word.insert(0,1,s[i]);
}
cout<
return 0;
}