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 = list(map(int, input().split()))
K = int(input())
is_true = False
for i in range(K):    
    if B > C:
        C *= 2
    elif A > B:
        B *= 2
#    print(A,B,C)
if A < B < C:
    print("Yes")
else:
    print("No")
#print(is_true)

Submission status: Wrong Answer

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

while a > b:
    b *= 2
    ct += 1
    
while b > c:
    c *= 2
    ct += 1
    
if ct <= k:
  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
    k -= 1
  else:
    break

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

Submission status: Wrong Answer

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

    while K > 0 and A > B:
        B *= 2
        K -= 1

    while K > 0 and B > C:
        C *= 2
        K -= 1

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

A,B,C=nm()
K=int(input())

count=0
while(B<A):
    B*=2
    count+=1
while(C<B):
    C*=2
    count+=1

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

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C = (int(x) for x in input().split())
    K = int(input())

    while not A < B < C and K > 0:
        if A >= B: B *= 2
        else: C *= 2
        K -= 1
        print(A, B, C, K)
    if A < B < C: print('Yes')
    else: print('No')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c = [int(idx) for idx in input().split()]
K = int(input())
is_yes=0
 
for idx in range(K):
  if b < a:
    b *= 2
  elif c < b:
    c *= 2
  if a < b and b < c:
    print("Yes")
    is_yes=1
    break
if is_yes == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = [int(idx) for idx in input().split()]
K = int(input())
is_yes=0

for idx in range(K):
  if a < b and b < c:
    print("Yes")
    is_yes=1
    break
  elif b < a:
    b *= 2
  elif c < b:
    c *= 2
if is_yes == 0:
  print("No")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    A, B, C = map(int, input().split())
    K = int(input())
    print(A, B, C, K)

    for _ in range(K):
        if A > B:
            B *= 2
        elif B > C:
            C *= 2
    if A < B < C:
        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())
while A > B and K > 0:
    B *= 2
    K -= 1
while B > C and K > 0:
    C *= 2
    K -= 1
if A < B and B < C:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def judge(a, b, c):
    if a < b < c:
        return 'Yes'
    else:
        return 'no'
    
cards = list(map(int,input().split()))
try_cnt = int(input())

for i in range(try_cnt):
    ans = judge(cards[0], cards[1], cards[2])
    if ans == 'Yes':
        break
    elif cards[1] >= cards[2]:
        cards[2] *= 2
        ans = judge(cards[0], cards[1], cards[2])
        if ans == 'Yes':
            break
    else:
        cards[1] *= 2
        ans = judge(cards[0], cards[1], cards[2])
        if ans == 'Yes':
            break   
print(ans)

Submission status: Wrong Answer

Solution code:
def judge(a, b, c):
    if a < b < c:
        return 'Yes'
    else:
        return 'no'
    
cards = list(map(int,input().split()))
try_cnt = int(input())

for i in range(try_cnt):
    ans = judge(cards[0], cards[1], cards[2])
    if ans == 'Yes':
        break
    elif cards[1] > cards[2]:
        cards[2] *= 2
        ans = judge(cards[0], cards[1], cards[2])
        if ans == 'Yes':
            break
    else:
        cards[1] *= 2
        ans = judge(cards[0], cards[1], cards[2])
        if ans == 'Yes':
            break
print(ans)

Submission status: Wrong Answer

Solution code:
cards = list(map(int,input().split()))
try_cnt = int(input())
ans = 'No'
for i in range(try_cnt):
    if not max(cards) == cards[2]:
        cards[2] *= 2
    else:
        cards[1] *= 2
        if cards[0] < cards[1] < cards[2]:
            ans = 'Yes'
            break
print(ans)

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
k = int(input())
count = 0

while a[1] <= a[0]:
    a[1] = a[1]*2
    count += 1
while a[2] <= a[1]:
    a[2] = a[2]*2
    count += 1

if count > k:
    print('no')
else:
    print('yes')

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
K=int(input())
a=A[0]
b=A[1]
c=A[2]
count=0
while count<=K:
    if a>=b:
        b=b*2
        count=count+1
    else:
        break
if count==K:
    pass
else:
    c=c*(K-count)*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 _ in range(K):
    if A > B :
        B = B*2
        continue
    elif B > C:
        C = C*2
if A < B and B < C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys

a_b_c = list(map(int, input().split()))
r = a_b_c[0]
g = a_b_c[1]
b = a_b_c[2]
k = int(input())

