結果

問題 No.449 ゆきこーだーの雨と雪 (4)
ユーザー Mew_1406Mew_1406
提出日時 2016-11-19 10:46:42
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 1,008 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 7,112 KB
実行使用メモリ 16,472 KB
最終ジャッジ日時 2023-10-23 15:54:22
合計ジャッジ時間 7,937 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,448 KB
testcase_01 AC 11 ms
6,448 KB
testcase_02 AC 11 ms
6,448 KB
testcase_03 AC 62 ms
6,640 KB
testcase_04 AC 49 ms
6,628 KB
testcase_05 AC 61 ms
6,636 KB
testcase_06 AC 45 ms
6,616 KB
testcase_07 AC 58 ms
6,628 KB
testcase_08 AC 46 ms
6,608 KB
testcase_09 AC 56 ms
6,628 KB
testcase_10 AC 40 ms
6,624 KB
testcase_11 AC 55 ms
6,608 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!coding:utf-8
ref=[chr(i) for i in range(65,65+26)]
ref.append("?")
N=int(raw_input())
L=map(int,raw_input().split())
T=int(raw_input())

Timing=[1]*N

kekka={}

for i in range(T):
    NP=raw_input().split()
    Name=NP[0]
    Prob_No=ref.index(NP[1])
    if Prob_No==26:
        kekka_now=[]
        for k in kekka.keys():
            kekka_now.append([k,kekka[k]])
        kekka_now=sorted(kekka_now, key=lambda x:(x[1][0],x[1][2]), reverse=True)
        
        for i in range(0,len(kekka_now)):
            if kekka_now[i][0]==Name:
                print(i+1)
    else:
        Point=int(50*L[Prob_No]+50*L[Prob_No]/(0.8+0.2*Timing[Prob_No]))
        Timing[Prob_No]=Timing[Prob_No]+1
        if Name in kekka:
            kekka[Name][0]=kekka[Name][0]+Point
            kekka[Name][1][Prob_No]=Point
            kekka[Name][2]=T-i
        else:
            kekka[Name]=[0,[0]*N,0,0]
            kekka[Name][0]=Point
            kekka[Name][1][Prob_No]=Point
            kekka[Name][2]=T-i
        



0