Please sign in first.
Submission #30548923
Source Code Expand
s = input() a, b = map(int, input().split()) a = a - 1 b = b - 1 print(s[: a] + s[b] + s[a + 1 : b] + s[a] + s[b + 1 :])
Submission Info
| Submission Time | |
|---|---|
| Task | A - chukodai |
| User | Pro_ktmr |
| Language | PyPy3 (7.3.0) |
| Score | 100 |
| Code Size | 124 Byte |
| Status | AC |
| Exec Time | 66 ms |
| Memory | 61704 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 66 ms | 61428 KiB |
| 001.txt | AC | 51 ms | 61476 KiB |
| 002.txt | AC | 52 ms | 61704 KiB |
| 003.txt | AC | 52 ms | 61404 KiB |
| 004.txt | AC | 51 ms | 61348 KiB |
| 005.txt | AC | 49 ms | 61544 KiB |
| 006.txt | AC | 47 ms | 61380 KiB |
| 007.txt | AC | 50 ms | 61472 KiB |
| 008.txt | AC | 51 ms | 61512 KiB |
| 009.txt | AC | 52 ms | 61380 KiB |
| 010.txt | AC | 50 ms | 61460 KiB |
| 011.txt | AC | 52 ms | 61340 KiB |
| 012.txt | AC | 50 ms | 61496 KiB |
| 013.txt | AC | 52 ms | 61252 KiB |
| example0.txt | AC | 51 ms | 61572 KiB |
| example1.txt | AC | 50 ms | 61560 KiB |
| example2.txt | AC | 52 ms | 61464 KiB |