結果

問題 No.586 ダブルブッキング
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2021-01-14 11:00:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 71,216 KB
最終ジャッジ日時 2023-08-15 16:34:51
合計ジャッジ時間 1,344 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,032 KB
testcase_01 AC 59 ms
71,084 KB
testcase_02 AC 60 ms
70,836 KB
testcase_03 AC 60 ms
71,112 KB
testcase_04 AC 61 ms
71,152 KB
testcase_05 AC 62 ms
70,836 KB
testcase_06 AC 60 ms
70,896 KB
testcase_07 AC 61 ms
71,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f=lambda:int(input())
p=f()
q=f()
n=f()
a=[0]*1000
for i in range(n):
	r=f()
	a[r]+=1
print((p+q)*sum([i-1 for i in a if i>1]))
0