結果
| 問題 |
No.1020 Reverse
|
| ユーザー |
|
| 提出日時 | 2020-04-14 16:21:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 120 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,536 KB |
| 最終ジャッジ日時 | 2024-10-01 17:05:10 |
| 合計ジャッジ時間 | 4,448 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 10 |
ソースコード
n, k = map(int,input().split())
s = list(input())
for i in range(n-k+1):
s[i:i+k] = s[i:i+k][::-1]
print(''.join(s))