結果

問題 No.1020 Reverse
ユーザー splash9494splash9494
提出日時 2020-05-04 19:57:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 1,002 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 340,760 KB
最終ジャッジ日時 2023-09-07 03:06:29
合計ジャッジ時間 5,279 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
S = list(input())

print(S)
for i in range(N - K + 1):
    S[i:i + K] = reversed(S[i: i + K])
print(''.join(S))
0