Problem:


Score: 200 points

Problem Statement

M-kun has the following three cards:

A red card with the integer A.

A green card with the integer B.

A blue card with the integer C.

He is a genius magician who can do the following operation at most K times:

Choose one of the three cards and multiply the written integer by 2.

His magic is successful if both of the following conditions are satisfied after the operations:

The integer on the green card is strictly greater than the integer on the red card.

The integer on the blue card is strictly greater than the integer on the green card.

Determine whether the magic can be successful.

Constraints

1 \leq A, B, C \leq 7

1 \leq K \leq 7

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C
K

Output

If the magic can be successful, print Yes; otherwise, print No.

Sample Input 1

7 2 5
3

Sample Output 1

Yes

The magic will be successful if, for example, he does the following operations:

First, choose the blue card. The integers on the red, green, and blue cards are now 7, 2, and 10, respectively.

Second, choose the green card. The integers on the red, green, and blue cards are now 7, 4, and 10, respectively.

Third, choose the green card. The integers on the red, green, and blue cards are now 7, 8, and 10, respectively.

Sample Input 2

7 4 2
3

Sample Output 2

No

He has no way to succeed in the magic with at most three operations.



Sample input:
7 2 5
3


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
N = K
STOP1 = False
STOP2 = False
for i in range(K):
    if B < A and N>0:
        N-=1
        B*=2
for i in range(N):
    if C < B:
        C*=2
if B>=A and C>=B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C=list(map(int,input().split()))
K=int(input())


for i in range(K):
    if A>=B:
        B=2*B
    elif B>=C:
        C=2*C
    else:
        print('Yes')
        break
    
if (A>=B or B>=C) or (A>=B and B>=C):
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
k=int(input())
if (a < b and b < c):
    print("Yes")
    exit()
else:
    for i in range(k):
        if (a > b):
            b *= 2
        elif (b > c):
            c *= 2
        elif (a > c):
            c *= 2
if (a < b and b < c):
    print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
import os
import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from io import BytesIO, IOBase
from itertools import (
    accumulate, combinations, combinations_with_replacement, groupby,
    permutations, product)
from math import (
    acos, asin, atan, ceil, cos, degrees, factorial, hypot, log2, pi, radians,
    sin, sqrt, tan)
from operator import itemgetter, mul
from string import ascii_lowercase, ascii_uppercase, digits


def inp():
    return(int(input()))


def inlist():
    return(list(map(int, input().split())))


def instr():
    s = input()
    return(list(s[:len(s)]))


def invr():
    return(map(int, input().split()))


def main():
    red, green, blue = invr()
    k = inp()
    while green < red and k > 0:
        green *= 2
        k -= 1
    while blue < green and k > 0:
        blue *= 2
        k -= 1
    if blue > green and green > red:
        print("Yes")
    else:
        print("No")


# region fastio
BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
def input(): return sys.stdin.readline().rstrip("\r\n")

# endregion


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
r,g,b=map(int,input().split())
k=int(input())
flag="No"
for i in range(k):
	if b>g and g>r:
		flag="Yes"
		break
	if r<=b and b<=g:
		r*=2
		b*=2
	elif b<=r and r<=g:
		r*=2
		b*=2
	elif b<=g and r>=g:
		g*=2
		b*=2
	elif g<=r and r<=b:
		g*=2
		b*=2
	elif g<=b and b<=r:
		g*=2
		b*=2
	# print(r,g,b)
if b>g and g>r:
	flag="Yes"
print(flag)

Submission status: Wrong Answer

Solution code:
A, B, C = input().split()
A, B, C = [int(A), int(B), int(C)]
K = int(input())

for i in range(K):
    if(B > C or A > C):
        C = C * 2
    elif(A > B):
        B = B * 2


if(C > B > A):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
    b*=2
    i+=1
  

while b>=c:
        c*=2
        i+=1

if a<b and b<c:
    print("Yse")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
K = int(input())
j=0
for i in range(1,K+1):
    b *=2
    print(f'b:{b}')
    print(f'i:{i}')
    if b-a>0:
        print(i)
        j = K-i
        break
if b-a<=0:
    print('No')
    exit()
