結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-22 21:35:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 371 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-04 14:06:20 |
| 合計ジャッジ時間 | 1,729 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
import collections
yuki_money = int(input())
another_money = int(input())
n = int(input())
r_list = [int(input()) for i in range(n)]
r_clc = collections.Counter(r_list)
c = 0
for cur_key in r_clc.keys():
rsv = r_clc[cur_key]
c += (yuki_money + another_money) * (rsv - 1)
res = c
print(res)
_KingdomOfMoray