Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Pera

Problemset: Cutgrade

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-03 12:28:27

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);

    int s; cin >> s;
    string result = "";
    if (s >= 85) result = "A";
    else if (s >= 80) result = "B+";
    else if (s >= 75) result = "B";
    else if (s >= 70) result = "C+";
    else if (s >= 65) result = "C";
    else if (s >= 60) result = "D+";
    else if (s >= 50) result = "D";
    else result = "F";
    cout << result << '\n';
}