結果

問題 No.1020 Reverse
ユーザー stngstng
提出日時 2020-04-11 19:12:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 11,780 KB
実行使用メモリ 10,512 KB
最終ジャッジ日時 2023-10-19 10:41:38
合計ジャッジ時間 2,900 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,132 KB
testcase_01 AC 31 ms
10,132 KB
testcase_02 AC 30 ms
10,132 KB
testcase_03 WA -
testcase_04 AC 31 ms
10,132 KB
testcase_05 AC 30 ms
10,144 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 155 ms
10,420 KB
testcase_09 AC 134 ms
10,384 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 188 ms
10,500 KB
testcase_13 AC 190 ms
10,500 KB
testcase_14 WA -
testcase_15 AC 31 ms
10,472 KB
testcase_16 AC 33 ms
10,472 KB
testcase_17 AC 182 ms
10,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
s = input()

if n == k:
    print(s[::-1])
    exit()



for i in range(n):
    print(s[(k+i-1)%n],end='')
0