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())
for i in range(K):
    for j in range(K):
        for k in range(K):
            if i + j + k <= K:
                D = A * 2 ** i
                E = B * 2 ** j
                F = C * 2 ** k
                if D < E < F:
                    print('Yes')
                    exit()
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):
            b=b*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 = input().split()
A, B, C = [int(A), int(B), int(C)]
K = int(input())

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

    if(C > B > A):
        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):
    for j in range(1,K):
        for k in range(1,K):
            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())

ans = 0
for x in range(k):
    for y in range(k):
        for z in range(k):
            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:
"""
AtCoder :: M-Solutions Programming Contest 2020 :: Magic 2
https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b
"""
import sys


def solve(red, green, blue, K):
    """Solve puzzle."""
    # 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.
    for _ in range(K):
        if green > red and blue > green:
            return True

        if red > green:
            green *= 2
        else:
            blue *= 2

    return green > red and blue > green


def main():
    """Main program."""
    red, green, blue = (int(i) for i in sys.stdin.readline().split())
    K = int(sys.stdin.readline())
    if solve(red, green, blue, K):
        print('Yes')
    else:
        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 i < k:
    if a >= b:
        b *= 2
    elif b >= c:
        c *= 2
    i += 1
print(a,b,c)
if a < b < c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import math

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

powB = int(math.log2(A/B)) + 1
B *= 2**powB

powC = int(math.log2(B/C)) + 1
C *= 2**powC

if (powB + powC) <= K:
    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

for _ in range(K-cnt):
	if B>C:
		C *= 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())
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
  #  print(a,b,c)
    if c>b and b>a:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
import random
data = list(map(int, input().split()))
K = int(input())
for i in range(K):
    l = [0, 1, 2]
    num = random.choice(l)
    data[num] = data[num]*2
    if data[1] > data[0] and data[2] > data[1]:
        print("yes")
        exit()
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 and G>B:
    return 2
  elif R>G:
    return 3
  else:
    return 0


count = 0
flag = 0
if f(R,G,B) == 1:
  print("Yes")
  flag = 1
elif f(R,G,B) == 2:
  while count < K-1:
    B = B*2
    if f(R,G,B)==1:
      print("Yes")
      count = K
      flag = 1
    count += 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
          flag = 1
        count += 1
    count += 1
if flag == 0:
  print("No")

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()
for i in range(K):
  if C < B and A < C:
    C = C * 2
    if A < B and B < C:
      print('Yes')
      exit()
  elif B < A and A < C:
    B = B * 2
    if A < B and B < C:
      print('Yes')
      exit()
  elif B < C and C < A:
    C = C * 2
    if A < B and B < C:
      print('Yes')
      exit()
  elif C < A and A < B:
    C = C * 2
    if A < B and B < C:
      print('Yes')
      exit()
  elif C < B and B < A:
    B = B * 2
    if A < B and B < C:
      print('Yes')
      exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
R,G,B=map(int,input().split())
K = int(input())
    
i = 1
while (B<=G or G<=R):
    if R>=G:
        G = G*2
        i=i+1
    if G>=B:
        B = B*2
        i=i+1
    if i>K:
        break
if R<G and G<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(B>C):
        C=C*2
        print(A,B,C)
    elif(A>B):
        B=B*2
        print(A,B,C)
    
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())
Ak = 0

for i in range(K):
    if A >= B:
        B = B * 2
        Ak = i
    else:
        break

if K - Ak > 0:
    for j in range(K - Ak):
        if B >= C:
            C = C * 2
else:
    print("No")
    exit()

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())
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:
    print("Yse")
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:
        B *= 2
    elif B > C:
        C *= 2
    else:
        A *= 2

if A < 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())
while True:
    if b <= a:
        b = b*2
        k += -1
        if k == 0:
            print('No')
            sys.exit()
    else:
        break
while True:
    if c <= b:
        c = c*2
        k += -1
        if k == 0:
            print('No')
            sys.exit()
    else:
        break
print('Yes')

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

for _ in range(K-cnt):
	if B>C:
		C *= 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())


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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b,c=map(int,stdin.readline().split())
k=int(stdin.readline())
for i in range(k):
  if b<a:
    b*=2
  elif c<b:
    c*=2
  elif c<a:
    c*=2
  else:
    c*=2


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

Submission status: Wrong Answer

Solution code:
import sys
A,B,C = map(int, input().split())
K=int(input())
c=0
while A>=B:
  B=B*2
  c+=1
  print(B)
  if c>K:
    print("No")
    sys.exit()
