結果

問題 No.586 ダブルブッキング
ユーザー ddsyg1ddsyg1
提出日時 2019-04-04 15:17:26
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-08-26 20:52:40
合計ジャッジ時間 922 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,724 KB
testcase_01 AC 14 ms
7,896 KB
testcase_02 AC 14 ms
7,852 KB
testcase_03 AC 13 ms
7,904 KB
testcase_04 AC 13 ms
7,740 KB
testcase_05 AC 13 ms
7,908 KB
testcase_06 AC 14 ms
7,908 KB
testcase_07 AC 14 ms
7,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

c = 0

a = int(input())
b = int(input())
z = int(input())

reserved =[]
for x in range(z):
    new = input()
    if reserved.count(new) >= 1:
        c += 1
    else:
        reserved.append(new)
print(c*(a+b))
0