結果
問題 | No.2590 100000 Days of Christmas |
ユーザー |
![]() |
提出日時 | 2023-12-18 22:43:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 350 ms / 2,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 82,488 KB |
実行使用メモリ | 102,420 KB |
最終ジャッジ日時 | 2024-09-27 08:29:26 |
合計ジャッジ時間 | 4,732 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
import collections N = int(input()) D = collections.defaultdict(int) DIC = set() for i in range(1,N+1): S = input() DIC.add(S) D[S]+=i*(N-i+1) for d in sorted(DIC): print(D[d],d)