Problem: Takahashi will do a tap dance. The dance is described by a string S where each character is `L`, `R`, `U`, or `D`. These characters indicate the positions on which Takahashi should step. He will follow these instructions one by one in order, starting with the first character.  S is said to be _easily playable_ if and only if it satisfies both of the following conditions:    * Every character in an odd position (1-st, 3-rd, 5-th, \ldots) is `R`, `U`, or `D`.   * Every character in an even position (2-nd, 4-th, 6-th, \ldots) is `L`, `U`, or `D`.  Your task is to print `Yes` if S is easily playable, and `No` otherwise.

Submission attempts (in order):
S=input()
total=0

for i in range(ren(S)):
    if  i%2=0:
        if  (S[i]=='R')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1
    else:
        if  (S[i]=='L')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input().split()
total=0

for i in range(ren(S)):
    if  i%2=0:
        if  S[i]=='R'or'U'or'D':
            pass
        else:
            total+=1
    elif  i%2=1:
        if  S[i]=='L'or'U'or'D':
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input()
total=0

for i in range(ren(S)):
    if  (i%2)==0:
        if  (S[i]=='R')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1
    else:
        if  (S[i]=='L')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input().split()
total=0

for i in range(ren(S)):
    if  i%0:
        if  S[i]=='R'or'U'or'D':
            pass
        else:
            total+=1
    elif  i%1:
        if  S[i]=='L'or'U'or'D':
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input()
total=0

for i in range(ren(S)):
    if  i%2==0:
        if  (S[i]=='R')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1
    else:
        if  (S[i]=='L')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input().split()
total=0

for i in range(ren(S))
    if  i%0:
        if  S[i]=='R'or'U'or'D':
            pass
        else:
            total+=1
    elif  i%1:
        if  S[i]=='L'or'U'or'D':
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input().split()

if i>=0:
  if  S[2*i]=='L':
      print('No')
  elif  S[2*i+1]=='R':
      print('No')

S=input().split()
total=0

for i in range(ren(S)):
    if  i%2=0:
        if  (S[i]=='R')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1
    else:
        if  (S[i]=='L')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

S=input().split()

if i>=0:
  if  S[0::2]=='L':
      print('No')
  elif  S[1::2]=='R':
      print('No')
  else:
      print('Yes')

S=input()
total=0

for i in range(len(S)):
    if  i%2==0:
        if  (S[i]=='R')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1
    else:
        if  (S[i]=='L')or(S[i]=='U')or(S[i]=='D'):
            pass
        else:
            total+=1

if  total==0:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted