Submission #57035720


Source Code Expand

N,K=map(int,input().split())
A=list(map(int,input().split()))
for n in range(N-K,N):
  print(A[n],end=" ")
for n in range(N-K):
  print(A[n],end=" ")

Submission Info

Submission Time
Task A - Cut
User mymrt_23367
Language Python (CPython 3.11.4)
Score 100
Code Size 154 Byte
Status AC
Exec Time 10 ms
Memory 8592 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 8468 KiB
random_02.txt AC 9 ms 8468 KiB
random_03.txt AC 9 ms 8452 KiB
random_04.txt AC 9 ms 8468 KiB
random_05.txt AC 9 ms 8504 KiB
random_06.txt AC 10 ms 8476 KiB
random_07.txt AC 9 ms 8520 KiB
random_08.txt AC 9 ms 8572 KiB
sample_01.txt AC 10 ms 8528 KiB
sample_02.txt AC 10 ms 8592 KiB