結果
| 問題 |
No.2852 Yakitori Optimization Problem
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-08-25 20:55:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 321 ms / 2,000 ms |
| コード長 | 219 bytes |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 50,768 KB |
| 最終ジャッジ日時 | 2024-08-25 20:55:43 |
| 合計ジャッジ時間 | 6,155 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
N,K=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) C=list(map(int,input().split())) BC=[b-c for b,c in zip(B,C)] BC.sort(reverse=True) ans=sum(A)+sum(C)+sum(BC[:K]) print(ans)
vwxyz