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+2):
    b *=2
    if b-a>0:
        j = K-(i+1)
        break
if b-a<=0:
    print('No')
if c*2*j-b >0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

if a >= b:
  p = a // (2*b) +1
else:
  p = 0
  
if b*p*2 >= c:
  q = (b*p*2) // (2*c) +1
else:
  q = 0
#print(p)
#print(q)

if (p + q) <= k:
  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 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())

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys

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

cnt = 0
for _ in range(k):
    if a >= b:
        b *= 2
        cnt += 1
    if a < b:
        continue

if k-cnt == 0:
    sys.exit()

for _ in range(k-cnt):
        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())
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())

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

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

while a > b and k > 0:
    b *= 2
    k -= 1

while b > c and k > 0:
    c *= 2
    k -= 1

if a < b < c and k >= 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"

input = sys.stdin.readline

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


while b < a and k:
	k-=1
	b*=2
	#print("b:",b )

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

Submission status: Wrong Answer

Solution code:
import random
num = list(map(int,input().split()))
k = int(input())


for i in range(k):
    r = random.randint(0, 2)
    num[r] += num[r]
    if (num[1] > num[0]) and (num[2] > num[1]):
        print('Yes')
        exit()
        
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:
    ans = 'Yes'

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
K = int(input())
a=0
for i in range(K):
    i += 1
    if B*(2**i) > A:
        if C*(2**(K-i)) > B*(2**i):
            a=1
if a==1:
    print('Yes')
if a==0:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
K = int(input())
flag = True
if K == 1:
  if A*2**1<B*2**0:
      if B*2**0<C*2**0:
        print("Yes")
        flag = False

  elif A*2**0<B*2**1:
      if B*2**1<C*2**0:
        print("Yes")
        flag = False
  
  
  elif A*2**0<B*2**0:
      if B*2**0<C*2**1:
        print("Yes")
        flag = False

    
  
for i in range(K+1):
  num = K-i
  for j in range(num+1):
    num2 = num-j
    if A*2**i<B*2**j:
      if B*2**j<C*2**num2:
        print("Yes")
        flag = False
        
if flag == True:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for cnt in range(k):
    if a < b < c:
        break
    elif a > b:
        b = b * 2
        continue
    elif b > c:
        c = c * 2
        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())
i = 0

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

    if b < a:
        b *= 2
        
    elif b > c:
        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().rstrip().split(' ')))

N = int(input())
flag = False
for i in range(N):
  if A > B:
    B = int(2*B)
  elif B > C:
    C = int(2*C)
  if A < B < C:
    flag = True
    break

if flag:
  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, 4, 2]
#K = 3

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

Submission status: Wrong Answer

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

for i in range(k):
    print(1)
    if a >= b:
        b = b*2
    else:
        c = c*2


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

Submission status: Wrong Answer

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

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

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

while A > B and cnt < K:
    B = B*2
    cnt += 1

if cnt >= K and B > C:
    print("No")
else:
    while B > C and cnt < K:
        C = C*2
        cnt += 1

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# モジュールのインポート
import math

# 標準入力を取得
A, B, C = list(map(int, input().split()))
K = int(input())

# 求解処理
ans = str()
k_b = int(math.log(A / B) / math.log(2)) + 1
if k_b > K:
    ans = "No"
else:
    if 2**(K - k_b) * C > 2**k_b * B:
        ans = "Yes"
    else:
        ans = "No"

# 結果出力
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while(k >= 1):
    if l[0] > l[1]:
        l[1] *= 2
        k -= 1
    elif l[1] > l[2]:
        l[2] *= 2
        k -= 1
    else:
        print('Yes')
        exit()

print('No')

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
    i += 1
  else:
    break
while i <= K:
  if B >= C:
    C *= 2
    i += 1
  else:
    break
#print(A, B, C)
if A < B and B < C:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys
a, b, c = [int(x) for x in input().split()]
k = int(input())
i = 0
while b<a:
  i += 1
  b *= 2
if(k<i):
  print('No')
  sys.exit()
else:
  k -= i
  j = 0
  while c<=b:
    j += 1
    c *= 2
  if(k<j):  
    print('No')
    sys.exit()
  else:
    print('Yes')

Submission status: Wrong Answer

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

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

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())
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 sys
import os
# import math
# input = sys.stdin.readline

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


def str_array():
    return input().strip().split()

def gcd(a,b):
    if b == 0:
        return a
    return gcd(b, a % b);

def take_input():
	if os.environ.get("check"):
		sys.stdin = open('input.txt', 'r') 
		sys.stdout = open('output.txt', 'w')
		
take_input()
######################### TEMPLATE ENDS HERE #################################

a,b,c = int_array()
k = int(input())

# conditions
#c>b>a

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

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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split()) #A赤＜B緑＜C青，
K = int(input())

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

