ORTL1P04 - Average
Given the marks of 1st, 2nd and 3rd trimester calculate the average. Moreover, if the average is at least 6 indicate that the year is approved with the legend "APROBADO". On the contrary write "DESAPROBADO".
The marks will be integer numbers between 1 and 10 inclusive, and its sum divisible by 3.
Input
One line with 3 integer numbers corresponding to the 1st, 2nd and 3rd trimester respectively.
Output
One line with the final average.
Then another line indicating "APROBADO" or "DESAPROBADO" as appropriate.
Example
Input: 4 4 10 Output: 6
APROBADO
hide comments
Mostafa 36a2:
2014-06-04 19:48:24
when printing the quotes[as mentioned in sample out] it gives score 0 (which I think is WA) , without quotes gives 100[AC as i think] , wrong sample out :)
|
Added by: | Joaquin |
Date: | 2014-05-01 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |