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

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

cnt = 0

for i in range(L, R+1):
  if i % d == 0:
    cnt+=1
print(cnt)

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

def func(N_max):
#     print(f'N_max:{N_max}')
    cnt = 0
#     flag = False
    ans = []
    
    total = 0

    for x in range(1, N_max):
        x_total = x**2
        if N_max < x_total:
            break
        for y in range(x, N_max):
            y_total = x_total + y**2 + x*y
            if N_max < y_total:
                break

            for z in range(y, N_max):
                total = y_total + z**2+y*z+z*x
                if N_max < total:
                    break
                ans.append((total, change(len(set((x,y,z))))))

    return ans

def change(length):
    if length < 1:
        return 0
    elif length == 1:
        return 1
    elif length == 2:
        return 3
    elif length == 3:
        return 6

data = func(N)
ans_list = [0] * (N)
for d in data:
    ans_list[d[0]-1] = d[1]
for a in ans_list:
    print(a)
Problem p02657 (python)

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

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

_ = input()
data = list(map(int, input().split()))
p = np.prod(data)

if 10 ** 18 < p:
  print(-1)
else:
  print(p)
Problem p02713 (python)

Fixed submission:
import math
from functools import reduce

k = int(input())
total = 0

def gcd(*numbers):
    numbers = numbers
    return reduce(math.gcd, numbers)

for a in range(1, k + 1):
    for b in range(1, k + 1):
        if gcd(a, b) == 1:
            total += 1 * k
            continue
        else:
            for c in range(1, k + 1):
                total += gcd(a, b, c)
print(total)

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

for a in range(1, k + 1):
    for b in range(1, k + 1):
        if gcd(a, b) == 1:
            total += 1 * k
            continue
        else:
            for c in range(1, k + 1):
                total += gcd(a, b, c)
print(total)
Problem p02741 (python)

Fixed submission:
n = int(input())

data = '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'.split(', ')

print(data[n-1])

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

data = '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'.split(', ')

print(data[n])

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

data = '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'.split(' ,')

print(data[n])
Problem p02743 (python)

Fixed submission:
data = input().split()
a, b, c = [int(i) for i in data]

if c-a-b >= 0:
  
  if ((c-a-b) ** 2) - 4 * a * b > 1e-10:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
from math import isclose

data = input().split()
a, b, c = [int(i) for i in data]

if isclose(((c-a-b) ** 2) - 4 * a * b, 0, abs_tol=1e-10):
  print('Yes')
else:
  print('No')
Problem p02641 (python)

Fixed submission:
x , n = map(int,input().split())
p_str = []
if n != 0 :
    p_str = input().split()#pはlist
    
list = []

for i in p_str :
    p = int(i)
    list.append(p)

if not x  in list :
    print(x)
else :
    for i  in range(101):
        y = x - i
        if not y in list :
            print(y)
            break
        z = x + i
        if not z in list :
            print(z)
            break

Buggy submission (verdict: Runtime Error):
x , n = map(int,input().split())
p_str = input().split()#pはlist
list = []
for i in p_str :
    p = int(i)
    list.append(p)

if not x  in list :
    print(x)
else :
    for i  in range(101):
        y = x - i
        if not y in list :
            print(y)
            break
            z = x + i
        if not z in list :
            print(z)
            break
Problem p02606 (python)

Fixed submission:
from sys import stdin,stdout
l,r,d=list(map(int,stdin.readline().strip().split()))
c=0
if l%d==0 and r%d==0:
    stdout.write(str(int(r/d)-int(l/d)+1)+'\n')
else:
    stdout.write(str(int(r/d)-int(l/d))+'\n')

Buggy submission (verdict: Runtime Error):
from sys import stdin,stdout
from collections import Counter

n=int(stdin.readline().strip())
l=[]
for i in range(1,10):
    for j in range(1,10):
        for k in range(1,10):
            l.append((i*i)+(j*j)+(k*k)+(i*j)+(j*k)+(i*k))
ld=dict(Counter(l))

for i in range(1,21):
    if i in ld:
        stdout.write(str(ld[i])+'\n')
    else:
        stdout.write("0"+"\n")
Problem p02608 (python)

Fixed submission:
import numpy as np

N = int(input())
res = np.zeros(N+1)

th = int(np.sqrt(N)) + 1
for x in range(1, th):
    for y in range(1, x + 1):
        for z in range(1, y + 1):
            n = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
            if n > N:
                continue
            if x == y and y == z:
                res[n] += 1
            elif x == y or y == z or z == x:
                res[n] += 3
            else:
                res[n] += 6
for i in range(1, N+1):
    print(int(res[i]))

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

