結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
htkb
|
| 提出日時 | 2017-11-03 22:23:24 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-05-16 17:04:36 |
| 合計ジャッジ時間 | 1,860 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
def solve():
P1 = int(input())
P2 = int(input())
N = int(input())
a = [int(input()) for _ in [0]*N]
_a = set(a)
print((len(a)-len(_a))*(P1+P2))
if __name__ == "__main__":
solve()
htkb