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

Fixed submission:
huga = list(map(int, input().split()))
huga.sort()
if huga[0] == 5 and huga[1] == 5 and huga[2] == 7:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
stdin << A, B, C
lst = [A, B, C]
sl = sort(lst)
if sl[0] == 5 && sl[1] == 5 && sl[2] == 7
  print('YES')
else
  print('NO')
Problem p04045 (python)

Fixed submission:
N, K = map(int, input().split())
P = list(map(int, input().split()))
numbers = [0,1,2,3,4,5,6,7,8,9]
use = []
for i in numbers:
  if not i in P:
    use.append(i)

ul = []
if 0 in use:
  for u5 in [0,use[1]]:
    for u4 in use:
      for u3 in use:
        for u2 in use:
          for u1 in use:
            ul.append(u5*10000 + u4*1000 + u3*100 + u2*10 + u1)
else:
    for u4 in use:
      for u3 in use:
        for u2 in use:
          for u1 in use:
            ul.append(use[0]*10000 + u4*1000 + u3*100 + u2*10 + u1)
            ul.append(u4*1000 + u3*100 + u2*10 + u1)
            ul.append(u3*100 + u2*10 + u1)
            ul.append(u2*10 + u1)
            ul.append(u1)
ul.sort()
for r in ul:
  if N <= r:
    print(r)
    break

Buggy submission (verdict: Runtime Error):
N, K = map(int, input().split())
P = list(map(int, input().split()))
numbers = [0,1,2,3,4,5,6,7,8,9]
use = []
for i in numbers:
  if not i in P:
    use.append(i)

ul = []
for u5 in [0, use[1]]:
  for u4 in use:
    for u3 in use:
      for u2 in use:
        for u1 in use:
          ul.append(u5*10000 + u4*1000 + u3*100 + u2*10 + u1)
ul.sort()
for r in ul:
  if N <= r:
    print(r)
    break
Problem p04044 (python)

Fixed submission:
n,l=map(int, input().split())
ss=[input() for i in range(n)]
ss.sort()
print(''.join(ss))

Buggy submission (verdict: Runtime Error):
n,l=map(int, input().split())
ss=[input() for i in range(n)]
ss=ss.sort()
print(''.join(ss))

Buggy submission (verdict: Runtime Error):
n,l=map(int, input().split())
ss=[input() for i in range(n)]
print(''.join(ss.sort()))

Buggy submission (verdict: Runtime Error):
n,l=map(int, input().split())
ss=[]
for i in range(len(n)):
  ss.append(input())
a=sorted(list(ss))
print(''.join(a))
Problem p04045 (python)

Fixed submission:
n,k=map(int, input().split())
ds=list(map(str, input().split()))
while any(i in str(n) for i in ds):
  n+=1
print(str(n))

Buggy submission (verdict: Runtime Error):
n,k=map(int, input().split())
ds=list(map(str, input().split()))
while i in str(n) for i in ds:
  n+=1
print(str(n))

Buggy submission (verdict: Runtime Error):
n,k=map(int, input().split())
ds=[]
for i in range(len(k)):
  ds.append(input())
ans=n
while ds in ans:
  ans+=1
print(str(ans))
Problem p04043 (python)

Fixed submission:
#!/usr/bin/env python3


def main():
    input_list = input().split()

    if input_list.count("5") == 2 and input_list.count("7") == 1:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3

"""
Lの文字列N個(s1-sN)
N個の文字列を辞書順にしたあと，くっつけて出力する
"""


def main():
    l, n = map(int, input().split())
    input_list = []

    for i in range(n):
        input_list.append(input()) 

    result_list = sorted(input_list)
    print("".join(result_list))


if __name__ == "__main__":
    main()
Problem p04044 (python)

Fixed submission:
#!/usr/bin/env python3

"""
Lの文字列N個(s1-sN)
N個の文字列を辞書順にしたあと，くっつけて出力する
"""


def main():
    n, l = map(int, input().split())
    input_list = []

    for i in range(n):
        input_list.append(input())

    result_list = sorted(input_list)
    print("".join(result_list))


if __name__ == "__main__":
    main()

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3

"""
Lの文字列N個(s1-sN)
N個の文字列を辞書順にしたあと，くっつけて出力する
"""


def main():
    l, n = map(int, input().split())
    input_list = []

    for i in range(n):
        input_list.append(input()) 

    result_list = sorted(input_list)
    print("".join(result_list))