N = int(input())
res = np.zeros(N)

th = int(np.sqrt(N))
for x in range(1, th):
    for y in range(1, x + 1):
        for z in range(1, y + 1):
            n = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
            if n > N:
                continue
            if x == y and y == z:
                res[n] += 1
            elif x == y or y == z or z == x:
                res[n] += 3
            else:
                res[n] += 6
for i in range(1, N):
    print(int(res[i]))
Problem p02639 (python)

Fixed submission:
x_ = list(map(int, input().split()))
 
for i in range(len(x_)):
  if x_[i] == 0:
    print(i+1)

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

for i in range(x_):
  if x_[i] == 0:
    print(i)
Problem p02640 (python)

Fixed submission:
XY = list(map(int, input().split()))
 
c = 2 * XY[0] - XY[1] / 2
t = - XY[0] + XY[1] / 2
 
if not (XY[1] / 2).is_integer():
  print('No')
elif c == 0 and t == 0:
  print('No')
elif c >= 0 and t >= 0:
  print('Yes')
else:
  print('No')

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

if 2 * XY[0] - XY[1] / 2 == 0 and -XY[0] + XY[1] / 2 == 0:
  print('NO')

if 2 * XY[0] - XY[1] / 2 >= 0 and -XY[0] + XY[1] / 2 >= 0:
  print('YES')
else:
  print('NO')
Problem p02646 (python)

Fixed submission:
A_V = input().split()
A = int(A_V[0])
V = int(A_V[1])
B_W = input().split()
B = int(B_W[0])
W = int(B_W[1])
T = int(input())
 
if V - W <= 0:
  print('NO')
elif T < abs(B-A)/(V-W):
  print('NO')
else:
  print('YES')

Buggy submission (verdict: Runtime Error):
A_V = input().split()
A = int(A_V[0])
V = int(A_V[1])
B_W = input().split()
B = int(B_W[0])
W = int(B_W[1])
T = int(input())

if W - V < 0:
  print('NO')
elif T >= abs(B-A)/(W - V):
  print('YES')
else:
  print('NO')
Problem p03085 (python)

Fixed submission:
a = input()
if a == "A":
  print("T")
elif a == "T":
  print("A")
elif a == "G":
  print("C")
else:
  print("G")

Buggy submission (verdict: Runtime Error):
a = input()
if a = A:
  print(T)
elif a = T:
  print(A)
elif a = G:
  print(C)
else:
  print(G)
Problem p02606 (python)

Fixed submission:
l, r, d = input().split()
l = int(l)
r = int(r)
d = int(d)

cnt = 0
for n in range(l, r+1):
  if n%d == 0:
    cnt += 1

print(cnt)

Buggy submission (verdict: Runtime Error):
def fx(n):
  cnt = 0

  for i in range(1,10000):
    if (i+1+1)**2 - i*1 - 1*1 - 1*i > n: break
    for j in range(1, 10000):
      if (1+j+1)**2 - 1*j - j*1 - 1*1 > n : break
      for k in range(1, 10000):
        formula = (i+j+k)**2 - i*j - j*k - k*i
        if formula == n:
          cnt+=1
        if formula >= n:
          break
  
  return cnt


n = int(input())
for i in range(1,n+1):
  print(fx(i))

Buggy submission (verdict: Runtime Error):
def fx(n):
  cnt = 0

  for i in range(1,10000):
    if (i+1+1)**2 - i*1 - 1*1 - 1*i > n: break
    for j in range(1, 10000):
      if (1+j+1)**2 - 1*j - j*1 - 1*1 > n : break
      for k in range(1, 10000):
        formula = (i+j+k)**2 - i*j - j*k - k*i
        if formula == n:
          cnt+=1
        if formula >= n:
          break
  
  return cnt


n = int(input())
for i in range(1,n+1):
  print(fx(i))
Problem p02657 (python)

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

a = int(a)
b = int(b)

print(a*b)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())

print(a*b)
Problem p02606 (python)

Fixed submission:
L, R, d = map(int, input().split())
count = 0
if ((L and R and d >=1) and (L and R and d <= 100) ):
    for L in range(L, R+1):
        if (L%d == 0):
            count +=1
    print(count)

Buggy submission (verdict: Runtime Error):
L, R, d = map(int, input().split())
count = 0
for L in range(L, M):
  if (L%2 == 0):
    count +=1
    
  
print(count)

Buggy submission (verdict: Runtime Error):
L, R, d = map(int, input().split())
count = 0
for L in range(L, M){
  if (L%2 == 0){
    count +=1
    
  }
}
print(count)

