結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
zbxah
|
| 提出日時 | 2018-02-28 15:42:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 255 bytes |
| コンパイル時間 | 1,134 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-21 10:05:43 |
| 合計ジャッジ時間 | 1,447 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
P = int(input()) + int(input()) # 1 件あたりの損失額
reservations = set()
count = 0 # 損失件数
for _ in range(int(input())):
r = input()
if r in reservations:
count += 1
else:
reservations.add(r)
print(count * P)
zbxah