結果

問題 No.1020 Reverse
ユーザー nagitaosunagitaosu
提出日時 2020-04-10 21:48:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 492 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 12,736 KB
最終ジャッジ日時 2023-10-14 00:15:05
合計ジャッジ時間 1,917 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,920 KB
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 16 ms
7,824 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,852 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 26 ms
11,888 KB
testcase_09 AC 24 ms
11,056 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 29 ms
12,648 KB
testcase_13 AC 29 ms
12,640 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 27 ms
12,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
input = sys.stdin.readline

n, k = map(int, input().split())
s = list(input().rstrip())

s =  s[k-1:] + s[:k-1]
print("".join([item for item in s]))
0