-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
20 lines (20 loc) · 1.25 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<b>Grade</b> <a class=right href="https://hyperskill.org/learn/step/6524">Open on JetBrains Academy</a>
<br><br>
<html>
<head></head>
<body>
<p>There is a number of grades you can get in a test: A, B, C, D, F. The percentages are as follows:</p>
<p><samp>A: 90-100%</samp></p>
<p><samp>B: 80-90%</samp></p>
<p><samp>C: 70-80%</samp></p>
<p><samp>D: 60-70%</samp></p>
<p><samp>F: <60%</samp></p>
<p>Determine the grade that a student will get based on the student's score and the maximum score.</p>
<p>Note that the upper limit is not included in the range, except for the A grade. For example, a student with 60% will get D, with 70% or 79.9% — C, but the top score 100% is just A.</p>
<p><strong>The input format:</strong></p>
<p>Two lines: the first with a student's score and the second with the maximum.</p>
<p><strong>The output format:</strong></p>
<p>The grade of the student.</p>
</body>
</html><br><b>Sample Input:</b><br>75<br>100<br><b>Sample Output:</b><br>C<br><br><b>Sample Input:</b><br>100<br>200<br><b>Sample Output:</b><br>F<br><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 15 seconds</font><br><br>
<a href="https://hyperskill.org/learn/step/5926">Show topic summary</a>