#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int x;
while( cin >> x)
{
if( x < 0 || x > 100)
{
cout << "Score is error !" << endl;
}
else if( x >= 90)
{
cout << "A" << endl;
}
else if( x >= 80)
{
cout << "B" << endl;
}
else if( x >= 70)
{
cout << "C" << endl;
}
else if( x >= 60)
{
cout << "D" << endl;
}
else cout << "E" << endl;
}
system("pause");
}
hdoj2004
最新推荐文章于 2021-03-03 13:17:21 发布