結果
問題 |
No.2028 Even Choice
|
ユーザー |
![]() |
提出日時 | 2022-08-05 22:14:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 151 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 104,576 KB |
最終ジャッジ日時 | 2024-09-15 19:14:42 |
合計ジャッジ時間 | 3,597 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 21 WA * 7 |
ソースコード
import sys input = sys.stdin.readline N,K=map(int,input().split()) A=list(map(int,input().split())) B = sorted(A[1:], reverse=True) print(sum(B[:K]))