Beginner Math > Basic Math

Shipon is a good programmer. One day he wishes to create a computer game. In his game a player have to collect cubes by touching with a ball. There are many cubes but the color is not same for all. One cube can be colored with one of four different colors: **Blue, Silver, Gold** and **Red.** ![Cube Game Screen][1] Scoring points depend on the colors of the cubes. For each **Blue Cube** a player will get **+1** point, **Silver Cube** a player will get **+3** points, **Gold Cube** a player will get **+10** points, **Red Cube** a player will get **-5** points. This game will be played by many players one after another. Now, your work is to calculate the total score for each player and the highest score among them. Input: ------ Input starts with an integer **P (1<= P <=50)**, denoting the number of players. Next **P** lines contain Four integers **B, S, G, R (0 ≤ B, S, G, R ≤ 1000)** separated with a single space for each player. where **B** is the number of Blue Cubes, **S** is the number of Silver Cubes , **G** is the number of Gold Cubes and **R** is the number of **Red Cubes.** Output: ------- For each player print one line of output "**Player n: T**" where **n** denotes the **n** th player and **T** denotes the total score of that player. **note: when T is not positive print 0 (zero) instead of T.** Now print a single line "**High Score = H**" where **H** denotes the highest score among all players. Highest score can be **negative number.** Sample Input ------------ 3 1 2 3 4 4 5 7 1 1 1 1 1 Sample Output ------------- Player 1: 17 Player 2: 84 Player 3: 9 High Score = 84 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/e177ff0d-5af0-c3c9-a17d-08d44d1358e5_c8b4d9ebd649471488be5642f2596e7a_W501xH313.jpg

Jayed Al Hasan