Submission #3791991


Source Code Expand

# -*- coding: utf-8 -*-
N,K = map(int,input().split())
a = [int(i) for i in range(N)]
L = sorted(a)
M = a.reverse()
b = []
for j in range(K):
  b.append(L(j))
print(sum(b))

Submission Info

Submission Time
Task B - Snake Toy
User whistlePCR
Language Python (3.4.3)
Score 0
Code Size 180 Byte
Status RE
Exec Time 18 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
RE × 2
RE × 10
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, 08.txt
Case Name Status Exec Time Memory
00_example_01.txt RE 18 ms 3060 KB
00_example_02.txt RE 18 ms 3060 KB
01.txt RE 18 ms 3060 KB
02.txt RE 18 ms 3060 KB
03.txt RE 18 ms 3060 KB
04.txt RE 18 ms 2940 KB
05.txt RE 18 ms 2940 KB
06.txt RE 18 ms 3060 KB
07.txt RE 18 ms 2940 KB
08.txt RE 18 ms 3060 KB