結果
問題 | No.1020 Reverse |
ユーザー | akiku |
提出日時 | 2021-12-06 06:41:46 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 505 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 10,588 KB |
実行使用メモリ | 8,820 KB |
最終ジャッジ日時 | 2023-09-21 15:05:03 |
合計ジャッジ時間 | 4,680 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,820 KB |
testcase_01 | AC | 18 ms
8,812 KB |
testcase_02 | AC | 17 ms
8,688 KB |
testcase_03 | AC | 18 ms
8,780 KB |
testcase_04 | AC | 18 ms
8,788 KB |
testcase_05 | AC | 19 ms
8,716 KB |
testcase_06 | AC | 18 ms
8,784 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
ソースコード
import sys from bisect import * from heapq import * from collections import * from itertools import * from math import * input = sys.stdin.readline # sys.setrecursionlimit(10 ** 6) MOD = 10 ** 9 + 7 # Input ####################################### N, K = list(map(int, input().split())) S = input().rstrip() # MAIN ####################################### s = S for i in range(N - K + 1): s = "".join((s[:i], s[i : i + K][::-1], s[i + K :])) print(s) # END #######################################