Submit solution

Points: 100.00 (partial)
Time limit: 1.5s
Memory limit: 512M
Input: stdin
Output: stdout

Problem type
Allowed languages
C++, Pascal, Python


Comments

Please read the guidelines before commenting.



  • 0
    truongphat   commented on Aug. 19, 2024, 5:40 a.m.

    code python nè from collections import deque f = open('vidu.inp','r') g = open('vidu.out','d') s = f.readline().strip() s1 = f.readline().strip() s = deque(s) for i in s1: if i == 'r': s.appendleft(s.pop()) else: s.append(s.popleft()) print(''.join(s), file=g) f.close g.close


  • 0
    HDG_12   commented on July 4, 2024, 9:12 a.m.

    strong text


  • 0
    DucKien2014   commented on June 28, 2024, 10:07 p.m.

    Help me, pls give me a python or scratch code plsss


  • 0
    quan2013   commented on June 13, 2024, 8:07 p.m.

    enter code here