結果
| 問題 | No.2590 100000 Days of Christmas |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-18 17:42:43 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 320 ms / 2,000 ms |
| + 412µs | |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 96,080 KB |
| 実行使用メモリ | 107,452 KB |
| 最終ジャッジ日時 | 2026-09-05 05:15:23 |
| 合計ジャッジ時間 | 6,382 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)