oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

psle Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

psle.html

Problem Description

Remember the GPA calculator you did last week? Yes it is useful but.. for PSLE, we don't benchmark using GPAs. As such, you have to create a program that takes in a score, s, and output the corresponding grade. (A*, A, B, C, D, E, U)

The information required can be found here:

A*: 91 and above
A: 75 to 90
B: 60 to 74
C: 50 to 59
D: 35 to 49
E: 20 to 34
U: Below 20

Input

The input will be a single non-negative integer not exceeding 100, s.

Output

The grade that corresponds to the score given to the program.

Sample Input 1

90

Sample Output 1

A

Sample Input 2

50

Sample Output 2

C

Sample Input 3

97

Sample Output 3

A*

Tags

Syntax

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2031s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o psle -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.