while B>=C:
  C=C*2
  c+=1
  print(C)
  if c>K:
    print("No")
    sys.exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
if (A - B) % 2 == 0:
    BN = (A - B) // 2
else:
    BN = (A - B) // 2 + 1
if (A - C) % 2 == 0:
    CN = (A - C) // 2
else:
    CN = (A - C) // 2 + 1
if (CN + BN) < K:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k = int(input())
flag = False
for i in range(1,k+1):
    if a<b*(2*i)<c*(2*(k-i)):
        flag = True
        
if flag == True:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

if A < B and B < C:
    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 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())
for i in range(k):
  if b<=a:
    if c<=b:
      c*=2
    else:
      b*=2
  elif c<=b:
    c*=2
  else:
    a*=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())
n = 0
if a+1 > b:
    i = 1
    while b*(2**i) < a+1:
        i += 1
    n += i
    #print(n,i)
if a+2 > c:
    i = 1
    while c*(2**i) < a+2:
        i += 1
    n += i
    #print(n,i)

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

Submission status: Wrong Answer

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

def check(nums):
    if nums[0] < nums[1]:
        if nums[1] < nums[2]:
            print('Yes')
            exit(0)

check(l)
for i in range(K):
    if l[1] > l[2]:
        l[2] *= 2
        check(l)
        continue
    elif l[0] > l[1]:
        l[1] *= 2
        check(l)
        continue

print('No')

Submission status: Wrong Answer

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

import math
b=0

if B>A:
	b=0
elif 2*B>A:
	b=1
	B=2*B
elif 4*B>A:
	b=2
	B=4*B
else:
	b=3
	B=8*B

c=0
if C>B:
	c=0
elif 2*C>B:
	c=1
elif 4*C>B:
	c=2
else:
	c=3


if b+c<=K:
	print("Yes")
else:
	print("No")



# 2darray [[0] * 4 for i in range(3)]

Submission status: Wrong Answer

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

while(k > 0):
    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()

    k -= 1

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
    if a < b and b < c:
        print('Yes')
    else:
        print('No')

main()

Submission status: Wrong Answer

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

i = math.floor(A/(B+1))
K -= i
B = B * (2 ** i)
j = math.floor(B/(C+1))
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())



