結果

問題 No.586 ダブルブッキング
ユーザー asterisk_tenhouasterisk_tenhou
提出日時 2019-11-08 20:22:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 360 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 10,968 KB
実行使用メモリ 17,244 KB
最終ジャッジ日時 2023-10-13 03:15:20
合計ジャッジ時間 6,909 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a1 = int(input())
a2 = int(input())
N = int(input())
list = []
for i in range(N):
    n = input()    
    m = n.split()
    p = [int(i) for i in m]
    list.append(p)
a3 = 0
while list != []:
    c = list[0]
    list[0] = []
    newlist = [i1 for i1 in list if i1 != c]
    d = len(list) - len(newlist)
    a3 = a3 + d
else:
    a = (a1 + a2) * a3
    print(a)
0