Submission #4069368
Source Code Expand
a,b = map(int,input().split(" ")) ar = list(input()) for j in range(b): i = 0 g = "R" while True: if i < 0 or i == a: break else: if ar[i] == "A": ar[i] = "B" if g == "R": i -= 1 g = "L" else: i += 1 g = "R" else: ar[i] = "A" if g == "R": i += 1 else: i -= 1 print("".join(ar))
Submission Info
Submission Time | |
---|---|
Task | D - Half Reflector |
User | beetiruka |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 584 Byte |
Status | TLE |
Exec Time | 2108 ms |
Memory | 4840 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 900 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in17.txt, in18.txt, in19.txt, in2.txt, in20.txt, in21.txt, in22.txt, in23.txt, in24.txt, in25.txt, in26.txt, in27.txt, in28.txt, in29.txt, in3.txt, in30.txt, in31.txt, in32.txt, in33.txt, in34.txt, in35.txt, in36.txt, in37.txt, in38.txt, in39.txt, in4.txt, in40.txt, in41.txt, in42.txt, in5.txt, in543.txt, in557.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | AC | 75 ms | 3064 KB |
in10.txt | TLE | 2104 ms | 4836 KB |
in11.txt | TLE | 2104 ms | 4840 KB |
in12.txt | TLE | 2103 ms | 4836 KB |
in13.txt | TLE | 2104 ms | 4840 KB |
in14.txt | TLE | 2104 ms | 4836 KB |
in15.txt | TLE | 2104 ms | 4840 KB |
in16.txt | TLE | 2104 ms | 4836 KB |
in17.txt | TLE | 2103 ms | 4840 KB |
in18.txt | TLE | 2104 ms | 4840 KB |
in19.txt | TLE | 2104 ms | 4840 KB |
in2.txt | TLE | 2103 ms | 3956 KB |
in20.txt | TLE | 2104 ms | 4836 KB |
in21.txt | TLE | 2104 ms | 4840 KB |
in22.txt | TLE | 2104 ms | 4840 KB |
in23.txt | TLE | 2104 ms | 4840 KB |
in24.txt | TLE | 2104 ms | 4836 KB |
in25.txt | TLE | 2104 ms | 4836 KB |
in26.txt | TLE | 2104 ms | 4840 KB |
in27.txt | TLE | 2104 ms | 4840 KB |
in28.txt | TLE | 2104 ms | 4836 KB |
in29.txt | TLE | 2104 ms | 4840 KB |
in3.txt | TLE | 2104 ms | 4840 KB |
in30.txt | TLE | 2104 ms | 4840 KB |
in31.txt | TLE | 2104 ms | 4840 KB |
in32.txt | TLE | 2104 ms | 4840 KB |
in33.txt | TLE | 2104 ms | 4840 KB |
in34.txt | TLE | 2104 ms | 4836 KB |
in35.txt | TLE | 2104 ms | 4840 KB |
in36.txt | TLE | 2104 ms | 4840 KB |
in37.txt | TLE | 2104 ms | 4840 KB |
in38.txt | TLE | 2108 ms | 4840 KB |
in39.txt | TLE | 2104 ms | 4840 KB |
in4.txt | TLE | 2104 ms | 4840 KB |
in40.txt | TLE | 2104 ms | 4836 KB |
in41.txt | TLE | 2104 ms | 4840 KB |
in42.txt | TLE | 2104 ms | 4840 KB |
in5.txt | TLE | 2104 ms | 4840 KB |
in543.txt | TLE | 2104 ms | 4836 KB |
in557.txt | TLE | 2104 ms | 4840 KB |
in6.txt | TLE | 2103 ms | 3064 KB |
in7.txt | TLE | 2104 ms | 4840 KB |
in8.txt | TLE | 2104 ms | 4840 KB |
in9.txt | TLE | 2104 ms | 4840 KB |
sample1.txt | AC | 17 ms | 3064 KB |
sample2.txt | AC | 17 ms | 3060 KB |
sample3.txt | TLE | 2103 ms | 2940 KB |