if c*2*j-b >0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
A_temp = A
B_temp = B
C_temp = C
K = int(input())

count = 0
index = 0

for i in range(1, K + 1):
    B = B * 2
    if B > A and C > B:
        index = 1
        break
B = B_temp

for i in range(1, K + 1):
    C = C * 2
    if B > A and C > B:
        index = 1
        break
C = C_temp

for i in range(1, K):
    B = B * 2 * i
    C = C * 2 * (K - i)
    if B > A and C > B:
        index = 1
        break
    B = B_temp
    C = C_temp
B = B_temp
C = C_temp

for i in range(1, K):
    B = B * 2 * (K - i)
    C = C * 2 * i
    if B > A and C > B:
        index = 1
        break
    B = B_temp
    C = C_temp


if index == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
k = int(input())

for _ in range(k):
    if l[0] > l[1]:
        l[1] *= 2
    elif l[1] > l[2]:
        l[2] *= 2
    
    if l[0] < l[1] and l[1] < l[2]:
        print('Yes')
        exit()

print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
N = K
STOP1 = False
STOP2 = False
for i in range(K):
    if B < A and N>0:
        N-=1
        B*=2
for i in range(N):
    if C < B:
        C*=2
if B>A and C>B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
    R, G, B = map(int, input().split())
    K = int(input())
    for i in range(K):
        if B > G > R:
            print("Yes")
            exit()
        
        if G * 2 * (i+1) > R:
            if B * 2 * (K - (i+1)) > G * 2 * (i+1):
                print("Yes")
                exit()
            else:
                print("NO")
                exit()
    print("No")
if __name__  == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

ans = 0
for x in range(1,k+1):
    for y in range(1,k+1-x):
        for z in range(1,k+1-x-y):
            if b**2*y > a**2*x and c**2*z > b**2*y:
                ans += 1

if ans >= 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
    b*=2
    i+=1
  

while b>=c:
        c*=2
        i+=1

if a<b and b<c and i<k:
    print("Yse")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))
k = int(input())


for i in range(k):
    if b > c:
        c *= 2
    elif a > b:
        b *= 2
    elif a > c:
        c *= 2
        
if a < b < c:
    print("Yes")
else:    
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C=(input().split())
K = int(input())
A = int(A)
B = int(B)
C = int(C)
for i in range(K):
    print(i)
    if B > C or C == B:
        C = C*2
    elif A > B or B == A:
        B = B*2
if A < B and B < C:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
k = int(input())
while(b<a and k):
	b*=2
	k-=1
while(c<b and k):
	c*=2
	k-=1
if(a<b and b<c):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
R, G, B = list(map(int, input().split()))
K = int(input())

def f(R,G,B):
  if R<G and G<B:
    return 1
  elif R<G:
    return 2
  else:
    return 0

count = 0
fl = 0

if f(R,G,B) == 1:
  print("Yes")
  fl = 1
elif f(R,G,B) == 2:
  while count < K:
    B = B*2
    if f(R,G,B)==1:
      print("Yes")
      count = K
      fl = 1
    count += 1
else:
  while count < K:
    G = G*2
    if f(R,G,B) == 2:
      while count < K:
        B = B*2
        if f(R,G,B)==1:
          print("Yes")
          count = K
          fl = 1
        count += 1
    count += 1
if fl == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = list(map(int, input().split(' ')))
K = int(input())
cnt = 0
flg = 0
while cnt < K:

  if B <= A:
    if B <= 7:
      B *= 2
  elif C <= B:
    if C <= 7:
      C *= 2
  cnt += 1

  if A < B < C:
    flg = 1
    break

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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int, input().split())
K = int(input())
count = 0
for x in range(K):
    B = B * 2
    count = count + 1
    if B > A:
        break
for y in range(K-count):
    C=C*2
    if C>B:
        break
if C>B>A:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = input().rstrip().split(" ")
A,B,C = map(int, a)         #A red, B green, C blue
card = [A, B, C]

#blue > green > red
K = int(input())