while B > C and K >= 1:
  C *= 2
  K -= 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())

cnt=0

for i in range(k):
	b*=2
	cnt+=1
	if b>a:
		break

for i in range(k-cnt):
	c*=2

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

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

count = 0
for i in range(k):
    if b<r or b<g:
        b *= 2
        count += 1
    elif g<r:
        g *= 2
        count += 1

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

Submission status: Wrong Answer

Solution code:
# 初期入力
import sys
input = sys.stdin.readline  #文字列では使わない
A,B,C = map(int, input().split())
K = int(input())

count =0
for i in range(11):
    if count >=K:
        break
    else:
        if A >=B:
            B *=2
            count +=1
            if B >=C:
                C *=2
                count +=1
        if A < B <C:
            print("Yes")
            sys.exit()
        
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)

l = []
for i in range(1, k+1):
    b = b**(2*i)
    c = c**(2*(k-i))
    if c > b > a:
        l.append('Yes')
        break
    l.append('No')

d = len(l)
print(l[d-1])

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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


a = 2*A
b = 2*B
c = 2*C

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

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(10000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy

a,b,c = map(int,input().split())
k = int(input())
cnt = 0
while True:
    if cnt == k:
        break
    if c<b:
        c = 2*c
    elif b<a:
        b = 2*b
    cnt+=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())

c = 0

while A >= B:
    B *= 2
    c += 1
    if c >= K:
        break
    while B >= C:
        C *= 2
        c += 1
        if c >= K:
            break

ans = 0
if A < B < C:
    ans = "Yes"
else:
    ans = "No"

print(ans)

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:
    C = C * 2
    if A < B and B < C:
      print('Yes')
      exit()
  elif 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=(input().split())
K= int(input())
A = int(A)
B = int(B)
C = int(C)
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())
cnt=1
while cnt<=k:
    if a>b:
        b*=2
    elif b>c:
        c*=2
    elif b>a and c>b:
        break
    cnt+=1


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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(K + 1):
  g = G
  b = B
  if i > 0: g = g * i * 2
  if K - i > 0: b = b * (K - i) * 2
  r = R
  if b > g > r:
    print('Yes')
    exit()
    
print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
k = int(input())
if a < b:
    x = 1
    y = 0
    y += k
else:
    x = 0
    for i in range(1,k+1):
        x += 1
        if 2*i*b > a:
            break
    y = k-x if k-x != 0 else 1
    x *= 2
print(['No','Yes'][2*y*c>b*x])

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):
    if k == 0:
        if cards[0] < cards[1] < cards[2]:
            return 'Yes'
        else:
            return 'No'

    cards[cards.index(min(cards))] *= 2
    k -= 1

    return magic(cards, k)


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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
# 初期入力
import sys
input = sys.stdin.readline  #文字列では使わない
A,B,C = map(int, input().split())
K = int(input())

count =0
for i in range(11):
    if count >=K:
        break
    else:
        if A >=B:
            B *=2
            count +=1
            if B >=C:
                C *=2
                count +=1
            if A < B <C:
                print("Yes")
                sys.exit()
        
print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k=int(input())
bb=b
i=0
while b > a:
    b=b*2
    i+=1
while c > bb:
    c=c*2
    i+=1
if i <= 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 and cnt <= K:
    B = B*2
    cnt += 1

if cnt >= K and B > C:
    print("No")
else:
    while B > C and cnt < K:
        C = C*2
        cnt += 1

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

Submission status: Wrong Answer

Solution code:
# A: red, B: green, C: blue
# A < B < C

A, B, C = [ int(v) for v in input().split(" ") ]
K = int(input())

# A < B
for i in range(K):
  if A >= B:
    B *= 2
    K -= 1
  else:
    break

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

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

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

Submission status: Wrong Answer

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

for i in range(1,k+1):
    if abc[0] < abc[1] and abc[1] < abc[2]:
        break
    min_val = min(abc)
    min_idx = abc.index(min_val)
    abc[min_idx] *= 2
    

