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



max_CA = int(N / 4) + int(N % 4) 
max_CB = int(N / 7) + int(N % 7)

print(f'four:{max_CA}')
print(f'seven:{max_CB}')

flag = False
for i in range(max_CA +1):
    for j in range(max_CB+1):
        sum_C = 4 * i + 7 * j
        if N == sum_C:
            flag = True
            
if flag:
    print('Yes')
else:
    print('No')

N = int(input())



max_CA = int(N / 4) + int(N % 4) 
max_CB = int(N / 7) + int(N % 7)

#print(f'four:{max_CA}')
#print(f'seven:{max_CB}')

flag = False
for i in range(max_CA +1):
    for j in range(max_CB+1):
        sum_C = 4 * i + 7 * j
        if N == sum_C:
            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):
dollar = int(input())

can = False
for cakes in range(int(dollar / 4) + 1):
  for donuts in range(int(dollar /7) + 1):
    price = 4 * cakes + 7 * donuts
    print(cakes, donuts, price, dollar)
    if price == dollar:
      can = True
      break
    elif price > dollar:
      break
  if can == True:
    break
    
print("Yes" if can == True else "No")

dollar = int(input())

can = False
for cakes in range(int(dollar / 4) + 1):
  for donuts in range(int(dollar /7) + 1):
    price = 4 * cakes + 7 * donuts
    if price == dollar:
      can = True
      break
    elif price > dollar:
      break
  if can == True:
    break
    
print("Yes" if can == True 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(1, 26):
    for j in range(1,16):
        if 4 * i + 7*j == n:
            print("Yes")
            break
else:
    print("No")

n = int(input())
tf = False
for i in range(0, 26):
    for j in range(0,16):
        if 4 * i + 7*j == n:
            print("Yes")
            tf = True
            break
    else:
        continue
    break
    
if not tf:
    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):
    for j in range(N):
        if(4*i + 7*j == N):
            ans = "Yes"
            exit()
print(ans)
            

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

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())
ans = "No"
for i in range(N):
    for j in range(N):
        if(4*i + 7*j == N):
            ans = "Yes"
