11570 - 231001_10/2_practice3-1
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Calculate average n of five subjects Chinese, English, Math, Technology and Biology, and grade the according to given conditions:
If average >= 90: Grade = A+
If average >= 80: Grade = A
If average >= 70: Grade = B
If average >= 60: Grade = C
If average >= 50: Grade = D
If average < 50: Grade = E
Input
-
Five integers ( int )
-
Use space to separate each integers.
Output
-
A decimal ( float ) round off to the two decimal place(四捨五入至小數點第二位) of average n and the grade of average
-
Put “\n” after each result, and there are spaces before and after “=”.
-
Download the sample to check the format.
Tags