結果

問題 No.586 ダブルブッキング
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-16 19:18:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,532 KB
最終ジャッジ日時 2023-08-30 00:22:30
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,168 KB
testcase_01 AC 70 ms
71,284 KB
testcase_02 AC 70 ms
71,532 KB
testcase_03 AC 72 ms
71,356 KB
testcase_04 AC 70 ms
71,284 KB
testcase_05 AC 68 ms
71,456 KB
testcase_06 AC 75 ms
71,444 KB
testcase_07 AC 70 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0