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

Fixed submission:
S = input()
T = input()
 
Slis = list(S)
Tlis = list(T)
Tlis.pop(-1)
if len(S) == 0:
    print('No')
elif Slis  == Tlis:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
S = input()
T = input()

if len(S) == len(T) - 1:
    Slis = list(S)
    Tlis = list(T)
    if str,islower(Tlis[ - 1]) == True:
        Tlis.remove(Tlis[ - 1])
        if Slis  ==Tlis:
            print('Yes')
        else:
            print('No')
            
    else:
        print('No')


else:
    print('No')

Buggy submission (verdict: Runtime Error):
S, T = input().split()
if len(S) == len(T) - 1:
    Slis = list(S)
    Tlis = list(T)
    Tlis.remove(Tlis[ - 1])
    if Slis  ==Tlis:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
S, T = input().split()
if len(S) == len(T) - 1:
    Slis = list(S)
    Tlis = list(T)
    removedTlis = Tlis.remove(Tlis[ - 1])
    if Slis  == removedTlis:
        print('Yes')
    else:
        print('No')
else:
    print('No')

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

if len(S) == len(T) - 1:
    Slis = list(S)
    Tlis = list(T)
    removedTlis = Tlis.remove(T[len(T) - 1])
    if Slis  == removedTlis:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
S = []
T = []
S, T = input().split()
T.remove(T[len(T) - 1 ])
if S == T:
  return "Yes"
else:
  return "No"
Problem p02945 (python)

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

Buggy submission (verdict: Runtime Error):
a, b = map(int, imput().split())
c = [a + b , a - b, a * b]
print(max(c))

Buggy submission (verdict: Runtime Error):
a, b = imput().split()
c = [a + b, a - b, a * b]
print(max(c))
Problem p02658 (python)

Fixed submission:
import sys
n = int(input())
a = list(map(int,input().split()))
x = 1
if 0 in a:
    print(0)
    sys.exit()
for num in range(n):
    x  *= a[num]
    if x > 10**18:
        print(-1)
        sys.exit()
print(x)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))
x = 1
for num in range(n):
    x  *= a[num]
    if x > 10**18:
        print(-1)
        sys.exit()
print(x)

Buggy submission (verdict: Runtime Error):
 n = int(input())
a = list(map(int,input().split()))
if 0 in a:
    print(0)
    sys.exit()
for num in range(n):
    x *= a[num]
    if x > 10**18:
        print(-1)
        sys.exit()
print(x)

Buggy submission (verdict: Runtime Error):
 n = int(input())
a = list(map(int,input().split()))
if 0 in a:
    print(0)
for num in range(n):
    x *= a[num]
    if x > 10**18:
        print(-1)
        sys.exit()
print(x)

Buggy submission (verdict: Runtime Error):
import numpy as np
n = int(input())
a = list(map(int,input().split()))
if (aProd > 10**18):
    print(-1)
else:
    print(aProd)
Problem p02681 (python)

Fixed submission:
n = input()
a = input()
if n in a:
    if len(n)+1 == len(a):
        if n[0] == a[0]:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
abcd = list(map(int,input().split()))
x = []
y = []
z = []
x = [1] * abcd[0]
y = [0] * abcd[1]
z = [-1] * abcd[2]
x.extend(y)
x.extend(z)
num = 0
for i in range(abcd[3]):
    num += x[i]
print(num)
Problem p02705 (python)

Fixed submission:
r = int(input())
x = r *2 * 3.14
print(x)

Buggy submission (verdict: Runtime Error):
a = int(input())
x = r * 3.14
print(x)
Problem p03328 (python)

Fixed submission:
data = list(map(int,input().split()))
a = data[0]
b = data[1]
X = b - a 
s = int((X*(X+1))/2 - b)
print(s)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
X = b - a 
s = int((X*(X+1))/2 - b)
print(s)

Buggy submission (verdict: Runtime Error):

a,b = input()
X = b - a 
s = int((X*(X+1))/2 - b)
print(s)

Buggy submission (verdict: Runtime Error):
if __name__ == '__main__':
    a,b = input()
    X = b - a 
    s = int((X*(X+1))/2 - b)
    print(s)
Problem p02677 (python)

Fixed submission:
t = list(map(int, input().split()))
a = t[0]
b = t[1]
h = t[2]
m = t[3]
import math

h_c = 30*h + 0.5*m
m_c = 6*m

z = abs(h_c - m_c)
if z > 180:
  z = 360 - z
