Submission #1662266


Source Code Expand

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

l.sort()
l.reverse()

re = 0
for i in range(k):
   re += int(l[i])

print(re)

Submission Info

Submission Time
Task A - Sharing Cookies
User Lionking07
Language PyPy3 (2.4.0)
Score 0
Code Size 166 Byte
Status RE
Exec Time 174 ms
Memory 38256 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
RE × 2
RE × 9
Set Name Test Cases
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
Case Name Status Exec Time Memory
00_example_01.txt RE 170 ms 38256 KiB
00_example_02.txt RE 171 ms 38256 KiB
01.txt RE 174 ms 38256 KiB
02.txt RE 172 ms 38256 KiB
03.txt RE 172 ms 38256 KiB
04.txt RE 172 ms 38256 KiB
05.txt RE 170 ms 38256 KiB
06.txt RE 171 ms 38256 KiB
07.txt RE 170 ms 38256 KiB