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())
swi = "No"
for a in range(100)：
  if (n - 4＊a) % 7 == 0 and n - 4＊a >= 0:
    swi="Yes"
    break
print(swi)
    
    

n=int(input())
swi = "No"
for a in range(n//4 +1)
  if (n - 4＊a) % 7 == 0 and n - 4＊a >= 0:
    swi="Yes"
    break
print(swi)
    
    

n=int(input())
swi = "No"
for a in range(100)
  if (n - 4＊a) % 7 == 0 and n - 4＊a >= 0:
    swi="Yes"
    break
print(swi)
    
    

n = int(input())
swi = "No"
for a in range(100):
    b = n - 4*a
    if b % 7 == 0 and b >= 0:
            swi = "Yes"
            break
print(swi)


Verdicts: 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 = int(input())
for i in range(n//4):
  for j in range(n//7):
    if i*4 + j*7 == n:
      print("Yes")
      exit()
print("No")

n = int(input())
for i in range(n//4+1):
  for j in range(n//7+1):
    if i*4 + j*7 == 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())
dmax = n // 7
ans = "No"
for i in range(dmax):
  if (n - i*7) % 4 == 0:
    ans = "Yes"
    break
print(ans)

n = int(input())
dmax = n // 7
ans = "No"
for i in range(dmax+1):
	if (n - i*7) % 4 == 0:
		ans = "Yes"
		break
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):
N = int(input())

sum = 0
flag = 0


a = int(N / 7)
re = N % 7

if re == 0 and N != 0:
    print('Yes')
    flag += 1
else:
    for i in range(a+1):
        sum = 7 * i
#        print(sum)
        while sum<N:
            sum += 4
#            print(sum)
            if sum == N:
                print('Yed')
                flag += 1
        if flag == 1:
            break

if flag == 0:
    print('No')
                


N = int(input())

sum = 0
flag = 0


a = int(N / 7)
re = N % 7

if re == 0 and N != 0:
    print('Yes')
    flag += 1
else:
    for i in range(a+1):
        sum = 7 * i
#        print(sum)
        while sum<N:
            sum += 4
#            print(sum)
            if sum == N:
                print('Yes')
                flag += 1
        if flag == 1:
            break

if flag == 0:
    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 = False
for n in range(1,25):
    for i in range(1,15):
        if n * 4 + i*7 ==n:
            flag = True
if flag :
    print("Yes")
else :
    print("No")

n = int(input())
flag = False
for t in range(0,25):
    for i in range(0,15):
        if t !=0 or i != 0:
            if t*4 + i*7==n:
                flag = True
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())
for i in range(26):
    if i*4>N:
        continue
    if (N-i*4)%7==0:
        print("Yes")
            
print("No")

N=int(input())
for i in range(26):
    if (N-i*4)%7==0 and N-i*4>=0:
        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):
cake = 4
donaut = 7
N = int(input())
count = 0

for i in range(0, 20):
	for k in range(0, 20):
		if N == cake * i + donaut * k:
			print(str(i) + ',' + str(k))
			count = 1
			break

if count == 0:
	print('No')
else:
	print('Yes')

cake = 4
donaut = 7
N = int(input())
count = 0

for i in range(0, 20):
	for k in range(0, 20):
		if N == cake * i + donaut * k:
			count = 1
			break

if count == 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):
a = int(input())

if a <= 3:
  print("No")
else:
  while a >= 0:
    if a % 4 == 0:
      print("YES")
      break
    else:
      a -= 7
      if a < 0:
        print("No")
        break


a = int(input())

if a <= 3:
  print("No")
else:
  while a >= 0:
    if a % 4 == 0:
      print("YES")
      break
    else:
      a -= 7
  print("No")

a = int(input())

if a <= 3:
  print("No")
else:
  while a >= 0:
    if a % 4 == 0:
      print("Yes")
      break
    else:
      a -= 7
  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())

cake = N//4
donuts = N//7
for i in range(cake):
    for j in range(donuts):
        if (4*i+7*j) == N:
            print("Yes")
            exit()
print("No")

N = int(input())

cake = N//4
donuts = N//7
for i in range(cake+1):
    for j in range(donuts+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):
N = int(input())

