結果

問題 No.1020 Reverse
ユーザー kept1994kept1994
提出日時 2022-05-09 20:08:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 72,320 KB
最終ジャッジ日時 2023-09-23 18:05:29
合計ジャッジ時間 3,525 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 73 ms
71,264 KB
testcase_02 AC 74 ms
71,060 KB
testcase_03 AC 72 ms
71,288 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 74 ms
71,220 KB
testcase_07 AC 74 ms
71,064 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 75 ms
71,884 KB
testcase_11 AC 77 ms
71,776 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 76 ms
72,064 KB
testcase_15 AC 76 ms
72,320 KB
testcase_16 AC 77 ms
72,180 KB
testcase_17 AC 74 ms
72,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
MOD = 998244353

def main():
    N, K = map(int, input().split())
    S = input()
    S = S[(K-1):] + S[:(K- 1)][::-1]
    print(S)
    return

if __name__ == '__main__':
    main()
0