結果

問題 No.1020 Reverse
ユーザー dangodango
提出日時 2023-06-12 21:33:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 1,179 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 72,472 KB
最終ジャッジ日時 2023-09-02 14:58:49
合計ジャッジ時間 2,808 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,036 KB
testcase_01 AC 78 ms
71,296 KB
testcase_02 AC 77 ms
71,236 KB
testcase_03 AC 80 ms
70,948 KB
testcase_04 AC 76 ms
71,324 KB
testcase_05 AC 78 ms
71,448 KB
testcase_06 AC 77 ms
71,312 KB
testcase_07 AC 77 ms
71,324 KB
testcase_08 AC 77 ms
72,036 KB
testcase_09 AC 78 ms
71,316 KB
testcase_10 AC 79 ms
72,216 KB
testcase_11 AC 81 ms
71,996 KB
testcase_12 AC 81 ms
72,116 KB
testcase_13 AC 81 ms
72,164 KB
testcase_14 AC 80 ms
72,080 KB
testcase_15 AC 80 ms
72,472 KB
testcase_16 AC 80 ms
72,300 KB
testcase_17 AC 78 ms
72,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int,input().split())
S = input()
print(S[(K - 1):] + S[:(K - 1)][::(-1) ** (N - (K - 1))])
0