ans = "No"

for i in range(N // 7):
  tmp = N - 7 * i
  if tmp % 4 == 0:
    ans = "Yes"
    break
    
print(ans)

N = int(input())

ans = "No"

for i in range(N // 7 + 1):
  tmp = N - 7 * i
  # print(tmp)
  if tmp % 4 == 0:
    ans = "Yes"
    break
    
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):
from math import floor

def main():
    n = int(input())

    for i in range(110):
        dp.append(10000000)
    dp[0] = 0

    seven = floor(n/7)
    for i in range(seven+1):
        mod = n - i*7
        if mod % 4 == 0:
            print('Yes')
            return
    print('No')


main()


from math import floor

def main():
    n = int(input())

    seven = floor(n/7)
    for i in range(seven+1):
        mod = n - i*7
        if mod % 4 == 0:
            print('Yes')
            return
    print('No')


main()


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())
flag=0
for i in range(1,101,7):
  for j in range(1,101,4):
    if N==i*7+j*4:
      flag = 1
      break
    else:
      flag = 0
if flag == 1:
  print("Yes")
else:
  print("No")
  

N = int(input())
flag = 0
for i in range(0, 101, 7):
    if flag==1:
        break
    for j in range(0, 101, 4):
        if N == i + j:
            flag = 1
            break

if flag == 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())

counter = 0
for number_cake in range(0,N):
	if(((N-number_cake*4) % 7 == 0)&&(N >= number_cake*4)):
		counter += 1

if(counter > 0):
	print("Yes")
else:
	print("No")


N = int(input())

counter = 0
for number_cake in range(0,N):
	for number_donut in range(0,N):
		if(N == number_cake*4+number_donut*7):
			counter += 1

if(counter > 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):
n = int(input())

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

from sys import exit
n = int(input())

for i in range(n//4+1):
  for j in range(n//7+1):
    if i == 0 and j == 0:
      continue
    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):
# -*- coding: utf-8 -*-


def main():
    """Function."""
    n = int(input())

    check = set()
    for i in range(26):
        for j in range(15):
            temp = 4 * i + 7 * j
            print(i, j, temp)
            if temp > 100:
                pass
            else:
                check.add(temp)

    check.remove(0)

    if n in check:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()


# -*- coding: utf-8 -*-


def main():
    """Function."""
    n = int(input())

    check = set()
    for i in range(26):
        for j in range(15):
            temp = 4 * i + 7 * j
            if temp > 100:
                pass
            else:
                check.add(temp)

    check.remove(0)

    if n in check:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    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):
class Solver(object):
    def __init__(self):
        self.valids = self._generate_valid_list()
        self.n = int(input())

    def solve(self):
        if self.n in self.valids:
            print("Yes")
        else:
            print("No")

    def _generate_valid_list(self):
        valids = set()
        for cake in range(26): # 0 .. 25
            if cake == 1:
                continue
            for donut in range(16):  # 0 .. 15
                if donut == 1:
                    continue
                valids.add( (donut*7) + (cake*4) )
        return valids
                
                


if __name__ == "__main__":
    s = Solver()
    s.solve()

class Solver(object):
    def __init__(self):
        self.valids = self._generate_valid_list()
        self.n = int(input())

    def solve(self):
        if self.n in self.valids:
            print("Yes")
        else:
            print("No")

    def _generate_valid_list(self):
        valids = set()
        for cake in range(26): # 0 .. 25
            for donut in range(16):  # 0 .. 15
                valids.add( (donut*7) + (cake*4) )
        return valids


if __name__ == "__main__":
    s = Solver()
    s.solve()

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()
N = int(n)

for x in range(25):
	for y in range(14):
		a = 4*x + 7*y

		if a == N:
			print("Yes")
			break
else:
	print("No")

n = input()
N = int(n)

for x in range(25):
	for y in range(14):
		a = 4*x + 7*y
		if a == N:
			print("Yes")
			break
	else:
		continue
	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())
count = 0

for i in range(26):
  for j in range(26):
    if (4*i+7*j)==n:
      count += 1
      
print(count)

n = int(input())
count = 0

for i in range(n+1):
  for j in range(n+1):
    if (4*i+7*j)==n:
      count += 1
      
