結果

問題 No.586 ダブルブッキング
ユーザー yomo3yomo3
提出日時 2020-02-05 20:30:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 11,784 KB
実行使用メモリ 9,940 KB
最終ジャッジ日時 2023-10-24 05:38:25
合計ジャッジ時間 1,418 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,940 KB
testcase_01 AC 27 ms
9,940 KB
testcase_02 AC 27 ms
9,940 KB
testcase_03 AC 27 ms
9,940 KB
testcase_04 AC 28 ms
9,940 KB
testcase_05 AC 30 ms
9,940 KB
testcase_06 AC 30 ms
9,940 KB
testcase_07 AC 27 ms
9,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

P = [int(input()) for _ in range(2)]
N = int(input())
c = Counter(int(input()) for _ in range(N))

ans = sum(v - 1 if v >= 2 else 0 for v in c.values()) * sum(P)

print(ans)
0