結果
| 問題 |
No.1020 Reverse
|
| コンテスト | |
| ユーザー |
cookieices
|
| 提出日時 | 2020-04-10 21:49:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 176 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 19,652 KB |
| 最終ジャッジ日時 | 2024-09-15 20:08:18 |
| 合計ジャッジ時間 | 4,311 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 10 |
ソースコード
n,k = map(int,input().split())
S = list(input())
ans = ""
for i in range(0,n -k + 1):
temp = S[i: i+ k]
temp.reverse()
S = S[0:i] + temp+ S[i+k:]
print("".join(S))
cookieices