Buggy submission (verdict: Runtime Error):
L, R, d = map(int, input().split())
count = 0
for (L,L<=R,L++){
  if (L%2 == 0){
    count +=1
    
  }
}
print(count)
Problem p02694 (python)

Fixed submission:
x = int(input())
timeCounter = 0
finalAmount = 100

while (finalAmount < x):
    simpleInterest = finalAmount // 100
    finalAmount += simpleInterest
    timeCounter += 1
print(timeCounter)

Buggy submission (verdict: Runtime Error):
x = int(input())
Counter = 0
Amount = 100

while (Amount < x):
    simpleInterest = finalAmount // 100
    Amount += simpleInterest
    Counter += 1
print(Counter)
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())
    x, y, z = y,x,z
    y,x,z = z,x,y
    print(y,x,z)
Problem p02606 (python)

Fixed submission:
N, M, K = map(int, input().split())
count=0
for i in range(M-N+1):
    ans=N%K
    if ans==0:
        count=count+1
    N=N+1
 
print(count)

Buggy submission (verdict: Runtime Error):
from math import sqrt
N=int(input())
num=1
def checker(n):
    hoge=n
    if hoge>2:
        hoge=n-2
    count=0
    x=1
    for a in range(int(sqrt(hoge))):
        y=1
        for b in range(int(sqrt(hoge))):
            z=1
            for c in range(int(sqrt(hoge))):
                ans=x*x+y*y+z*z+x*y+x*z+z*y
                if ans==n:
                    count=count+1
                z=z+1
            y=y+1
        x=x+1
    return count
for i in range(N):
    print(checker(num)) 
    num=num+1
Problem p02645 (python)

Fixed submission:
import random
i = input()
len_i = len(i)
num = 0
if len_i!=3:
    num = random.randint(0, len_i-4)
print(i[num]+i[num+1]+i[num+2])

Buggy submission (verdict: Runtime Error):
import random
i = input()
len_i = len(i)
num = random.randint(0, len_i-4)
print(i[num]+i[num+1]+i[num+2])
Problem p02657 (python)

Fixed submission:
a,b=(int(x) for x in input().split())

result = a * b
print(result)

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

result = a * b
print(result)

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

result = a * c
print(result)
Problem p02658 (python)

Fixed submission:
n = int(input())
l = [int(x) for x in input().split()]

if 0 in l:
    r=0
else:
    r = 1
    for x in range(n):
        r = r * l[x]
        if r > 10**18:
            r=-1
            break
  
print(r)

Buggy submission (verdict: Runtime Error):
n = int(input())
b = [int(x) for x in input().split()]
a = 1
max = 10**18

for i in b:
  a *= i
  
a = -1 if a > max else a
print(r)
Problem p02606 (python)

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