if __name__ == "__main__":
    main()

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python3

"""
Lの文字列N個(s1-sN)
N個の文字列を辞書順にしたあと，くっつけて出力する
"""


def main():
    l, n = map(int, input().split())
    input_list = []

    for i in range(n):
        input_list.append(input().strip())

    result_list = sorted(input_list)
    print("".join(result_list))


if __name__ == "__main__":
    main()
Problem p04043 (python)

Fixed submission:
iroha = input()
iroha = iroha.split(" ")
iroha = sorted(iroha)
if iroha == ["5", "5", "7"]:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
iroha = input()
iroha = iroha.split(" ")
iroha = sorted(iroha)
if iroha = ["5", "5", "7"]:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
iroha = input()
iroha = iroha.split(" ")
iroha = sorted(iroha)
if iroha = ["5", "5", "7"]:
  print("YES")
else:
  print("NO")
Problem p04044 (python)

Fixed submission:
inputNL = input().split(" ")
N = int(inputNL[0])
L = int(inputNL[1])
 
inputs = []
for n in range(N):
  inputs.append(input())
 
inputs.sort()
answer = "".join(inputs)
print(answer)

Buggy submission (verdict: Runtime Error):
input = input().split(" ")
N = input[0]
L = input[1]

inputs = list()
for n in range(N):
  list.append(input())

inputs.sort()
answer = "".join(inputs)
print(answer)

Buggy submission (verdict: Runtime Error):
input = input().split(" ")
N = (int)input[0]
L = (int)input[1]

inputs = []
for n in range(N):
  inputs.append(input())

inputs.sort()

answer = "".join(inputs)
print(answer)
Problem p04043 (python)

Fixed submission:
input_st = input().split()
input_num = [int(s) for s in input_st]
num = sorted(input_num)
if num[0] == 5 and num[1] == 5 and num[2] == 7:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in D:
    Da.remove(i)
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in range(len(D)):
    Da.remove(D[i])
Da_str = [str(j) for j in Da]

