ZhenlongDai/ACPR huggingface dataset:
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = map(int, input().split())
if A == B == C:
  print(1)
elif A == B != C or A != B == C or A != C == B:
  print(2)
else:
  print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
A, B, C = map(int, input().split())
if A == B == C:
  print(1)
elif A == B != C or A == C != B or B == C != A:
  print(2)
else:
  print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(input().split())
print(set(a))

Failing test case input:
6 16 4

Expected output:
3


Actual output:
{'16', '4', '6'}


Fixed submission (verdict: Accepted):
a = list(input().split())
print(len(set(a)))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a,b,c = map(int,input().split())
S = set("abc")
print(len(S))

Failing test case input:
53 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):

a,b,c = map(int,input().split())
L = [a,b,c]
S = set(L)
print(len(S))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if a == b:
    if a == c:
        print(1)
    else:
        print(2)
else:
    if b == c:
        print(2)
    else:
        print(3)



Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
list = list(map(int,input().split()))
if list.count(list[0]) == 3:
    print(1)
elif list.count(list[0]) == 2:
    print(2)
else:
    if list[1] == list[2]:
        print(2)
    else:
        print(3)

Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=list(map(int,input().split()))
a.sort()
if a[0]==a[1]==a[2]:
  print(1)
else:
  if a[0]==a[1] or a[1]==a[2] or a[2]==a[0]:
    print(2)
  else:
    print(1)

Failing test case input:
27 0 1

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
if a[0]==a[1]==a[2]:
  print(1)
else:
  if a[0]==a[1] or a[1]==a[2] or a[2]==a[0]:
    print(2)
  else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

a,b,c = map(int,input().split())
S = set("abc")
T = len(S)
print(T)

Failing test case input:
94 2 2

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):

a,b,c = map(int,input().split())
L = [a,b,c]
S = set(L)
print(len(S))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
mylist = input().split()
print(len(mylist))

Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
mylist = input().split()
print(len(set(mylist)))
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
iro = list(map(int, input().split()))
shu = 1
iro.sort()
for i in range(1, len(iro)):
  if iro[i - 1] != iro[i]:
    shu += 1
print(iro)

Failing test case input:
5 -2 33

Expected output:
3


Actual output:
[-2, 5, 33]


Fixed submission (verdict: Accepted):
iro = list(map(int, input().split()))
shu = 1
iro.sort()
for i in range(1, len(iro)):
  if iro[i - 1] != iro[i]:
    shu += 1
print(shu)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
ab = a == b
bc = b == c
if ab and bc:
    print(1)
elif ab or bc:
    print(2)
else:
    print(3)


Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
ab = a == b
bc = b == c
ca = c == a
if ab and bc and ca:
    print(1)
elif ab or bc or ca:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if a==b and b==c:
    print(1)
elif a==b or b==c:
    print(2)
else:
    print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if a==b and b==c:
    print(1)
elif a==b or b==c or a==c:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(len(set(input())) - 1)

Failing test case input:
5 20 -1

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
print(len(set(input().split())))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


a,b,c=list(map(int,input().split()))

if a==b or b==c or c==a:
    if a==b or b==c:
        print("3")
    else:
        print("2")
else:
    print("1")

Failing test case input:
11 20 -1

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):


a,b,c=list(map(int,input().split()))

if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input().split()




if a[0]==a[1]==a[2]:
    print(3)
elif a[0]!=a[1]!=a[2]:
    print(1)
else:
    print(2)


Failing test case input:
7 35 2

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
a=input().split()

if a[0]==a[1]==a[2]:
    print(1)
elif a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]:
    print(3)
else:
    print(2)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = set(map(int, input().split()))
print(set)

Failing test case input:
3 0 33

Expected output:
3


Actual output:
<class 'set'>


Fixed submission (verdict: Accepted):
s = set(map(int, input().split()))
n = len(list(s))
print(n)
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = map(int,input().split())
dic ={}
ans = 0
for p in a:
  if p not in dic:
    continue
  dic[p]=1
  ans+=1
  
print(ans)

Failing test case input:
2 9 5

Expected output:
3


Actual output:
0


Fixed submission (verdict: Accepted):
a = map(int,input().split())
dic ={}
ans = 0
for p in a:
  if p in dic:
    continue
  dic[p]=1
  ans+=1
  
print(ans)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = list(map(int, input().split()))

cnt = 0
if a == b == c:
    print(1)
elif a == b or b == c:
    print(2)
else:
    print(3)


Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = list(map(int, input().split()))

cnt = 0
if a == b == c:
    print(1)
elif a == b or b == c or c == a:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())

if a == b == c:
    print(1)
elif a != b != c:
    print(3)
else:
    print(2)


Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())

if a == b and b == c and c == a:
    print(1)
elif a != b and b != c and c != a:
    print(3)
