結果
| 問題 | No.2590 100000 Days of Christmas |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-18 17:42:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 386 ms / 2,000 ms |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 103,172 KB |
| 最終ジャッジ日時 | 2026-04-14 04:47:18 |
| 合計ジャッジ時間 | 4,284 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)