結果
問題 | No.586 ダブルブッキング |
ユーザー |
|
提出日時 | 2022-02-17 12:50:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 82,568 KB |
実行使用メモリ | 53,760 KB |
最終ジャッジ日時 | 2024-06-29 07:38:23 |
合計ジャッジ時間 | 983 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
p1 = int(input())p2 = int(input())n = int(input())r = [int(input()) for i in range(n)]from collections import Countera = list(Counter(r).values())a_c = [1]*len(a)print(sum([(p1+p2)*(i-j) for i,j in zip(a,a_c)]))