Submission #28943035
Source Code Expand
N = int(input())
ans = [0]
before = 0
for i, s in enumerate(input()):
if s == 'R':
before += 1
ans.insert(before, i+1)
print(*ans)
Submission Info
| Submission Time | |
|---|---|
| Task | D - LR insertion |
| User | is0292hx |
| Language | Python (3.8.2) |
| Score | 0 |
| Code Size | 157 Byte |
| Status | TLE |
| Exec Time | 2206 ms |
| Memory | 33476 KiB |
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 400 | ||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.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, 014.txt, 015.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 16 ms | 8836 KiB |
| 001.txt | AC | 17 ms | 8940 KiB |
| 002.txt | AC | 22 ms | 9080 KiB |
| 003.txt | AC | 19 ms | 9368 KiB |
| 004.txt | TLE | 2206 ms | 14556 KiB |
| 005.txt | AC | 253 ms | 33476 KiB |
| 006.txt | TLE | 2206 ms | 16632 KiB |
| 007.txt | TLE | 2206 ms | 16660 KiB |
| 008.txt | AC | 21 ms | 8960 KiB |
| 009.txt | AC | 20 ms | 8848 KiB |
| 010.txt | AC | 22 ms | 9268 KiB |
| 011.txt | AC | 24 ms | 9100 KiB |
| 012.txt | TLE | 2206 ms | 16504 KiB |
| 013.txt | TLE | 2206 ms | 16652 KiB |
| 014.txt | TLE | 2206 ms | 16696 KiB |
| 015.txt | TLE | 2206 ms | 16380 KiB |
| example0.txt | AC | 17 ms | 9076 KiB |
| example1.txt | AC | 17 ms | 9020 KiB |