結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-17 12:50:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 85,336 KB |
| 実行使用メモリ | 54,496 KB |
| 最終ジャッジ日時 | 2026-03-18 18:23:00 |
| 合計ジャッジ時間 | 988 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
p1 = int(input()) p2 = int(input()) n = int(input()) r = [int(input()) for i in range(n)] from collections import Counter a = list(Counter(r).values()) a_c = [1]*len(a) print(sum([(p1+p2)*(i-j) for i,j in zip(a,a_c)]))