if z == 180:
  print(t[0]+t[1])
elif z == 0:
  print(abs(t[0]-t[1]))
else:
  a = a**2
  b = b**2
  k = round(math.cos(math.radians(z)),30)
  print(math.sqrt(a + b - 2*t[0]*t[1]*k))

Buggy submission (verdict: Runtime Error):
t = list(map(int, input().split()))
a = t[0]
b = t[1]
h = t[2]
m = t[3]
import math

h_c = 30*h + 0.5*m
m_c = 6*m

z = abs(h_c - m_c)
if z > 180:
  z -= 180
if z == 180:
  print(h[0]+h[1])
else:
  a = a**2
  b = b**2
  k = round(math.cos(math.radians(z)),30)
  print(math.sqrt(a + b - 2*t[0]*t[1]*k))
Problem p02681 (python)

Fixed submission:
s = input()
t = input()
k = "abcdefghijklmnopqrstuvwxwz"


if s == t[:-1]:
    if t[-1] in k:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
s = input()
t = input()
k = abcdefghijklmnopqrstuvwxwz


if s == t[:-1]:
    if t[-1] in k:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
s, t = input().split()

k = abcdefghijklmnopqrstuvwxwz


if s == t[:-1]:
    if t[-1] in k:
        print("Yes")
    else:
        print("No")
else:
    print("No")
Problem p02684 (python)

Fixed submission:
n, k = map(int,input().split())
a = list(map(int,input().split()))
from collections import deque

ans = deque()
ans.appendleft(1)
count = 1
s = -1
zeros = [0]*n

while True:
    if zeros[a[count-1]-1] == 1:
        s = a[count-1]
        break
    else:
        ans.append(a[count-1])
        zeros[count-1]=1
        count = a[count-1]

ans = list(ans)
if s == -1:
    print(ans[k])
else:
    t = ans.index(s)
    if t >= k:
        print(ans[k])
    else:
        ans = ans[t:]
        print(ans[(k-t)%len(ans)])

Buggy submission (verdict: Runtime Error):
n, k = map(int,input().split())
a = list(map(int,input().split()))
from collections import deque

ans = deque()
ans.appendleft(1)
count = 1
s = -1
zeros = [0]*n

while True:
    if zeros[a[count-1]] == 1:
        s = a[count-1]
        break
    else:
        ans.append(a[count-1])
        zeros[count-1]=1
        count = a[count-1]

ans = list(ans)
if s == -1:
    print(ans[k])
else:
    t = ans.index(s)
    if t >= k:
        print(ans[k])
    else:
        ans = ans[t:]
        print(ans[(k-t)%len(ans)])
Problem p02713 (python)

Fixed submission:
k = int(input())

import math
ans = 0
ans1 = 0
ans2 = 0
for i in range(1,k+1):
    for j in range(1,k+1):
        ans1 += math.gcd(i,j)

ans = ans + ans1*3

for i in range(1,k+1):
    for j in range(1,i):
        for l in range(1,j):
            ans2 += math.gcd(math.gcd(i,j),l)

ans += ans2*6
print(ans-sum(list(range(k+1)))*2)

Buggy submission (verdict: Runtime Error):
k = int(input())

import math
ans = sum(list(range(k+1)))
ans1 = 0
ans2 = 0
for i in range(1,k+1):
    for j in range(1,k+1):
        ans1 += math.gcd(i,j)

ans = ans + ans1*3

for i in range(1,K+1):
    for j in range(1,i):
        for l in range(1,l):
            ans2 += math.gcd(math.gcd(i,j),l)

ans += ans2*6
print(ans)
Problem p02732 (python)

Fixed submission:
n = int(input())
a = list(map(int, input().split()))
import collections

c = collections.Counter(a)
values, counts = zip(*c.most_common())
counts = list(counts)
if counts[-1] == 1:
	k = counts.index(1)
	del counts[k:]


from operator import mul
from functools import reduce

def cmb(n,r):
    r = min(n-r,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n - r, -1))
    under = reduce(mul, range(1,r + 1))
    return over // under

from collections import deque
t = deque()
for i in counts:
    t.append(cmb(i,2))

t = list(t)
ans = sum(t)

for i in a:
	print(ans - c[i] + 1)

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

c = collections.Counter(a)
values, counts = zip(*c.most_common())
if counts[-1] == 1:
	k = counts.index(1)
	del counts[k:]


from operator import mul
from functools import reduce