f = False
for i in range(1,K + 1):
    for j in range(1,K - i + 1):
        for k in range(1,K - i - j + 1):
            A = A * 2 * i
            B = B * 2 * j
            C = C * 2 * k
            
            if C > B and B > A:
                f = True
                break

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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
if B <= A :
    while B < A :
        B = B*2 
        cnt += 1
        break
    if C*(2**(K-cnt)) > B:
        print('Yes')
    else :
        print('No')
elif B > A :
    if C*(2**K) > B :
        print('Yes')
    elif C*(2**K) <= B:
        print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))
k = int(input())
while k != 0:
    if b < a:
        b *= 2
    elif c < b:
        c *= 2
    else:
        break
    k -= 1
if (b > a) and (c > b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
for _ in range(K):
	if A>=B:
		B *= 2
		cnt += 1
	else:
		break

for _ in range(K-cnt):
	if B>=C:
		C *= 2
	else:
		break
print(cnt)

if (A<B) and (B<C):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
A,B,C=list(map(int,input().split()))
K=int(input())


for i in range(K):
    if A>=B:
        B=2*B
    elif B>=C:
        C=2*C
    else:
        print('Yes')
        break
    
if A>=B or B>=C:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

for i in range(k):
  if b < a:
    b = b * 2
  elif c < b:
    c = c * 2
  else:
    pass

if (a < b) & (b < c):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int, input().split()))
k = int(input())

n1=(a) // b +1
n1=(n1+2-1)//2

b2 = b*(2**n1)

n2=(b2) // c +1
n2=(n2+2-1)//2

if n1+n2<=k:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main():
    a, b, c = list(map(int, input().split()))
    k = int(input())
    if b == 1 or c == 1:
        print('No')
        return
    # count = 0
    # while count < k:
    #     if b <= a:
    #         b *= 2
    #         count += 1
    #         continue
    #     elif c <= b:
    #         c *= 2
    #         count += 1
    #         continue
    #     else:
    #         break
    for i in range(k):
        if b <= a:
            b *= 2
            continue
        elif b > a and c <= b:
            c *= 2
            continue
        else:
            break
    if a < b and b < c:
        print('Yes')
    else:
        print('No')

main()

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
k = int(input())

for i in range(k):
  while a >= b:
    b *= 2
    i += 1
    while b >= c:
      c *=2
      i += 1

if a<b and b<c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

A,B,C = map(int,input().split())
K = int(input())

flag = False
for i in range(K):
    if A>B:
        B *= 2
        continue
    else:
        C *= 2
        continue

    if A<B and B<C:
        print("Yes")
        flag=True
        break

        
if flag == False:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c= map(int,input().split())
k=int(input())
if b+c==a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

for i in range(k):
    if b < a:
        b *= 2
    elif c < b:
        c *= 2

if b > a and c > b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

for i in range(k-1):
  if b < a:
    b = b * 2
  elif c < b:
    c = c * 2
  else:
    pass

if (a < b) & (b < c):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
K=int(input())
flag = 0
for k in range(K):
    if B*(k+1)*2>A:
        newK = K - k
        for newk in range(newK):
            if C * (k + 1) * 2 > B:
                print('Yes')
                flag=1
                break
        break

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

Submission status: Wrong Answer

Solution code:
r,g,b = map(int,input().split())
k = int(input())
#青＞緑＞赤
for i in range(k):
    if g<r:
        g *= 2
    elif b<g:
        b *= 2
    
    if b>g and g>r:
        break

if b>g and g>r:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
if c>b and b>a:
    print("Yes")
else:
    m=max(a,b)
    if c<=m:
        while(c<=m and k>0):
            c=c*2
            k-=1
    if b<=a:
        while(b<=a and k>0 and 2*b<=c):
            b=b*2
            k-=1
    m=max(a,b)
    if c<=m:
        while(c<=m and k>0):
            c=c*2
            k-=1
   # print(a,b,c)
    if c>b and b>a:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
if B <= A :
    while B < A :
        B = B*2 
        cnt += 1
        break
    if C*(2**(K-cnt)) > B:
        print('Yes')
    else :
        print('No')
elif B > A :
    if C*(2**K) > B :
        print('Yes')
    else :
        print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

ans = 0
for x in range(1,k+1):
    for y in range(1,k+1):
        for z in range(1,k+1):
            if b**2*y > a**2*x and c**2*z > b**2*y:
                ans += 1