while (g <= r and k >= 0):
    g *= 2
    k -= 1
while (b <= g and k >= 0):
    b *= 2
    k -= 1
if (k < 0):
    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 A > B:
    B = B*2
  else:
    C = C*2

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

Submission status: Wrong Answer

Solution code:
input_line = input()
input2 = input_line.rstrip().split(" ")
a,b,c = [int(i) for i in input2]
count = 0
max_num = int(input())
while count<=max_num:
  if a >= b:
    b*=2
    count += 1
  else:
    break
 

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

Submission status: Wrong Answer

Solution code:
input_line = input()
input2 = input_line.rstrip().split(" ")
a,b,c = [int(i) for i in input2]
count = 0
max_num = int(input())
while count<=max_num:
  if a >= b:
    b*=2
    count += 1
  else:
    break
 

    
while count<=max_num:
  if b >= c:
    c*=2
    count += 1
  else:
    break
    
if a<b<c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def l_in(type_): return list(map(type_, input().split()))
def i_in(): return int(input())
def m_in(type_): return map(type_, input().split())
def r_in(n, type_): return [type_(input()) for _ in range(n)]
ans = False
a, b, c = m_in(int)
k = i_in()
for _ in range(k):
    if c < b or c < a: c *= 2
    elif b < a: b *= 2
    if c > b > a:
        ans = True
        break
print('Yes' if ans else 'No')

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
count=0

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
if k!=1:
  for i in range(0,k):
   c1=c*pow(2,i)
   b1=b*pow(2,(k-i))
   if a<b1 and b1<c1:
     ans=1
   else:
     b1=b
     c1=c
elif k==1 and a<b<c:
  ans=1
else:
  ans=0

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
for i in range(0,k):
  c1=c*pow(2,i)
  b1=b*pow(2,(k-i))
  if a<b1 and b1<c1:
    ans=1
  else:
    b1=b
    c1=c

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
for i in range(0,k):
  c1=c*pow(2,i)
  b1=b*pow(2,(k-i))
  if a<b1 and b1<c1:
    ans=1
    break
  else:
    b1=b
    c1=c

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
for i in range(0,k):
  c=c*pow(2,i+1)
  b=b*pow(2,(k-(i+1)))
  if a<b and b<c:
    ans=1
    break

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

Submission status: Wrong Answer

Solution code:
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0

for i in range(0,k+1):
  c=c*pow(2,i)
  b=b*pow(2,(k-i))
  if a<b and b<c:
    ans=1
    break

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

Submission status: Wrong Answer

Solution code:
import random

nums = input().split()

print(nums)
#A = nums[0]
#B = nums[1]
#C = nums[2]
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
print(a)
K = input()
k = int(K)

#print(type(a))

print(k)

cnt = 0

#print(type(cnt))

while a >= b:
  cnt +=1
  b *= 2
  print(b)

while b >= c:
  cnt += 1
  c *= 2
  print(c)
  
#if cnt

  
if cnt <= k:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
ans=["Yes","no"]
while b<=a:
  b*=2
  k-=1
while c<=b:
  c*=2
  k-=1
print(ans[0] if k>=0 else ans[1])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input('').split())
k=int(input())
for i in range(k):
    if a<b and b<c:
        print("Yes")
        exit()
    if b<a:
        b*=2
        continue
    if c<b:
        c*=2
        continue
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())
c1,b1= c * (2**k), b * (2**k)
if (c1>b1 and b1>a):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
for i in range(k):
  if not g > r :
    g *= 2
  elif not b > g:
    b *= 2

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

Submission status: Wrong Answer

Solution code:
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
for i in range(k):
  if ( b > g > r):
    flg = 1
    break
  else:
    if not g > r :
      g *= 2
    elif not b > g:
      b *= 2

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

Submission status: Wrong Answer

Solution code:
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
for i in range(k):
  if ( b> g > r):
    flg = 1
    break
  else:
    if not g > r :
      g *= 2
    elif not b > b:
      b *= 2

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

Submission status: Wrong Answer

Solution code:
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
while k >= 0:
  if ( b>g and g>r):
    flg = 1
    break
  else:
    if g <= r :
      g *= 2
    else:
      b *= 2
  k -= 1
if flg == 1:
  print ("Yes")
else:
  print ("No")

Submission status: Wrong Answer

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

count = 0

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

for j in range(K - count):
   if count > K+1:
      print('No')
      exit()
   elif B > C:
      C *= 2
      count += 1
   else:
      break