def cmb(n,r):
    r = min(n-r,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n - r, -1))
    under = reduce(mul, range(1,r + 1))
    return over // under

from collections import deque
t = deque()
for i in counts:
    t.append(cmb(i,2))

t = list(t)
ans = sum(t)

for i in a:
	print(ans - c[i] + 1)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(map(int, input().split()))
import collections
#重複のみ
a_rep = {x for x in set(a) if a.count(x)>1}

#全て
a_all = set(a)

#一度だけ
a_once = a_all - a_rep
c = collections.Counter(a)
values, counts = zip(*c.most_common())
if counts[-1] == 1:
	k = counts.index(1)
	del counts[k:]


from operator import mul
from functools import reduce

def cmb(n,r):
    r = min(n-r,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n - r, -1))
    under = reduce(mul, range(1,r + 1))
    return over // under

from collections import deque
t = deque()
for i in counts:
    t.append(cmb(i,2))

t = list(t)
ans = sum(t)

for i in a:
    if i in a_once:
        print(ans)
    else:
        print(ans - c[i] + 1)
Problem p02747 (python)

Fixed submission:
s = input()


if s == "hi":
  print("Yes")
elif s == "hihi":
  print("Yes")
elif s == "hihihi":
  print("Yes")
elif s == "hihihihi":
  print("Yes")
elif s == "hihihihihi":
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a, b, m = map(int, input().split())
a1 = list(map(int, input().split()))
b1 = list(map(int, input().split()))

disc = [list(map(int, input().split())) for i in range(m)]
import numpy as np



from collections import deque
ans = []
ans = deque(ans)

for i in range(m):
    ans.append( a1[disc[i][0]-1] + b1[disc[i][1]-1] - disc[i][2] )
b2 = np.array(b1)
a2 = np.array(a1)
a2 = a2.reshape(a,1)
ans = list(ans)
print(min( min(ans), np.min(a2+b2) ))
Problem p02756 (python)

Fixed submission:
from collections import deque
s = input()
q = int(input())

li = [input() for i in range(q)]
k = 0
ans = [s]
ans = deque(ans)

for i in li:
    if i == "1":
        k += 1
    else:
        if (int(i[2]) + k) % 2 == 0:
            ans.append(i[4])
        else:
            ans.appendleft(i[4])

ans = list(ans)
s = "".join(ans)
if k % 2 == 0:
    print(s)
else:
    print(s[::-1])

Buggy submission (verdict: Runtime Error):
s = input()
q = int(input())

li = [input() for i in range(q)]

k= 0

for i in range(q):
    if li[0] == 1:
        k += 1
    else:
        li3 = li[i].split()
        if (int(li3[1])+k) % 2 == 0:
            s = s + li3[2]
        else:
            s = li3[2] + s

if k % 2 == 0:
    print(s)
else:
    print(s[::-1])
Problem p02761 (python)

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

if m == 0:
  if n == 1:
    print(0)
  elif n == 2:
    print(10)
  else:
    print(100)
else:
    sc = [list(map(int, input().split())) for i in range(m)]

    k = 0

    ans = [-5] * n

    for i in range(m):
        if ans[sc[i][0] - 1] == -5:
            ans[sc[i][0] - 1] = sc[i][1]
        elif ans[sc[i][0] - 1] != sc[i][1]:
            k = 1

    if k == 1:
        print(-1)
    elif ans[0] == 0:
        if n == 1:
            print(0)
        else:
            print(-1)
    else:
        for i in range(n):
            if ans[i] == -5:
                ans[i] = 0
        if ans[0] == 0:
            ans[0] = 1
        ans = [str(i) for i in ans]
        ans = "".join(ans)
        print(int(ans))

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

if m == 0:
  if n == 1:
    print(0)
  elif n ==2:
    print(10)
  else:
    print(100)
else:
    sc = [list(map(int, input().split())) for i in range(m)]

    k = 0

    ans = [-5] * n

    for i in range(m):
        if ans[sc[i][0] - 1] == -5:
            ans[sc[i][0] - 1] = sc[i][1]
        elif ans[sc[i][0] - 1] != sc[i][1]:
            k = 1
        else:
            continue

    if k == 1:
        print(-1)
    elif ans[0] == 0:
        if n == 1:
            print(0)
        else:
            print(-1)
    else:
        for i in range(3):
            if ans[i] == -5:
                ans[i] = 0
        if ans[0] == 0:
            ans[0] = 1
        ans = [str(i) for i in ans]
        ans = "".join(ans)
        print(int(ans))

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