else:
    print(2)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(len(set(input())))

Failing test case input:
8 -4 1

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
print(len(set(input().split())))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
lst=list(map(int,input().split()))
if lst[0]==lst[1]==lst[2]:
    print(1)
elif lst[0]==lst[1] or lst[1]==lst[2]:
    print(2)
else:
    print(3)

Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
lst=list(map(int,input().split()))
if lst[0]==lst[1]==lst[2]:
    print(1)
elif lst[0]==lst[1] or lst[1]==lst[2] or lst[0]==lst[2]:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B, C = map(int, input().split())
if A == B == C:
  print(1)
elif A == B != C or A != B == C:
  print(2)
else:
  print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
A, B, C = map(int, input().split())
if A == B == C:
  print(1)
elif A == B != C or A == C != B or B == C != A:
  print(2)
else:
  print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ho=input().split()
if(int(ho[0]) == int(ho[1]) == int(ho[2])):
    print(1)
elif (int(ho[0]) == int(ho[1]) or int(ho[1]) == int(ho[2]) or int(ho[2]) == int(ho[0])):
    print(2)
else:
    print(1)

Failing test case input:
53 1 2

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
ho=input().split()
if(int(ho[0]) == int(ho[1]) == int(ho[2])):
    print(1)
elif (int(ho[0]) == int(ho[1]) or int(ho[1]) == int(ho[2]) or int(ho[2]) == int(ho[0])):
    print(2)
else:
    print(3)
Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if a == b:
  if b == c:
    print(1)
  else:
    print(2)
elif b == c:
  print(2)
else:
  print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == b:
  if b == c:
    print(1)
  else:
    print(2)
elif b == c:
  print(2)
elif a == c:
  print(2)
else:
  print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = [int(i) for i in input().split()]

set(A)
list(A)
print(len(A))

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
A = [int(i) for i in input().split()]

A = set(A)

print(len(A))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

result = 3

if a == b and b == c:
  result = 1
elif a != b and b != c:
  result = 3
elif a != c and b != c:
  result = 3
else:
  result = 2
  
print(result)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == b and b == c:
  result = 1
elif a == b and b != c:
  result = 2
elif b == c and a != b:
  result = 2
elif a == c and a != b:
  result = 2
else:
  result = 3
  
print(result)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a == b and b == c:
    print(1)
elif (a != b and b == c) or (a == b and b != c):
    print(2)
else:
    print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a == b and b == c:
    print(1)
elif (a != b and b == c) or (a == b and b != c) or (a == c and a != b):
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = input().split()
if a == b and b == c:
    print(1)
elif a == b or b == c:
    print(2)
else:
    print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c = input().split()
if a == b and b == c:
    print(1)
elif a == b or b == c or a == c:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if a == b == c:
  print(3)
elif a == b or b == c or c == a:
  print(2)
else:
  print(1)

Failing test case input:
11 20 -1

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == b == c:
  print(1)
elif a == b or b == c or c == a:
  print(2)
else:
  print(3)
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a != b != c:
	print(3)
elif a == b != c or a != b == c:
	print(2)
else:
	print(1)

Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a == b == c:
	print(1)
elif a == b or b == c or c ==a:
	print(2)
else:
	print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if a == b and b == c:
    print(1)

elif a != b and b == c:
    print(2)

elif a == b and b != c:
    print(2)

else:
    print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == b and b == c:
    print(1)

elif a != b and b == c:
    print(2)

elif a == b and b != c:
    print(2)

elif a == c and a != b:
    print(2)

else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a == b:
    if a == c:
        print(1)
    else: print(2)
elif a == c:
    print(2)
else: print(3)

Failing test case input:
27 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a == b:
    if a == c:
        print(1)
    else: print(2)
elif a == c:
	print(2)
elif b == c:
  print(2)
else: print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())
if a == b and b == c and a == c:
  print("1")
elif a != b and b != c:
  print("3")
else:
  print("2")


Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())
if a == b and b == c and a == c:
  print("1")
elif a != b and b != c and a != c:
  print("3")
else:
  print("2")

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


a,b,c=list(map(int,input().split()))

if a==b or b==c or c==a:
    if a==b==c:
        print("3")
    else:
        print("2")
else:
    print("1")

Failing test case input:
-8 2 -1

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):


a,b,c=list(map(int,input().split()))

if a==b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

Problem: p03962
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):

a,b,c=map(int, input().split())
if a==b and a==c:
    print(1)
else:
    if a!=b and a!=c:
        print(3)
    else:
        print(2)

Failing test case input:
53 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
if a==b and a==c:
    print(1)
elif a!=b and b!=c and c!=a:
    print(3)
else:
    print(2)
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())

if a==b:
    if a==c:
        print(1)
    else:
        print(2)

elif b==c:
    if a==b:
        print(1)
    else:
        print(2)

