12731 - GEC1506 - Advanced - Scoreboard Parsing   

Description

Calculate the score of students from the NTHU OJ scoreboard based on how many test cases a student has passed.

Input

Multiple lines of score information, where each line is an answering record for a user account.

The format of each line is given as: 

User, Answering Result, Total Passed Cases

Examples are shown below.

GEC2_105071035,3\3,3

The 3\3 of Answering Result denotes passed_cases\total_cases of a problem.

 

The score of a student is calculated as the number of passed test cases divided by the total number of test cases.

Output

The score for each student of the given contest with the format:

User,Score

Note that

  1. The order of the output score should follow the same order of the input.
  2. The score should have 2 decimals.

Sample Input  Download

Sample Output  Download

Tags




Discuss