結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
Liny52551272
|
| 提出日時 | 2019-11-13 13:36:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,328 KB |
| 最終ジャッジ日時 | 2026-04-10 02:43:15 |
| 合計ジャッジ時間 | 2,004 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
P1 = int(input().strip())
P2 = int(input().strip())
N = int(input().strip())
lst1 = []
lst2 = []
for i in range(N):
R = input().strip()
try:
tmp = lst1.index(R)
lst2[tmp] += 1
except:
lst1.append(R)
lst2.append(1)
print((sum(lst2) - len(lst2)) * (P1 + P2))
Liny52551272