else:
    print(3)


Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())

if a==b:
    if a==c:
        print(1)
    else:
        print(2)

elif b==c:
    if a==b:
        print(1)
    else:
        print(2)

elif a==c:
    if a==b:
        print(1)
    else:
        print(2)


else:
    print(3)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections

a = input()
c = collections.Counter(list(a))

print(len(c))

Failing test case input:
53 1 2

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
import collections

a = input()
c = collections.Counter(a.split())

print(len(c))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = [int(i) for i in input().split()] 

if (a[0] == a[1]):
  if (a[1] == a[2]):
    sum = 1
  else:
    sum = 2
elif (a[0] == a[2]):
  sum = 2
else:
  sum = 3

print(sum)

Failing test case input:
27 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a = [int(i) for i in input().split()] 

if (a[0] == a[1]):
  if (a[1] == a[2]):
    sum = 1
  else:
    sum = 2
elif (a[0] == a[2]):
  sum = 2
elif (a[1] == a[2]):
  sum = 2
else:  
  sum = 3

print(sum)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if a==b==c:
  print(1)
elif a==b or b==c:
  print(2)
else:
  print(3)

Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if a==b==c:
  print(1)
elif a==b or b==c or a==c:
  print(2)
else:
  print(3)

Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
colors = list(map(int,input().split()))
print(len(colors))

Failing test case input:
53 2 2

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
colors = list(map(int,input().split()))
print(len(set(colors)))

Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())

if a == b and b == c:
    print(1)
elif a == b and b != c:
    print(2)
elif a != b and b == c:
    print(2)
elif a != b and b != c:
    print(3)

Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

if a == b and b == c:
    print(1)
elif a == b and b != c:
    print(2)
elif a != b and b == c:
    print(2)
elif a == c and a != b:
    print(2)
elif a != b and b != c:
    print(3)
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int,input().split())
if a != b and b != c:
  print(3)
elif a == b and b == c:
  print(1)
else:
  print(2)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int,input().split())
if a != b and b != c and c != a:
  print(3)
elif a == b and b == c:
  print(1)
else:
  print(2)

Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = list(map(int,input().split()))
len(set(x))

Failing test case input:
94 1 0

Expected output:
3


Actual output:

Fixed submission (verdict: Accepted):
x = list(map(int,input().split()))
print(len(set(x)))

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):





a, b, c = map(int, input().split())
variety = 3

if a == b:
    variety -= 1
if a == c:
    variety -= 1
print(variety)


Failing test case input:
27 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):





a, b, c = map(int, input().split())
variety = 3

if a == b:
    variety -= 1
if a == c:
    variety -= 1
elif b == c:
    variety -= 1
print(variety)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y, z = map(int, input().split())
count = 1
if x != y:
    count += 1
if x != z:
    count += 1
print(count)


Failing test case input:
94 2 2

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
x, y, z = map(int, input().split())
count = 1
if x != y:
    count += 1
if x != z and y != z:
    count += 1
print(count)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print(len(set(list(input()))))

Failing test case input:
6 12 -1

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
print(len(set(list(input().split()))))

Problem: p03962
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
sample = input()
sample_list = sample.split(" ")
count = 0
flag = 0
for i in range(len(sample_list)):
  for j in range(1, i):
    if sample_list[i] == sample_list[j]:
      flag = 1
    if flag == 0:
      count += 1
    flag = 0
print(count)


Failing test case input:
94 1 0

Expected output:
3


Actual output:
1


Fixed submission (verdict: Accepted):
sample = input()
sample_list = sample.split(" ")
count = 0
flag = 0
i = 0
j = 1
for i in range(len(sample_list)):
  for j in range(i):
    if sample_list[i] == sample_list[j]:
      flag = 1
  if flag == 0:
    count += 1
  flag = 0
print(count)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(map(int, input().split()))
a = S[0]
b = S[1]
c = S[2]
color_cnt = 0
if(a == b and b == c):
    print(1)
elif(a == b or b == c):
    print(2)
else:
    print(3)

Failing test case input:
4 12 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
S = list(map(int, input().split()))
a = S[0]
b = S[1]
c = S[2]
if(a == b and b == c):
    print(1)
elif(a == b or b == c or a == c):
    print(2)
else:
    print(3)
Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
ans = 0
if a == b:
    if a == c:
        ans = 1
    else:
        ans = 2
else:
    if a == c:
        ans = 2
    if b == c:
        ans = 2
    else:
        ans = 3
print(ans)


Failing test case input:
4 16 4

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
ans = 0
if a == b:
    if a == c:
        ans = 1
    else:
        ans = 2
else:
    if a == c:
        ans = 2
    elif b == c:
        ans = 2
    else:
        ans = 3
print(ans)

Problem: p03962
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=tuple(map(int,input().split()))
print(len(l))


