Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p02765 (python)

Fixed submission:
n, r = map(int, input().split())

if n >= 10:
    print(r)
else:
    print(r+100*(10-n))

Buggy submission (verdict: Runtime Error):
n = int(input())
x = list(map(int, input().split()))

min_energy = None

for p in range(x[-1]):
    energy = 0
    for x_i in x:
        energy += (x_i - p) ** 2
    if min_energy is None:
        min_energy = energy
    else:
        min_energy = min(energy, min_energy)

print(min_energy)

Buggy submission (verdict: Runtime Error):
n = int(input())
x = list(map(int, input().split()))

min_energy = None

for p in range(x[-1]):
    energy = 0
    for x_i in x:
        energy += (x_i - p) ** 2
    if min_energy is None:
        min_energy = energy
    else:
        min_energy = min(energy, min_energy)

print(min_energy)
Problem p02767 (python)

Fixed submission:
import math


n = int(input())
x_list = list(map(int, input().split()))


mi_stamina = 1000000000
for i in range(-1000, 1000):
    def _distance(x):
        return (x-i)**2
    double_list = list(map(_distance, x_list))
    stamina = sum(double_list)
    if mi_stamina > stamina:
        mi_stamina = stamina

print(mi_stamina)

Buggy submission (verdict: Runtime Error):
import math


n = int(input())
x_list = list(map(int, input().split()))


mi_stamina = math.inf
for i in range(-1000, 1000):
    def _distance(x):
        return (x-i)**2
    double_list = list(map(_distance, x_list))
    stamina = sum(double_list)
    if mi_stamina > stamina:
        mi_stamina = stamina

print(mi_stamina)

Buggy submission (verdict: Runtime Error):
import math


n = int(input())
x_list = list(map(int, input().split()))


mi_stamina = math.inf
for i in range(-1000, 1000):
    def _distance(x):
        return (x-i)**2
    double_list = list(map(lambda x: _distance(x), x_list))
    stamina = sum(double_list)
    if mi_stamina > stamina:
        mi_stamina = stamina

print(mi_stamina)

Buggy submission (verdict: Runtime Error):
import math

n = int(input())
x_list = list(map(int, input().split()))

mi_stamina = math.inf
for i in range(-1000, 1000):
    double_list = list(map(lambda x: (x-i)**2, x_list))
    stamina = sum(double_list)
    if mi_stamina > stamina:
        mi_stamina = stamina

print(mi_stamina)

Buggy submission (verdict: Runtime Error):
import math

n = int(input())
x_list = list(map(int, input().split()))

mi_stamina = math.inf
for i in range(-1000, 1000):
    print(x_list)
    double_list = list(map(lambda x: (x-i)**2, x_list))
    print(double_list)
    stamina = sum(double_list)
    if mi_stamina > stamina:
        mi_stamina = stamina

print(mi_stamina)
Problem p03605 (python)

Fixed submission:
n = input()
print("Yes" if n[0]=='9' or n[1]=='9' else "No")

Buggy submission (verdict: Runtime Error):
from itertools import permutations
def read(): return list(map(int, input().split()))
 
 
INF = 114514810
 
 
def wf(d):
    N = len(d[0])
    for k in range(N):
        for i in range(N):
            for j in range(N):
                if d[i][j] > d[i][k] + d[k][j]:
                    d[i][j] = d[i][k] + d[k][j]
    return d
 
 
def calc_dist(p, d):
    dist = 0
    for i in range(len(p) - 1):
        if d[p[i]][p[i + 1]] >= INF:
            return INF
        dist += d[p[i]][p[i + 1]]
    return dist
 
 
def main():
    N, M, R = read()
    r = map(lambda x: x - 1, sorted(read()))
    d = [[INF for i in range(N)] for j in range(N)]
 
    for i in range(M):
        a, b, c, = read()
        a -= 1
        b -= 1
        d[a][b] = d[b][a] = c
 
    d = wf(d)
 
    min_dist = INF
    for p in list(permutations(r)):
        min_dist = min(min_dist, calc_dist(p, d))
 
    print(min_dist)
 
 
if __name__ == '__main__':
    main()
Problem p03638 (python)

Fixed submission:
def read(): return list(map(int, input().split()))


h, w = read()
n = int(input())
A = read()

s = []
for i, a in enumerate(A):
    for j in range(a):
        s.append(str(i + 1))

for i in range(h):
    out = s[i * w: i * w + w]
    if i & 1:
        out = list(reversed(out))

    print(" ".join(out))