print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
while a>b:
  k-=1
  b*=2
if k>=0:
  print('Yes' if c*(2**k)>b else 'No')
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
    else:
        if b>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())
if A/B > K:
  print('No')
elif B/C > K:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
def main():
    r,g,b=map(int,input().split())
    k=int(input())
    while(k>0):
        if(g<=r):
            g<<1
            k-=1
        elif(b<=g):
            b<<1
            k-=1
    if(r<g and g<b):
        print('Yes')
    else:
        print('No')
    
main()

Submission status: Wrong Answer

Solution code:
# B - Magic 2


def magic(a, b, c, k):
    i = 0
    while i < k:
        if a > b:
            b = b * 2
        elif b > c:
            c = c * 2
        i += 1
    if a < b and b < c:
        return "Yes"
    else:
        return "No"


if __name__ == "__main__":
    param_a, param_b, param_c = input().split(' ')
    param_k = int(input())
    print(magic(int(param_a), int(param_b), int(param_c), int(param_k)))

Submission status: Wrong Answer

Solution code:
# B - Magic 2


def magic(a, b, c, k):
    i = 0
    while i < k:
        if a > b:
            b = b * 2
        elif b > c:
            c = c * 2
        if a < b and b < c:
            return "Yes"
        i += 1
    return "No"


if __name__ == "__main__":
    param_a, param_b, param_c = input().split(' ')
    param_k = int(input())
    print(magic(int(param_a), int(param_b), int(param_c), int(param_k)))

Submission status: Wrong Answer

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

for i in range(k):
  if a < b < c:
    break
  elif b < a:
    b = b*2
  elif c < b:
    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())
flg = False
for i in range(k+1):
  b = (2**i) * b
  c = (2**(k-i)) * c
  if a < b < c:
    flg = True
    break

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

Submission status: Wrong Answer

Solution code:
*x,=map(int,input().split())
K=int(input())

ans=0
for i in range(3):
    for j in range(3):
        for k in range(3):
            a=x.copy()
            a[i]=a[i]*2
            a[j]=a[j]*2
            a[k]=a[k]*2
            if a[0] < a[1] and a[1] < a[2]: 
                ans=1
                break
        if ans : break
    if ans : break  

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

Submission status: Wrong Answer

Solution code:
red, green, blue = map(int, input().split())
K = int(input())
while K >= 0 and red > green:
  green *= 2
  K -= 1
  
if red < green:
  print("No")
  exit()

if green > red and blue > green:
  print("Yes")
  exit()
  
if K == 0:
  print("No")
else:
  while K >= 0 and green > blue:
    blue *= 2
    K -= 1
  
  if green > red and blue > green:
    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  2 * b <= a:
    b*=2
  elif 2 * b <= c:
    c*=2
  else:
    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 = input()
if(2 * b <= a or 2 * b <= c ):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while True:
    cnt += 1    
    if cnt > k: 
        print("No")
        break
    b_val = b * (2 ** cnt)
    c_val = c * (2 ** (k - cnt))
    if a < b_val < c_val: 
        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 a > b:
    b *= 2
  else:
    c *= 2
    
print("Yes" if a < b and b < c else "No")

Submission status: Wrong Answer

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

i = 0
while not a < b:
    b *= 2
    i += 1
while not b < c:
    c *= 2
    i += 1

print(k, i)
if i <= k:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

i = 0
while not a < b:
    b *= 2
    i += 1
while not b < c:
    c *= 2
    i += 1

if k <= i:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())
i_ans = 0
j_ans = 0
for i in range(1,8):
    B_after = B * (2 ** i)
    if B_after > A:
        i_ans = i
        break
B_after = B * (2 ** i_ans)
for j in range(1,8):
    C_after = C * (2 ** j)
    if C_after > B_after:
        j_ans = j
        break
if i_ans + j_ans <=K:
    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,8):
    B_after = B * (2 ** i)
    if B_after > A:
        i_ans = i
        break
for j in range(1,8):
    C_after = C * (2 ** j)
    if C_after > B_after:
        j_ans = j
        break
if i_ans + j_ans <=K:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
abc=list(map(int,input().split()))
a,b,c=abc[0],abc[1],abc[2]
k=int(input())
for i in range(k):
    if a < b < c:
        print("Yes")
        break
    elif b <= a < c:
        b *= 2
    else:
        c *= 2
else:
    print("No")

Submission status: Wrong Answer

