結果
| 問題 | No.2590 100000 Days of Christmas | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-12-18 17:42:43 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 617 ms / 2,000 ms | 
| コード長 | 201 bytes | 
| コンパイル時間 | 272 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 96,712 KB | 
| 最終ジャッジ日時 | 2024-09-27 08:25:03 | 
| 合計ジャッジ時間 | 5,536 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 | 
ソースコード
from collections import defaultdict N = int(input()) ans = defaultdict(int) for i in range(N): S = input() ans[S] += (i + 1) * (N - i) ans = list(ans.items()) ans.sort() for i, j in ans: print(j, i)
