Problem p02910 (python)

Fixed submission:
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
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')

Buggy submission (verdict: Runtime Error):
S=input().split()

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

Buggy submission (verdict: Runtime Error):
S=input().split()

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