Submission #391519


Source Code Expand

while True:
    n, k = map(int, input().split())
    if n == k == 0:
        break
    xl = list(map(int, input().split()))
    xl.sort()
    print(sum(xl[0:k]))

Submission Info

Submission Time
Task A - 単位
User yumechi
Language Python (3.2.3)
Score 100
Code Size 169 Byte
Status AC
Exec Time 242 ms
Memory 8712 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 11
Set Name Test Cases
all 00_sample, 10_Random_00, 10_Random_01, 10_Random_02, 10_Random_03, 10_Random_04, 10_Random_05, 10_Random_06, 10_Random_07, 10_Random_08, 10_Random_09
Case Name Status Exec Time Memory
00_sample AC 130 ms 8604 KB
10_Random_00 AC 218 ms 8592 KB
10_Random_01 AC 242 ms 8588 KB
10_Random_02 AC 226 ms 8588 KB
10_Random_03 AC 217 ms 8588 KB
10_Random_04 AC 223 ms 8584 KB
10_Random_05 AC 222 ms 8712 KB
10_Random_06 AC 217 ms 8588 KB
10_Random_07 AC 231 ms 8588 KB
10_Random_08 AC 217 ms 8532 KB
10_Random_09 AC 222 ms 8592 KB