a_1 = [''.join(j) for j in itertools.product(b_st, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(b_st, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]

 
for i in nu:
    if i >= N:
        print(i)
        break
Problem p04044 (python)

Fixed submission:
NL = input().split()
N = int(NL[0])
L = int(NL[1])

st = []
for i in range(N):
    a = input()
    st.append(a)
s_st = sorted(st)
dic = ""
for j in range(len(s_st)):
    dic += s_st[j]
print(dic)

Buggy submission (verdict: Runtime Error):
NL = input().split()
N = int(NL[0])
L = int(NL[1])
aba = ["axx", "fxx", "dxx"]
st = []
for i in range(N):
    a = aba[i]
    st.append(a)
s_st = sorted(st)
dic = ""
for j in range(len(s_st)):
    dic += s_st[j]
print(dic)

Buggy submission (verdict: Runtime Error):
NL = ["3", "3"]
N = int(NL[0])
L = int(NL[1])

st = []
for i in range(N):
    a = input()
    st.append(a)
s_st = sorted(st)
dic = ""
for j in range(len(s_st)):
    dic += s_st[j]
print(dic)
Problem p04045 (python)

Fixed submission:
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int(s) for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in D:
    Da.remove(i)
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in D:
    Da.remove(i)
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in D:
    Da.remove(i)
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in range(len(D)):
    Da.remove(D[i])
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(b_st, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(b_st, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in range(len(D)):
    Da.remove(D[i])
Da_str = [str(j) for j in Da]

a_1 = [''.join(j) for j in itertools.product(b_st, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(b_st, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]

 
for i in nu:
    if i >= N:
        print(i)
        break

Buggy submission (verdict: Runtime Error):
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])

d = input().split()
D = [int[s] for s in d]

Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

for i in range(len(D)):
    Da.remove(D[i])

nu = []
for j in itertools.combinations_with_replacement(Da, len(N)+1):
    b = ''.join([str(j[i]) for i in range(len(N)+1)])
    nu.append(int(b))

for i in nu:
    if i >= N:
        print(i)
        break
Problem p04043 (python)

Fixed submission:
L = sorted(map(int, input().split()))
 
ans = 'YES' if L == [5, 5, 7] else 'NO'
print(ans)

Buggy submission (verdict: Runtime Error):
if sorted(map(int, input().split())) == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'

Buggy submission (verdict: Runtime Error):
A, B, C = map(int, input().split())
list = [A, B, C]
if list.sort() == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'

Buggy submission (verdict: Runtime Error):
list = [A, B, C]
if list.sort() == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'
Problem p04044 (python)

Fixed submission:
H, W = map(int, input().split())
S = []
for _ in range(H):
    S.append(input())

S.sort()
str1=''
for i in range (H):
    str1=str1+S[i] 
print(str1)

Buggy submission (verdict: Runtime Error):
H, W = map(int, input().split())
S = []
for _ in range(H):
    S.append(input())

S.sort（）
str1=''
for i in range (H):
    str1=str1+S[i] 
print(str1)

Buggy submission (verdict: Runtime Error):
H, W = map(int, input().split())
S = []
for _ in range(H):
    S.append(input())

S.sort（）
str1=''
str1.append(S[i] for i in range (H))
print(str1)

Buggy submission (verdict: Runtime Error):
H, W = map(int, input().split())
S = []
for _ in range(H):
    S.append(input())

S.sort（）
str1=''
str1.append(S[i] for i in range (H))
Problem p04045 (python)

Fixed submission:
l=list(map(int,input().split()))
d=list(map(int,input().split()))
u={i for i in range(10)}
d_bar=u-set(d)
d_bar={str(i) for i in d_bar}
n=l[0]
n_set=set(str(n))
while True:
    if n_set<=d_bar:
        print(n)
        break
    n=n+1
    n_set=set(str(n))

Buggy submission (verdict: Runtime Error):
l=list(map(int,input().split()))
d=list(map(int,input().split()))
d_bar=[]
for m in range(10):
    if m not in d:
        d_bar.append(m) 
d_bar.sort()
n=[int(k) for k in str(l[0])

for i in range(len(n))
    dig1=0
    dig2=0
    for j in range(l[1]):
        p=dig1+d_bar[j]*10**(range(l[0])-i)
        if p>l[0]:
            break
        dig1=p
        dig2=dig2+d_bar[j]*l[1]**(range(l[0])-i)
dig2=dig2+1
r=dig
R=[]
while q!=0 or q!=1:
    q=q/l[1]
    r=q%l[1]
    R.append(r)
s=int(sum[str(-t-1) for t in R])
print(s)

Buggy submission (verdict: Runtime Error):
l=list(map(int,input().split()))
d=list(map(int,input().split()))
d_bar=[]
for m in range(10):
    if m not in d:
        d_bar.append(m) 
d_bar.sort()
a=[]
p=0
n_int=[int(k) for k in str(l[0])]
for i in range(len(n_int)):
    a.append(10)
    for j in range(len(d_bar)):
        if n_int[-i-1]==d_bar[j]:
            a.pop(i)
            a.append(d_bar[j+p])
            p=0
            break
        elif n_int[-i-1]<d_bar[j]:
            a.pop(i)
            a.append(d_bar[j])
            p=0
            break
    if a[i]==10:
        a.pop(i)
        a.append(d_bar[0])
        p=1
b=''
for q in range(len(n_int)):
    b=b+str(a[-q-1]) 
print(int(b))

Buggy submission (verdict: Runtime Error):
l=list(map(int,input().split()))
d=list(map(int,input().split()))
d_bar=[]
for m in range(10):
    if m not in d:
        d_bar.append(m) 
d_bar.sort()
a=[]
n_str=str(l[0])
n_int=[int(k) for k in n_str]
for i in n_int:
    a.append('na')
    for j in d_bar:
        if i<=j:
            a[i-1]=j
            break
        else:
            pass
    if a[i-1]='na':
        a[i-1]=d_bar[0]
if a[0]=0:
    a.insert(0,d_bar[0])

print(int(a))

Buggy submission (verdict: Runtime Error):
l=list(map(int,input().split()))
d=list(map(int,input().split()))
d_bar=[]
for m in range(10):
    if m not in d:
        d_bar.append(m) 
d_bar.sort()
a=''
for i in str(l[0]):
    for j in d_bar:
        if int(i)<=j:
            k=str(j)
            break
        else:
            pass
    a=a+k
print(int(a))
Problem p04043 (python)

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

if 5 in abc and 7 in abc and abc.count(7)==1:
  print('YES')
else:
  print('NO')

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

if 5 in abc and 7 in abc and abc.count(7)==1:
  print('YES')
else 
  print('NOT')

Buggy submission (verdict: Runtime Error):
num_1 = int(input())
num_2 = int(input())
num_3 = int(input())

elif num_1 == 5:
	elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5:
  		print('Yes')
    else 
    	print('NO')
else:
    	elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5:
  		print('Yes')
    else 
    	print('NO')
Problem p04043 (python)

Fixed submission:
S = list(map(int, input().split()))
S.sort()
if S == [5,5,7]:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
S = list(map(int, input().split()))
S.sort()
if S.sort()==[5,5,7]:
  return("YES")
else:
  return("NO")

Buggy submission (verdict: Runtime Error):
S = list(map(int, input().split()))
S.sort()
if S.sort()==[5,5,7]:
  return(YES)
else: return(NO)

Buggy submission (verdict: Runtime Error):
if (A == 5 and B == 5 and C == 7) or (A == 5, B == 7, C == 5) or (A==7, B==5, C==5):
	return(YES)
else: return(NO)
Problem p04044 (python)

Fixed submission:
n,m = map(int,input().split())
List = [input() for i in range(n)]

List2 = sorted(List)
print("".join(List2))

Buggy submission (verdict: Runtime Error):
n,m = map(int,input().split())
List = [input() for i in range(n)]

print("".join(sorted(List))

Buggy submission (verdict: Runtime Error):
n,m = map(int,input().split())
List = [input() for i in range(n)]

print(''.join(sorted(List))
Problem p04043 (python)

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

if list.count(5) == 2 and list.count(7) == 1:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
list = list(map(int(input())))
print(list)

Buggy submission (verdict: Runtime Error):
list = list(map(int(input())))
Problem p04043 (python)

Fixed submission:
l = input().split()

x = l.count("5")
y = l.count("7")

if(x==2 and y==1):
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
l = map(int,list(input()))
if(l[0]==l[1]):
  print("YES")
else:
  print("NO")
Problem p04043 (python)

Fixed submission:
import sys
readline = lambda:sys.stdin.readline().rstrip()
a,b,c = sorted(map(int, readline().split()))
ans = 'YES' if a==b==5 and c==7 else 'NO'
print(ans)

Buggy submission (verdict: Runtime Error):
import sys
import itertools
readline = lambda:sys.stdin.readline().rstrip()
N,K = readline().split()
dd = {int(s) for s in readline().split()}
table = [None] * 10
a = 10
for i in range(9,-1,-1):
    if i not in dd:
        a = i
    table[i] = a

nn = [int(n) for n in N]
mm = [table[n] for n in nn]
tab_min = min(x for x in table if x>0)
tab_zero = table[0]
        
if mm[0]==10:
    print(tab_min, end='')
    for z in itertools.repeat(tab_zero, len(mm)-1):
        print(z, end='')
else:
    for z,c in zip(mm, mm[1:]+[0]): 
        if c==10:
            print(min(tab_min, z), end='')
        elif z==10:
            print(tab_zero, end='')
        else:
            print(z, end='')
print()
Problem p04044 (python)

Fixed submission:
N, L = map(int, input().split())
result = []
 
for i in range(N):
  result.append(input())
 
print("".join(sorted(result)))

Buggy submission (verdict: Runtime Error):
N, L = map(int, input().split())
result = []

for i in range(N):
  result.append(i)
 
print("".join(sorted(result)))
Problem p04043 (python)

Fixed submission:
a,b,c=(int(x) for x in input().split())
nana_count=0
go_count=0
def check(x):
  if x==5:
      global go_count
      go_count+=1
  elif x==7:
      global nana_count
      nana_count+=1
check(a)
check(b)
check(c)
if nana_count==1 and go_count==2:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
  if x==5:
      global 5_count
      5_count+=1
  elif x==7:
      global 7_count
      7_count+=1
check(a)
check(b)
check(c)
if 7_count==1 and 5_count==2:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
	if x==5:
		global 5_count
        5_count+=1
	elif x==7:
 	    global 7_count
		7_count+=1
check(a)
check(b)
check(c)
if 7_count=1 and 5_count=2:
  print("YES")
else:
  print("NO")
Problem p04043 (python)

Fixed submission:
import itertools

haiku = list(map(int, input().split()))
p = list(itertools.permutations(haiku, 3))
print("YES" if (5, 7, 5) in p else "NO")

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

payment = n
while True:
    tmp = str(payment)
    for t in tmp:
        if t in dislikes:
            break
    else:
        break
    payment += 1
print(payment)
Problem p04043 (python)

Fixed submission:
# -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 175 and a+b+c == 17):
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 5*7*5 && a+b+c == 17):
  print("YES")
else:
  print("NO")
Problem p04043 (python)

Fixed submission:
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
if sorted(a, b, c) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
A = list(map(int, input().split()))
if A == [5,7,5]
    print('YES')
else:
    print('NO')
Problem p04043 (python)

Fixed submission:
a= input().split()
if a.count('5')==2 and a.count('7')==1:
            print('YES')
else:
            print('NO')

Buggy submission (verdict: Runtime Error):
a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
moji =''
for x in newa:
    moji += x
print(moji)

Buggy submission (verdict: Runtime Error):
a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
print(a[0],a[1])
[print(i) for i in newa]
Problem p04044 (python)

Fixed submission:
x = list(map(int,input().split()))
A = []
for i in range(x[0]):
    A.append(input())

A.sort()
result = ''.join(A)
print(result)

Buggy submission (verdict: Runtime Error):
x = list(map(int,input().split()))
for i in 0 to X[0]
    A.append(input())

result = ''.join(A)
print(result)
Problem p04043 (python)

Fixed submission:
l = [int(i) for i in  input().split()]
print('YES') if  l.count(5) == 2 and l.count(7) == 1 else print('NO')

Buggy submission (verdict: Runtime Error):
l = [int(i) for i in range(input().split()]
print('YES') if  l.count(5) == 2 and l.count(7) == 1 else print('NO')
Problem p04043 (python)

Fixed submission:
# -*- coding: utf-8 -*-

f_count = 2
s_count = 1
haikuflag = False
input_stuck = input().split()
num = [int(input_stuck[0]),int(input_stuck[1]),int(input_stuck[2])]
for i in num:
    if i == 5:
        f_count-=1
    elif i == 7:
        s_count-=1
if f_count == 0 and s_count == 0:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-

f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
    S.append(input())
S.sort()
for i in range(N):
    s = s + S[i]
print("%s"%(s))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-

f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
    S.append(input())
S.sort()
for i in range(N):
    s = s + S[i]
print("%s"%(s))
Problem p04043 (python)

Fixed submission:
A,B,C = map(int,input().split())
if A+B+C == 17 and (A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7):
  print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
A,B,C = map(int,input().split())
if A+B+C == 17 and (A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7):
  print('YES')
  else:
    print('NO')
Problem p04043 (python)

Fixed submission:
test=list(map(int, input().split()))
 
def iroha():
    if test==[5,5,7]:
        print("YES")
    elif test==[5,7,5]:
        print("YES")
    elif test==[7,5,5]:
        print("YES")
    else:
        print("NO")
 

iroha()

Buggy submission (verdict: Runtime Error):
test=list(map(int, input().split()))
 
def iroha():
 	if test==[5,5,7]:
		print("yes")
    elif test==[5,7,5]:
		print("yes")
    elif test==[7,5,5]:
        print("yes")
    else:
        print("no")
iroha()

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

 def iroha():
 	if test==[5,5,7]:
		print("yes")
    elif test==[5,7,5]:
		print("yes")
    elif test==[7,5,5]:
        print("yes")
     else:
        print("no")

iroha()
Problem p04044 (python)

Fixed submission:
N,L = map(int,input().split())

data=[]
for n in range(int(N)):
    data.append(input())
  
iroha=""
A=sorted(data)
for i in A:
    iroha+=i
    
print(iroha)

Buggy submission (verdict: Runtime Error):
N,L = map(int,input().split())
 
for n in range(int(N)):
    data.append(input())
 
 
    
result=sorted(data)
result

Buggy submission (verdict: Runtime Error):
N,L = map(int,input().split())

for n in range(int(N)):
    data.append(input())


    
result=sorted(data)

Buggy submission (verdict: Runtime Error):
test=sorted(list(input().split()))



print(test[0]+test[1]+test[2])
Problem p04043 (python)

Fixed submission:
s = input().split()

if s.count("5") == 2 and s.count("7") == 1:
  print("YES")
else:
  print("NO")

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

if s.count("5") == 2 and s.count("7") = 1:
  print("YES")
else:
  print("NO")

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

if s.find("5") == 2 and s.find("7") == 1:
  print("YES")
else:
  print("NO")