結果

問題 No.1020 Reverse
ユーザー kohei2019kohei2019
提出日時 2021-01-11 18:58:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 19,072 KB
最終ジャッジ日時 2024-05-01 06:53:33
合計ジャッジ時間 3,886 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,880 KB
testcase_01 AC 31 ms
11,008 KB
testcase_02 AC 31 ms
10,880 KB
testcase_03 WA -
testcase_04 AC 31 ms
10,880 KB
testcase_05 AC 32 ms
10,880 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 193 ms
17,280 KB
testcase_09 AC 163 ms
16,244 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 238 ms
18,944 KB
testcase_13 AC 232 ms
18,944 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 221 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import copy
N,K = map(int,input().split())
S = list(input())
ans = copy.deepcopy(S)
for i in range(N):
    ans[i] = S[(i+K-1)%N]
print(*ans,sep='')
0