結果
問題 | No.586 ダブルブッキング |
ユーザー | syunsuke |
提出日時 | 2018-07-07 14:56:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-04 11:06:09 |
合計ジャッジ時間 | 863 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
P1=int(input())P2=int(input())N=int(input())list1=[]count=0for i in range(N):R=input()if R not in list1:list1.append(R)else:count+=1print(count*(P1+P2))