結果

問題 No.586 ダブルブッキング
ユーザー SoratopSoratop
提出日時 2020-11-14 16:53:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 642 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 8,568 KB
最終ジャッジ日時 2023-09-30 05:12:43
合計ジャッジ時間 940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,476 KB
testcase_01 AC 19 ms
8,392 KB
testcase_02 AC 19 ms
8,480 KB
testcase_03 AC 19 ms
8,532 KB
testcase_04 AC 18 ms
8,396 KB
testcase_05 AC 19 ms
8,568 KB
testcase_06 AC 18 ms
8,432 KB
testcase_07 AC 18 ms
8,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
a=int(input())
b=int(input())
n=int(input())
c=[int(input()) for i in range(n)]
s=0
for i,j in collections.Counter(c).items():
    if j>1:
        s+=(a+b)*(j-1)
print(s)
0