Solution code:
abc=list(map(int,input().split()))
a,b,c=abc[0],abc[1],abc[2]
k=int(input())
for i in range(k):
    if a < b < c:
        print("Yes")
        break
    elif b < a < c:
        b *= 2
    else:
        c *= 2
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main(a, b, c, k):
    for _ in range(k + 1):
        if a >= b:
            b *= 2
        elif b >= c:
            c *= 2

        if a < b < c:
            print("Yes")
            return

    print("No")


if __name__ == "__main__":
    a, b, c = map(int, input().split())
    k = int(input())

    main(a, b, c, k)

Submission status: Wrong Answer

Solution code:
def main(a, b, c, k):
    for _ in range(k + 1):
        if a > b:
            b *= 2
        elif b > c:
            c *= 2

        if a < b < c:
            print("Yes")
            return

    print("No")


if __name__ == "__main__":
    a, b, c = map(int, input().split())
    k = int(input())

    main(a, b, c, k)

Submission status: Wrong Answer

Solution code:
def main(a, b, c, k):
    for _ in range(k + 1):
        if a < b < c:
            print("Yes")
            return

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

    print("No")


if __name__ == "__main__":
    a, b, c = map(int, input().split())
    k = int(input())

    main(a, b, c, k)

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
N = int(input())
stack = [(A,B,C,N)]
flag = False
while stack:
  a,b,c,n = stack.pop()
  if a<b and B<c:
    flag = True
    break
  if n>0:
    stack.append((a*2,b,c,n-1))
    stack.append((a,b*2,c,n-1))
    stack.append((a,b,c*2,n-1))
print('Yes') if flag else print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
N = int(input())
stack = [(A,B,C,N)]
flag = False
while stack:
  a,b,c,n = stack.pop()
  if a<b and B<c:
    fag = True
    break
  if n>0:
    stack.append((a*2,b,c,n-1))
    stack.append((a,b*2,c,n-1))
    stack.append((a,b,c*2,n-1))
print('Yes') if flag 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 > b:
        b *= 2
    elif b > c:
        c *= 2
    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())

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

Submission status: Wrong Answer

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

if (B*(2**K-1) > A and C*(2**K-1) > A):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
tmp = input().split()
map_tmp = map(int, tmp)
values = list(map_tmp)
moves = int(input())

while(moves>0):
  if (values[1] < values[0]):
  	values[1] *= 2
  	moves -=1
  elif(values[2] < values[1]):
    values[2] *=2
    moves -=1
  else:
    break
    
if (values[1] > values[0]) and (values[2] > values[1]):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
tmp = input().split()
map_tmp = map(int, tmp)
values = list(map_tmp)
moves = int(input())

while(moves):
  if (values[1] < values[0]):
  	values[1] *= 2
  	moves -=1
  elif(values[2] < values[1]):
    values[2] *=2
    moves -=1
  else:
    break
    
if (values[1] > values[0]) and (values[2] > values[1]):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=[int(i) for i in input().split()]
n=int(input())
flag=0
e=0
while(a>=b):
    b=b*2
    e=e+1
while(e<n and c<=b):
    c=c*2
    e=e+1
if(b>a and c>b and e<=n):
    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 c < b:
        c *= 2
    elif b < a:
        b *= 2
    k -= 1
    
    if a < b and b < c:
        print('Yes')
        break
else:
    print('No')

Submission status: Wrong Answer

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

while k > 0:
    if c < b:
        c *= 2
    elif b < a:
        b *= 2
    k -= 1
    
    if a < b and b < c:
        print('Yes')
        break
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 a>b:
        b = b*b
    elif b>c:
        c = c*c
    else:
        continue

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())
cnt = 0

while not (a < b < c):
    cnt += 1
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
    if cnt > k:
        print("No")
        exit(0)

print("Yes")

Submission status: Wrong Answer

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

while not (a < b < c):
    cnt += 1
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
    elif cnt > k:
        break

if cnt <= k:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
"""
b > g > r

"""

r, g, b = list(map(int, input().split()))
k = int(input())
flag = False
for i in range(k):
    if r >= b and g > b:
        b *= 2
    elif r >= g:
        g *= 2
    if b > g > r:
        flag = True

print("Yes") if flag else print("No")

Submission status: Wrong Answer

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

cnt = 0

while a >=b:
    b*=2
    cnt+=1
while b >=c:
    c*=2
    cnt+=1

if cnt <=k:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

cnt = 0