Failing test case input:
53 1 1

Expected output:
2


Actual output:
3


Fixed submission (verdict: Accepted):
l=set(map(int,input().split()))
print(len(l))
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
flags = ['Yes', 'No']

input_s = input()

odd_s = input_s[1::2]
even_s = input_s[0::2]

no_flag = ('R' in even_s) | ('L' in odd_s)

print(flags[no_flag])

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
flags = ['Yes', 'No']

input_s = input()

odd_s = input_s[0::2]
even_s = input_s[1::2]

no_flag = ('L' in odd_s) | ('R' in even_s)

print(flags[no_flag])

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x = list(input())
i = 0
edetector = True
odetector = True
while i < len(x):
    if  i % 2 == 0:
        if x[i] not in ["L", "U", "D"]:
            edetector = False
    else:
        if x[i] not in ["R", "U", "D"]:
            odetector = False
    i += 1

if edetector and odetector:
    print("Yes")
else:
    print("No")


Failing test case input:
RUDLUDR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
x = list(input())
i = 0
edetector = True
odetector = True
while i < len(x):
    if  i % 2 == 0:
        if not x[i] in ["R", "U", "D"]:
            edetector = False
    else:
        if not x[i] in ["L", "U", "D"]:
            odetector = False
    i += 1

if edetector and odetector:
    print("Yes")
else:
    print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
arr = list(s)
if 'L' in arr[::2] or 'RDULL' in arr[1::2]:
    print('No')
else:
    print('Yes')

Failing test case input:
KWVSWRCRQJQVKQCLMVD

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
arr = list(s)
if 'L' in arr[::2] or 'R' in arr[1::2]:
    print('No')
else:
    print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

i=0
flug=0
for x in range(len(s)):
    if(i%2==1):
        if(s[i] =='L'):
            flug=1
            break
    else:
        if(s[i] =='R'):
            flug=1
            break

if(flug==1):
    print("No")
else:
    print("Yes")

Failing test case input:
UJURU

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()

i=0
flug=0
for x in range(1,len(s)+1):
    if(x%2==1):
        if(s[x-1] =='L'):
            flug=1
            break
    else:
        if(s[x-1] =='R'):
            flug=1
            break

if(flug==1):
    print("No")
else:
    print("Yes")
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
count = 0
for i in range(len(s)):
    if (i+1) % 2 != 0 and s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
        count += 1
    elif (i+1) % 2 == 0 and s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
        count += 1
    else:
        break
if count == 0:
    print('Yes')
else:
    print('No') 

Failing test case input:
RCVLUUDURLRKLDVLRRR

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
count = 0
for i in range(len(s)):
    if (i+1) % 2 != 0 and (s[i] == 'R' or s[i] == 'U' or s[i] == 'D'):
        count += 1
    elif (i+1) % 2 == 0 and (s[i] == 'L' or s[i] == 'U' or s[i] == 'D'):
        count += 1
if count == len(s):
    print('Yes')
else:
    print('No')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
g = ['R', 'U', 'D']
k = ['L', 'U', 'D']
a = input()
b = 0
for i in range(len(a)):
    if (i+1) % 2 == 0:
        if a[i] in g:
            pass
        else:
            print('No')
            b = 1
            break
    else:
        if a[i] in k:
            pass
        else:
            print('No')
            b = 1
            break
if b == 0:
    print('Yes')

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
g = ['L', 'U', 'D']
k = ['R', 'U', 'D']
a = input()
b = 0
for i in range(len(a)):
    if (i+1) % 2 == 0:
        if a[i] in g:
            pass
        else:
            print('No')
            b = 1
            break
    else:
        if a[i] in k:
            pass
        else:
            print('No')
            b = 1
            break
if b == 0:
    print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
for i in range(len(s)):
  if i%2==0:
    if s[i]!='R' or s[i]!='U' or s[i]!='D':
      print('No')
      exit()
  else:
    if s[i]!='L' or s[i]!='U' or s[i]!='D':
      print('No')
      exit()
print('Yes')
 

Failing test case input:
RDULDUR

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
if s=='L':
  print('No')
  exit()
for i in range(0,len(s),2):
  for j in range(1,len(s),2):
    if s[i] not in 'RUD' or s[j] not in 'LUD':
      print('No')
      exit()
print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(input())
s1 = s[0::2] 
s2 = s[1::2] 

if 'L' in s1:
    print('No')
elif 'R' in s2:
    print('Yes')
else:
    print('Yes')


Failing test case input:
KXVKPBCRQJMSUQWLWRE

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=list(input())
A=S[::2]
B=S[1::2]
if 'L' in A:
  print('No')
elif 'R' in B:
  print('No')
else:
  print('Yes')
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = list(input())
if False not in [i in "L" for i in S[::2]] or False not in [i in "R" for i in S[1::2]]:
	print("Yes")
