結果
| 問題 |
No.2590 100000 Days of Christmas
|
| コンテスト | |
| ユーザー |
hibit_at
|
| 提出日時 | 2023-12-20 19:02:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 504 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 82,144 KB |
| 実行使用メモリ | 96,900 KB |
| 最終ジャッジ日時 | 2024-09-27 10:00:10 |
| 合計ジャッジ時間 | 5,852 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
n = int(input())
from collections import defaultdict
d = defaultdict(int)
for i in range(n):
s = input()
# d[1] = 1
d[s] += (i+1)*(n-i)
ans = sorted(d.items())
for k,v in ans:
print(v, k)
hibit_at