if abc[0] < abc[1] and abc[1] < abc[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

ans = 'No'
for i in range(K+1):
    for j in range(K+1-i):
        R = A*2*i
        G = B*2*(j)
        Bl = C*2*(K-i-j)
        if G > R and Bl > G :
            ans = 'Yes'
            break

print(ans)

Submission status: Wrong Answer

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

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

while n > 0:
    if flg == 0:
        b = b * 2
        n = n - 1
        #print(a,b,c)
        if a < b:
            flg = 1
            if b < c:
                print('Yes')
                exit()
    else:
        c = c * 2
        n = n - 1
        #print(a,b,c)
        if b < c:
            print('Yes')
            exit()

print('No')

Submission status: Wrong Answer

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

A, B, C = int(A), int(B), int(C)

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

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

Submission status: Wrong Answer

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

for i in range(K):
  if(B<=G):
    B*=2
  if(G<=R):
    G*=2
#print(R,G,B,K)
if(R<G and G<B):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# モジュールのインポート
import math

# 標準入力を取得
A, B, C = list(map(int, input().split()))
K = int(input())

# 求解処理
ans = str()
k_b = math.ceil(math.log(A / B) / math.log(2))
if k_b > K:
    ans = "No"
else:
    if 2**(K - k_b) * C > 2**k_b * B:
        ans = "Yes"
    else:
        ans = "No"

# 結果出力
print(ans)

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
        i+=1
    elif b>=c:
        c*=2
        i+=1
    if i==0: break
if a<b and b<c:
    print("Yse")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"

input = sys.stdin.readline

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


while b < a and k:
	b*=2
	#print("b:",b )
	k-=1

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

Submission status: Wrong Answer

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

for i in range(k):

    if li[0] > li[1]:
        li[1]=li[1]*2
    elif li[2] < li[1]:
        li[2]=li[2]*2
    if li[0] < li[1] and li[1] < li[2]:
        print("Yes")
        quit()
print("No")

Submission status: Wrong Answer

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

if A<B*2 and B*2<C*4:
  print("Yes")
  exit()
elif A<B*4 and B*4<C*2:
  print("Yes")
  exit()  
elif A<B and B<C*8:
  print("Yes")
  exit()
elif A<B*8 and B*8<C:
  print("Yes")
  exit()
else:  
  print("No")

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
        k -= 1
    elif l[1] > l[2]:
        l[2] *= 2
        k -= 1
    else:
        print('Yes')
        exit()

print('No')

Submission status: Wrong Answer

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


if a>=b or b>=c:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
k = int(input())
flag = False
for i in range(k+1):
    if a<2*(b**i)<2*(c**(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 i in range(k):
    if a > b:
        b *= 2

    elif b > c:
        c *= 2

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

Submission status: Wrong Answer

Solution code:
card=input().split()
k=int(input())
arr=[]
for i in range(len(card)):
    res=int(card[i])*2
    arr.append(res)
if arr[0]<arr[1]<arr[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

c = 0

while A >= B:
    B *= 2
    c += 1
    if c >= K:
        break
    while B <= C:
        C *= 2
        c += 1
        if c >= K:
            break

ans = 0
if A < B < C:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Submission status: Wrong Answer

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

if not a < b:
  b *=2
  k -=1
if not b < c:
  c *=2
  k -=1
  
if k <= 0:
  print('No')
  exit()
elif not a<b<c:
  print('No')
  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>b:
        b=b*2
    if a>b and b>c:
        b=b*2
    if a<b and c<a:
        c=c*2
    if a<b and c<b:
        c=c*2

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

Submission status: Wrong Answer

Solution code:
A, B, C = [int(n) for n in input().split()]
K = int(input())
a = (A+B-1)//B
b = (A+C-1)//C
print('Yes' if (a+b)//2<=K and A<=B*a<=C*b else '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
  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())

for i in range(K+1):
  if( i == K ):
    break
  for j in range(K+1):
    if( i + j == K ):
      break
    for k in range(K+1):
      if( i + j + k == K ):
        break
      if A*(2**i) <= B*(2**j) <= C*(2**k):
        print("Yes")
        exit()
     
print("No")

Submission status: Wrong Answer

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

for i in range(K):
  if(B<G):
    B*=2
  if(G<R):
    G*=2
#print(R,G,B,K)
if(R<G and G<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 i%2!=0:
    c*=2
  if i%2==0:
    b*=2
if c>b and b>a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c= list(map(int, input().strip().split()))
N = int(input().strip())
x=0
y=N
for i in range(100):
    b*=2
    x=x+1
    y=y-1
    if b>a:
        break
if  x>=N:
    if c<=b:
        print("No")
    else:
        print("Yes")
    
else:
    for i in range(y):
        c*=2
    if c>b:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

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

cnt=0

for i in range(1,p+1):
    for j in range(1,p+1):
        for k in range(1,p+1):
            if i+j+k==p+3 and a*2**i< b*2**j and b*2**j < c*2**k:
                cnt+=1

if cnt >0:
    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+=1
    if G>=B:
        B = B*2
        i+=1
if R<G and G<B:
    print("Yes")
else:
    print('No')

Submission status: Wrong Answer

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

for i in range(k):
    if r < g < b:
        break
    else:
        if g < r:
            g *= 2
        elif b < g:
            b *= 2
        else:
            b *= 2

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

Submission status: Wrong Answer

Solution code:
[a, b, c] = [int(x) for x in input().split(" ")]
k = int(input())
a_b_flg = False if a >= b else True
b_c_flg = False if b >= c else True

Submission status: Wrong Answer

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