if ans >= 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
n = int(input())

for x in range(n):
    if a[0] > a[1]:
        a[1] = a[1]*2
    elif a[2] < a[1]:
        a[2] = a[2]*2

if a[1] > a[0] and a[2] > a[1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())

for _ in range(K):
    if A <= B <= C:
        C *=2
    elif C <= A <= B:
        C *=2
    elif B <= A <= C:
        B *=2
    elif C <= B <= A:
        C *=2
    elif A <= C <= B:
        C *= 2

if A < B < C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
R, G, B = list(map(int, input().split()))
K = int(input())

def f(R,G,B):
  if R<G and G<B:
    return 1
  elif R<G:
    return 2
  else:
    return 0

count = 0
fl = 0

if f(R,G,B) == 1:
  print("Yes")
  fl = 1
else:
  while count < K-1:
    G = G*2
    if f(R,G,B) == 2:
      while count < K-1:
        B = B*2
        if f(R,G,B)==1:
          print("Yes")
          count = K
          fl = 1
        count += 1
    count += 1
if fl == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())

if c>b and b>a:
    print('Yes')

for i in range(k):
    if a>c:
        c=c*2
    if a>c:
        c=c*2
    if a<c and b<a:
        b=b*2
    if a<c and a>b:
        b=b*2
    
if c>b and b>a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
def main():
    R, G, B = map(int, input().split())
    K = int(input())
    for i in range(K):
        if B > G > R:
            print("Yes")
            exit()
        if G * 2 * (i+1) > R:
            if B * 2 * (K - (i+1)) > G * 2 * (i+1):
                print("Yes")
                exit()
    print("No")
if __name__  == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
    b*=2
    i+=1
    if i>=k:
        break

if i<k:
    while b>=c:
        c*=2
        i+=1
        if i>=k:
            break

if a<b and b<c and i<=k:
    print("Yse")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = list(map(int, input().split(' ')))
K = int(input())
cnt = 0
while cnt < K:

  if B <= A:
    if B <= 7:
      B *= 2
  elif C <= B:
    if C <= 7:
      C *= 2
  cnt += 1

if A < B < C:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import math
A, B, C = list(map(int, input().split()))
K = int(input())
#A, B, C = [7, 2, 5]
#K = 3

i = math.ceil(math.log2((A+1)/B))
K -= i
B = B * (2 ** i)
j = math.ceil(math.log2((B+1)/C))
K -= j
C = C * (2 ** j)
if K >= 0 and A<B and B < C:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:

a,b,c = map(int, input().split())
k = int(input())
#print(a,b,c,k)