sc = [list(map(int, input().split())) for i in range(m)]

k = 0

ans = [-5]*n

for i in range(m):
    if ans[sc[i][0]-1] == -5:
        ans[sc[i][0]-1] = sc[i][1]
    elif ans[sc[i][0]-1] != sc[i][1]:
        k = 1
    else:
        continue

if k == 1:
    print(-1)
elif m == 0:
  if n == 1:
    print(0)
  elif n ==2:
    print(10)
  else:
    print(100)
elif ans[0] == 0:
    if n == 1:
        print(0)
    else:
        print(-1)
else:
    for i in range(3):
        if ans[i] == -5:
            ans[i] = 0
    if ans[0] == 0:
        ans[0] = 1
    ans = [str(i) for i in ans]
    ans = "".join(ans)
    print(int(ans))

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

sc = [list(map(int, input().split())) for i in range(m)]

k = 0

ans = [-5]*n

for i in range(m):
    if ans[sc[i][0]-1] == -5:
        ans[sc[i][0]-1] = sc[i][1]
    elif ans[sc[i][0]-1] != sc[i][1]:
        k = 1
    else:
        continue

if k == 1:
    print(-1)
elif ans[0] == 0:
    if n == 1:
        print(0)
    else:
        print(-1)
else:
    for i in range(3):
        if ans[i] == -5:
            ans[i] = 0
    if ans[0] == 0:
        ans[0] = 1
    ans = [str(i) for i in ans]
    ans = "".join(ans)
    print(int(ans))
Problem p02789 (python)

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

if n == m:
  print("Yes")
else:
  print("No")

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

if n = m:
  print("Yes")
else:
  print("No")
Problem p02802 (python)

Fixed submission:
import itertools
n, m = map(int, input().split())
P = [input().split() for i in range(m)]
P = list(itertools.chain.from_iterable(P))
ac_list = [0] * n
wa_list = [0] * n
counta = 0
countb = 0
for i in range(1, m * 2, 2):
    if P[i] == "AC" and ac_list[int(P[i - 1])-1] == 0:
        counta += 1
        ac_list[int(P[i - 1])-1] = 1
        countb += wa_list[int(P[i - 1]) - 1]
    elif P[i] == "WA":
        wa_list[int(P[i - 1]) - 1] += 1
    else:
        continue

print(counta, countb)

Buggy submission (verdict: Runtime Error):
import itertools
n, m = map(int, input().split())
P = [input().split() for i in range(m)]
P = list(itertools.chain.from_iterable(P))
ac_list = [0] * n
wa_list = [0] * n

counta = 0
countb = 0
for i in range(1, m * 2, 2):
    if P[i] == "AC" and ac_list[int(P[i - 1])] == 0:
        counta += 1
        ac_list[int(P[i - 1])] = 1
        countb += wa_list[int(P[i - 1]) - 1]
    elif P[i] == "WA":
        wa_list[int(P[i - 1]) - 1] += 1
    else:
        continue

print(counta, countb)

Buggy submission (verdict: Runtime Error):
import itertools
n, m = map(int, input().split())
P = [input().split() for i in range(m)]
P = list(itertools.chain.from_iterable(P))
ac_list = []
wa_list = [0] * n

counta = 0
countb = 0
for i in range(1, m * 2, 2):
    if P[i] == "AC" and:
        if int(P[i - 1]) not in ac_list:
            counta += 1
            ac_list.append(int(P[i - 1]))
            countb += wa_list[int(P[i - 1]) - 1]
    else:
        wa_list[int(P[i - 1]) - 1] += 1
print(counta, countb)
Problem p02817 (python)

Fixed submission:
s,t = input().split()
print(t+s)

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

if a >= k:
    print(a-k,b)
elif a<k<=a+b:
    print(0,a+b-k)
else:
    print(0,0)

Buggy submission (verdict: Runtime Error):
s,t = map(input().split())
print(s+t)
Problem p02818 (python)

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

if a >= k:
    print(a-k,b)
elif a<k<=a+b:
    print(0,a+b-k)
else:
    print(0,0)

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

if a >= k:
    print(a-k,b)
elif a<k<=b:
    print(0,a+b-k)
elif:a+b<=k
    print(0,0)
Problem p02861 (python)

Fixed submission:
from statistics import mean
import itertools
import math

n = int(input())
pos = [list(map(float,input().split())) for i in range(n)]

