結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
asterisk_tenhou
|
| 提出日時 | 2019-11-08 20:22:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 360 bytes |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 24,384 KB |
| 最終ジャッジ日時 | 2024-09-15 00:53:46 |
| 合計ジャッジ時間 | 6,923 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 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[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)
asterisk_tenhou