#include<iostream>
using namespace std;
int main() {
int a;
while (cin >> a) {
if (a < 0) {
printf("Score is error!\n");
continue;
}
switch (a/10) {
case 10:
case 9:printf("A\n");break;
case 8:printf("B\n");break;
case 7:printf("C\n");break;
case 6:printf("D\n");break;
case 5:case 4:case 3:case 2:case 1:
case 0:printf("E\n");break;
default:printf("Score is error!\n");
}
}
}
杭电2004
最新推荐文章于 2019-01-26 13:20:43 发布