結果
問題 | No.1020 Reverse |
ユーザー | kept1994 |
提出日時 | 2022-05-09 02:37:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 86,964 KB |
実行使用メモリ | 266,584 KB |
最終ジャッジ日時 | 2023-09-23 03:25:56 |
合計ジャッジ時間 | 4,587 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
75,632 KB |
testcase_01 | AC | 73 ms
71,232 KB |
testcase_02 | AC | 73 ms
71,388 KB |
testcase_03 | AC | 82 ms
75,588 KB |
testcase_04 | AC | 73 ms
71,040 KB |
testcase_05 | AC | 86 ms
75,640 KB |
testcase_06 | AC | 77 ms
71,248 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
ソースコード
#!/usr/bin/env python3 import sys MOD = 998244353 def main(): N, K = map(int, input().split()) S = list(input()) for i in range(N - K + 1): S = S[:i] + S[i:i + K][::-1] + S[i + K:] print(*S, sep="") return if __name__ == '__main__': main()