結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2021-06-16 19:18:47 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 2,000 ms |
| + 923µs | |
| コード長 | 180 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 82,004 KB |
| 実行使用メモリ | 55,324 KB |
| 最終ジャッジ日時 | 2026-10-09 20:09:25 |
| 合計ジャッジ時間 | 1,472 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
p1 = int(input())
p2 = int(input())
n = int(input())
used = set()
ans = 0
for i in range(n):
r = int(input())
if r in used:
ans += p1+p2
used.add(r)
print(ans)
brthyyjp