結果

問題 No.586 ダブルブッキング
ユーザー pypypymipypypymi
提出日時 2022-02-17 12:50:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,776 KB
最終ジャッジ日時 2023-09-11 17:38:34
合計ジャッジ時間 2,154 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,480 KB
testcase_01 AC 90 ms
71,776 KB
testcase_02 AC 95 ms
71,572 KB
testcase_03 AC 94 ms
71,332 KB
testcase_04 AC 89 ms
71,332 KB
testcase_05 AC 88 ms
71,672 KB
testcase_06 AC 91 ms
71,732 KB
testcase_07 AC 89 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p1 = int(input())
p2 = int(input())
n = int(input())
r = [int(input()) for i in range(n)]
from collections import Counter
a = list(Counter(r).values())
a_c = [1]*len(a)
print(sum([(p1+p2)*(i-j) for i,j in zip(a,a_c)]))
0