2 97 80
A B
#include<iostream>
#include<cstring>
#include<string>
#include<cstdio>
using
namespace std;
int main(int argc, char* argv[])
{
int
m;
cin>>m;
while(m--)
{
int n;
cin>>n;
if(n>=90&&n<=100)
cout<<"A"<<endl;
else
if(n>=80&&n<=89)
cout<<"B"<<endl;
else
if(n>=70&&n<=79)
cout<<"C"<<endl;
else
if(n>=60&&n<=69)
cout<<"D"<<endl;
else
cout<<"E"<<endl;
}
return 0;
}
原文:http://www.cnblogs.com/52Cyan/p/3695650.html