結果

問題 No.586 ダブルブッキング
ユーザー notsix4notsix4
提出日時 2021-12-08 20:37:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 8,628 KB
最終ジャッジ日時 2023-09-23 09:07:12
合計ジャッジ時間 1,270 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,544 KB
testcase_01 AC 18 ms
8,460 KB
testcase_02 AC 18 ms
8,508 KB
testcase_03 AC 19 ms
8,396 KB
testcase_04 AC 18 ms
8,540 KB
testcase_05 AC 18 ms
8,496 KB
testcase_06 AC 19 ms
8,628 KB
testcase_07 AC 18 ms
8,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
p=int(input())
t=int(input())
n=int(input())
l=[int(input()) for i in range(n)]
nl=[v for k, v in collections.Counter(l).items() if v > 1]
print((sum(nl)-len(nl))*(p+t))
0