結果

問題 No.2590 100000 Days of Christmas
ユーザー AngrySadEight
提出日時 2025-02-21 02:18:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 99,724 KB
最終ジャッジ日時 2025-02-21 02:18:23
合計ジャッジ時間 5,532 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

N = int(input())
st = set()
d = defaultdict(int)
for i in range(N):
    s = str(input())
    d[s] += (N - i) * (i + 1)
    st.add(s)
lst = sorted(list(st))
for l in lst:
    print(d[l], l)
0