結果

問題 No.1020 Reverse
ユーザー AlphaGiraffeAlphaGiraffe
提出日時 2020-04-10 22:15:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 13,040 KB
最終ジャッジ日時 2023-10-14 00:55:37
合計ジャッジ時間 1,612 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 16 ms
7,872 KB
testcase_03 AC 16 ms
7,732 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 15 ms
7,756 KB
testcase_07 AC 22 ms
11,104 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 26 ms
12,984 KB
testcase_11 AC 26 ms
12,956 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 26 ms
12,908 KB
testcase_15 AC 25 ms
12,544 KB
testcase_16 AC 26 ms
12,820 KB
testcase_17 AC 27 ms
12,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
N,K=map(int,input().split())
S=list(input())

S1=S[:K-1]
S2=S[K-1:]

S1.reverse()
ans=S2+S1

print("".join(ans))
0