else:
	print("No")

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = list(input())
if False not in [i not in "L" for i in S[::2]] and False not in [i not in "R"for i in S[1::2]]:
	print("Yes")
else:
	print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
ki=s[1::2]
gu=s[::2]
if 'L' in ki:
    print('No')
elif 'R' in gu:
    print('No')
else:
    print('Yes')


Failing test case input:
URUJU

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
ki=s[2::2]
gu=s[1::2]
ki=s[0]+ki
if 'L' in ki:
    print('No')
elif 'R' in gu:
    print('No')
else:
    print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=list(input())
even=[]
odd=[]
for i in range(len(S)):
    if i%2==0:
        even.append(S[i])
    else:
        odd.append(S[i])
print(odd,even)
if not "L" in even and not "R" in odd:
    print("Yes")
else:
    print("No")

Failing test case input:
KXVKWSCRQJPSUQCLMVE

Expected output:
No


Actual output:
['X', 'K', 'S', 'R', 'J', 'S', 'Q', 'L', 'V'] ['K', 'V', 'W', 'C', 'Q', 'P', 'U', 'C', 'M', 'E']
No


Fixed submission (verdict: Accepted):
S=list(input())
even=[]
odd=[]
for i in range(len(S)):
    if i%2==0:
        even.append(S[i])
    else:
        odd.append(S[i])
if not "L" in even and not "R" in odd:
    print("Yes")
else:
    print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

for i in range(len(s)):
  if i % 2 == 1:
    if s[i] == 'L':
      print('No')
  else:
    if s[i] == 'R':
      print('No')

print('Yes')
    

Failing test case input:
KWVSWRCRQJQKVQCLMVD

Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
s=input()

for i in range(len(s)):
  if i % 2 == 0:
    if s[i] == 'L':
      print('No')
      exit(0)
  else:
    if s[i] == 'R':
      print('No')
      exit(0)

print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=list(input())

f=0

for i in range(len(s)):
    if i%2==0:
        if s[i]=='L':
            f+=1
    else:
        if s[i]=='R':
            f+=1
if f>0:
    print('No')
else:
    print('YES')

Failing test case input:
UUUUUUUUUUUUUUU

Expected output:
Yes

Actual output:
YES


Fixed submission (verdict: Accepted):
s=list(input())

f=0

for i in range(len(s)):
    if i%2==0:
        if s[i]=='L':
            f+=1
    else:
        if s[i]=='R':
            f+=1
if f>0:
    print('No')
else:
    print('Yes')
Problem: p02910
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(map(str,input()))

odd = ['R','U','D']
even = ['L','U','D']

for i in range(len(S)):
    if (i+1)%2 == 0:
        if S[i] in odd:
            print('No')
            exit()
    elif (i+1)%2 == 1:
        if S[i] in even:
            print('No')
            exit()
print('Yes')

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = list(map(str,input()))

odd = ['R','U','D']
even = ['L','U','D']

for i in range(len(S)):
    if (i+1)%2 == 0:
        if S[i] in 'R':
            print('No')
            exit()
    elif (i+1)%2 == 1:
        if S[i] in 'L':
            print('No')
            exit()
print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
text = input()

flg = 0
for i in range(len(text)):
	if i%2 == 0:
		if text[i:i+1] != 'R' and text[i:i+1] and 'U' and text[i:i+1] != 'D':
			flg = 1
	else:
		if  text[i:i+1] != 'L' and text[i:i+1] and 'U' and text[i:i+1] != 'D':
			flg = 1
if flg == 1:
	print('No')
else:
	print('Yes')

Failing test case input:
RDULDUR

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
text = input()
 
flg = 0
for i in range(len(text)):
	if i%2 == 0:
		if text[i:i+1] != 'R' and text[i:i+1] != 'U' and text[i:i+1] != 'D':
			flg = 1
	else:
		if  text[i:i+1] != 'L' and text[i:i+1] != 'U' and text[i:i+1] != 'D':
			flg = 1
if flg == 1:
	print('No')
else:
	print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
 
for i in range(0,int(len(S)/2)):
	if S[i * 2] == "L": 
		print("No")
		break
	elif S[i * 2 + 1] == "R":
		print("No")
		break
if S[len(S) - 1] == "L":
		print("No")
else:print("Yes")

Failing test case input:
KWVLPBCRQSLQWJWLURE

Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
L = input()
 
for i in range(0,int(len(L))):
	if (i % 2) == 0:
		if L[i] == "L": 
			print("No")
			break
	elif (i % 2) == 1:
		if L[i] == "R":
			print("No")
			break
