結果

問題 No.1020 Reverse
ユーザー integerinteger
提出日時 2020-05-01 22:07:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,748 KB
実行使用メモリ 12,880 KB
最終ジャッジ日時 2023-08-26 13:57:13
合計ジャッジ時間 2,357 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,808 KB
testcase_01 AC 14 ms
7,880 KB
testcase_02 AC 14 ms
7,832 KB
testcase_03 WA -
testcase_04 AC 13 ms
7,760 KB
testcase_05 AC 16 ms
7,916 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 19 ms
11,992 KB
testcase_09 AC 18 ms
11,236 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 19 ms
12,700 KB
testcase_13 AC 19 ms
12,776 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 20 ms
12,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n, k = map(int, input().split())
    s = list(input())
    ans = solve(n, k, s)
    print(ans)

def solve(n, k, s):
    return ''.join(s[k - 1:] + s[:k -1])

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