結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
asterisk_tenhou
|
| 提出日時 | 2019-11-08 20:22:32 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-27 14:51:17 |
| 合計ジャッジ時間 | 7,289 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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