if b < a:
    y = (a//b)+1
    b = b * y
elif b == a:
    y = 1
    b = b * 2
else:
    y = 0

if c < b:
    x = (b//c)+1
elif c == b:
    x = 1
else:
    x = 0

if b < a:
    y = (a//b)+1
elif b == a:
    y = 1
else:
    y = 0

if (x+y) <= k:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys
A, B, C = map(int,input().split())
k = int(input())
count=0
for i in range(k):
    if A>=B:
        count+=1
        B=B*2
    if count>k:
        print('No')
        sys.exit()

for i in range(k):
    if B>=C:
        count+=1
        C=C*2
    if count>k:
        print('No')
        sys.exit()

print('Yes')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
    if A > C:
        C = C * 2
        K -= 1
if K > 0:
    for i in range(K):
        if A > B:
            B = B * 2
            K -= 1
        if B >= C:
            if K > 0:
                C = C * 2
            exit

if A < B and C > B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
while K != 0:
  if A >= B:
    B *= 2
  elif B >= C:
    C *= 2
  K -= 1

if A < B < C:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A, B, C = list(map(int, input().split()))
K = int(input())


A_l  = [2**(i+1)*A for i in range(K)]
B_l  = [2**(i+1)*B for i in range(K)]
C_l  = [2**(i+1)*C for i in range(K)]

res = 0
for l, c in enumerate(C_l):
    for m, b in enumerate(B_l):
        for n, a in enumerate(A_l):
            if a < b and b < c:
                if l + m + n <= K:
                    print('Yes')
                    res += 1
                    break


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

Submission status: Wrong Answer

Solution code:
def resolve():
    a, b, c = map(int, input().split())
    k = int(input())
    for _ in range(k):
        if b < a:
            b *= 2
        if b > a and c < b:
            c *= 2
    if a < b < c:
        print("Yes")
    else:
        print("No")
resolve()

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())

while K > 0:
    if B < A:
        B *= 2
    if C < B:
        C *= 2
    K -= 1
if B > A and C > B:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
c = c * 2 ** k

i = 1
if a < b:
  if b < c:
    print("Yes")
  else:
    print("No")
else:
  while i <= k:
    if a < i * b and i * b < c:
      print("Yes")
      break
    else:
      b = b * 2
      i += 1
  if i > k:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())

def yes_no(A, B, C, K):
    for i in range(K + 1):
        for j in range(K + 1 - i):
            if C * 2 * (K - i - j) > B * 2 * i and B * 2 * i > A * 2 * j:
                return "Yes"
                break

def main():
    ans = yes_no(A, B, C, K)
    if ans == None:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math
A, B, C = list(map(int, input().split()))
K = int(input())
#A, B, C = [7, 2, 5]
#K = 3

i = math.ceil(math.log2((A+1)/B))
K -= i
B = B * (2 ** i)
j = math.ceil(math.log2((B+1)/C))
K -= j
C = C * (2 ** j)
if K >= 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
c = c * 2 ** k

i = 1
if a < b:
  if b < c:
    print("Yes")
  else:
    print("No")
else:
  while i <= k:
    if a < i * b and i * b < c:
      print("Yes")
      break
    else:
      b = b * 2
      i += 1
  if i > k:
    print("No")

print(a, b, c, i)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
r,g,b= a[0],a[1],a[2]
k=int(input())
m=0
for i in range(k):
    if g>r:
        break
    g*=2
    m+=1
d = k -m
b=b*(2**d)
print(r,g,b,i)
if b>g and g >r:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

A,B,C = map(int,input().split())
K = int(input())

flag = False
for i in range(K):
    if A>B:
        B *= 2
    else:
        C *= 2

    if A<B and B<C:
        print("Yes")
        flag=True
        break
    
    print(A,B,C)
        
if flag == False:
    print("No")

Submission status: Wrong Answer

Solution code:
n=list(map(int,input().strip().split()))
k=int(input())
k-=1
n=n[::-1]
c=0
while(k>=0):
  n[c]=n[c]*2
  if(c<2):
    c+=1
  else:
    c=0
  k-=1
if(n[0]>n[1]>n[2]):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
for i in range(0,k+1):
    asw=False
    for j in range(0,k+1):
        if i+j<=k and a<b**(i+1) and b**(i+1)< c**(j+1):
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = list(map(int, input().split(' ')))
K = int(input())
cnt = 0
while cnt < K:

  if B <= A:
    if B < 7:
      B *= 2
  elif C <= B:
    if C < 7:
      C *= 2
  cnt += 1

if A < B < C:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int, input().split())
K = int(input())
bc = 0
cc = 0
for i in range(K):
    if A < B:
        break
    B = B * 2
    bc += 1
# print(bc)
# print(cc)
if bc > K:
    print("No")
    exit()
elif bc == K:
    if B < C:
        print("Yes")
        exit()
    else:
        print("No")
        exit()
for j in range(K):
  
    if B < C:
        break        
    C = C * 2
    cc += 1

# print(bc)
# print(cc)

if bc + cc <= K:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
k = int(input())
key = 0

for i in range(0,k+1):
    if i == 0:
        cc = c
    else:
        cc = c*i*2
    
    if k-i == 0:
        bb = b
    else:
        bb = b*(k-i)*2
    
    if cc > bb and bb > a:
        key = 1
        break

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())

ans = 0
for x in range(k+1):
    for y in range(k+1):
        for z in range(k+1):
            if b**2*y > a**2*x and c**2*z > b**2*y:
                ans += 1

if ans >= 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
count = 0

while count < K:
    if C < B:
        C = C * 2
        count += 1
    elif B < A:
        B = B * 2
        count += 1
    else:
        count += 1