else:print("Yes")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
  inputstr = input()
  size = len(inputstr)

  isEasy = True

  for i in range(size):
    if i % 2 == 0:
      if inputstr[i] in ["L", "U", "D"]:
        pass
      else:
        isEasy = False
        break
    else:
      if inputstr[i] in ["R", "U", "D"]:
        pass
      else:
        isEasy = False
        break

  if isEasy == True:
    print("Yes")
  else:
    print("No")


Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
  inputstr = input()
  size = len(inputstr)
  isEasy = True

  for i in range(size):
    point = i + 1
    if point % 2 == 0:
      if inputstr[i] in ["L", "U", "D"]:
        pass
      else:
        isEasy = False
        break
    else:
      if inputstr[i] in ["R", "U", "D"]:
        pass
      else:
        isEasy = False
        break

  if isEasy == True:
    print("Yes")
  else:
    print("No")
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
flag=True
for i in range(len(s)):
  if i%2==0 and s[i]=="R":
    flag=False
    break
  elif i%2==1 and s[i]=="L":
    flag = False
    break
if flag:
  print('Yes')
else:
  print('No')

Failing test case input:
RDULDUR

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
flag=True
for i in range(len(s)):
  if i%2==1 and s[i]=="R":
    flag=False
    break
  elif i%2==0 and s[i]=="L":
    flag = False
    break
if flag:
  print('Yes')
else:
  print('No')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
 
S_contains = list(v for v in S)
 
even_list = S_contains[1::2]
odd_list = S_contains[0::2]
 
if not 'R' in even_list and 'L' in odd_list:
    print('Yes')
else:
    print('No')

Failing test case input:
RDULDUR

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
 
S_contains = list(v for v in S)
 
even_list = S_contains[1::2]
odd_list = S_contains[0::2]
 
if 'R' in even_list or 'L' in odd_list:
    print('No')
else:
    print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
dance = input()
num = 0
odd = []
even = []
for i in dance:
    num += 1
    if num %2 == 0:
        even.append(i)
    else:
        odd.append(i)
try:
    if (even.index('R') == True):
        print('No')
except ValueError:
    try:
        if odd.index('L') == True:
            print('No')
    except ValueError:
        print('Yes')

Failing test case input:
URUJU

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
import sys
dance = input()
num = 0
odd = []
even = []
for i in dance:
    num += 1
    if num %2 == 0:
        even.append(i)
    else:
        odd.append(i)
for i in odd:
    if i == "L":
        print('No')
        sys.exit()
    else:
        pass
for i in even:
    if i == "R":
        print('No')
        sys.exit()
    else:
        pass
print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str = input()
num = len(str)
ans = True
for i in range(num):
    if (i+1) % 2:
        if str[i] == "R":
            ans = False
    else:
        if str[i] == "L":
            ans = False

if ans:
    print("Yes")
else:
    print("No")

Failing test case input:
UJURU

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
str = input()
num = len(str)
ans = True
for i in range(num):
    if (i+1) % 2 == 0:
        if str[i] == "R":
            ans = False
    else:
        if str[i] == "L":
            ans = False

if ans:
    print("Yes")
else:
    print("No")
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l=list(input())
l1=['U','D']
c=0
for i in range(len(l)):
    if l[i] not in l1:
        if (i+1)%2==0 and l[i]!='L':
            c=1
            break
        if (i+1)%2!=0 and l[i]!='R':
            c=1
            break
if(c==0):
    print("YES")
else:
    print("NO")

Failing test case input:
SCVWKVKRRUQDLPDLMRV

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
l=list(input())
l1=['U','D']
c=0
for i in range(len(l)):
    if l[i] not in l1:
        if (i+1)%2==0 and l[i]!='L':
            c=1
            break
        if (i+1)%2!=0 and l[i]!='R':
            c=1
            break
if(c==0):
    print("Yes")
else:
    print("No")

Problem: p02910
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
k = ['R','U','D']
g = ['L','U','D']

s = input()
for i in range(len(s)):
  if i%2 == 0:
    if not i in g:
      print("No")
      exit()
  else:
    if not i in k:
      print("No")
      exit()
print("Yes")

Failing test case input:
RUDLUDR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
k = ['R','U','D']
g = ['L','U','D']

s = input()
for i in range(len(s)):
  if s[i] == 'U' or s[i] == 'D':
    continue
  else:
    if i%2 != 0:
      if s[i] != 'L':
        print("No")
        exit()
    else:
      if s[i] != 'R':
        print("No")
        exit()
print("Yes")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
a=0
for i in range (0,len(s)):
  if s[i]=="U"or"D":
    a=a
  elif i%2==0:
    if s[i]=="L":
      a=a+1
  else:
    if s[i]=="R":
      a=a+1
if a==0:
  print("Yes")
else:
  print("No")

Failing test case input:
DVMLCRKVQJRRDRKSVWW

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
a=0
for i in range (0,len(s)):
  if s[i]=="R"or"L":
    if i%2==0:
      if s[i]=="L":
        a=a+1
    else:
      if s[i]=="R":
        a=a+1
