Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: cyblox_boi

Problemset: Cutgrade

Language: cpp

Time: 0.004 second

Submitted On: 2025-12-29 21:19:07

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int score;
    cin >> score;

    string grade;

    if (score >= 85)
    {
        grade = "A";
    }
    else if (score >= 80)
    {
        grade = "B+";
    }
    else if (score >= 75)
    {
        grade = "B";
    }
    else if (score >= 70)
    {
        grade = "C+";
    }
    else if (score >= 65)
    {
        grade = "C";
    }
    else if (score >= 60)
    {
        grade = "D+";
    }
    else if (score >= 50)
    {
        grade = "D";
    }
    else
    {
        grade = "F";
    }

    cout << grade << '\n';

    return 0;
}