if C > B and B > A:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
for _ in range(K):
	if A>B:
		B *= 2
		cnt += 1
	else:
		break

for _ in range(K-cnt):
	if B>C:
		C *= 2
	else:
		break

if (A<B) and (B<C):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
import sys

A , B , C = map(int,input().split())
K = int(input())

for i in range(K):
    if B >= A :
        B *= 2
    else:
        C *= 2
    if B > A :
        if C > B:
            print("Yes")
            sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())

def yes_no(A, B, C, K):
    for i in range(K + 1):
        for j in range(K + 1 - i):
            if C * 2 * (K + 1 - i - j) > B * 2 * i and B * 2 * i > A * 2 * j:
                return "Yes"
                break

def main():
    ans = yes_no(A, B, C, K)
    if ans == None:
        print("No")
    else:
        print("Yes")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
k = int(input())

for i in range(k):
  while a > b:
    b *= 2
    i += 1
  while b > c:
    c *=2
    i += 1

if a<b and b<c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import random

def Magic2():
    
    num = list(map(int,input().split()))

    count = int(input())

    for i in range(count):
        if num[0] > num[1]:
            num[1] = 2*num[1]
            
        elif num[1] > num[2]:
            num[2] = 2*num[2]
        
        else:
            num[2] = 2*num[2]
            
        
    if num[0] < num[1] and num[1] < num[2]:
        print('Yes')
        
    else:
        print('No')
        

if __name__ == '__main__':
    Magic2()

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
if 2*a<= b <= c or a<= 2*b <=c or a<= b< 2*c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

A , B , C = map(int,input().split())
K = int(input())

for i in range(K):
    if B >= A :
        B *= 2
    else:
        C *= 2
    if B > A :
        print(A , B , C)
        if C > B:
            print("Yes")
            sys.exit()
print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
k=int(input())

for i in range(k):
    if c<=a and c<=b:
        c=2*c
    elif b<=a:
        b=2*b
    else:
        pass

if c > b and b > a and c >a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
r, g, b = map(int, input().split())
op = int(input())
while op > 0 and g < r:
    g *= 2
    op -= 1
while op > 0 and b < g:
    b *= 2
    op -=1
# print(r,g,b)
if r < g < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def countup(a, b):
    count = 0
    if a < b:
        return count
    else:
        while a > b:
            b *= 2
            count += 1
        return count


A, B, C = map(int, input().split())
K = int(input())

count = countup(A, B)
B_ = B * (2 ** count)
count += countup(B_, C)


if count <= K:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
n = 0
if a+1 > b:
    i = 1
    while b*(2**i) < a:
        i += 1
    n += i
    #print(n,i)
if a+2 > c:
    i = 1
    while c*(2**i) < a+1:
        i += 1
    n += i
    #print(n,i)

if k >= n:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input().rstrip().split(" ")
A,B,C = map(int, a)         #A red, B green, C blue
card = [A, B, C]

#blue > green > red
K = int(input())

f = False
for i in range(1,K + 1):
    for j in range(1,K + 1):
        for k in range(1,K + 1):
            A = A * 2 * i
            B = B * 2 * j
            C = C * 2 * k
            
            if C > B and B > A:
                f = True
                break

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

Submission status: Wrong Answer

Solution code:
A,B, C= list(map(int,input().split()))
K = int(input())

for i in range((K)):
    if(B>C):
        C=C*2
    elif(A>B):
        B=B*2
    
if (C>B >A):
     print('Yes')
else:
     print('No')

Submission status: Wrong Answer

Solution code:
A, B, C, K = 2, 4, 3, 4

a = 0
for i in range(K):
  if C > B and B > A:
    print("Yes")
    a = 1
  else:
    if A <= B:
      B = 2*B
      K = K+1
    elif C <= B:
      C = 2*C
      K = K+1
 
if a == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
k = int(input())

for i in range(k):

    if b < a:
        b = b*2
    elif b > c:
        c = c*2

if b > a and c > b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
if c>a/(2**k):
	for x in range(k+1):
		if b>a/(2**x):
			break
	else:
		print("No")
	y=k-x
	if c>b/(2**y):
		print("Yes")
	else: print("No")
else:
		print("Yes")