結果
問題 | No.586 ダブルブッキング |
ユーザー |
|
提出日時 | 2021-05-07 17:12:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 82,104 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-09-15 05:33:17 |
合計ジャッジ時間 | 1,168 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
P1 = int(input())P2 = int(input())N = int(input())R = [int(input()) for _ in range(N)]room = [0]*1000for r in R:room[r-1] += 1cnt = 0for i in range(1000):if room[i] > 1:cnt += room[i]-1print(cnt*(P1+P2))