#include<iostream>
using namespace std;
int main()
{
int n;
char ans;
while(cin >> n)
{
if(n > 100 || n < 0)
cout << "Score is error!" << endl;
else
{
ans = n > 89 ? 'A' : n > 79 ? 'B' : n > 69 ? 'C' : n > 59 ? 'D' : 'E';
cout << ans << endl;
}
}
return 0;
}
HDU 2004
最新推荐文章于 2022-01-25 10:12:39 发布