1046 绩点计算


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

有一些班级学生的三门课程成绩,编程计算其绩点,并按绩点分数的高低排列。绩点计算公式:(成绩小于60分,则该门课程的绩点为0)

[(课程1 – 50)÷10×3 +(课程2 – 50)÷10×3 +(课程3 – 50)÷10×4]÷10

Sample

Input

张三 89 62 71
李四 98 50 80
王五 67 88 91

Output

王五 67 88 91
李四 98 50 80
张三 89 62 71

Comments

There are no comments at the moment.