結果

問題 No.1020 Reverse
ユーザー roarisroaris
提出日時 2020-07-08 02:23:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 82,248 KB
最終ジャッジ日時 2024-04-09 23:49:04
合計ジャッジ時間 2,028 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,464 KB
testcase_01 AC 38 ms
52,488 KB
testcase_02 AC 40 ms
52,948 KB
testcase_03 WA -
testcase_04 AC 39 ms
52,484 KB
testcase_05 AC 39 ms
52,152 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 57 ms
76,320 KB
testcase_09 AC 54 ms
74,548 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 61 ms
82,248 KB
testcase_13 AC 61 ms
80,556 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 61 ms
80,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N, K = map(int, input().split())
S = input()[:-1]
ans = []

for i in range(N):
    ans.append(S[(i+K-1)%N])

print(''.join(ans))
0