提出 #37999499


ソースコード 拡げる

n, a, b = map(int, input().split())
s = input()
print(s[: a - 1] + s[a - 1 : b][::-1] + s[b:])

提出情報

提出日時
問題 B - 文字列の反転 (Inversion of a String)
ユーザ Pro_ktmr
言語 PyPy3 (7.3.0)
得点 100
コード長 98 Byte
結果 AC
実行時間 79 ms
メモリ 61516 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 13
セット名 テストケース
Sample sample-01.txt, sample-02.txt
All 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, sample-01.txt, sample-02.txt
ケース名 結果 実行時間 メモリ
01-01.txt AC 79 ms 61444 KiB
01-02.txt AC 47 ms 61332 KiB
01-03.txt AC 47 ms 61260 KiB
01-04.txt AC 45 ms 61344 KiB
01-05.txt AC 47 ms 61276 KiB
01-06.txt AC 48 ms 61344 KiB
01-07.txt AC 49 ms 61408 KiB
01-08.txt AC 47 ms 61388 KiB
01-09.txt AC 49 ms 61392 KiB
01-10.txt AC 49 ms 61508 KiB
01-11.txt AC 45 ms 61516 KiB
sample-01.txt AC 45 ms 61516 KiB
sample-02.txt AC 49 ms 61400 KiB