pos_comb = itertools.combinations(pos,2)
dis_list = []
for i in pos_comb:
    dis_list.append(math.sqrt((i[0][0]-i[1][0])**2+(i[0][1]-i[1][1])**2))

print(mean(dis_list)*(float(n)-1.0))

Buggy submission (verdict: Runtime Error):
from statistics import mean
import itertools
import math

n = int(input())
pos = [list(map(float,input().split())) for i in range(n)]

pos_comb = itertools.combinations(pos,2)
dis_list = []
for i in pos_comb:
    dis_list.append(math.sqrt((i[0][0]-i[1][0])**2+(i[0][1]-i[1][1])**2))

print(mean(dis_list)*(float(n)-1.0))

Buggy submission (verdict: Runtime Error):
from statistics import mean
import itertools
import math

n = int(input())
pos = [list(map(float, input().split())) for i in range(n)]

pos_comb = itertools.combinations(pos, 2)
dis_list = []
for i in pos_comb:
    dis_list.append(math.sqrt((i[0][0]-i[1][0])**2+(i[0][1]-i[1][1])**2))
print(mean(dis_list)*(float(n)-1.0))
Problem p02887 (python)

Fixed submission:
n = int(input())
s = list(input())

count = 0
while len(s)>1 :
    if s[0] == s[1]:
        s.pop(0)
    else:
        s.pop(0)
        count += 1

print(count+1)

Buggy submission (verdict: Runtime Error):
n = int(input())
s = list(input())

count = 0
for i in range(n-1):
    if s[i] != s[i+!]:
        count += 1

print(count+1)
Problem p02899 (python)

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

ans = list(range(n))
for i in range(n):
    ans[a[i]-1] = i+1
print(" ".join(map(str,ans)))

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

ans = range(n)
for i in range(n):
    ans[a[i]-1] = i+1
print(" ".join(map(str,ans)))
Problem p02657 (python)

Fixed submission:
A,B=(int(x) for x in input().split())
print(A*B)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = (int(x) for x in input().split())
sum  = 1
for i in A:
    sum = sum * i
if(sum > (10**18)):
    print(-1)
else:
    print(sum)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = (int(x) for x in input().split())
sum  = 1
for i in A:
    sum = sum * i
if(sum > (10**18)):
    print(-1)
else:
    print(sum)
Problem p02658 (python)

Fixed submission:
N = int(input())
A = list(map(int, input().split()))
sum  = 1
flag = 0
for i in A:
    if(i == 0):
        print(0)
        flag=2
        break
if(flag==0):
    for i in A:
        sum = sum * i
        if(sum > 10**18):
            flag=1
            break
if(flag==0):
    print(sum)
elif(flag==1):
    print(-1)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = (int(x) for x in input().split())
sum  = 1
for i in A:
    sum = sum * i
    if(i == 0):
        print(0)
        break
    if(sum > (10**18)):
        print(-1)
        break
    elif(len(A) == N):
        print(sum)
        break

Buggy submission (verdict: Runtime Error):
N = int(input())
A = (int(x) for x in input().split())
sum  = 1
for i in A:
    sum = sum * i
    if(i == 0):
        print(0)
        break
    if(sum > (10**18)):
        print(-1)
        break
    elif(len(A) == N)
        print(sum)
        break

Buggy submission (verdict: Runtime Error):
N = int(input())
A = [int(input(i)) for i in range(N)]
sum  = 1
for i in A:
    sum = sum * i
if(sum > (10**18)):
    print(-1)
else:
    print(sum)
Problem p03657 (python)

Fixed submission:
A,B = map(int,input().split())
if((A%3 == 0) or (B%3 == 0) or ((A+B)%3 == 0)):
    print("Possible")
else:
    print("Impossible")

