結果
| 問題 |
No.1020 Reverse
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-26 11:41:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 161 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,948 KB |
| 最終ジャッジ日時 | 2024-07-23 20:44:55 |
| 合計ジャッジ時間 | 3,840 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 10 |
ソースコード
N, K = map(int, input().split())
S = input()
for i in range(len(S)):
if i+K-1 < len(S):
s =S[:i] + S[i:i+K][::-1] + S[i+K:]
S = s
print(s)