print(count)

n = int(input())
count = 0

for i in range(26):
  for j in range(26):
    if (4*i+7*j)==n:
      count += 1
if count == 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):
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
            exit()
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
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
            exit()
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

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):
a = int(input())
for i in range(0,26):
  for j in range(0,15):
    if a==(i*4+j*7):
      print("Yes")
print("No")

a = int(input())
for i in range(0,26):
  for j in range(0,15):
    if a==(i*4+j*7):
      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=input()
flag=0
for i in range(26):
  for j in range(15):
    if 4*i+7*j==int(N):
     flag=1
    break

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

N=input()
flag=0
for i in range(25):
  for j in range(14):
    if 4*i+7*j==int(N):
     flag=1
    break

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

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

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

n = int(input())
print("Yes" if any((n - i*7) % 4 == 0 for i in range(n // 7 + 1) else "No")

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
  print("No")
  break

n = int(input())
print("Yes" if any((n - i*7) % 4 == 0 for i in range(n // 7 + 1)) else "No")

Verdicts: Wrong Answer

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())
lista = [4:101:4]
listb = [7:101:7]
flag = False
for i in lista:
    for j in listb:
        if i+j == n:
            flag = True
            break
if flag:
    print('Yes')
else:
    print('No')    


n = int(input())
lista = [4:101:4]
listb = [7:101:7]
flag = False
for i in lista:
    for j in listb:
        if i+j == n:
            flag = True
            break
if flag:
    print('Yes')
else:
    print('No')    


n = int(input())
lista = [4*i for i in range((100//4)+1)]
listb = [7*i for i in range((100//7)+1)]
flag = False
for i in lista:
    for j in listb:
        if i+j == n:
            flag = True
if flag:
    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())

flag = False
for i in range(n // 4):
  for j in range(n // 7):
    if i * 4 + j * 7 == 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 i * 4 + j * 7 == n:
      flag = True

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=input()
flag=0
for A in range(26):
  for B in range(15):
    if 4*A+7*B==N:
      flag=1
if flag==1:
  print("Yes")
else:
  print("No")
      

N=int(input())
flag=0
for A in range(26):
  for B in range(15):
    if 4*A+7*B==N:
      flag=1
if flag==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()
ans = "No"
for i in range(15):
    N = N-7
    print(N)
    if N <= 0:
        if N%3 == 0:
            ans="Yes"
        break
print(ans)

N = int(input())
ans = "No"
if N%4==0:
    ans = "Yes"
for i in range(15) :
    N = N - 7
    if N < 0:
        break
    if N%4==0:
        ans = "Yes"
print(ans)

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):
import copy

def CakesandDonuts(n):

    ans = "No"
    a = copy.copy(n)

    if n % 7 == 0 or n % 4 == 0:
        ans = "Yes"
    else:
        while a < 0:
            n -= 7
            a -= 4
            if n % 4 == 0 or a % 7 == 0:
                ans = "Yes"

    return ans

def main():
    n = int(input())
    print(CakesandDonuts(n))

if __name__ == '__main__':
    main()

import copy

def CakesandDonuts(n):

    ans = "No"
    a = copy.copy(n)

    if n % 7 == 0 or n % 4 == 0:
        ans = "Yes"
    else:
        while a > 0:
            n -= 7
            a -= 4
            if (n > 0 and n % 4 == 0) or (a > 0 and a % 7 == 0):
                ans = "Yes"

    return ans

def main():
    n = int(input())
    print(CakesandDonuts(n))

if __name__ == '__main__':
    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):
if n < 4:
    print('No')
    exit()
                                                                                                                
for i in range(1, n % 7):
    tmp = n - 7 * i
    if tmp % 4 == 0:
        print('Yes')
        exit()
for i in range(1, n & 4):
    tmp = n - 4 * i
    if tmp % 7 == 0:
        print('Yes')
        exit()

print('No')

n = int(input())

if n < 4:
    print('No')
    exit()
elif n % 7 == 0 or n % 4 == 0:
    print('Yes')
    exit()
elif n % 7 % 4 == 0 or n % 4 % 7 == 0:
    print('Yes')
    exit()
else:
    for i in range(1, n % 7):
        tmp = n - 7 * i
        if tmp < 0:
            break
        elif tmp % 4 == 0:
            print('Yes')
            exit()
    for i in range(1, n & 4):
        tmp = n - 4 * i
        if tmp < 0:
            break
        elif tmp % 7 == 0:                                                                                      
            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())
n = N // 7
flag = 0
for i in range(n + 1):
  if (N - n*7) % 4 == 0:
    print("Yes")
    flag = 1
    break:
if flag == 0:
  print("No")

N = int(input())
n = N // 7
flag = 0
for i in range(n + 1):
  if (N - i*7) % 4 == 0:
    print("Yes")
    flag = 1
    break
if flag == 0:
  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())
a = n//4
b = n//7
cnt = 0
flg = 0
for i in range(a+1):
    for j in range(b+1):
        if 4*i+7*j == n:
            flg = 1
            exit()
print('Yes' if flg==1 else 'No')        

n = int(input())
a = n//4
b = n//7
cnt = 0
flg = 0
for i in range(a+1):
    for j in range(b+1):
        if 4*i+7*j == n:
            flg = 1
            
print('Yes' if flg==1 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())
while n>0:
    if n%4==0:
        print("Yes")
        break
    elif n%7==0:
        print("Yes")
        break
    elif n%11==0:
        print("Yes")
        break
    else:
        break
while n>0:
    i=1
    n = n-4*i
    if n%7==0:
        print("Yes")
        break
    if n<=0:
        print("No")


n = int(input())
while n>0:
    if n%4==0:
        print("Yes")
        break
    elif n%7==0:
        print("Yes")
        break
    elif n%11==0:
        print("Yes")
        break
    elif(1):
            i=1
            n = n-4*i
            if n%7==0:
                print("Yes")
                break
            if n<=0:
                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):
answer=0
a=int(input())

for i in range(a):
    for j in range(a):
        sum=i*4+j*7
        if sum==a:
            answer+=1
print(answer)

answer=0
a=int(input())

for i in range(a):
    for j in range(a):
        sum=i*4+j*7
        if sum==a:
            answer+=1
if answer>0:
    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 = False
for i7 in range(20):
    for i4 in range(30):
        if i7 * 7 + i4 * 4 == N:
            frag = True
            print('Yes')
            break
    if flag:
        break

else:
    print('No')

N = int(input())
for i7 in range(20):
    for i4 in range(30):
        if i7 * 7 + i4 * 4 == N:
            print('Yes')
            break
    else:
        continue
    
    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())
T = []
if N%7==0 or N%4==0:
    ans='Yes'
    T.append(ans)
else:
    for i in range(25):
        if (N-4*i)%7==0 and (N-4*i)%7>0:
            ans='Yes'
            T.append(ans)
        elif (N-7*i)%4==0 and (N-7*i)%4>0:
            ans='Yes'
            T.append(ans)
        else:
            ans='No'
            T.append(ans)
if 'Yes' in T:
    print('Yes')
else:
    print('No')

N=int(input())
ans='No'
for n in range(N//4+1):
    if ans=='Yes':
        break
    for m in range(N//7+1):
        if N==4*n+7*m:
            ans='Yes'
            break
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):
N = int(input())
a = N//4
b = N//7

judge = False
for i in range(a):
  for j in range(b):
    if 4*i+7*k == N:
      judge =True
      break
    if 4*i+7*j > N:
      break
  if judge:
    break

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

N = int(input())
a = N//4
b = N//7
 
judge = False
for i in range(a):
  for j in range(b):
    if 4*i+7*j == N:
      judge =True
      break
    if 4*i+7*j > N:
      break
  if judge:
    break
 
if judge:
  print('Yes')
else:
  print('No')

N = int(input())
a = N//4
b = N//7
 
judge = False

for i in range(a):
  for j in range(b):
    if 4*i+7*j == N:
      judge =True
      break
      
    #if 4*i+7*j > N:
    #  break
      
  if judge:
    break
    
if judge:
  print('Yes')
else:
  print('No')

N = int(input())
a = N//4 +1
b = N//7 +1
     
judge = False
for i in range(a):
  for j in range(b):
    if 4*i+7*j == N:
      judge =True
      break
    if 4*i+7*j > N:
      break
  if judge:
    break
     
if judge:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

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())
ans = "No"

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

print(ans)

n = int(input())
c = 4
d = 7

if n % c == 0:
	print("Yes")
	exit()

if n % d == 0:
	print("Yes")
	exit()

while n >= 0:
	if n >= d:
		n = n - d
	elif c <= n and n < d:
		n = n - c
	elif n < c:
		print("No")
		exit()

print("Yes")

N = int(input())
ans = "No"

for i in range(100):
    for j in range(100):
        if i*7+j*4==N:
            ans = "Yes"
            
print (ans)

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())
for i in range(25):
    for j in range(14):
        if n == 4*i + 7*j:
            print("Yes")
            break
else:
    print("No")

n = int(input())
for i in range(25):
    for j in range(14):
        if n == 4*i + 7*j:
            print("Yes")
            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())
if n%11==0 or n%7==0 or n%4==0 or n%11==4 or n%7==4 n%11==7:
    print("Yes")
else:
    print("No")


n=int(input())
a=[]
for x in range(15):
    for y in range(26):
        a.append(x*7+y*4)
if not n in a:
    print("No")
else:
    print("Yes)

n=int(input())
a=[]
for x in range(15):
    for y in range(26):
        a.append(x*7+y*4)
if not n in a:
    print("No")
else:
    print("Yes")


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 = 0
for i in range(15):
  a = n - (7 * i )
  if a % 4 == 0 and a >= 0:
    print("Yes")
else:
  print("No")

N = int(input())
x = 0
c = 0
d = N - 7 * x
while d >= 0:
  if d % 4 == 0:
    c = 1
    break
  else:
    x += 1
if c == 1:
  print("YES")
else:
  print("NO")


n = int(input())
a = 0
for i in range(15):
  a = n - 7*i 
  if a % 4 == 0 and a >= 0:
    print("Yes")
else:
  print("No")
  

n = int(input())
a = 0
for i in range(15):
  a = n - (7*i)
  if a % 4 == 0 and a >= 0:
    print("Yes")
    break
else:
  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())
# x, r = divmod(n, 4+7)
x, r = n//(4+7), n%(4+7)
y = x + r//7
print(n,x,y,r)
print(n,4*x+7*y)
ans = "No"
if x>0 or y>0:
    if n == 4*x + 7*y: ans = "Yes"
print(ans)


n = int(input())
xmax, ymax = n//4, n//7
ok = False
for x in range(0, xmax+1):
    for y in range(0, ymax+1):
        if n == 4*x + 7*y:
            ok = True
            break
    if ok: break
print("Yes" if ok 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())
for i in range(26):
  for j in range(15):
    if 4*i+7*j==n:
      print('Yes')
print('No')

import sys
n=int(input())
for i in range(26):
  for j in range(15):
    if 4*i+7*j==n:
      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())

def do():
    for i in range(0, N, 4):
        for j in range(0, N, 7):
            if i + j == N:
                print("YES")
                return
    print("NO")

do()

N = int(input())

def do():
    for i in range(0, N + 1, 4):
        for j in range(0, N + 1, 7):
            if i + j == N:
                print("Yes")
                return
    print("No")

do()

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+1):
    for j in range(N+1):
        if i*4 + j+7 == N:
            print('Yes')
            break
            exit()
else:
    print('No')

N = int(input())

for i in range(26):
    for j in range(26):
        if i*4 + j+7 == N:
            print('Yes')
            break
            exit()
else:
    print('No')

N = int(input())

for i in range(26):
    for j in range(26):
        if i*4 + j*7 == N:
            print('Yes')
            break
            exit()
else:
    print('No')

import sys
N = int(input())

for i in range(26):
    if (N - i*4) >= 0 and (N - i*4)%7 == 0:
        print('Yes')
        sys.exit()
else:
    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())


ans=False

if n%7==0:
    ans=True


for i in range((int(n/7))):
    if (n-i*7)%4==0:
        ans=True
        

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


n=int(input())
#4
#7
ans=False
if n%7==0:
    ans==True


for i in range(n/7):
    if (n-i*7)%4==0:
        ans=True
        

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


n=int(input())


ans=False

if n%7==0:
    ans==True


for i in range((int(n/7))):
    if (n-i*7)%4==0:
        ans=True
        

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


n=int(input())


ans=False

if n%7==0:
    ans=True


for i in range((int(1+(n/7)))):
    
    if (n-i*7)%4==0:
        ans=True
        

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


Verdicts: Wrong Answer

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())
if n%7 == 0 or n%4 == 0: 
    print("Yes")
    exit()

