#2327643

Solution for 0124: League Match Score Sheet by peroon

Source Code Status Test Cases
    Policy: public     Reviewed: 2    
00.02 sec    7656 KB    27 lines     453 bytes    2017-05-20 05:46
# -*- coding: utf-8 -*-

import sys
import os
import math

for s in sys.stdin:
    n = int(s)

    A = []

    for i in range(n):
        lst = input().split()
        name = lst[0]
        w = int(lst[1])
        l = int(lst[2])
        d = int(lst[3])
        score = 3 * w + d
        A.append((score, -i, name))
    A.sort(reverse=True)

    for a in A:
        score = a[0]
        name = a[2]
        print('{},{}'.format(name, score))
    print()

Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 0/1 Python3 CPU: 00.02 sec Memory: 7656 KB Length: 453 B 2017-05-20 05:46 2017-05-20 05:46
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Presentation Error 00.02 sec 7656 KB
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags