TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
Ans = 0
for x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      Ans += 1
print(Ans)

N = int(input())
for x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      print('Yes')
    else:
      print('No')
      

N = int(input())
count = 0
for x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      count += 1
if count > 0:
  print('Yes')
else:
  print('No')
      

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = input()
m = (n // 7) * 7
if m == n:
    print("Yes")
elif m - n <= n // 7:
    print("Yes")
else:
     print("No")

n = int(input())
m = (n // 7) * 7
if m == n:
    print("Yes")
elif n == 4:
    print("Yes")
elif n - m <= n // 7:
    print("Yes")
else:
     print("No")

n = int(input())
m = (n // 7) * 7
print(m)
if m == n:
    print("Yes")
elif n - m <= n // 7:
    print("Yes")
else:
     print("No")


n = int(input())
m = (n // 7) * 7
if m == n or n == 4 or n == 12 or n == 20:
    print("Yes")
elif n - m <= n // 7:
    print("Yes")
else:
     print("No")

n = int(input())
m = [7 * i for i in range(15)]
for i in range(15):
    for j in range(26):
        m.append(m[i] + 4 * j)
if n in set(m):
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n=int(input())

flg=0
for i in range(0,n//4+1):
  for j in range(0,n//7+1):
    if(i*4+j*7==n):
      flg=1
      break
  else:
    continue
  break
  
if(flg==1):
  print("YES")
else:
  print("NO")
  

n=int(input())

flg=0
for i in range(0,n//4+1):
  for j in range(0,n//7+1):
    if(i*4+j*7==n):
      flg=1
      break
  else:
    continue
  break
  
if(flg==1):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
flag = 0
for i in range(int(N/4)):
  for j in range(int(N/7)):
    if 4*i + 7*j == N:
      print('Yes')
      flag = 1
      break
if flag == 0:
  print('No')

N = int(input())
flag = 0
for i in range((N//4)+1):
  for j in range((N//7)+1):
    if 4*i + 7*j == N:   
      flag = 1
if flag == 0:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())

cake_price = 4
donut_price = 7
sum_price = 0

flag = 0
cake_num = 0
donut_num = 0
while sum_price < N:
  while sum_price < N:
    sum_price = cake_price * cake_num + donut_price * donut_num
    donut_num += 1
    if sum_price == N:
      flag = 1
  cake_num += 1
  if sum_price == N:
      flag = 1
  
if flag == 0:
  print("No")
else:
  print("Yes")

N = int(input())
 
CAKE_PRICE = 4
DONUT_PRICE = 7
 
flag = 0
for cake_num in range(N//CAKE_PRICE + 1):
  for donut_num in range(N//DONUT_PRICE + 1):
    sum_price = CAKE_PRICE * cake_num + DONUT_PRICE * donut_num
    if sum_price == N:
   		flag = 1
  
if flag == 0:
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=int(input())
#number of cakes
if all( (N - 4*i) % 7 != 0 for i in range(N/4)):
    print("No")
else:
    print("Yes")

N=int(input())
#number of cakes
if all( (N - 4*i) % 7 != 0 for i in range(N//4 + 1)):
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
cake = 4
donut = 7
ac = False
for i in range(25):
    for j in range(14):
        if N == (cake*i + donut*j):
            ac == True
            break
if ac:
    print('Yes')
else:
    print('No')

N = int(input())
cake = 4
donut = 7
ac = False
for i in range(25):
    for j in range(14):
        if N == (cake*i + donut*j):
            ac = True
            break
if ac:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())

flg = False
for i in range(100//4 + 1):
    for j in range(100//7 + 1):
        if i * 4 + j * 7 == n:
            flg = True
            break
if flg:
    print("YES")
else:
    print("NO")

n = int(input())

flg = False
for i in range(100//4 + 1):
    for j in range(100//7 + 1):
        if i * 4 + j * 7 == n:
            print("YES")
            exit(0)
    if flg:
        break

print("NO")



n = int(input())

flg = False
for i in range(100//4 + 1):
    for j in range(100//7 + 1):
        if i * 4 + j * 7 == n:
            print("YES")
            exit(0)

print("NO")



n = int(input())

flg = False
for i in range(100//4 + 1):
    for j in range(100//7 + 1):
        if i * 4 + j * 7 == n:
            print("Yes")
            exit(0)

print("No")



Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
ok = 0
for i in range(n//7):
    for j in range(n//4):
        ans = 7*i + 4*j
        if ans == n:
            ok = 1
if ok == 1:
    print("Yes")
else:
    print("No")

n = int(input())
ok = 0
i = 0
while i <= n // 4:
    j = 0
    while j <= n // 7:
        if 4*i + 7*j == n:
            ok = 1
        j += 1
    i += 1
if ok == 1:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(innput())
f = 4
s = 7
for i in range(30):
  f = f*i
  for j in range(30):
    s = s*j
    if n%s == 0 or n%f == 0 or n%(f+s)==0:
      print('Yes')
      quit()
    if n < f+s:
      break
print('No')

n = int(innput())
f = 4
s = 7
for i in range(30):
  f = f*i
  for j in range(30):
    s = s*j
    if n%s == 0 or n%f == 0 or n%(f+s)==0:
      print('Yes')
      quit()
   	if n < f+s:
      break
print('No')
      

n = int(input())
for i in range(100):
  for j in range(100):
    if 4*i+7*j == n:
        print('Yes')
        exit(0)
print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
for i in range(15):
  for j in range(26):
    if 7*i + 4*j == n
      print("Yes")
      exit
      
print(No)

n = int(input())
for i in range(15):
  for j in range(26):
    if 7*i + 4*j == n
      print("Yes")
      exit 
print("No")

n = int(input())
flag = 0
for i in range(15):
  for j in range(26):
    if 7*i + 4*j == n:
      flag = 1
      exit

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
a = N//7
AA = [(N-7*i)%4 for i in range(a)]
if 0 in AA:
    print("YES")
else:
    print("NO")


N = int(input())
a = N//7
AA = [(N-7*i)%4 for i in range(a)]
if 0 in AA:
    print("Yes")
else:
    print("No")


N = int(input())
a = N//7
AA = [(N-7*i)%4 for i in range(a+1)]
if 0 in AA:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]
tmp = []
for i in range(10):
  for j in range(10):
    solve = (4*(i+1))+(7*(j+1))
    if solve <= 100:
      tmp.append(solve)
multiple_other = sorted(list(set(tmp)))
  if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4 or N in multiple_other:
    print("Yes")
  else:
    print("No")

N = int(input())
multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]
if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4:
  print(N, "Yes")
  continue
else:
  print(N, "No")
  continue

N = int(input())
multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]
if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4:
  print(N, "Yes")
else:
  print(N, "No")

N = int(input())
tmp = []
for i in range(10):
  for j in range(10):
    solve = (4*(i+1))+(7*(j+1))
    if solve <= 100:
      tmp.append(solve)
multiples = sorted(list(set(tmp)))
if N % 4 == 0 or N % 7 == 0 or N in multiples:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
def candd(n):
  count = 0
  for i in range(25):
    for s in range(15):
      answer = 4*i + s*15
      if answer == n:
        count +=1
  if count >0:
    print('Yes')
  else:
    print('No')

a = int(input())
candd(a)


def candd(n):
  count = 0
  for i in range(25):
    for s in range(15):
      answer = 4*i + s*7
      if answer == n:
        count +=1
  if count >0:
    print('Yes')
  else:
    print('No')

a = int(input())
candd(a)


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
if n % 4 == 0: print('Yes')
elif n >= 7 && n % 4 == 3: print('Yes')
elif n >= 14 && n % 4 == 2: print('Yes')
elif n >= 21 && n % 4 == 1: print('Yes')
else: print('No')

n = int(input())
if n % 4 == 0: print('Yes')
elif n >= 7 and n % 4 == 3: print('Yes')
elif n >= 14 and n % 4 == 2: print('Yes')
elif n >= 21 and n % 4 == 1: print('Yes')
else: print('No')

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=int(input())
if N%4==0 or N%7==0:
  print('Yes')
elif:
  while 0<N:
    N-=7
    if N%4:
      print('Yes')
      break
  else:
    print('No')



N=int(input())
if N%4==0 or N%7==0:
  print('Yes')
else:
  while 7<N:
    N-=7
    if N%4==0:
      print('Yes')
      break
  else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())

ans = 0

for i in range(100):
    for j in range(100):
        if (i*4) + (y*7) == N:
            ans = ans+1
            

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


N = int(input())
 
ans = 0
 
for i in range(100):
    for j in range(100):
        if (i*4) + (y*7) == N:
            ans = ans+1
            
 
if ans==0:
    print("Yes")
else:
    print("No")

N = int(input)

ans = 0

for i in range(100):
    for j in range(100):
        if (i*4) + (y*7) == N:
            ans = ans+1
            

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

N = int(input())
 
ans = 0
 
for i in range(100):
    for j in range(100):
        if (i*4) + (y*7) == N:
            ans = ans+1
            

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

N = int(input())
 
ans = 0
 
for i in range(100):
    for j in range(100):
        if (i*4) + (y*7) == N:
            ans = ans+1
            

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

n=int(input())
for i in range(100):
    for j in range(100):
        if 4*i+7*j==n:
            print("Yes")
            exit(0)
print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = input()
flag = False
for i in range(N//4 + 1):
    for j in range(N//7 + 1):
        if 4 * i + 7 * j == N:
            flag = True
            break
if flag:
    print("Yes")
else:
    print("No")

N = input()
flag = False
for i in range(N//4):
    for j in range(N//7):
        if 4 * i + 7 * j == N:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

N = input()
flag = False
for i in range(N//4 + 1):
    for j in range(N//7 + 1):
        if 4 * i + 7 * j == N:
            flag = True
if flag:
    print("Yes")
else:
    print("No")


N = int(input())
flag = False
for i in range(N//4):
    for j in range(N//7):
        if 4 * i + 7 * j == N:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

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:
            flag = True
if flag:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N, K = map(int, input().split())
h = list(map(int, input().split()))

INF = 10**9
dp = [INF] * (N + K)
dp[0] = 0
for i in range(N):
    for k in range(1, K+1):
        if i + k >= N:
            break
        dp[i+k] = min(dp[i+k], dp[i] + abs(h[i]-h[i+k]))
print(dp[N-1])



N = int(input())
for c4 in range(26):
    for c7 in range(16):
        c = 4*c4 + 7*c7
        if c == N:
            print('Yes')
            exit()
print('No')


Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
flg = 0
for i in range(N//4):
    for j in range(N//7):
        if N == 4 * i + 7 * j:
            flg = 1
if flg == 1:
    print('Yes')
else:
    print('No')

N = int(input())
flg = 0
for i in range(N//4 + 1):
    for j in range(N//7 + 1):
        if N == 4 * i + 7 * j:
            flg = 1
if flg == 1:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = input()
for i in range(1,25):
  for j in range(1,15):
    if i*4+j*7==n:
      print("Yes")
      exit()
print("No")

n = input()
for i in range(0,25):
  for j in range(0,15):
    if i*4+j*7==n:
      print("Yes")
      exit()
print("No")

n = input()
mlist = [i*4+j*7 for i in range(0,25) for j in range(0,15)]
if n in mlist:
  print("Yes")
else:
  print("No")

n = int(input())
for i in range(26):
  for j in range(15):
    if i*4+j*7==n:
      print("Yes")
      exit()
print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())

c_max = N //4
d_max = N //7

for i in range(c_max):
    for j in range(d_max):
        temp = 4*i + 7*j

        if temp == N:
            print("Yes")
            exit()
print("No")



N = int(input())

c_max = N //4
d_max = N //7

for i in range(c_max+1):
    for j in range(d_max+1):
        temp = 4*i + 7*j

        if temp == N:
            print("Yes")
            exit()
print("No")




Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n= int(input())
if 4*(2n//7) -n>=0:
    print("Yes")
else:
    print("No")

n= int(input())
if 4*(2*n//7) -n>=0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
PRICE_CAKE = 4
PRICE_DOUGHNUT = 7

n = int(input())
max_cakes = n // PRICE_CAKES

valid = False
for i in range(max_cakes + 1):
  n_left = n - i * PRICE_CAKE
  if n_left % PRICE_DOUGHNUT == 0:
    valid = True
    break
    
print("Yes" if valid else "No")

PRICE_CAKE = 4
PRICE_DOUGHNUT = 7

n = int(input())
max_cakes = n // PRICE_CAKE

valid = False
for i in range(max_cakes + 1):
  n_left = n - i * PRICE_CAKE
  if n_left % PRICE_DOUGHNUT == 0:
    valid = True
    break
    
print("Yes" if valid else "No")

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
print('YES' if n in [7,14,4,11,8,15,12,16] or n > 17 else 'No')

n = int(input())
print('Yes' if n in [7,14,4,11,8,15,12,16] or n > 17 else 'No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n=int(input())


a=0
for i in　range(0,26):
    for j in range(0,20):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("N0")
else:
    print("Yes")


n=int(input())


a=0
for i in range(0,n):
    for j in range(0,n):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("No")
else:
    print("Yes")
            

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=int(input())
for a in range(N//4+1):
    for b in range(N//7+1):
        if 4*a+7*b==N:
            print(Yes)
            exit()
        else:
            print(No)

N=int(input())
for a in range(N//4+1):
    for b in range(N//7+1):
        if 4*a+7*b==N:
            print('Yes')
            exit()
        else:
            print('No')


N=int(input())
for a in range(N//4+1):
    for b in range(N//7+1):
        if 4*a+7*b==N:
            print(Yes)
        else:
            print(No)


N=int(input())
for a in range(N//4+1):
    for b in range(N//7+1):
        if 4*a+7*b==N:
            print(Yes)
        exit()
        else:
            print(No)


N=int(input())
for a in range(N//4+1):
    for b in range(N//7+1):
        if 4*a+7*b==N:
            print('Yes')
            exit()
  
print('No')


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n=int(input())
cnt=0
for i in range(int(n/4)):
  for j in range(int(n/7)):
    if 4*1+7*j==n:
      cnt+=1
print(cnt)
    

n=int(input())
cnt=0
for i in range(int(n/4)+1):
  for j in range(int(n/7)+1):
    if 4*1+7*j==n:
      cnt+=1
print(cnt)

n=int(input())
cnt=0
for i in range(int(n/4)+1):
  for j in range(int(n/7)+1):
    if 4*i+7*j==n:
      cnt+=1
if cnt==0:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    d = [0] * 101
    for i in range(25):
        d[i*4] + 1
    for i in range(7,101):
        if d[i-7] == 1:
            d[i] = 1
    n = I()
    if d[n] == 1:
        return 'Yes'
    return 'No'




print(main())


import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    d = [0] * 101
    for i in range(25):
        d[i*4] = 1
    for i in range(7,101):
        if d[i-7] == 1:
            d[i] = 1
    n = I()
    if d[n] == 1:
        return 'Yes'
    return 'No'




print(main())


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
cnt = 0
for i in range(30):
    for j in range(20):
        if n == 4 * i + 7 * j:
            print("Yes")
            break
else:
    print("No")


n = int(input())
ans = 0
for i in range(30):
    for j in range(20):
        if n == 4 * i + 7 * j:
            ans = 1
    if ans == 1:
        print("Yes")
        break
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n=int(input())
for i in range((n//4)+1):
  for j in range((n//7)+1):
    if n==4*i+7*j:
      print('Yes')
    else:
      print('No')
      

n=int(input())
for i in range((n//4)+1):
  for j in range((n//7)+1):
    if n==4*i+7*j:
      print('Yes')
      exit()
    print('No')
    

n=int(input())
res=0
for i in range((n//4)+1):
  for j in range((n//7)+1):
    if n==4*i+7*j:
      res=1
if res==1:
  print('Yes')
else:
  print('No')
  

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
a = n//4
b = n//7
ans = 0
for i in range(a+1):
    for j in range(b+1):
        if 4*i+7*j == n:
            ans = 1
if ans = 1:
  print('Yes')
else:
  print('No')        


n = int(input())
for i in range(n+1):
  for j in range(n+1):
    if 4*i+7*j == n:
      print('Yes')
    else:
      print('No')


n = int(input())
for i in range(n):
  for j in range(n):
    if 3*(i+1)+7*(j+1) == n:
      print('Yes')
    else:
      print('No')

n = int(input())
for i in range(1,n+1):
  for j in range(1,n+1):
    if 3*(i+1)+7*(j+1) == n:
      print('Yes')
    else:
      print('No')


n = int(input())
for i in range(n):
  for j in range(n):
    if 3*i+7*j == n:
      print('Yes')
    else:
      print('No')

n = int(input())
for i in range(n+1):
  for j in range(n+1):
    if 4*(i+1)+7*(j+1) == n:
      print('Yes')
    else:
      print('No')


n = int(input())
for i in range():
  for j in range():
    if 3*(i+1)+7*(j+1) == n:
      print('Yes')
    else:
      print('No')


n = int(input())
a = n//4
b = n//7
ans = 0
for i in range(a+1):
    for j in range(b+1):
        if 4*i+7*j == n:
            ans = 1
if ans == 1:
  print('Yes')
else:
  print('No')        


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
import sys

n = int(input())

for i in range(n // 7):
    if (n - 7 * i) % 4 == 0:
        print("Yes")
        sys.exit()
print("No")


import sys

n = int(input())

for i in range(n // 7 + 1):
    if (n - 7 * i) % 4 == 0:
        print("Yes")
        sys.exit()
print("No")


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
t = 0
if N % 4 == 0 or N % 7 == 0:
  ans = "Yes"
else:
  t = 0
  for i in range(1,N//7):
    x = (N-7*i)/4
    if x == int(x):
      t += 1
    else:
      continue
  if t > 0:
    ans = "Yes"
  else:
    ans = "No"
print(ans)

N = int(input())
t = 0
if N % 4 == 0 or N % 7 == 0:
  ans = "Yes"
elif N == 0:
  ans = "No"
else:
  t = 0
  for i in range(1,N//7):
    x = (N-7*i)/4
    if x == int(x):
      t += 1
    else:
      continue
  if t > 0:
    ans = "Yes"
  else:
    ans = "No"
print(ans)

N = int(input())
t = 0
if N % 4 == 0 or N % 7 == 0:
  ans = "Yes"
else:
  t = 0
  for i in range(1,(N//7)+1):
    x = (N-7*i)/4
    if x == int(x):
      t += 1
    else:
      continue
  if t > 0:
    ans = "Yes"
  else:
    ans = "No"
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())

if N % 4 == 0:
    print('Yes')
    exit()

if N % 7 == 0:
    print('Yes')
    exit

if N % 11 == 0:
    print('Yes')

print('No')

N = int(input())

cake = 4
donut = 7
flg = False

for cake_num in range(N // cake + 1):
    for donut_num in range(N // donut + 1):
        sum = cake * cake_num + donut * donut_num

        if sum == N:
            flg = True

if flg:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
a = 4
b = 7
count = 0
for i in range(0, (N // a) + 1):
    for j in range(0, (N // b) + 1):
        if a * i + b * j == N:
            count += 1
        else:
            pass
print(count)

N = int(input())
a = 4
b = 7
count = 0
for i in range(0, (N // a) + 1):
    for j in range(0, (N // b) + 1):
        if a * i + b * j == N:
            count += 1
        else:
            pass

if count >= 1:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())

c, d = 4, 7

def test(n):

    if n < 4:
        return False

    if n == 4 or n == 7:
        return True
    else:
        return test(n - 4) or test(n - 7)

N = int(input())

c, d = 4, 7

def test(n):

    if n < 4:
        return False

    if n == 4 or n == 7:
        return True
    else:
        return test(n - 4) or test(n - 7)
    
if test(N):
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
a = [1,2,3,5,6,9,10,13,17]
if n in a:
  print(No)
else:
  print(Yes)

n = int(input())
a = [1,2,3,5,6,9,10,13,17]
if n in a:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
for i in range(26):
    for j in range(16):
        if i*$ + j*7 == n:
            print('Yes')
            exit()

print('No')

n = int(input())
for i in range(26):
    for j in range(16):
        if i*$ + j*7 == n:
            print('Yes')
            exit()

print('No')

n = int(input())
for i in range(26):
    for j in range(16):
        if i*4 + j*7 == n:
            print('Yes')
            exit()

print('No')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = input()

flag = False

for i in range(0, 26):
    for j in range(0, 15):
        if 4 * i + 7 * j == n:
            flag = True
            break
    if flag:
        break

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


n = int(input())

flag = False

for i in range(0, 30):
    for j in range(0, 20):
        if 4 * i + 7 * j == n:
            flag = True
            break
    if flag:
        break

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


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=int(input())

is_buy = 'No'
for a in range(N//4):
    for b in range(N//7):
        if 4*a + 7*b == N:
            is_buy = 'Yes'
            break
print(is_buy)

N=int(input())

is_buy = 'No'
for a in range((N//4)+1):
    for b in range((N//7)+1):
        if 4*a + 7*b == N:
            is_buy = 'Yes'
            break
print(is_buy)

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
def temp(H):
  ans = - H *0.006
  return ans
N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))
TE = list(map(temp,H))
TLA = list(map(lambda x: abs(T + x -A) , TE))
ans=TLA.index(min(TLA))
print(ans+1)


import math
n = int(input())
counter = False
#for n in range (0,100):
for i in range (math.ceil((n+1) / 4) ):
  for j in range (math.ceil((n+1) / 7) ):
    #print(n, i,j)
    if i*4 + j*7 == n:
      counter = True
if counter == True:
  print("Yes")
else:
  print("No")


Verdicts: Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
if N % 4 == 0 or N % 7 == 0:
    print('Yes')
    exit()
for i in range(N // 4):
    for j in range(N // 7):
        if 4 * i + 7 * j == N:
            print('Yes')
            exit()
print('No')

N = int(input())
if N % 4 == 0 or N % 7 == 0:
    print('Yes')
    exit()
for i in range(N // 4 + 1):
    for j in range(N // 7 + 1):
        if 4 * i + 7 * j == N:
            print('Yes')
            exit()
print('No')


Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
import sys
n = int(input())

if n%7 != 0 and n%4 != 0 and n%11 != 0:
    for a in range(25):
        for b in range(14):
            if n%(7*b + 4*a) == 0:
                print('No')
                sys.exit()
else:
    print('No')
    sys.exit()
print('Yes')

import sys
n = int(input())

if n%7 != 0 and n%4 != 0 and n%11 != 0:
    for a in range(1, 25):
        for b in range(1, 14):
            if n%(7*b + 4*a) == 0:
                print('No')
                sys.exit()
else:
    print('No')
    sys.exit()
print('Yes')

import sys
n = int(input())

if n%7 != 0 and n%4 != 0 and n%11 != 0:
    for a in range(1, 25):
        for b in range(1, 14):
            if n%(7*b + 4*a) == 0:
                print('Yes')
                sys.exit()
else:
    print('Yes')
    sys.exit()
print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=int(input())


check=0
for i in range(25):
    if (N-i*4)/7>=0 and (N-i*4)%7==0:
        check=1
        print(i,(N-i*4)//7)

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


import sys

N=int(input())
if N%4==0:
    print("Yes")
    sys.exit()

for i in range(N//4):
    if (N-4*i)%7==0:
        print("Yes")
        sys.exit()

else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n = int(input())
n4 = int(n/4)
n7 = int(n/7)
ans = 'No'
if n%4 == 0:
    ans = 'Yes'
else :
    for i in range(n4+1):
         res = n - 4 * i
         for j in range(1,n7):
            if res%j == 0:
                ans = 'Yes'

print(ans)






n = int(input())
n4 = int(n/4)
ans = 'No'
if n%4 == 0:
    ans = 'Yes'
else :
    for i in range(n4+1):
         res = n - 4 * i
         if res%7 == 0:
             ans = 'Yes'

print(ans)






Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
dp = [0 for i in range(100)]
dp[6] = 1
dp[3] = 1
for i in range(100):
  if i>=4 and dp[i-4]==1:
    dp[i] = 1
  if i>=7 and dp[i-7]==1:
    dp[i] = 1
if dp(int(input()-1))==1:
  print("Yes")
else:
  print("No")

dp = [0 for i in range(100)]
dp[6] = 1
dp[3] = 1
for i in range(100):
  if i>=4 and dp[i-4]==1:
    dp[i] = 1
  if i>=7 and dp[i-7]==1:
    dp[i] = 1
if dp(int(input())-1)==1:
  print("Yes")
else:
  print("No")

dp = [0 for i in range(100)]
dp[6] = 1
dp[3] = 1
for i in range(100):
  if i>=4 and dp[i-4]==1:
    dp[i] = 1
  if i>=7 and dp[i-7]==1:
    dp[i] = 1
if dp[int(input())-1]==1:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n-4*a>=0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")


import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n - 4 * a >= 0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")


import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n - 4 * i < 0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N = int(input())
output = 0
for a in range(int(100/4)+1):
  for b in range(int(100/7)+1):
    total = 4*a + 7*b
    if total == N:
      output += 1
print(output)

N = int(input())

def is_buyable():
  output = 0
  for a in range(int(100/4)+1):
    for b in range(int(100/7)+1):
      total = 4*a + 7*b
      if total == N:
        return True

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

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
print('Yes' if int(input())in [1,2,3,5,6,9,10,13,17] else 'No')

print('No'if int(input())in[1,2,3,5,6,9,10,13,17]else'Yes')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
a = 4
b = 7
N = int(input())

value = N % a

if value % 7 == 0:
    print('Yes')
else:
    print('No')

N = int(input())

flag = False
if N % 4 % 7 == 0 or N % 7 % 4 == 0 or N % 11 == 0:
    flag = True
else:
    value = N // 7

    for l in range(1, value+1):
        if (N - 7 * l) % 4 == 0:
            flag = True
            break

if flag == True:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
#ABC105B
N = int(input())
OK = False
for i in range(N//4):
    for j in range(N//7):
        if i*4 + j*7 == N:
            OK = True
if OK:
    print("Yes")
else:
    print("No") 

#ABC105B
N = int(input())
OK = False
for i in range(N/4):
    for j in range(N/7):
        if i*4 + j*7 == N:
            flag = True
if OK:
    print("Yes")
else:
    print("No") 

#ABC105B
N = int(input())
flag = False
for i in range(30):
    for j in range(30):
        if i*4 + j*7 == N:
            flag = True
if flag:
    print("YES")
else:
    print("NO") 

#ABC105B
N = int(input())
OK = False
for i in range(N/4):
    for j in range(N/7):
        if i*4 + j*7 == N:
            OK = True
if OK:
    print("Yes")
else:
    print("No") 

#ABC105B
N = int(input())
OK = False
for i in range(26):
    for j in range(26):
        if i*4 + j*7 == N:
            OK = True
            break
if OK:
    print("Yes")
else:
    print("No") 

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
n=int(input())
num=[1, 2, 3, 5, 6, 9, 10, 13, 17, 19, 23, 27, 30, 31, 34, 38, 41, 43, 45, 47, 50, 54, 57, 58, 61, 65, 69, 71, 75, 78, 79, 82, 83, 85, 86, 87, 89, 90, 93, 94, 97]
if n in num:
    print("Yes")
else:
    print("No")

n=int(intput())
cake=4
donuts=7
flag=False
for i in range(n+1):
    if i%4==0:
        flag=True
        break
    elif (n-i)%7==0:
        flag=True
        break
print("Yes" if flag else "No")

n=int(input())
cake=n//4
donuts=n//7
flag=False
for i in range(cake+1):
    for j in range(donuts+1):
        s=i*4+j*7
        if s==n:
            flag=True
            break
print("Yes" if flag else "No")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: _La Confiserie d'ABC_ sells cakes at 4 dollars each and doughnuts at 7 dollars each. Determine if there is a way to buy some of them for exactly N dollars. You can buy two or more doughnuts and two or more cakes, and you can also choose to buy zero doughnuts or zero cakes.

Submission attempts (in order):
N=input()
for i in range(N / 7)
    print(N / 7*i %4==0)







N=int(input())
for i in range(int(N/7)):
    print(N / 7*i %4==0)






N=int(input())
for i in range(int(N / 7)):
    if (N - 7 * i) % 4 == 0:
        print('Yes')
    else :
        print('No')

N=input()
N=int(N)
if N<=3 :
    print('No')
elif N%4 == 0:
    print('Yes')
elif N%7==0 :
    print('Yes')
elif (N-7)%4==0 and N-7>=0:
    print('Yes')
elif (N-14)%4==0 and N-14>=0:
    print('Yes')
elif (N-21)%4==0 and N-21>=0:
    print('Yes')
else :
    print('No')


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted