結果
| 問題 | No.586 ダブルブッキング | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-11-25 00:17:36 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 40 ms / 2,000 ms | 
| コード長 | 154 bytes | 
| コンパイル時間 | 293 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-11-27 08:45:40 | 
| 合計ジャッジ時間 | 1,070 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
print((lambda a,b,x: sum([(a+b)*(x.count(i)-1) for i in set(x) if x.count(i) > 1]))(int(input()), int(input()), [int(input()) for _ in [0]*int(input())]))
