Submission #57051134


Source Code Expand

n,k = map(int, input().split())
l = list(map(int, input().split()))
#print(l)
l1 = l[-k:]
l2 = l[0:n-k]
l3= l1+l2
print(" ".join(map(str,l3)))

Submission Info

Submission Time
Task A - Cut
User irohasu11
Language Python (CPython 3.11.4)
Score 100
Code Size 150 Byte
Status AC
Exec Time 9 ms
Memory 8572 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 9 ms 8440 KiB
random_02.txt AC 9 ms 8508 KiB
random_03.txt AC 9 ms 8436 KiB
random_04.txt AC 9 ms 8548 KiB
random_05.txt AC 9 ms 8428 KiB
random_06.txt AC 9 ms 8492 KiB
random_07.txt AC 9 ms 8528 KiB
random_08.txt AC 9 ms 8504 KiB
sample_01.txt AC 9 ms 8572 KiB
sample_02.txt AC 9 ms 8428 KiB