if l%d ==0:
  print(r//d - l//d +1)
else:
  print(r//d-l//d)

Buggy submission (verdict: Runtime Error):
l,r=map(int,input().split())
d=int(input())

l=l//d
r=r//d

print(r- l)

Buggy submission (verdict: Runtime Error):
l,r=map(int,input().split())
d=int(input())

print(r//d - l//d)

Buggy submission (verdict: Runtime Error):
l,r=map(int,input().split())
d=int(input())

print(r//d-l//d)

Buggy submission (verdict: Runtime Error):
l,r=map(int(input().split()))
d=int(input())

print(r//d-l//d)
Problem p02613 (python)

Fixed submission:
n = int(input())
S=[0]*n
for i in range(n):
  S[i]=input()

ac =0
wa =0
tle =0
re =0


for i in range(n):
  if S[i]=='AC':
    ac +=1
  elif S[i]=='WA':
    wa +=1
  elif S[i]=='TLE':
    tle +=1
  elif S[i]=='RE':
    re +=1

print('AC x ',ac)
print('WA x ',wa)
print('TLE x ',tle)
print('RE x ',re)

Buggy submission (verdict: Runtime Error):
n = int(input())
for i in range(n):
  S[i]=input()

ac =0
wa =0
tle =0
re =0


for i in range(n):
  if S[i]=='AC':
    ac +=1
  elif S[i]=='WA':
    wa +=1
  elif S[i]=='TLE':
    tle +=1
  elif S[i]=='RE':
    re +=1

print('AC x ',ac)
print('WA x ',wa)
print('TLE x ',tle)
print('RE x ',re)
Problem p02658 (python)

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

if 0 in a:
  b=0
for i in range(n):
  b *= a[i]
  if b>10**18:
    b=-1
    break
  else:
    continue
print(b)

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

for i in range(n):
  b *= a[i]

if b >= 10**18:
  print(-1)
else:
  print(b)
Problem p02694 (python)

Fixed submission:
from math import floor,ceil
X = int(input())
 
p = 100
c = 0
while p < X:
    p=floor(p*1.01)
    c += 1
print(c)

Buggy submission (verdict: Runtime Error):
from math import floor,ceil
X = int(input())
cash = 100
count = 0
while cash < X:
    cash=floor(p*1.01)
    count += 1
print(count)

Buggy submission (verdict: Runtime Error):
from math import floor,ceil
X = int(input())

p = 100
c = 0
while cash < X:
    p=floor(p*1.01)
    c += 1
print(c)

Buggy submission (verdict: Runtime Error):
from math import floor,ceil
X = input()
X = int(X)
cash = 100
count = 0
while cash < X:
    cash=floor(p*1.01)
    count += 1
print(count)
Problem p02612 (python)

Fixed submission:
N = int(input())
num = -(-N // 1000)
print(num * 1000 - N)

Buggy submission (verdict: Runtime Error):
N = int(input())
str_list = [str(input()) for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))
Problem p02613 (python)

Fixed submission:
N = int(input())
str_list = []
str_list = [str(input()) for i in range(N)]

print('AC x ' + str(str_list.count(('AC'))))
print('WA x ' + str(str_list.count(('WA'))))
print('TLE x ' + str(str_list.count(('TLE'))))
print('RE x ' + str(str_list.count(('RE'))))

Buggy submission (verdict: Runtime Error):
N = int(input())
str_list = [str(input()) for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))

Buggy submission (verdict: Runtime Error):
N = int(input())
str_list = [input() for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))

Buggy submission (verdict: Runtime Error):
N = int(input())
str_list = [input() for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))
Problem p02614 (python)

Fixed submission:
H, W, K = map(int, input().split())
C = [ input() for i in range(H)]
ans = 0
for i in range(1 << H):
    for j in range(1 << W):
        cnt = 0
        for m in range(H):
            for n in range(W):
                if ((i >> m) & 1): 
                    continue
                if ((j >> n) & 1): 
                    continue
                if C[m][n] == '#':
                    cnt += 1
        if cnt == K: 
            ans += 1
        
print(ans)

Buggy submission (verdict: Runtime Error):
H, W, K = map(int, input().split())
C = [ input() for i in range(H)]
ans = 0
for i in range(1 << H):
    for j in range(1 << W):
        cnt = 0
        for m in range(H):
            for n in range(W):
                if ((i >> m) & 1): 
                    continue
                if ((j >> n) & 1): 
                    continue
                if C[m][n] == '#':
                    cnt += 1
        if cnt == K: 
            ans += 1
        elif cnt != K:
print(ans)
Problem p02658 (python)

Fixed submission:
N=int(input())
A=list(map(int,input().split()))
if 0 in A:
    print(0)
    exit()
ans=1
for i in A:
    ans*=i
    if ans>10**18:
        print(-1)
        exit()
print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = list(map(int, input().split()))
ans = 1
 
for i in range(N):
  	ans *= A[i]
		if ans > 10**18:
    		print("-1")
        	break
print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = list(map(int, input().split()))
ans = 1
 
for i in range(N):
  	ans *= A[i]
	if ans > 10**18:
    	print("-1")
        break
print(ans)

Buggy submission (verdict: Runtime Error):

N = int(input())
A = list(map(int, input().split()))
ans = 1

for i in range(N):
  	ans *= A[i]
	if np.prod(A) > 10**18:
    	print("-1")
        break
print(ans)

Buggy submission (verdict: Runtime Error):
import math
A, B = input().split()

print(math.floor(int(A)*float(B)))

Buggy submission (verdict: Runtime Error):
N = int(input())
A = list(map(int,input().split()))
ans = 1
for i in N:
    ans = A[i]*ans
    if ans > 10**18:
        print("-1")
        break
    print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = list(map(int, input().split))
ans = 1

for i in range(N):
    ans = ans*A[i]

if ans >= 10**18:
    print("-1")
else:
    print(ans)
Problem p02760 (python)

Fixed submission:
a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
 
for num in b:
  for x in range(3):
    for y in range(3):
      if a[x][y] == num:
        a[x][y] = 0
 
if sum(a[0]) == 0 or sum(a[1]) == 0 or sum(a[2]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][1],a[2][2]]) == 0 or sum([a[2][0],a[1][1],a[0][2]]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][0],a[2][0]]) == 0 or sum([a[0][1],a[1][1],a[2][1]]) == 0 or sum([a[0][2],a[1][2],a[2][2]]) == 0:
  print("Yes")                                                 
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
 
for num in b:
  for x in range(3):
    for y in range(3):
      if a[x][y] == num:
        a[x][y] = 0
 