while a >=b:
    b*=2
    cnt+=1
while b >=c:
    c*=2
    cnt+=1

if cnt <=3:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

while a <= b:
  b *= 2
  k -=1

while b <= c:
  c *= 2
  k -= 1
  
if k < 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
# 青＞緑＞赤
#   C>B>A

r , g , b = map(int,input().split())

c = int(input())

flag = 'No' 

for i in range(c):
       
    if g > b:
        b = b *2
        print(str(i+1)+'回目 '+str(b))

    elif b < r :

        b = b *2
        
        print(str(i+1)+'回目 '+str(b))

    elif g < r:
        g = g *2
        print(str(i+1)+'回目 '+str(g))
    
    if b > g > r:
        flag = 'YES'
        break
    
print(flag)

Submission status: Wrong Answer

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

a_b = math.ceil(math.log2((a+1)/b))

b = b * 2 ** a_b
b_c = math.ceil(math.log2((b+1)/c))

if a_b + b_c <= k:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

a_b = math.ceil(math.log2((a+1)/b))

b = b * 2 ** a_b
b_c = math.ceil(math.log2((b+1)/c))

if a_b + b_c >= k:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# 青＞緑＞赤
#   C>B>A

r , g , b = map(int,input().split())

c = int(input())

flag = 'No' 

for i in range(c):
    if b < r :

        b = b *2
        
        print(str(i+1)+'回目 '+str(b))
          
    
    elif g > b:
        g = g *2
        print(str(i+1)+'回目 '+str(g))

    elif g < r:
        g = g *2
        print(str(i+1)+'回目 '+str(g))
    
    if b > g > r:
        flag = 'YES'
        break
    
print(flag)

Submission status: Wrong Answer

Solution code:
a,b,c,k=map(int,open(0).read().split())
for i in' '*k:t=(a<=b);b*=2-t;c*=1+t*(b<=c)
print('NYoe s'[a<b<c::2])

Submission status: Wrong Answer

Solution code:
a,b,c,k=map(int,open(0).read().split())
for i in' '*k:t=(a<b);b*=2-t;c*=1+t*(b<c)
print('NYoe s'[a<b<c::2])

Submission status: Wrong Answer

Solution code:
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())
c1, c2 = 0, 0
while b<=a:
    b=b*2
    c1 = c1 + 1
while c <= b:
    c=c*2
    c2 = c2 +1
if c1 + c2 < k:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

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

if count <= k:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,k=map(int,open(0).read().split())
for i in' '*k:
 if a>b:b*=2
 elif b>c:c*=2
print('NYoe s'[a<b<c::2])

Submission status: Wrong Answer

Solution code:
b , g , r = map(int,input().split())

c = int(input())

flag = 'No' 

for i in range(c):
    if r < g or r < b:
        r = r *2
    
    elif g < b:
        g = g *2
    
    if r > g > b:
        flag = 'YES'
        break
    
print(flag)

Submission status: Wrong Answer

Solution code:
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())
flag = 0
while k:
    if a<b and b<c:
        flag = 1
        break
    elif b<=a:
        b = b*2
    elif c<=b:
        c=c*2
    k=k-1
if flag==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())
flag = 0
while k:
    if a<b and b<c:
        flag = 1
        break
    elif b<a:
        b = b*2
    elif c<b:
        c=c*2
    k=k-1
if flag==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())

if (2*c > b and b>a) or (2*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(int())

t=0
while a >= b:
  b *= 2
  t += 1
while b >= c:
  c *= 2
  t += 1
if k >= t:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A, B, C=map(int,input().split())
K=int(input())
ab=int(A/B)
x=int(len(bin(ab))-2)
B1=B*(2**x)
bc=int(B1/C)
y=int(len(bin(bc))-2)
if x+y<=K:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A,B,C=[int(s) for s in input().split()]
X=int(input())
count=0
while A<=B:
  B*=2
  count+=1
while B<=C:
  C*=2
  count+=1
if count<=X:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
r,g,b = map(int,input().split())
k = int(input())
t=0
t+=k
for i in range(k):
    if(b<=r):
        b*=2
        t-=1
        
    elif(b>r and b<=g):
        b*=2
        t-=1
        
    elif(b>r and b>g and g<=r):
        g*=2
        t-=1
        
        
    if(t==0):
        break
    
if(g>r and b>g):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(c>b and b>a):
        break
    else:
        if(b>c):
            c=c*2
        if(a>b):
            b=b*2

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