結果

問題 No.586 ダブルブッキング
ユーザー Haruki0804S
提出日時 2018-10-23 15:18:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-19 04:07:49
合計ジャッジ時間 878 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

def Loss(P1,P2):
    loss=P1+P2
    return (loss)

P1=int(input())
P2=int(input())
N=int(input())
R=[]
for i in range(N):
    R.append(input())
before=len(R)
R=list(set(R))
after=len(R)
count=before-after



loss=count*Loss(P1,P2)
print(loss)
0