結果
| 問題 | No.586 ダブルブッキング | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-10-28 10:39:56 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 2,000 ms | 
| コード長 | 315 bytes | 
| コンパイル時間 | 98 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-09-14 21:10:49 | 
| 合計ジャッジ時間 | 947 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
class Problem0586:
	def solve(this):
		p1 = int(input())
		p2 = int(input())
		
		n = int(input())
		res = {}
		cnt = 0
		for i in range(n):
			k = int(input())
			if res.get(k, 0) == 0:
				res[k] = 1
			else:
				cnt += p1 + p2
		print(cnt)
		
if __name__ == "__main__":
	problem = Problem0586()
	problem.solve()
            
            
            
        