提出 #1662316


ソースコード 拡げる

#coding: utf-8
n, k = [int(i) for i in input().split()]
l  = [int(x) for x in input().split()]

l.sort()
l.reverse()

re = 0
for i in l[:k]:
   re += i

print(re)

提出情報

提出日時
問題 B - Snake Toy
ユーザ Lionking07
言語 PyPy3 (2.4.0)
得点 200
コード長 173 Byte
結果 AC
実行時間 171 ms
メモリ 38256 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 10
セット名 テストケース
Sample 00_example_01.txt, 00_example_02.txt
All 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt
ケース名 結果 実行時間 メモリ
00_example_01.txt AC 170 ms 38256 KiB
00_example_02.txt AC 171 ms 38256 KiB
01.txt AC 171 ms 38256 KiB
02.txt AC 171 ms 38256 KiB
03.txt AC 170 ms 38256 KiB
04.txt AC 170 ms 38256 KiB
05.txt AC 169 ms 38256 KiB
06.txt AC 170 ms 38256 KiB
07.txt AC 170 ms 38256 KiB
08.txt AC 170 ms 38256 KiB