Please sign in first.
Submission #31063825
Source Code Expand
n, a, b = map(int, input().split())
s = input()
answer = s[: a - 1]
for i in range(b - a + 1):
answer += s[b - 1 - i]
answer += s[b :]
print(answer)
Submission Info
| Submission Time | |
|---|---|
| Task | B - 文字列の反転 (Inversion of a String) |
| User | Pro_ktmr |
| Language | PyPy3 (7.3.0) |
| Score | 100 |
| Code Size | 158 Byte |
| Status | AC |
| Exec Time | 69 ms |
| Memory | 61748 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 69 ms | 61332 KiB |
| 01-02.txt | AC | 49 ms | 61664 KiB |
| 01-03.txt | AC | 53 ms | 61620 KiB |
| 01-04.txt | AC | 52 ms | 61456 KiB |
| 01-05.txt | AC | 51 ms | 61724 KiB |
| 01-06.txt | AC | 50 ms | 61748 KiB |
| 01-07.txt | AC | 51 ms | 61612 KiB |
| 01-08.txt | AC | 49 ms | 61556 KiB |
| 01-09.txt | AC | 47 ms | 61608 KiB |
| 01-10.txt | AC | 50 ms | 61424 KiB |
| 01-11.txt | AC | 49 ms | 61596 KiB |
| sample-01.txt | AC | 47 ms | 61592 KiB |
| sample-02.txt | AC | 50 ms | 61584 KiB |