1389F.cpp 473 B

1234567891011121314151617181920212223
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int t;
  5. while(cin >> t) {
  6. if(t < 0 || t > 100) {
  7. cout << "Score is error!";
  8. } else if(t >= 90) {
  9. cout << "A";
  10. } else if(t >= 80) {
  11. cout << "B";
  12. } else if(t >= 70) {
  13. cout << "C";
  14. } else if(t >= 60) {
  15. cout << "D";
  16. } else {
  17. cout << "E";
  18. }
  19. cout << endl;
  20. }
  21. return 0;
  22. }