Buggy submission (verdict: Runtime Error):
A,B = map(int,input().split())
if((A%3 == 0) or (B%3 == 0) or ((A+B)%3 == 0):
    print("Possible")
else:
    print("Impossible")
Problem p03697 (python)

Fixed submission:
A,B = map(int, input().split())
C = A + B
if(C >= 10):
    print("error")
else:
    print(C)

Buggy submission (verdict: Runtime Error):
A,B = map(int, int().split())
C = A + B
if(C >= 10):
    print("error")
else:
    print(C)

Buggy submission (verdict: Runtime Error):
A,B = map(int, int().split())
C = A + B
if (C >= 10):
    print("error")
else:
    print(C)
Problem p03777 (python)

Fixed submission:
a,b = input().split()
if(a=="H"):
    if(b=="H"):
        print("H")
    elif(b=="D"):
        print("D")
elif(a=="D"):
    if(b=="H"):
        print("D")
    elif(b=="D"):
        print("H")

Buggy submission (verdict: Runtime Error):
a,b = input().split()
if(a==H):
    if(b==H):
        print("H")
    elif(b==D):
        print("D")
elif(a==D):
    if(b==H):
        print("D")
    elif(b==D):
        print("H")
Problem p03844 (python)

Fixed submission:
a,op,b=input().split()
if(op == "+"):
    print(int(a)+int(b))
elif(op == "-"):
    print(int(a)-int(b))

Buggy submission (verdict: Runtime Error):
a,b=int(input().split())
op = input().split()
if(op == "+"):
    print(a+b)
elif(op == "-"):
    print(a-b)
Problem p03962 (python)

Fixed submission:
#おとといa、きのうb、今日c
a,b,c = (int(x) for x in input().split())
penki_list = [a,b,c]
print(len(set(penki_list)))

Buggy submission (verdict: Runtime Error):
#おととい買ったペンキ
a = int(input())
#きのう買ったペンキ
b = int(input())
#今日買ったペンキ
c= int(input())
penki_list = [a,b,c]
#print(penki_list)
#print(set(penki_list))
print(len(set(penki_list)))
Problem p03095 (python)

Fixed submission:
S=input()
S=input()
ans=1
c=[1]*26
for i in S:
        c[ord(i)-ord('a')]+=1
for i in c:
        ans*=i
print(ans%1000000007-1)

Buggy submission (verdict: Runtime Error):
N,S=input().split()
ans=1
c=[1]*26
for i in S:
        c[ord(i)-ord('a')]+=1
for i in c:
        ans*=i
print(ans%1000000007-1)
Problem p03150 (python)

Fixed submission:
N=input()
flag = 0
l=len(N)
if l != 7:
        for i in range(7):
                g=N[0:i]+N[i+l-7:l]
                if g=='keyence':flag=1
        if flag==1:print("YES")
        else :print("NO") 
elif N=='keyence':print("YES")
else :print("NO")

Buggy submission (verdict: Runtime Error):
N=input()
flag = 0
l=ken(N)
if l != 7:
        for i in range(7):
                g=N[0:i]+N[i+l-7:l]
                if g=='keyence':flag=1
        if flag==1:print("YES")
        else :print("NO")
else if N=='keyence':print("YES")
else print("NO")
Problem p03156 (python)

Fixed submission:
A=input()
A,B=input().split()
A=int(A)
B=int(B)
P=input().split()
c=[0]*3
for i in P:
        i=int (i)
        if i <= A:
                c[0]+=1
        elif i <= B:
                c[1]+=1
        else :
                c[2]+=1
c.sort()
print(c[0])

Buggy submission (verdict: Runtime Error):
A=input()
A,B=input().split()
P=input().split()
c=[0]*3
for i in P:
        if P <= A:c[0]+=1
        elif P <= B:c[1]+=1
        else :c[2]+=1
c.sort()
print(c[0])
Problem p03302 (python)

Fixed submission:
a = input().split(' ')
A = int(a[0])
B = int(a[1])
if A+B==15:print("+")
elif A*B==15:print("*")
else :print("x")

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())
if A+B==15:print("+")
elif A*B==15:print("*")
else :print("x")

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())
if A+B==15:print("+")
else if A*B==15:print("*")
else :print("x")
Problem p03957 (python)

Fixed submission:
N=input()
c=0
flag = 0
for i in N:
    if i=='C' and  c==0 :c+=1
    if i=='F' and c==1: flag=1
if flag==1:print("Yes")
else :print("No")

Buggy submission (verdict: Runtime Error):
N=input()
c=0
flag = 0
for i in N:
    if i=='C' and  c==0 :c+=1
    if i=='F' and c==1: flag=1
if flag==:print("Yes")
else :print("No")

Buggy submission (verdict: Runtime Error):
N=input()
c=0
flag = 0
for i in N:
    if i=='C' and  c==0 :c+=1
    if i=='F' and c==1: flag=1
if flag:print("Yes")
else flag:print("No")
Problem p02657 (python)

Fixed submission:
A, B = (int(x) for x in input().split())
print(A*B)

Buggy submission (verdict: Runtime Error):
A, B = int(input())
print(A*B)