def yes_no(A, B, C, K):
    for i in range(K):
        for j in range(K - 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:

R,G,B=map(int,input().split())
K = int(input())
i = 1
while (B<=G or G<=R):
    if R>=G:
        G = G*2
        i=i+1
    if G>=B:
        B = B*2
        i=i+1
    if i>=K:
        break
if R<G and G<B:
    print("Yes")
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# @uthor : Kaleab Asfaw
import sys

input = sys.stdin.readline

def main(a, b, c, k):
    for i in range(k):
        if b <= a: b*= 2
        elif c <= b: c *= 2
    print(a, b, c)
    if b > a and c > b:
        return "Yes"
    return "No"
    
    


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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
x = 0
if A > B:
    x += len(str(bin(A//B)))-2
    B *= 2**x
if B > C:
    x += len(str(bin(B//C)))-2
#print(x)
if x <= K:
    print('Yes')
if x > K:
    print('No')

Submission status: Wrong Answer

Solution code:
"""
AtCoder :: M-Solutions Programming Contest 2020 :: Magic 2
https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b
"""
import sys


def solve(red, green, blue, K):
    """Solve puzzle."""
    # 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.
    for _ in range(K):
        if red > green:
            green *= 2
        else:
            blue *= 2

        if green > red and blue > green:
            return True

    return green > red and blue > green


def main():
    """Main program."""
    red, green, blue = (int(i) for i in sys.stdin.readline().split())
    K = int(sys.stdin.readline())
    if solve(red, green, blue, K):
        print('Yes')
    else:
        print('No')
    

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
[r, g, b] = map(int,input().split(' '))
K = int(input())
loop = 1
flag = False

while loop <= K+1:
  print("{} {} {}".format(r,g,b))
  if b <= r or b <= g:
    b*=2
    loop += 1
    continue
  if g <= r:
    g*=2
    loop += 1
    continue
  if r < g < b:
    flag = True
    break
  loop += 1
  
if flag:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int, input().split())
K = int(input())
count = 0
if B<=A:
    for x in range(K):
        B = B * 2
        count = count + 1
        if B > A:
            break
if count == K:
    print("No")
elif A<B<C:
    print("Yes")
elif C<A:
    for y in range(K-count):
        C=C*2
        if C>B and C>A:
            break
    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

for i in range(K):
  if A > B:
    B = B*2
for i in range(i, K):
  if B > C:
    C = C*2
    
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())
for i in range(0,k+1):
    asw=False
    for j in range(0,k+1):
        if i+j<=k and a<b*i*2 and b*i*2< c*j*2:
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
r,g,b= a[0],a[1],a[2]
k=int(input())
for i in range(k):
    if g>r:
        break
    g*=2
d = k -i
b*=2**d
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())

# 魔術成功
# A 赤
# B 緑
# C 青
# a < b < c になれば成功


def magic(cards: list, k: int):
    a, b, c = cards

    if a < b < c:
        return 'Yes'

    if k == 0:
        if a < b < c:
            return 'Yes'
        else:
            return 'No'

    cards[cards.index(min(cards))] *= 2

    return magic(cards, k - 1)


print(magic([A, B, C], K))

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
k = int(input())
#青＞緑＞赤
r,g,b = 0,0,0
for i,num in enumerate(a):
    if i==0:
        r = num
    elif i==1:
        g = num
    elif i==2:
        b = num

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:
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 B>=C:
        count+=1
        C=C*2
    if count>k:
        print('No')
        sys.exit()

print('Yes')

Submission status: Wrong Answer

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

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
        if B >= C:
            B = B / 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())
a,b,c = A,B,C
n = 0
while a > b:
    b *= 2
    n += 1
    if n > K:
        print("No")
        exit()

while b > c:
    c *= 2
    n += 1
    if n > K:
        print("No")
        exit()
print("Yes")

Submission status: Wrong Answer

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

count=0
while a>=b:
    b=b*2
    count+=1

con=0
while b*count>=c:
    c=c*2
    con+=1

total=con+count

if total<=k:
    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:
    print('Yes')
    exit()
  elif a>b:
    b=b*2
  else:
    c=c*2
if a<b<c:
  print('Yes')
else:
  print('No')

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(A > B):
        B = B * 2
    elif(B > C):
        C = C * 2


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

Submission status: Wrong Answer

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

for t in range(1, k):
  if a<b*2*t and b*2*t<c*2*(k-t):
    i += 1
  else:
    i += 0
  t += 1
  
if i > 0:
  print('Yes')
elif i == 0:
  print('No')

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる

A = i[0]
B = i[1]
C = i[2]

K = int(input())
count = 0

for i in range(K):
  if B<A:
    B = B*2
    count = count + 1
  if B>A:
    break
    
    
count2 = 0
for i in range(K-count):
  if C<B:
    C = C*2
    count2 = count2 + 1
  if C>B:
    print("Yes")
    break

if A>=B:
  print("No")
elif B>=C:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys

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

for i in reversed(range(0,k)):
    ck = c * (2 ** i)
    bk = b * (2 ** (k-i))
    ak = a * ((2 ** (k - i - (k - i))))
    if ck > bk > ak:
        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 b <= a:
        b = b*2
    elif c <= b:
        c = c*2
    if c > b > a:
        print("Yes")
    elif i+1 == k:
        print("No")

Submission status: Wrong Answer

Solution code:
a,b,c= map(int, input().split())
k=int(input())
n = 0
m = 0
if a > b:   
    while True: 
        b = 2*b
        n   =   n+1
        if  a    <   b:
            break
if b > c:   
    while True: 
        c = 2*c
        m   =   m+1
        if  b    <   c:
            break                  
if m+n<k+1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
R,G,B=map(int,input().split())
K = int(input())
    
i = 1
while (i <= K and (B<=G or G<=R)):
    if R>=G:
        G = G*2
        i=i+1
    if G>=B:
        B = B*2
        i=i+1
if R<G and G<B and i <=K:
    print("Yes")
    print(R,G,B,i,K)
else:
    print('No')

Submission status: Wrong Answer

Solution code:
lists = list(map(int, input().split()))
k = int(input())
dct = {0: [], 1: [], 2: []}
for s, v in enumerate(lists):
    for i in range(k):
        dct[s].append(v)
        v *= 2

result = False

for j in dct[0]:
    for k in dct[1]:
        for l in dct[2]:
            if (k > j) and (l > k):
                result = True

if result:
    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 A > C:
        C = C * 2
        K -= 1
if K > 0:
    for i in range(K):
        if A > B:
            B = B * 2
        if B > C:
            B = B / 2
            exit

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

Submission status: Wrong Answer

Solution code:

import numpy as np
import math
a,b,c = np.array(list(map(int,input().split())))
K = int(input())

if abs(np.log2(b/a)) > K:
    print('No')
    exit()

while True :
    if a > b:
        b *= 2
        K -= 1
    if K == 0:
        print('No')
        exit()
    if a < b:
        break

while True:
    if b > c:
        c *= 2
        K -= 1
    if K == 0:
        print('No')
        exit()
    if b < c:
        print("Yes")
        break

Submission status: Wrong Answer

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

for i in range(K):
    if C < B:
        C = C*2
    elif 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())
for i in range(k+1):
    bb=b*(2**i)
    cc=c*(2**(k-i))
    if bb > a and cc > b:
        print("Yes")
        exit()
print("No")

Submission status: Wrong Answer

Solution code:
rgb = list(map(int, input().split(' ')))
r = rgb[0]
g = rgb[1]
b = rgb[2]
k = int(input())

for i in range(k):
    if(r >= g):
        g = g * g
    elif(g >= b):
        b = b * b

if (r < g < b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
[r, g, b] = map(int,input().split(' '))
K = int(input())
loop = 1
flag = False

while loop <= K:
  if b <= r or b <= g:
    b*=2
    loop += 1
    continue
  if g <= r:
    g*=2
    loop += 1
    continue
  if r < g < b:
    flag = True
    break
  loop += 1
  
if flag:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

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

if A < B< C: 
  ans = 'Yes'
print(ans)

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 b > c:
        c *= 2

    if b > a and c > b:
        break

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b,c=map(int,stdin.readline().split())
k=int(stdin.readline())
for i in range(k):
  if b<a:
    b*=2
  elif c<b:
    c*=2
  elif c<a:
    c*=2
    

if c>b and b>a:
  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
flag = 0
if f(R,G,B) == 1:
  print("Yes")
  flag = 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
          flag = 1
        count += 1
    count += 1
if flag == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
cnt=1
while cnt<=k:
    print(a,b,c)
    if a>=b:
        b*=2
    elif b>=c:
        c*=2
    elif b>a and c>b:
        break
    cnt+=1


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

count = 0

for i in range(K):
    if A >= B:
        B = B*2
        count = count +1
    else:
        break

for j in range(K):
    if B >= C:
        C =C*2
        count = count+1
    else:
        break

#print(A,B,C)
#print(count)

if K >= count:
    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(1,k+1):
    asw=False
    for j in range(1,k+1):
        if i+j==k and a<b*i*2 and b*i*2< c*j*2:
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")

Submission status: Wrong Answer

Solution code:
import math
import collections
import fractions
import itertools
import functools
import operator

def solve():
    a, b, c = map(int, input().split())
    k = int(input())
    i = k+1
    for p in range(i):
        for q in range(i-p):
            for r in range(i-p-q):
                if [i*2*a for i in range(max(p, 1)+1)][-1] < [i*2*b for i in range(max(q, 1)+1)][-1] < [i*2*c for i in range(max(r, 1)+1)][-1]:
                    print("Yes")
                    exit()
    print("No")
    return 0

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

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

for i in range(K):
    if A > B:
        B = B * 2
        Ak = i

    else:
        break

if K - Ak > 0:
    for j in range(K - Ak):
        if B > C:
            C = C * 2
else:
    print("No")
    exit()

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
flag=True
for i in range(k+1):
    if a<2**(k-i)*b and 2**(k-i)*b<2**i*c:
        print("Yes",i)
        exit()
        flag=False
        break
if flag:
    print("No")

Submission status: Wrong Answer

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

K2 = 0
if B>A:#緑>赤
    if C>B:#青>緑
        pass
    else:#緑>青
        while B>=C:
            C = C*2
            K2 = K2 +1
            if B>A:
                break
else:#赤>緑
    while A>=B:
        B = B*2
        K2 = K2 +1
        if B>A:
            break
    if C>B:#青>緑
        pass
    else:#緑>青
        while B>=C:
            C = C*2
            K2 = K2 +1
            if C>B:
                break

if K2 > K:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

for i in range(k):
  if ( a > b):
    b=b*2
    continue
  elif ( b >c):
    c=c*2
    continue
  else:
    break

    
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())
if a>b and a>c:
  for i in range(0, k):
    if b<c:
      b = b*2
    elif b>c:
      c = c*2
if a < b and b < c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

def check(nums):
    if nums[0] < nums[1]:
        if nums[1] < nums[2]:
            print('Yes')
            exit(0)

check(l)
for i in range(K):
    if l[0] > l[1]:
        l[1] *= 2
        check(l)
        continue
    elif l[1] > l[2]:
        l[2] *= 2
        check(l)
        continue

print('No')

exit(0)

Submission status: Wrong Answer

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

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