結果

問題 No.586 ダブルブッキング
ユーザー RyutoRyuto
提出日時 2017-12-20 22:36:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-08-22 11:03:55
合計ジャッジ時間 2,084 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,244 KB
testcase_01 AC 69 ms
71,660 KB
testcase_02 AC 69 ms
71,368 KB
testcase_03 AC 70 ms
71,396 KB
testcase_04 AC 70 ms
71,404 KB
testcase_05 AC 72 ms
71,372 KB
testcase_06 AC 71 ms
71,416 KB
testcase_07 AC 70 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

P1 = int(input())
P2 = int(input())
N = int(input())
Rs = list()
for i in range(N):
    Rs.append(int(input()))

multi = 0
for R in set(Rs):
    multi += Rs.count(R) - 1

res = multi*(P1+P2)

print(res)

0