if sum(a[0]) == 0 or sum(a[1]) == 0 or sum(a[2]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][1],a[2][2]]) == 0 or sum([a[2][0],a[1][1],a[0][2]]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][0],a[2][0]]) == 0 or sum([a[0][1],a[1][1],a[2][1]]) == 0 or sum([a[0][2],a[1][2],a[2][2]]) == 0:
  print("Yes")                                                 
else:
  print("No")
a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]

for num in b:
  for x in range(3):
    for y in range(3):
      if a[x][y] == num:
        a[x][y] = 0

if sum(a[0]) == 0 or sum(a[1]) == 0 or sum(a[2]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][1],a[2][2]]) == 0 or sum([a[2][0],a[1][1],a[0][2]]) == 0:
  print("Yes")
elif sum([a[0][0],a[1][0],a[2][0]]) == 0 or sum([a[0][1],a[1][1],a[2][1]]) == 0 or sum([a[0][2],a[1][2],a[2][2]]) == 0:
  print("Yes")                                                 
else:
  print("No")
Problem p03220 (python)

Fixed submission:
N = int(input())
T,A = map(int, input().split())
H = list(map(int, input().split()))
judge = abs(A - (T - 0.006*H[0]))
k = 0

for i in range(N):
  a = abs(A - (T - 0.006*H[i]))
  if judge > a:
    judge = a
    k = i
    
print(k+1)

Buggy submission (verdict: Runtime Error):
N = int(input())
T,A = map(int, input().split())
H = list[input()]
judge = abs(A - (T - 0.006*H[0]))
k = 0

for i in range(N):
  a = abs(A - (T - 0.006*H[i]))
  if judge > a:
    judge = a
    k = i
    
print(k)
Problem p03285 (python)

Fixed submission:
N = int(input())
fmax = int(N/4)+1
smax = int(N/7)+1
for i in range(fmax+1):
  for j in range(smax+1):
    if (4*i+7*j) == N:
      print('Yes')
      exit()
print('No')

Buggy submission (verdict: Runtime Error):
N = int(input())
fmax = int(N/4)+1
smax = int(N/7)+1
for i in range(fmax +1):
  for j in range(smax + 1):
	if (4*i + 7*j) == N:
	  print('Yes')
	  exit()
print('No')

Buggy submission (verdict: Runtime Error):
N = int(input())
fmax = int(N/4)
smax = int(N/7)
for i in range(fmax +1):
  for j in range(smax + 1):
	if (4*i + 7*j) == N:
	  print('Yes')
	  exit()
print('No')

Buggy submission (verdict: Runtime Error):
N = int(input())
fmax = int(N/4)
smax = int(N/7)
for i in range(fmax +1):
  for j in range(smax + 1):
	if 4*i + 7*j == N:
	  print("Yes")
	  exit()
print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(N//4 +2):
  for j in range(N//7 + 2):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
  else:
    continue
else:
  print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(N//4 + 1):
  for j in range(N//7 + 1):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
  else:
    continue
else:
  print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(N//4 + 1):
  for j in range(N//7 + 1):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
else:
  print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
flag = False
for i in range(N//4 +1):
  for j in range(N//7 +1):
	if 4*i + 7*j == N:
	  print('Yes')
      flag = True
	  break

if flag:
  break
else:
  print('No')

Buggy submission (verdict: Runtime Error):
N = int(input())
flag = False
for i in range(N//4 +1):
  for j in range(N//7 +1):
	if 4*i + 7*j == N:
	  print("Yes")
      flag = True
	  break

if flag:
  break
else:
  print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(30):
  for j in range(30):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(26):
  for j in range(16):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
print("No')

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(26):
  for j in range(16):
	if 4*i + 7*j == N:
	  print("Yes")
	  break

Buggy submission (verdict: Runtime Error):
N = int(input())
for i in range(round(N/4) + 2):
  for j in range(round(N/7) + 2):
	if 4*i + 7*j == N:
	  print("Yes")
	  break
Problem p03308 (python)

Fixed submission:
N = int(input())
A = [int(i) for i in input().split()]
A.sort()
dif = A[N-1]-A[0]
print(dif)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = [int(i) for i in input().split()]
sort.A
dif = A[N-1]-A[0]
print(dif)
Problem p03369 (python)

Fixed submission:
S = list(map(str, input()))
count = 0
for i in range(3):
  if S[i] ==  "o":
    count += 1

print(700+count*100)

Buggy submission (verdict: Runtime Error):
S = list(map(str, input()))
count = 0
for i in range(3):
  if S[i] =  "o":
    count += 1

print(700+count*100)