Buggy submission (verdict: Runtime Error):
def read(): return list(map(int, input().split()))


h, w = read()
n = int(input())
A = read()

s = ""
for i, a in enumerate(A):
    s += str(i + 1) * a

assert len(s) == h * w

for i in range(h):
    out = s[i * w: i * w + w]
    if i & 1:
        out = out[::-1]

    print(" ".join(out))
Problem p03861 (python)

Fixed submission:
import sys

a, b, x = map(int, input().split())
c = b // x
d = (a-1) // x

if a == 0 and b == 0:
    print(1)
    sys.exit()

elif a == 0 or b == 0:
    print(c + 1)
    sys.exit()

print(c - d)

Buggy submission (verdict: Runtime Error):
a, b, x = map(int, input().split())
c = b // x
d = (a-1) // x

if a == 0 and b == 0:
    print(1)
    exit(1)

elif a == 0 or b == 0:
    print(c + 1)
    exit(1)

print(c - d)
Problem p03219 (python)

Fixed submission:
X,Y = map(int, input().split())
XY = int(X + Y / 2)
print(XY)

Buggy submission (verdict: Runtime Error):
X,Y = map(int, input(),split())
XY = int(X + Y / 2)
print(XY)

Buggy submission (verdict: Runtime Error):
X,Y = map(int, input(),split())
XY = X + Y / 2
print(XY)

Buggy submission (verdict: Runtime Error):
X,Y = map(int, input(),split())
print(X + (Y / 2))
Problem p03227 (python)

Fixed submission:
N = input()
if len(N) == 3:
    print(N[::-1])
else:
    print(N)

Buggy submission (verdict: Runtime Error):
N = input()
if len(N) == 3:
    print(::-1)
else:
    print(N)
Problem p03264 (python)

Fixed submission:
N = int(input())
Even = []
Odd = []
for i in range(1,N+1):
    if i % 2 == 0:
        Even.append(i)
    else:
        Odd.append(i)
print(len(Even) * len(Odd))

Buggy submission (verdict: Runtime Error):
N = int(input())
Even = []
Odd = []
for i in range(1,N+1):
    if i % 2 == 0:
        Even.append(i)
    else:
        Odd.append(i)
print(Even * Odd)
Problem p02741 (python)

Fixed submission:
K=int(input())
list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

print(list[K-1])

Buggy submission (verdict: Runtime Error):

K=int(input())
list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]

print(list[K+1])

Buggy submission (verdict: Runtime Error):
list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K=int(input())
print(list[K+1])

Buggy submission (verdict: Runtime Error):
list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K=int(input())
print(list[K])

Buggy submission (verdict: Runtime Error):
list=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K=int(input())
print(list[K+1])

Buggy submission (verdict: Runtime Error):
a=1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51
p=a.split(",")
K=4
print([K+1])
Problem p02765 (python)

Fixed submission:
N,R=map(int, input().split()) 
if N>=10:
  t=R
else :
  t=R+100*(10-N)
print(t)

Buggy submission (verdict: Runtime Error):
N,R= map(int, input().split())  
if N>=10:
  T=R
else :
  T=R+100*(10-N)
pritn(T)
Problem p02768 (python)

Fixed submission:
n, a, b = map(int, input().split())
 

def combination(n, a, mod):
    bunbo = 1
    bunshi = 1
    for i in range(a):
        bunshi *= n-i
        bunshi = bunshi%mod
        bunbo *= a-i
        bunbo = bunbo%mod
        
    return bunshi*pow(bunbo, mod-2, mod)%mod
        
        
mod = 1000000007
answer = pow(2, n, mod)
answer -= 1
answer -= combination(n, a, mod)
answer -= combination(n, b, mod)
print(answer%mod)

Buggy submission (verdict: Runtime Error):
n,a,b=map(int,input().split())

