結果
問題 |
No.586 ダブルブッキング
|
ユーザー |
![]() |
提出日時 | 2018-04-19 19:07:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-27 04:52:22 |
合計ジャッジ時間 | 1,068 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 4 |
ソースコード
import collections yuki_Hotel = int(input()) next_Hotel = int(input()) n = int(input()) Hotels = [] price = 0 for count in range(n): list = input() Hotels.append(list) c = collections.Counter(Hotels) for hotel in Hotels: if c[hotel] >= 2: price += (c[hotel] * yuki_Hotel) + (c[hotel] * next_Hotel) print(price)