結果
問題 |
No.1012 荷物収集
|
ユーザー |
|
提出日時 | 2020-03-29 17:41:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 28,380 KB |
最終ジャッジ日時 | 2025-01-02 15:35:22 |
合計ジャッジ時間 | 10,788 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 41 |
ソースコード
N,Q=map(int,input().split()) xl=[] wl=[] for i in range(N): x,w=map(int,input().split()) xl.append(x) wl.append(w) ql=[int(i) for i in input().split()] for i in ql: sum=0 for n in range(N): sum+=abs(xl[n]-i)*w[n] print(sum)