結果
| 問題 | No.2852 Yakitori Optimization Problem |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2024-08-25 20:55:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 287 ms / 2,000 ms |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 429 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 51,776 KB |
| 最終ジャッジ日時 | 2026-04-03 23:14:26 |
| 合計ジャッジ時間 | 5,564 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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