def combination(n,x,mod):
    bunbo=1
    bunshi=1
    for i in range(x):
        bunbo*=n-i
        bunshi*=i
        buubo=bunbo%mod
        bunshi=bunshi%mod
    return (bunshi//bunshi)%mod

mod=1000000007
answer=2**n-1
answer-=combination(n,a,mod)
answer-=combination(n,b,mod)
answer=answer%mod
print(answer)

Buggy submission (verdict: Runtime Error):
n,a,b =map(int, input().split())
c=2**n-1
from scipy.special import comb
A= comb(n, a, exact=True)
B= comb(n, b, exact=True)
c=c-A-B
print(c)
Problem p03243 (python)

Fixed submission:
N=int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if a<b:
    N=(a+1)*111
elif a>b:
    N=a*111
elif a==b and a>=c :
    N=a*111
elif a==b and a<c :
    N=(a+1)*111
print(N)

Buggy submission (verdict: Runtime Error):
N=int(input())
a=N//100
b=(N-a*100)//10
c=N-a*100-b*10
if a<b:
    N=(a+1)*111
elif a>b:
    N=a*111
elif a=b and a>=c:
    N=a*111
elif :
    N=(a+1)*111
print(N)
Problem p03814 (python)

Fixed submission:
s=input()
N=len(s)
f=s.index("A")
F=0
for i in range(N):
    if s[i]=="Z":
        F=i
print(F-f+1)

Buggy submission (verdict: Runtime Error):
s=input()
N=len(s)
f=s.index("a")
F=0
for i in range(N):
    if s[i]=="z":
        F==i
print(F-f+1)

Buggy submission (verdict: Runtime Error):
s=input()
N=len(s)
f=s.index("a")
F=0
for i in range(N):
    if s[i]==z:
        F==i
print(F-f+1)
Problem p02717 (python)

Fixed submission:
s=str(input())
l=[0,0]
i=0
for n in range(0,len(s)):
  if s[n]==' ':
    l[i]=n
    i+=1
  if i==2:
    break
X=int(s[0:l[0]])
Y=int(s[l[0]+1:l[1]])
Z=int(s[l[1]+1:len(s)])
temp1=X
X=Y
Y=temp1
temp2=X
X=Z
Z=temp2
print(X,' ',Y,' ',Z)

Buggy submission (verdict: Runtime Error):
s=str(input())
l=[0,0]
i=0
for n in range(0,len(s)):
  if s[n]==' ':
    l[i]=n
    i+=1
  if i==2:
    break
X=int(s[0:l[0]-1])
Y=int(s[l[0]+1,l[1]-1])
Z=int(s[l[1]+1,len(s)-1])
temp1=X
X=Y
Y=temp1
temp2=X
X=Z
Z=temp2
print(X,' ',Y,' ',Z)

Buggy submission (verdict: Runtime Error):
s=str(input())
X=int(s[0])
Y=int(s[2])
Z=int(s[4])
temp1=X
X=Y
Y=temp1
temp2=X
X=Z
Z=temp2
print(X,' ',Y,' ',Z)
Problem p02717 (python)

Fixed submission:
x, y, z = map(int, input().split())
print('{} {} {}'.format(z, x, y))

Buggy submission (verdict: Runtime Error):
n, m = map(int, input().split())
l = list(map(int, input().split()))
a = sum(l)
s = a / (4*m)
l.sort(reverse = True)
if l[m-1] < s:
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
x, y, z = map(int, input().split())
print(f'{z} {x} {y}')
Problem p02886 (python)

Fixed submission:
n = int(input())
d = list(map(int, input().split()))
s = 0
for i in range(n):
    for j in range(n):
        if i != j:
            s += d[i] * d[j]
print(int(s/2))

Buggy submission (verdict: Runtime Error):
n = int(input())
d = map(int, input().split())
s = 0
for i in range(n):
    for j in range(n):
        if i != j:
            s += d[i] * d[j]
print(int(s/2))

Buggy submission (verdict: Runtime Error):
n = int(input())
d = [int(input()) for i in range(n)]
s = 0
for i in range(n):
    for j in range(n):
        if i != j:
            s += d[i] * d[j]
print(int(s/2))

Buggy submission (verdict: Runtime Error):
n = int(input())
d = [int(input()) for i in range(n)]
s = 0
for i in range(n):
    for j in range(n):
        if i != j:
            s += d[i] * d[j]
print(s/2)
Problem p02717 (python)

Fixed submission:
a = list(map(int,input().split()))
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
    n+=1
for  i in a:
         print(i,end=" ")

Buggy submission (verdict: Runtime Error):
a = list(map(int(input().split())))
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
    n+=1
for  i in a:
         print(i,end=" ")

Buggy submission (verdict: Runtime Error):
a = list(map(int(input().split()))
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
    n+=1
for  i in a:
         print(i,end=" ")

Buggy submission (verdict: Runtime Error):
n = len(a)-1
i = 0
for _ in range(len(a)-1):
    temp = a[i]
    a[i] = a[n-1]
    a[n-1] = temp
for i in a:
  print(i,end=" ")

Buggy submission (verdict: Runtime Error):
a = list(map(int,input().split()))
n = len(a) - 1
for i in range(len(a)):
  temp = a[i]
  a[i] = a[n-1]
  a[n-1] = temp
  n+=1
Problem p02718 (python)

Fixed submission:
def popularVote():
    n, m = list(map(int, input().split()))
    item_votes = list(map(int, input().split()))
    total = sum(item_votes)

    selected = []
    isSelected = False

    req = 1 / (4 * m)
    for item in item_votes:
        if item / total >= req:
            selected.append(item)

        if len(selected) == m:
            isSelected = True
            print("Yes")
            break

    if not isSelected:
        print("No")


popularVote()

Buggy submission (verdict: Runtime Error):
def popularVote():
	n, m = list(map(int, input().split()))
    item_votes = list(map(int, input().split()))
    total = sum(item_votes)

    selected = []
    isSelected = False

    req = 1 / (4 * m)
    for item in item_votes:
        if item / total >= req:
            selected.append(item)

        if len(selected) == m:
            isSelected = True
            print("Yes")
            break

    if not isSelected:
        print("No")


popularVote()

Buggy submission (verdict: Runtime Error):
    n, m = list(map(int, input().split()))
    item_votes = list(map(int, input().split()))
    total = sum(item_votes)

    selected = []
    isSelected = False

    req = 1 / (4 * m)
    for item in item_votes:
        if item / total >= req:
            selected.append(item)

        if len(selected) == m:
            isSelected = True
            print("Yes")
            break

    if not isSelected:
        print("No")


popularVote()
Problem p02717 (python)

Fixed submission:
x,y,z = map(int,input().split())
print(z,x,y)

Buggy submission (verdict: Runtime Error):
L=list(map(int,input().split()))
print(L[3],L[1],L[2])

Buggy submission (verdict: Runtime Error):
L=list(map(int,input().split()));print(L[3],L[1],L[2])
Problem p02882 (python)

Fixed submission:
import math

a,b,volume=map(int,input().split())
V=a*a*b
space=V-volume
if space>volume:
  high=volume*2/a/b
  print(math.degrees(math.atan(b/high)))
elif space<=volume:
  high2=space*2/a/a
  print(math.degrees(math.atan(high2/a)))

Buggy submission (verdict: Runtime Error):
import math

a,b,volume=map(int,input().split())
V=a*a*b
space=V-volume
if space>volume:
  high=x/a/b
  print(math.degree(math.atan(b/high)))
elif space<=volume:
  high2=space/a/a
  print(math.degree(math.atan(high2/a)))
Problem p02883 (python)

Fixed submission:
import numpy as np

a,b=map(int,input().split())
A=np.array(sorted(list(map(int,input().split()))))
F=np.array(sorted(list(map(int,input().split())),reverse=True))

s=A.sum()

x=-1
y=10**12
while x+1<y:
  mid=(x+y)//2
  if s-np.minimum(A,mid//F).sum()<=b:
    y=mid
  else:
    x=mid
print(y)

Buggy submission (verdict: Runtime Error):
import numpy as np

a,b=map(int,input().split())
A=np.array(sorted(list(map(int,input().split()))))
F=np.array(sorted(list(map(int,input().split())),reverse=True))

s=A.sum()

x=-1
y=10**12
while x+1<y:
  mid=(x+y)//2
  if s-np.minimum(A,mid//F).sum()<=K:
    x=mid
  else:
    y=mid
print(mid)

Buggy submission (verdict: Runtime Error):
N,K=map(int,input().split())
list_A=list(map(int,input().split()))
list_F=list(map()int,input().split())
list_A_sort=list_A.sort()
list_F_sort=list_F.sort()
list_F_reverse=list_F_sort.reverse()

list_A1=[]
for x in list_A_sort:
  list_A1.append(x-1)
Problem p02885 (python)

Fixed submission:
a,b = map(int,input().split())
c = 2*b
d = a-c
if d > 0:
 print(d)
elif d <= 0:
 print(0)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=[(c-x)*x for x in b]
e=sum(d)
print(e/2)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
c = 2*b
d = a-c
if d > 0:
print('d')
elif d <= 0:
print('0')

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
c = 2*b
d = a-c
if d > 0:
print(d)
elif d <= 0:
print(0)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
c = 2*b
d = a-c
if a > c:
print(d)
elif a <= c:
print(0)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
c = 2*b
d = a-c
if a > c:
print(d)
else:
print(int(0))

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
c=2*b
d=a-c
if a>c:
print(d)
else:
print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a>2*b:
print(a-2*b)
else:
print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a>2*b:
print(a-2*b)
else if:
print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
c=a-2b
print(c)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
print(a-2b)

Buggy submission (verdict: Runtime Error):
a,b=map(int(),input.split())
print(a-2b)
Problem p02886 (python)

Fixed submission:
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=[(c-x)*x for x in b]
e=sum(d)
print(int(e/2))

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=[(c-x)*x for x in b]
e=sum(d)
 print(e/2)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=sum(b)
d=[c*x for x in b]
 print(sum(d))
Problem p02898 (python)

Fixed submission:
a,b=map(int,input().split())
i=list(map(int,input().split()))
j=[x for x in i if x>=b]
print(len(j))

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
list_a=list(map(int,input().split()))
list_b=x for x in list_a if x>=b
print(len(list_b))
Problem p02909 (python)

Fixed submission:
a = input()
b = 'Sunny'
c = 'Cloudy'
d = 'Rainy'
if a == b:
 print(c)
if a == c:
 print(d)
if a == d:
 print(b)

Buggy submission (verdict: Runtime Error):
a = input()
b = 'Sunny'
c = 'Cloudy'
d = 'Rainy'
if a = b:
 print(c)
if a = c:
 print(d)
if a = d:
 print(b)

Buggy submission (verdict: Runtime Error):
a = input()
b = 'Sunny'
c = 'Cloudy'
d = 'Rainy'
if a = b:
 print(c)
elif a = c:
 print(d)
elif a = d:
 print(b)

Buggy submission (verdict: Runtime Error):
a=input()
b='Sunny'
c='Cloudy'
d='Rainy'
if a=b:
 print(c)
elif a=c:
 print(d)
elif a=d:
 print(b)

Buggy submission (verdict: Runtime Error):
a=input("")
b='Sunny'
c='Cloudy'
d='Rainy'
if a=b:
 print(c)
elif a=c:
 print(d)
elif a=d:
 print(b)

Buggy submission (verdict: Runtime Error):
a=input("")
b='Sunny'
c='Cloudy'
d='Rainy'
if a=b:
 print(c)
elif a=c:
 print(d)
else:
 print(b)

Buggy submission (verdict: Runtime Error):
a=input("")
b='Sunny'
c='Cloudy'
d='Rainy'
if a=b:
print(c)
elif a=c:
print(d)
else:
print(b)

Buggy submission (verdict: Runtime Error):
a=input("")
b=Sunny
c=Cloudy
d=Rainy
if a=b:
print(c)
elif a=c:
print(d)
else:
print(b)

Buggy submission (verdict: Runtime Error):
a=input()
b=Sunny
c=Cloudy
d=Rainy
if a=b:
print(c)
elif a=c:
print(d)
else:
print(b)

Buggy submission (verdict: Runtime Error):
a=input()
b=Sunny
c=Cloudy
d=Rainy
if a=b:
print(c)
elif a=c:
print(d)
else a=d:
print(b)

Buggy submission (verdict: Runtime Error):
a=input()
if a='Sunny'
	print('Cloudy')
elif a='Cloudy'
	print('Rainy')
else a='Rainy'
	print('Sunny')

Buggy submission (verdict: Runtime Error):
a=str(input())
if a='Sunny'
	print('Cloudy')
elif a='Cloudy'
	print('Rainy')
else a='Rainy'
	print('Sunny')
Problem p02910 (python)

Fixed submission:
import re #与えられた条件にマッチする文字列か判定
a = input()
b = re.compile(r'^([^L][^R])*[^L]?$')
if b.match(a):
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
import re
a = input()
b = re.compile('^([^L][^R])*[^L]?$')
if b.match(a):
print('Yes')
else:
print('No')

Buggy submission (verdict: Runtime Error):
import re
a=input()
b=re.compile('^([^L][^R])*[^L]?$')
if b.match(a):
print('Yes')
else:
print('No')

Buggy submission (verdict: Runtime Error):
import Re
a=input()
b=re.compile('^([^L][^R])*[^L]?$')
if a.match(b):
print('Yes')
else:
print('No')

Buggy submission (verdict: Runtime Error):
import Re
a=input()
b=re.compile('^[^L][^R]*[^L]?$')
if a.match(b):
print('Yes')
else:
print('No')

Buggy submission (verdict: Runtime Error):
import Re
a=input()
b=re.compile('^[^L][^R]*[^L]?$')
if a.match(b)
print('Yes')
else
print('No')

Buggy submission (verdict: Runtime Error):
import Re
a=input()
b=re.compile('^([^L][^R]*[^L]?)$')
if a.match(b)
print('Yes')
else
print('No')

Buggy submission (verdict: Runtime Error):
import re #与えられた条件にマッチする文字列か判定
a = input()
b = re.compile('^([^L][^R])*[^L]?$')
if match(a,b):
    print('Yes')
else:
    print('No')
Problem p02945 (python)

Fixed submission:
A,B=map(int,input().split())
a=A+B
b=A-B
c=A*B
print(max(a,b,c))

Buggy submission (verdict: Runtime Error):
A,B=map(int(),input().split())
number1=A+B
number2=A-B
number3=A*B
print(max([number1,number2,number3]))
Problem p02969 (python)

Fixed submission:
r = int(input())
#rを定義してる
print("{}".format(3*r*r))
#出力したんや

Buggy submission (verdict: Runtime Error):
a = int(input())
print("{}".format(3*a*a)

Buggy submission (verdict: Runtime Error):
a = int(input())
print("{}".Format(3*a*a))

Buggy submission (verdict: Runtime Error):
N,D = map(int,input().split())
a = N//(2*D+1)
if N%(2*D+1) == 0:
	print(a)
else:
 	print(a+1)

Buggy submission (verdict: Runtime Error):
N,D = map(int,input().split())
a = (N-1)/(2*D)
if (N-1)%(2*D) == 0:
	print(a)
else:
 	print((N-1)//(2*D+1))
Problem p02981 (python)

Fixed submission:
a,b,c = map(int,input().split())
d = a*b
if d>c:
	print(c)
else:
	print(d)

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
d = a*b
if d>c:
print("{}".format(c))
else:
print("{}".format(d))

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
d = a*b
if d>c:
print('c')
else:
print('d')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
d = a*b
if d>c:
print('c')
else if:
print('d')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
d = a*b
if d > c:
print('c')
else if:
print('d')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
d = a*b
if d>c
print("{}".format(c))
else if
print("{}".format(d))
Problem p02999 (python)

Fixed submission:
b, c = map(int, input().split())
num1 = 0
num2 = 10
if b<c:
  print(str(num1))
else:
  print(str(num2))

Buggy submission (verdict: Runtime Error):
b, c = map(int, input().split())
if b<c :
  print("0")
else if :
  print("10")

Buggy submission (verdict: Runtime Error):
b, c = map(int, input().split())
if b<c:
  print("0")
else if:
  print("10")
Problem p02717 (python)

Fixed submission:
x,y,z=map(int,input().split())
print(z,x,y)

Buggy submission (verdict: Runtime Error):
x,y,z=map(int,input().split()))
print(z,x,y)
Problem p02717 (python)

Fixed submission:
X,Y,Z = map(int, input().split(" "))

A = int(Z)
B = int(X)
C = int(Y)

print(str(A) + " " + str(B) + " " + str(C))

Buggy submission (verdict: Runtime Error):
X,Y,Z = map(int, input().split(" "))

A = int(Z)
B = int(X)
C = int(Y)

print(f"{A} {B} {C}")

Buggy submission (verdict: Runtime Error):
X,Y,Z = map(int, input().split())

A = int(Z)
B = int(X)
C = int(Y)

print(f"{A} {B} {C}")
Problem p02718 (python)

Fixed submission:
N,M = map(int, input().split(" "))
A = list(map(int, input().split(" ")))
B = []

#総投票数を求める
sum_vote = sum(A)
#print(sum_vote)

#投票数が1/4Mを下回る物を削除していく つまり　新しいリストに代入
for i in range(len(A)):
    if A[i] >= sum_vote * 1/(4 * M):
        B.append(A[i])
    else:
        pass

#最終判断
if len(B) >= M:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
N,M = map(int, input().split(" "))
A = list(map(int, input().split(" ")))
B = []

#総投票数を求める
sum_vote = sum(A)
#print(sum_vote)

#投票数が1/4Mを下回る物を削除していく つまり　新しいリストに代入
for i in range(len(A)):
    if A[i] => sum_vote * 1/(4 * M):
        B.append(A[i])
    else:
        pass

#最終判断
if len(B) >= M:
    print("Yes")
else:
    print("No")