結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-13 13:21:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2024-06-29 05:33:51 |
| 合計ジャッジ時間 | 1,235 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
import collections
p1 = int(input())
p2 = int(input())
N = int(input())
lsR = [int(input()) for i in range(N)]
cnt = collections.Counter(lsR)
ans = 0
for v in cnt.values():
ans += (p1+p2)*(v-1)
print(ans)