if a==0:
  print("Yes")
else:
  print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
F = input()
o = {"R", "U","D"}
e = {"L", "U","D"}
for i in range(len(F)):
    if i % 2 == 0:
        if F[i] not in e:
            print("No")
            break
    else:
        if F[i] not in o:
            print("No")
            break
print("Yes")

Failing test case input:
RRRRLPLKDLLVDWUWVCR

Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
F = input()
o = {"R", "U","D"}
e = {"L", "U","D"}
flag = False
for i in range(len(F)):
    if( i+1) % 2 == 1:
        if F[i] not in o:
            print("No")
            flag = True
            break
    else:
        if F[i] not in e:
            print("No")
            flag = True
            break
if flag == False:
    print("Yes")
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input()
for i in range(len(S)):
    if i%2==0 and S[i]=="L" or i%2==1 and S[i]=="R":
        print("No")
else:
    print("Yes")

Failing test case input:
KWVLSBCRQPQLWLWRUJE

Expected output:
No


Actual output:
No
No
Yes


Fixed submission (verdict: Accepted):
S=input()
for i in range(len(S)):
    if i%2==0 and S[i]=="L" or i%2==1 and S[i]=="R":
        print("No")
        break
else:
    print("Yes")

Problem: p02910
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

S = input()
S1 = S[0::2]
S2 = S[1::2]
ans1 = S1.count("R") + S1.count("U") + S2.count("D")
ans2 = S2.count("L") + S2.count("U") + S2.count("D")
if ans1 == len(S1) and ans2 == len(S2):
    print("Yes")
else:
    print("No")

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):

S = input()
S1 = S[0::2]
S2 = S[1::2]
ans1 = S1.count("R") + S1.count("U") + S1.count("D")
ans2 = S2.count("L") + S2.count("U") + S2.count("D")
if ans1 == len(S1) and ans2 == len(S2):
    print("Yes")
else:
    print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()
odev=0
for i in s:
	odev=odev+1
	if odev==1:
		if s=="L":
			print("No")
			break
	else:
		if s=="R":
			print("No")
			break
else:
	print("Yes")

Failing test case input:
KXVKPCCRQJMSUQRLWWE

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
odev=0
for i in s:
	odev=odev+1
	if odev%2==1:
		if i=="L":
			print("No")
			break
	else:
		if i=="R":
			print("No")
			break
else:
	print("Yes")

Problem: p02910
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(map(str,input()))

odd = ['R','U','D']
even = ['L','U','D']

for i in range(len(S)):
    if (i+1) == 0:
        if S[i] in odd:
            print('No')
            exit()
    elif (i+1) == 0:
        if S[i] in even:
            print('No')
            exit()
print('Yes')

Failing test case input:
KWVKPBCRQJMSUQWLWRE

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = list(map(str,input()))

odd = ['R','U','D']
even = ['L','U','D']

for i in range(len(S)):
    if (i+1)%2 == 0:
        if S[i] in 'R':
            print('No')
            exit()
    elif (i+1)%2 == 1:
        if S[i] in 'L':
            print('No')
            exit()
print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=list(input())
a=S[::2]
c=S[1::2]
b='Yes'
for i in a:
  if i!='R' or i!='U' or i!='D':
    b='No'
for j in c:
  if j!='L' or i!='U' or i!='D':
    b='No'
print(b)


Failing test case input:
RUDLUDR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S=list(input())
a=S[::2]
b='Yes'
for i in a:
  if i!='R' and i!='U' and i!='D':
    b='No'
    break
c=S[1::2]
for j in c:
  if j!='L' and j!='U' and j!='D':
    b='No'
    break
print(b)
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
hoge = input().split()
i = 0
while i < len(hoge):
  if i%2==0 and hoge[i] == ('L' or 'D' or 'U'):
    pass
  elif i%2==1 and hoge[i] == ('R' or 'D' or 'U'):
    pass
  else:
    break
  i+=1
if i == len(hoge)-1:
  print('Yes')
else:
  print('No')

Failing test case input:
KWVSWRCRQJQVKQCLMVD

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
hoge = list(input())
i = 0
while i < len(hoge):
    if i%2==0 and re.findall(r'[RDU]',hoge[i]):
        pass
    elif i%2==1 and re.findall(r'[LDU]',hoge[i]):
        pass
    else:
        break
    i+=1
if i == len(hoge):
  print('Yes')
else:
  print('No')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
flag = 0

for i, c in enumerate(s):
  if (i % 2 == 0) & (c == "R"):
    flag = 1
  elif (i % 2 == 1) & (c == "L"):
    flag = 1

if flag == 1:
  print("No")
else:
  print("Yes")

Failing test case input:
RDULULDURURLRDULRLR

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
flag = 0

