a=input()
a=int(a)
b=input()
b=int(b)
c=input()
c=c.split()
c=[int(i)for i in c]
c.sort()
c=c[::-1]
cnt=0
for i in range(b):
cnt+=c[i]
print(cnt)
#1234567890qwertyuiopasdfghjkl;'zxcvbnm,./
#(凑字数)
...
English Article | Word Count | Duration | Accuracy | Speed | Backspace | Error | Slogan |
---|---|---|---|---|---|---|---|
《python蓝桥等考十八级真题(4)!》 | 218字 | 1.0分钟 | 96% | 50 CPM | 2 次 | 2 | 不及格,加强练习! |
The wrong word this time: l,i | |||||||
Inspirational quotes: 人才乏于上,则有沉废伏匿在下,而不为当时所知者矣。 ——王安石 |