結果

問題 No.1020 Reverse
ユーザー NoaSaber
提出日時 2021-04-14 13:49:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 90,304 KB
最終ジャッジ日時 2024-06-30 13:51:13
合計ジャッジ時間 2,408 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
from collections import deque
S=input()
que=deque([])
for i in range(K-1,N):
    que.append(S[i])
rest_l=S[:K-1]
print("".join(que)+rest_l)
0