結果
問題 |
No.1012 荷物収集
|
ユーザー |
![]() |
提出日時 | 2020-03-20 22:07:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 47,688 KB |
最終ジャッジ日時 | 2024-12-15 06:05:03 |
合計ジャッジ時間 | 93,891 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 TLE * 30 |
ソースコード
N,Q = map(int,input().split()) XW = [] for _ in range(N): x, w = map(int,input().split()) XW.append((x,w)) Qs = list(map(int,input().split())) for q in Qs: cost = 0 for item in XW: cost += abs(item[0] - q)*item[1] print(cost)