結果
問題 | No.447 ゆきこーだーの雨と雪 (2) |
ユーザー | 👑 rin204 |
提出日時 | 2022-07-10 16:44:24 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 575 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 87,420 KB |
実行使用メモリ | 81,760 KB |
最終ジャッジ日時 | 2023-09-01 23:43:35 |
合計ジャッジ時間 | 5,350 ms |
ジャッジサーバーID (参考情報) |
judge16 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,236 KB |
testcase_01 | AC | 67 ms
71,408 KB |
testcase_02 | AC | 70 ms
71,356 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
ソースコード
n = int(input()) L = list(map(int, input().split())) cnt = [0] * n score = {} time = {} T = int(input()) for i in range(T): name, p = input().split() p = ord(p) - 65 if name not in score: score[name] = [0] * n time[name] = i cnt[p] += 1 s = 50 * L[p] + int((50 * L[p]) // (0.8 + 0.2 * cnt[p]) + 0.00000001) score[name][p] += s lst = [] for name in score: tmp = [name] + score[name] + [sum(score[name])] + [time[name]] lst.append(tmp) lst.sort(key=lambda x:(-x[-2], x[-1])) for i, row in enumerate(lst, 1): print(i, *row[:-1])