for i in range(4,101,4):
    for j in range(7,101,7):
        if i*j < 100: break
        if i*j == n:
            print("Yes")
            exit()
print("No")


n = int(input())
for i in range(4,101,4):
    for j in range(7,101,7):
        if i*j == n or i == n or j == n:
            print("Yes")
            exit()
print("No")


n = int(input())
if n%7 == 0 or n%4 == 0: 
    print("Yes")
    exit()

for i in range(4,101,4):
    for j in range(7,101,7):
        if i*j > 100: break
        if i*j == n:
            print("Yes")
            exit()
print("No")


n = int(input())
if n%7 == 0 or n%4 == 0:
    print("Yes")
    exit()

for i in range(4,101,4):
    for j in range(7,101,7):
        if i+j > 100: break
        if i+j == 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())
for i in range(n/4):
    for j in range(n/7):
        if(i*4+j*7==n):
            flag=True

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


n=int(input())
flag=False
for i in range(int(n/4)+1):
    for j in range(int(n/7)+1):
        if(i*4+j*7==n):
            flag=True

if(flag==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())
a = N//4
b = N//7
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == 11:
      print("Yes")
      break
    else:
      print("No")
      break

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

N = int(input())
a = N//4
b = N//7
yes = 0
no = 0
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == N:
      yes = 1
    else:
      no = 1