for i, c in enumerate(s):
  if (i % 2 == 0) and (c == "L"):
    flag = 1
  elif (i % 2 == 1) and (c == "R"):
    flag = 1

if flag == 1:
  print("No")
else:
  print("Yes")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = str(input())

list_S_even =  [ c for c in S  if S.index(c)%2==1 ]
list_S_odd =  [ c for c in S  if S.index(c)%2==0 ]



judge_aaa = True

for i in list_S_even:
    if i == "L" or i == "U" or i == "D":
        pass
    else:
        judge_aaa = False

for i in list_S_odd:
    if i == "R" or i == "U" or i == "D":
        pass
    else:
        judge_aaa = False

if judge_aaa:
    print("Yes")
else:
    print("No")


Failing test case input:
RDULULDURURLLDULRRR

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = str(input())




list_S_even = [c for c in S[1::2]]
list_S_odd =  [c for c in S[::2]]




judge_aaa = True

for i in list_S_even:
    if i == "L" or i == "U" or i == "D":
        pass
    else:
        judge_aaa = False

for i in list_S_odd:
    if i == "R" or i == "U" or i == "D":
        pass
    else:
        judge_aaa = False

if judge_aaa:
    print("Yes")
else:
    print("No")

Problem: p02910
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
isOK=True
for i in range(len(S)):
  if(i%2==1):
    if(S[i]=="L"):
      isOK=False
  else:
    if(S[i]=="R"):
      isOK=False
      
if(isOK):
  print("Yes")
else:
  print("No")

Failing test case input:
UKURU

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
isOK=True
for i in range(len(S)):
  if((i+1)%2==1):
    if(S[i]=="L"):
      isOK=False
  else:
    if(S[i]=="R"):
      isOK=False
      
if(isOK):
  print("Yes")
else:
  print("No")
Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(str(input()))
for i in range(1, len(s)):
  if (i%2 and s[i]=='R') or (i%2==0 and s[i]=='L'):
    print('No')
    exit()
print('Yes')

Failing test case input:
LLUD

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = list(str(input()))
for i in range(len(s)):
  if ((i+1)%2 and s[i]=='L') or ((i+1)%2==0 and s[i]=='R'):
    print('No')
    exit()
print('Yes')

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input()

for i in range(len(s)):
  if s[i]=="R" and i%2==0:
    print("No")
    exit()
    
  elif s[i]=="L" and i%2!=0:
    print("No")
    exit()
    
  else:
    print("Yes")

Failing test case input:
KWVSWRCRQJQVKQCLMVD

Expected output:
No


Actual output:
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No


Fixed submission (verdict: Accepted):
s=input()

for i in range(len(s)):
  if s[i]=="L" and (i%2==0 or i==0):
    print("No")
    exit()
    
  elif s[i]=="R" and i%2!=0:
    print("No")
    exit()
    
  else:
    pass
  
print("Yes")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()

for i in range(len(s)):
    if i % 2 ==0:
        if s[i] == "R" or "U" or"D":
            ans = "YES"
        else:
            ans = "NO"
            break
    elif i % 2 ==1:
        if s[i] =="L" or "U" or "D":
            ans = "YES"
        else:
            ans = "NO"
            break
print(ans)

Failing test case input:
KXVKWSCRQJMSUQCLPVE

Expected output:
No


Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
 
for i in range(len(s)):
    if i%2 == 0:
        if s[i] == "R" or s[i] == "U" or s[i] == "D":
            ans = "Yes"
        else:
            ans = "No"
            break
    elif i%2 == 1:
        if s[i] == "L" or s[i] == "U" or s[i] == "D":
            ans = "Yes"
        else:
            ans = "No"
            break
 
print(ans)

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = str(input())
d = []
p = []
i = 1
s = 1
l = 1
for k in n:
 if i % 2 == 0:
  if k == "L" or k == "U" or k == "D":
   pass
  else:
   s = 0
 else:
  if k == "R" or k == "U" or k == "D":
   pass
  else:
    l = 0
 i = i + 1
if s and l == "1":
 print("Yes")
else:
 print("No")

Failing test case input:
UUUUUUUUUUUUUUU

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = str(input())
d = []
p = []
i = 1
s = 1
l = 1
for k in n:
 if i % 2 == 0:
  if k == "L" or k == "U" or k == "D":
   pass
  else:
   s = 0
 else:
  if k == "R" or k == "U" or k == "D":
   pass
  else:
    l = 0
 i = i + 1

if s and l == 1:
 print("Yes")
else:
 print("No")

Problem: p02910
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
print('Yes' if s[::2] != "L" and s[1::2] != "R" else "No")

Failing test case input:
RRRQLPLDDKLWKVUWVCR

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
print('Yes' if "L" not in set(s[::2])  and "R" not in set(s[1::2])  else "No")