結果
| 問題 | No.586 ダブルブッキング | 
| コンテスト | |
| ユーザー |  asterisk_tenhou | 
| 提出日時 | 2019-11-08 23:07:40 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 2,000 ms | 
| コード長 | 388 bytes | 
| コンパイル時間 | 375 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-09-15 02:16:17 | 
| 合計ジャッジ時間 | 1,543 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 | 
ソースコード
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 = [] + list[1:]
    newlist = [i1 for i1 in list if i1 != c]
    d = len(list) - len(newlist)
    a3 = a3 + d
    list = newlist
else:
    a = (a1 + a2) * a3
    print(a)
            
            
            
        