In college, many grades are converted into Grade Point Average (GPA) as a reference for further studies.
For each course, the GPA conversion rule is as follows:
Rank | Basic GPA | Adjustment | Adjustment GPA | |
A | 4.0 | + | +0.3 | |
B | 3.0 | 0 | 0.0 | |
C | 2.0 | - | -0.3 | |
D | 1.0 |
The total GPA is the sum of Basic GPA and Adjustment GPA.
Given the rank and adjustment, can you calculate the corresponding GPA?
Rank and Adjustment separated by a space
The corresponding GPA with one digit after the decimal point.
If the GPA is 4.0, you must print 4.0.
4 or 4.00 is incorrect.
Also, if the GPA is 3.7, you must print 3.7, too.
No. | Testdata Range | Score |
---|---|---|
1 | 0~11 | 100 |
No. | Time Limit (ms) | Memory Limit (KiB) | Output Limit (KiB) | Subtasks |
---|---|---|---|---|
0 | 1000 | 65536 | 65536 | |
1 | 1000 | 65536 | 65536 | |
2 | 1000 | 65536 | 65536 | |
3 | 1000 | 65536 | 65536 | |
4 | 1000 | 65536 | 65536 | |
5 | 1000 | 65536 | 65536 | |
6 | 1000 | 65536 | 65536 | |
7 | 1000 | 65536 | 65536 | |
8 | 1000 | 65536 | 65536 | |
9 | 1000 | 65536 | 65536 | |
10 | 1000 | 65536 | 65536 | |
11 | 1000 | 65536 | 65536 |