結果
問題 | No.586 ダブルブッキング |
ユーザー | daku9640 |
提出日時 | 2018-03-18 23:54:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 18 ms / 2,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 10,516 KB |
実行使用メモリ | 8,528 KB |
最終ジャッジ日時 | 2023-08-28 19:47:21 |
合計ジャッジ時間 | 741 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
8,448 KB |
testcase_01 | AC | 17 ms
8,396 KB |
testcase_02 | AC | 18 ms
8,444 KB |
testcase_03 | AC | 18 ms
8,452 KB |
testcase_04 | AC | 18 ms
8,528 KB |
testcase_05 | AC | 17 ms
8,404 KB |
testcase_06 | AC | 17 ms
8,396 KB |
testcase_07 | AC | 16 ms
8,412 KB |
ソースコード
from collections import defaultdict sum_p = int(input()) + int(input()) m = defaultdict(int) for _ in range(int(input())): m[int(input())] += 1 print((sum(m.values()) - len(m)) * sum_p)