print(ans)
            

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())
print(any([(N - 4*i) % 7 == 0 for i in range(N//4)]))


N = int(input())
print(any([(N - 4*i) % 7 == 0 for i in range(N//4 + 1)]))


N = int(input())
print(any([(N - 4*i) % 7 == 0 for i in range((N+3)//4 + 1)]))


N = int(input())
print("Yes" if any([(N - 4*i) %
                    7 == 0 for i in range((N+3)//4 + 1)]) else "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):
def abc105_b():
    n = int(input())
    for i in range(15):
        for j in range(26):
            if n == (i*7+j*4):
                return "YES"
    return "NO"


print(abc105_b())

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


print(abc105_b())

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):
#!/usr/bin/env python
N = int(input())

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

#!/usr/bin/env python
N = int(input())

for i in range(N//4 + 1):
    if (N - 4*i) % 7 == 0:
        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())

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

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

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

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

Sum = int(input())

r = 0
for i in range(26):
    for k in range(15):
        if 4*i+7*k == Sum:
            r = r +1
        else:
            r = r
if r > 0:
    print("YES")
else:
    print("NO")



Sum = int(input())

r = 0
for i in range(26):
    for k in range(15):
        if 4*i+7*k == Sum:
            r = r +1
        else:
            r = r
if r > 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())
for i in range(n//7 + 1):
    if (n - 7*x) % 4 == 0:
        print('Yes')
        exit()
print('No')

n = int(input())
for i in range(n//7 + 1):
    if (n - 7*i) % 4 == 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())

if N==0 or N > 100:
    print('No')
elif N % 4 != 0 and N % 7 != 0 and (N % 7) % 4 == 0:
    print('No')
else:
    print('Yes')


N = int(input())

if N ==  1 or 2 or 3 or 5 or 6 or 9 or 10 or 13 or 17:
    print('No')
else:
    print('Yes')


N = int(input())

if N == 1 or N == 2 or N == 3 or N == 5 or N == 6 or N == 9 or N == 10 or N == 13 or N == 17:
    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):
if (N % 7) % 4 == 0 or (N % 4) % 7 == 0:
    print("Yes")
else:
    print("No")

import sys
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")
            sys.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())

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


N = int(input())

ans='No'
if N%7==0:
  ans = 'Yes'
elif N%4==0:
  ans = 'Yes'
else:
  for i in range(N//7+1):
    if (N-7*i)%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):
def canbuy(n):
    for i in range(int(100/7)):
        if (n-7*i)%4 == 0:
            return 'Yes'
    return 'No'

n=input()
print(canbuy(n))


def canbuy(n):
    if n%7==0 or n%4==0:
        return 'Yes'
    else:
        if n<4:
            return 'No'
        else:
            if canbuy(n-7)=='Yes':
                return 'Yes'
            else:
                if canbuy(n-4)=='Yes':
                    return 'Yes'
                else:
                    return 'No'

n=input()
print(canbuy(n))


def canbuy(n):
    for i in range(int(100/7)):
        if (n-7*i)>3 and (n-7*i)%4==0:
            return 'Yes'
    return 'No'

n=input()
print(canbuy(n))


def canbuy(n):
    if n%7==0 or n%4==0:
        return 'Yes'
    else:
        if n<4:
            return 'No'
        else:
            if canbuy(n-7)=='Yes':
                return 'Yes'
            else:
                if canbuy(n-4)=='Yes':
                    return 'Yes'
                else:
                    return 'No'

n=int(input())
print(canbuy(n))

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

answer = False
for num_4 in range(n//4+1):
  if (n-num_4*4)%7 == 0:
    answer = True 
    break
  
print(answer)

n = int(input())

answer = False
for num_4 in range(n//4+1):
  if (n-num_4*4)%7 == 0:
    answer = True 
    break

if answer :
  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()) 

CAKE = 4
DONUTS = 7

ans = "No"
for i in range(N//CAKE):
  for j in range(N//DONUTS):
    total = CAKE*i + DONUTS*j
    if total == N:
      ans = "Yes"
      break

print(ans)

N = int(input()) 

CAKE = 4
DONUTS = 7

ans = "No"
for i in range(N//CAKE + 1):
  for j in range(N//DONUTS + 1):
    total = CAKE*i + DONUTS*j
    if total == N:
      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())

donuts=N//7
ans="No"
for i in range(donuts,-1,-1):
  left_price=N-7*i
  if left_price%4==0:
    ans="Yes"
    break

    print(ans)
        

N=int(input())
 
donuts=N//7
ans="No"

for i in range(donuts,-1,-1):
  left_price=N-7*i
  if left_price%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):
d_cnt =(int(x) for x in input().split()) 

if d_cnt//4==0 or d_cnt//7==0 or d_cnt//11:
  print('Yes')
else:
  print('No')

  

N = int(input())
f = False
for i in range(N//4+1):
    for j in range(N//7+1):
        if i*4 + j*7 == N:
            f = True
            break
if f:
    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 * 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):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    flg=0
    for i in range(n//7):
        if (n-i*7)%4==0:
            flg=1
    if flg==1:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    flg=0
    for i in range(n//7+1):
        if (n-i*7)%4==0:
            flg=1
    if flg==1:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    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())
ans = 0
for i in range(n+1):
  for j in range(n+1):
    if 4 * i + 7 * j == n:
      ans += 1
print(ans)

import sys
n = int(input())
for i in range(n+1):
  for j in range(n+1):
    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())
for i in range 26:
  for j in range 14:
    if i+j==N:
      print('Yes')
      break
  else:
    continue
  break
else:
  print('No')
  

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


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

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


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

r = N // 7

for i in range(r+1):
    if (N - 7*i) % 4 == 0:
        print('No')
        break
else:
    print('N0')

N = int(input())

r = N // 7

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


n = int(input())

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

N=int(input())
if N%7==N and not N%4==0:
  print('No')
elif N%4==0 or N%7==0:
  print('Yes')
else:
  A = 'No'
  while N>7:
    N -= 7
    if N%4==0:
      A = 'Yes'
  print(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())

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

n = int(input())
s = 'No'

for i in range(26):
    for j in range(16):
        total = 4*i +7*j
        if total == n:
            s = 'Yes'
            break
    if total ==n:
        break
print(s)

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 (26):
	for j in(16):
  		if j*4+J*7 == N:
      		print("Yes")
        else:
          print("No")

N = int(input())

for i in (26)
	for j in(16)
  		if j*4+J*7 == N:
      		print("Yes")
        else:
          print("No")


N = int(input())

flag = 0

for i in range(26):
    for j in range(16):
      if j*4+j*7 == N:
        flag = 1

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


N = int(input())

flag = 0

for i in range(26):
    for j in range(16):
      if i*4+j*7 == N:
        flag = 1

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


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

n=int(input())
ans="No"
while n>=0:
  if n%4==0:
    ans="Yes"
    break
  else:
    n-=7
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):
N = int(input())

#4*a + 7*b == N ???

counter = 0
for a in range(N//4+1):
  for b in range(N//7+1):
    if 4*a + 7*b == N:
      counter += 1
print(counter)


N = int(input())

#4*a + 7*b == N ???

counter = 0
for a in range(N//4):
  for b in range(N//7):
    if 4*a + 7*b == N:
      counter += 1
print(counter)

N = int(input())

#4*a + 7*b == N ???

counter = 0
for a in range(N//4+1):
  for b in range(N//7+1):
    if 4*a + 7*b == N:
      counter += 1

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

if N % 4 == 0 or N % 7 == 0:
	print('Yes')
else:
	i = N // 7
	for count in range(i):
		temp = N - 7*count
		if temp % 4 == 0:
			print('Yes')
			exit()
	print('No')

N = int(input())

if N % 4 == 0 or N % 7 == 0:
	print('Yes')
else:
	i = N // 7
	for count in range(i):
		temp = N - 7*(count+1)
		if temp % 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):
N = int(input())
for i in range(0, 101):
  for j in range(0, 101):
    if i * 4 + j * 7 = N:
      print("Yes")
      exit()
print("No")

N = int(input())
for i in range(0, 101):
  for j in range(0, 101):
    if i * 4 + j * 7 == 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())
while True:
  if n%4==0:
    print("YES")
    break
  n-=7
  if n<0:
    print("NO")
    break

n=input()
while True:
  if n%4==0:
    print("YES")
    exit()
  n-=7
  if n<0:
    print("NO")
    exit()

n=input()
while True:
  if n%4==0:
    print("YES")
    break
  n-=7
  if n<0:
    print("NO")
    break

n=int(input())
while True:
  if n%4==0:
    print("Yes")
    break
  n-=7
  if n<0:
    print("No")
    break

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

i = 0
j = 0
for i in range(N//4):
    for j in range(N//7):
        if 4 * i + 7 *j == N:
            print('Yes')

print('No')

N = int(input())

i = 0
j = 0
for i in range(N//4+1):
    for j in range(N//7+1):
        if 4 * i + 7 * j == N:
            print('Yes')
            quit()

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())
a=n
b=n
if n%4==0 or n%7==0:
	print("Yes")
	sys.exit()	
for k in range(0,n,4):
	print(k)
	a-=k
	if a%7==0:
		print("Yes")
		sys.exit()
for d in range(0,n,7):
	b-=d
	if b%4==0:
		print("Yes")
		sys.exit()
print("No")

import sys
n=int(input())
a=n
b=n
if n%4==0 or n%7==0:
	print("Yes")
	sys.exit()	
for k in range(1,n,4):
	a-=k
	if a%7==0:
		print("Yes")
		sys.exit()
for d in range(1,n,7):
	b-=d
	if b%4==0:
		print("Yes")
		sys.exit()
print("No")

n=int(input())
ans="No"
a=0

for i in range(15):
  for j in range(26):
    a=7*i+4*j
    if a==n:
      ans="Yes"
      break
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())
for i in range(n//4+1):
    for j in range((n-4*i)//7+1):
        print(4*i, 7*j)
        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-4*i)//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):
def main():
    N = int(input())
    i = 0
    while 4*i <= N:
        j = 0
        while (4*i + 7*j) <=N:
            print(4*i + 7*j)
            if (4*i+7*j == N):
                print('Yes')
                return
            j = j+1
        i = i+1
    print('No')
    return
main()

def main():
    N = int(input())
    i = 0
    while 4*i <= N:
        j = 0
        while (4*i + 7*j) <=N:
            print(4*i + 7*j)
            if (4*i+7*j == N):
                print('Yes')
                return
            j = j+1
        i = i+1
    print('No')
    return
main()

n = int(input())
quotient = n // 4
rep = [4*i for i in range(quotient+1)]
flag = False
while rep[0] <= n:
  if n in rep:
    print('Yes')
    flag = True
    break
  rep = [7+ele for ele in rep]

if not flag:
  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):
import itertools

N = int(input())

if N%4 ==0 or N%7 ==0:
  print('Yes')
  exit()
else:
  i = itertools.product(range(1,N//4),range(1,N//7))

c = [a for a in i]

for i in c:
  if i[0]*4+i[1]*7 == N:
    print('Yes')
    exit()
  else:
    continue

print('No')    
  

N = int(input())

if (N%7)%4 == 0 or (N%4)%7 == 0
  print('Yes')
else:
  print('No')

import itertools

N = int(input())

if N%4 ==0 or N%7 ==0:
  print('Yes')
  exit()
else:
  i = itertools.product(range(N//4),range(N//7))
  
c = [a for a in i]

for i in c:
  if i[0]*4+i[1]*7 == N:
    print('Yes')
    exit()
  else:
    continue

print('No')    
  

import itertools

N = int(input())

if N%4 ==0 or N%7 ==0:
  print('Yes')
  exit()
else:
  i = itertools.product(range(N//4+1),range(N//7+1))
  

c = [a for a in i]
for i in c:
  if i[0]*4+i[1]*7 == N:
    print('Yes')
    exit()
  else:
    continue

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):
def cakes_and_donuts(N=N):
  max_7_num = N//7
  max_4_num = N//4
  for i in range(max_7_num):
    for j in range(max_4_num):
      if 7*(i+1) + 4*(j+1) == N:
        return 'Yes'
  return 'No'

N = int(input())
s = cakes_and_donuts(N)
print(''.format(s))

N = int(input())

def cakes_and_donuts(N=N):
  max_7_num = N//7
  max_4_num = N//4
  for i in range(max_7_num):
    for j in range(max_4_num):
      if 7*(i+1) + 4*(j+1) == N:
        print(i+1, j+1)
        return 'Yes'
  return 'No'

s = cakes_and_donuts(N)
print('{}'.format(s))

def cakes_and_donuts(N=N):
  max_7_num = N//7
  max_4_num = N//4
  for i in range(max_7_num):
    for j in range(max_4_num):
      if 7*(i+1) + 4*(j+1) == N:
        return 'Yes'
  return 'No'

N = int(input())
cakes_and_donuts(N)


N = int(input())

def cakes_and_donuts(N=N):
  if N % 4 ==0 or N % 7 ==0:
    return 'Yes'  
  max_7_num = N//7
  max_4_num = N//4
  for i in range(max_7_num):
    for j in range(max_4_num):
      if 7*(i+1) + 4*(j+1) == N:
        return 'Yes'
  return 'No'

s = cakes_and_donuts(N)
print('{}'.format(s))

Verdicts: 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):
def check_pay(N):
    for i in range(0,int(N/4)):
        for j in range(0,int(N/7)):
            if i*4+j*7 == N:
                print("Yes")
                return
    print("No")
check_pay(int(input()))


def check_pay(N):
    for i in range(int(N/4)+1):
        for j in range(0,int(N/7)+1):
            if i*4+j*7 == N:
                print("Yes")
                return
    print("No")
check_pay(int(input()))


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 n4 in range(N//4+1):
  if (N-n4)%7 == 0:
    print("Yes")
    exit()
print("No")

N = int(input())
for n4 in range(N//4+1):
  if (N-n4*4)%7 == 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):
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())

flg = False

for i in range(25):
    for j in range(15):
        if 4 * i + 7 * j == N:
            flg = True
            continue
    if flg:
        break

print("Yes" if flg 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())
cnt = 0
for i in range(int((100 + 4) / 4)):
    for j in range(int((100 + 7) / 7)):
        if i * 4 + j * 7 == n:
            cnt += 1
if cnt > 0:
    print(cnt)
else:
    print("No")


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


n = int(input())
cnt = 0
for i in range(int((100 + 4) / 4)):
    for j in range(int((100 + 7) / 7)):
        if i * 4 + j * 7 == n:
            cnt += 1
if cnt > 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):
#B
N=int(input())
A=[4,8,12,16,20,24,7,14,21,11,19,25]
if N>=28:
    print('YES')
elif N in A:
    print('YES')
else:
    print('NO')

#B
N=int(input())
A=[4,8,12,16,20,24,7,14,21,11,19,25,15,23,27]
if N>=28:
    print('Yes')
elif N in A:
    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())
if (n%7)%4==0:
  print('Yes')
  break
elif (n%4)%7==0:
  print('Yes')
  break
else:
  print('No')

n = int(input())
kouho = []
for i in range(26):
    for j in range(15):
        kouho.append(i*4+j*7)
if n in kouho:
    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())

cake = n // 4

for i in range(cake + 1):
  cake_money = i * 4
  donut_money = n - cake_money
  if donut_money <= 0 and donut_money % 7 == 0:
    print("Yes")
    break
else:
  print("No")

n = int(input())

cake = n // 4

for i in range(cake + 1):
  cake_money = i * 4
  donut_money = n - cake_money
  if donut_money >= 0 and donut_money % 7 == 0:
    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 = map(int, input())
if n >= 20 or n % 7==0 or n%4==0 or n == 19 or n == 18 or n == 15 or n == 11 or n == 1:
    print("Yes")
else:
    print("No")

n = input()
if n >= 20 or n % 7==0 or n%4==0 or n == 19 or n == 18 or n == 15 or n == 11:
    print("Yes")
else:
    print("No")

n = input()
n = int(n)
if n >= 20 or n % 7==0 or n%4==0 or n == 19 or n == 18 or n == 15 or n == 11:
    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())
for i in range(100//4):
  for j in range((100-i*4)//7):
    if n == i*4 +j*7:
      print("Yes")
      break
else:
  print("No")

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

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

a = int(input())
if a > 3:
	if a % 4 == 0 or a % 7 == 0 or a % 7 == 4 or a % 7 == 1 or a % 4 == 3:
      print("Yes")
    else:
      print("No")
else:
  print("No")
  
  
  

a = int(input())
for i in range(a//4+1):
    for j in range(a//7+1):
        if i * 4 + j * 7 == a:
            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())
X = N // 4
Z = N // 7
Y = sum(4*a + 7*b == N for a in range(X) for b in range(Z))
if (Y != 0):
  print("Yes")
else:
  print("No")

N = int(input())
for i in range(30):
    for j in range(20):
        if(N == 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 = int(input())
if 1 <= N <= 100:
    for i in range(0,25):
        for v in range(0,14):
            if (4 * i) + (7 * v) == N:
                print('Yes')
                break
    else:
        print('No')
else:
    print('No')

N = int(input())
if 1 <= N <= 100:
    for i in range(0,25):
        for v in range(0,14):
            if (4 * i) + (7 * v) == N:
                print('Yes')
                break
            break
    else:
        print('No')
else:
    print('No')

N = int(input())
if 1 <= N <= 100:
    for i in range(0,25):
        for v in range(0,14):
            if (4 * i) + (7 * v) == N:
                print('Yes')
            break
    else:
        print('No')
else:
    print('No')

N = int(input())
if 1 <= N <= 100:
    for i in range(0,25):
        for v in range(0,14):
            if (4 * i) + (7 * v) == N:
                print('Yes')
                break
        if (4 * i) + (7 * v) == N:
            break
    else:
        print('No')
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())

if n % 4 == 0 or n % 7 == 0
    print('Yes')

elif (n % 7) % 4 == 0:
    print('Yes')

else:
    print('No')

n = int(input())

ans = []
for i in range(n//4+1):
    for j in range(n//7+1):
        if 4*i+7*j <= n:
            ans.append(4*i+7*j)
if ans.count(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):
n=int(input())

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


n=int(input())

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

n=int(input())

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


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 = int(input())
if n%4 ==0　or n%7 == 0:
  print('Yes')
  exit()
 
for _ in range(n//7):
  n -=7
if n == 4:
  print('Yes')
else:
  print('No')

n = int(input())
if n%4 == 0　or n%7 == 0:
  print('Yes')
  exit()
 
for _ in range(n//7):
  n -=7
if n == 4:
  print('Yes')
else:
  print('No')

n = int(input())
a = n//4
b = n//7
ans = False

for i in range(a+1):
  for j in range(b+1):
    if i*4+j*7 == n:
      ans = True

if ans == True:
  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):
buy = [false]*1000
buy[0] = true
for i in range(100):
  if buy[i]:
    buy[i+4] = true
    buy[i+7] = true
    
n = int(input())
if buy[n]:
  print("Yes")
else:
  print("No")

buy = [False]*1000
buy[0] = True
for i in range(100):
  if buy[i]:
    buy[i+4] = True
    buy[i+7] = True
    
n = int(input())
if buy[n]:
  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())
while(N>0):
  if N%4 == 0:
    print("Yes")
    return
  else:
    N = N - 7
if N ==0:
  print("Yes")
else:
  print("No")

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


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


N = int(input())
while(N>0):
  if N%4 == 0:
    print('Yes')
    return None
  else:
    N = N - 7
if N ==0:
  print('Yes')
else:
  print('No')


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


N = int(input())
if N % 7 == 0:
  print('Yes')
else:
  while(N>0):
    if N%4 == 0:
      print('Yes')
      break
    else:
      N = N - 7
  else:
    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):
import sys

N = int(input())

for i in range(15):
  if (N - 7 * i) % 4 == 0 and (N - 7 * i) / 4 >= 0:
    print("Yes")
    print(int((N - 7 * i) / 4), i)
    sys.exit()
    
print("No")

import sys

N = int(input())

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

n=int(input())
a=-(-n//4)
ans = 'No'
if n%4==0:
    ans = 'Yes'
else:
    for i in range(a):
        if (n-4*i)%7==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())

lst = []

for i in range(1,26):
    for j in range(1,15):
        if i*4+j*7 >= 100:
            lst.append(i*4+j*7)

if N in lst:
    print("Yes")
else:
    print("No")


N = int(input())

lst = []

for i in range(26):
    for j in range(15):
        if i*4+j*7 > 100:
            break
        else:
            lst.append(i*4+j*7)


if N in lst:
    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())
div4 = int(N/4) + 1
div7 = int(N/7) + 1

flg = False
for i in range(div4):
  sum = i * 4
  for t in range(div7):
    sum += t * 7
    if(N == sum):
      flg = True
      
      
if(flg):
  print("YES")
else:
  print("NO")

N = int(input())
div4 = int(N/4) + 1
div7 = int(N/7) + 1

flg = False
for i in range(div4):
  sum = i * 4
  for t in range(div7):
    sum += t * 7
    if(N == sum):
      flg = True
      
      
if(flg):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted