Submission #14555999


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, K, *P = map(int, read().split())

P.sort()
print(sum(P[:K]))

Submission Info

Submission Time
Task B - Mix Juice
User maspy
Language Python (3.8.2)
Score 200
Code Size 190 Byte
Status
Exec Time 32 ms
Memory 9240 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01.txt, a02.txt
All 200 / 200 a01.txt, a02.txt, b03.txt, b04.txt, b05.txt, b06.txt, b07.txt, b08.txt, b09.txt, b10.txt, b11.txt, b12.txt
Case Name Status Exec Time Memory
a01.txt 23 ms 9056 KB
a02.txt 24 ms 9116 KB
b03.txt 19 ms 9180 KB
b04.txt 19 ms 9124 KB
b05.txt 17 ms 8956 KB
b06.txt 18 ms 8880 KB
b07.txt 26 ms 9112 KB
b08.txt 32 ms 8992 KB
b09.txt 21 ms 9240 KB
b10.txt 26 ms 9100 KB
b11.txt 19 ms 9052 KB
b12.txt 18 ms 9236 KB