if yes ==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//7
b = N//4
for i in range(a):
    for j in range(b):
        if 7*i+4*j == N:
            print('Yes')
            exit()
print('No')

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

N = int(input())
a = N//7
b = N//4
for i in range(a+1):
    for j in range(b+1):
        if 7*i+4*j == N:
            print('Yes')
            exit()
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())
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')


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")


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")

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")


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')


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")

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


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


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

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")


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

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')


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')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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):
import sys


def solve(N):
    for i in range(26):
        for j in range(20):
            if 4*i + 7*j == N :
                return('Yes') 
            else:
                return('No')


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys


def solve(K) : #108-A
    x = K//2
    if K%2==0 :
        return x**2
    else :
        y = x+1
        return x*y

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys


def solve(N):
    for i in range(100):
        for j in range(100):
            if 4*i + 7*j==N:
                return('Yes') 
            else:
                return('No')


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys


def solve(N):
    hantei = 0
    for i in range(26):
        for j in range(20):
            if 4*i + 7*j == N :
                hantei = 4*i + 7*j
    if hantei == N :
        return ('Yes')
    else :
        return('No')

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

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())
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())
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):
n = input()
if n % 4 ==0 or n % 7 ==0:
    print('Yes')
    exit()
for i in range(n // 4 + 1):
    for j in range (n // + 1):
        if 4 * i + 7 * == n:
            print('Yes')
            exit()
print('No')

n = input()
if n % 4 ==0 or n % 7 ==0:
    print('Yes')
    exit()
for i in range(n // 4 + 1):
    for j in range (n // + 1):
        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 // + 1):
        if 4 * i + 7 * j == 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 = int(input())

c = 0

ans = 'No'
for i in range(15):
    for j in range(26):
        c = 4 * j + 7 * i
    if n == c:
        ans = 'Yes'

print(ans)

n = int(input())

c = 0

ans = 'No'
for i in range(15):
    for j in range(26):
        c = 4 * j + 7 * i
    if n == c:
        ans = 'Yes'
        break
print(ans)

n = int(input())

c = 0

ans = 'No'
for i in range(15):
    for i in range(26):
        c = 4 * j + 7 * i
    if n == c:
        ans = 'Yes'

print(ans)

n = int(input())

c = 0

ans = 'No'

for i in range(15):
    for j in range(26):
        c = 4 * j + 7 * i
        if n == c:
            ans = 'Yes'
            break
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted