結果
| 問題 | No.2590 100000 Days of Christmas |
| コンテスト | |
| ユーザー |
hibit_at
|
| 提出日時 | 2023-12-20 19:02:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 347 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 361 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 103,052 KB |
| 最終ジャッジ日時 | 2026-04-14 05:54:26 |
| 合計ジャッジ時間 | 4,850 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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