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蓝桥比赛(选拔赛中高级组20230112)真题(3)!》 | 237字 | 1.0分钟 | 100% | 56 CPM | 12 次 | 0 | 不及格,加强练习! |
Inspirational quotes: 胜败兵家事不期,包羞忍耻是男儿。 ——唐·杜牧 | |||||||
What do you think of this article? Give it a rating and let it serve as a guiding light for others |