結果
問題 | No.586 ダブルブッキング |
ユーザー |
![]() |
提出日時 | 2017-11-04 02:17:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-23 15:50:45 |
合計ジャッジ時間 | 850 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
from sys import stdindef readLine_int_list():return list(map(int, stdin.readline().split()))def readAll_int(): return list(map(int, stdin))def main():memo = {}p1 = int(input())p2 = int(input())n = int(input())r = readAll_int()c = 0for i in r:if i in memo:c += 1memo[i] = 1print(c*(p1+p2))if __name__ == "__main__":main()