結果

問題 No.2028 Even Choice
ユーザー ikomaikoma
提出日時 2022-08-05 22:14:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 105,576 KB
最終ジャッジ日時 2023-10-13 23:22:42
合計ジャッジ時間 5,208 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 162 ms
105,576 KB
testcase_02 AC 158 ms
104,736 KB
testcase_03 AC 128 ms
104,212 KB
testcase_04 AC 126 ms
103,844 KB
testcase_05 AC 89 ms
81,404 KB
testcase_06 WA -
testcase_07 AC 95 ms
83,816 KB
testcase_08 AC 118 ms
96,628 KB
testcase_09 AC 127 ms
100,928 KB
testcase_10 AC 93 ms
83,564 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 134 ms
104,168 KB
testcase_14 AC 95 ms
83,240 KB
testcase_15 AC 69 ms
71,244 KB
testcase_16 WA -
testcase_17 AC 72 ms
71,296 KB
testcase_18 AC 71 ms
71,092 KB
testcase_19 AC 70 ms
71,132 KB
testcase_20 AC 71 ms
71,200 KB
testcase_21 AC 73 ms
71,292 KB
testcase_22 AC 71 ms
71,192 KB
testcase_23 WA -
testcase_24 AC 72 ms
71,348 KB
testcase_25 WA -
testcase_26 AC 72 ms
71,272 KB
testcase_27 AC 70 ms
70,988 KB
testcase_28 WA -
testcase_29 AC 104 ms
89,496 KB
testcase_30 AC 92 ms
83,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]))
0