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:
import sys
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
    #print(A,B,C)
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())
while k>0:
    if a>=b:
        b*=2
    elif b>=c:
        c*=2
    else:
        break
    k-=1
if a<b and b<c:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from math import ceil

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

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

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

Submission status: Wrong Answer

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

while b>=c:
    c *=2
    an +=1
if an > k:
    print("NO")
else :
    print("YES")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

RGB = list(map(int, input().split()))
K = int(input())

from itertools import product
L = list(product(range(3), repeat=K))
for l in L:
    for i in l:
        RGB[i]*2
        if RGB[1]>RGB[0] or RGB[2]>RGB[1]:
            print('Yes')
            exit()
print('No')

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):
            print('Yes')
            a=1

if a==0:
    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):
  if a > b:
    b  = b * 2
  elif b > c:
    c = c * 2
  elif a > c:
    c = c * 2

if a < b < c:
  ans = 'Yes'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
R,G,B=map(int,input().split())
K = int(input())
i = 1
while i <= K:
    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:
a, b, c = map(int, input().split())
k = int(input())

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

for i in range(k - rest):
    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())

flag = 0
for i in range(k):
    if a > b:
        b *=2
        if b > a:
            flag = 1
    
    if flag == 1 and b > c:
        c *= 2

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

Submission status: Wrong Answer

Solution code:
import math
a,b,c = [int(x) for x in input().split()]
k = int(input())
a1,b1,c1 = math.log2(a),math.log2(b),math.log2(c)
k1,k2 = 0,0
if b1<a1:
    k1 = math.floor(a1-b1+1)
    b1 = b1+k1
if c1<b1:
    k2 = math.floor(b1-c1+1)
if k1+k2<=k:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

			

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
from sys import stdin
import sys
import itertools as it

A, B, C = [int(x) for x in stdin.readline().rstrip().split()]
K = int(input())
if C > B and B > A:
    print("Yes")
    sys.exit()
for i in range(K):
    c1 = C*(2**i)
    b1 = B*(2**(K-i))
    if c1 > b1 and b1 > A:
        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 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:
#Problem B

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

for i in range(K):

    if A > B:
        B *= 2
    if B > A:
        if B > C:
            C *= 2
        elif B < C:
            pass

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from collections import deque
a,b,c=map(int,input().split())
k=int(input())
i=0
while b>a:
    b*=2
    i+=1
    if i>k:
        print('No')
        sys.exit()
while c>b:
    c*=2
    i==1
    if i>k:
        print('No')
        sys.exit()
if i<=k:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math

ao, mi, aka = map(int, input().split(" "))
k = int(input())

for i in range(k):
    if aka > mi:
        mi *= 2
        continue
    if mi > ao:
        ao *= 2
        continue
    aka *= 2

if ao > mi > aka:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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


d=-((-(a+1)//b)//2)
b=b*2**d

e=-((-(b+1)//c)//2)
if k>=d+e:
    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 < c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

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=0
while a>=b:
	b*=2
	c+=1
while b>=c:
	c*=2
	c+=1
if c<=k:
	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())

def solve(k, tup):
    a, b, c = tup
    while k > 0:
        if a >= b:
            b *= 2
            k -= 1
            continue
        if b >= c:
            c *= 2
            k -= 1
            continue

        return "YES"
    
    if a < b < c:
        return "YES"
    else:
        return "NO"


print(solve(k, (a, b, c)))

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

for i in range(K):
    for j in range(K):
        for k in range(K):
            if i+j+k != K:
                continue
            A = A*pow(2,i)
            B = B*pow(2,j)
            C = C*pow(2,k)
            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(K):
  if A > B:
    B *= 2
  elif B > C:
    C *= 2
  #print(i, A, B, C)
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*b
  elif b > c:
    c = 2*c
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())
t = 0
if(a>=b):
  while(a>=b):
    b = 2*b
    t +=1
if(b>=c):
  while(b>=c):
    c = 2*c
    t +=1
if(t<=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(3):
    if A > B :
        B = B*2
    if B > C :
        C = C*2

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for a 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:
A,B,C=map(int,input().split())
K=int(input())
i=0
while B<A:
    for i in range(K):
        B*=2
while C<B:
    for j in range(K-i):
        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())
x = 0
for i in range(k):
    if 2*i*b > a:
        x += i
        break
if 2*(k-x)*c > 2*x*b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

ans = "No"
cnt = 0
while cnt < K:
    if A > B:
        B *= 2
    elif B > C:
        C *= 2

    if A < B and B < C:
        ans = "Yes"
        break
    cnt += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# Template 1.0
import sys, re
from collections import deque, defaultdict, Counter, OrderedDict
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, log,floor
from heapq import heappush, heappop, heapify, nlargest, nsmallest
def STR(): return list(input())
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def list2d(a, b, c): return [[c] * b for i in range(a)]
def sortListWithIndex(listOfTuples, idx):   return (sorted(listOfTuples, key=lambda x: x[idx]))
def sortDictWithVal(passedDic):
    temp = sorted(passedDic.items(), key=lambda kv: (kv[1], kv[0]))
    toret = {}
    for tup in temp:
        toret[tup[0]] = tup[1]
    return toret
def sortDictWithKey(passedDic):
    return dict(OrderedDict(sorted(passedDic.items())))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

a,b,c = MAP()

k = INT()

temp = floor(log(a/b, 2))+1

b=b*(2**temp)

temp1 = floor(log(b/c, 2))+1
# print(temp, b, temp1)
if(temp+temp1<=k):
    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

print('Yes' if K >= 0 else 'No')

Submission status: Wrong Answer

Solution code:
import sys
from math import ceil, floor, sqrt, sin, cos, pi
from itertools import accumulate, permutations, combinations
from fractions import gcd # 最大公約数
from collections import deque, Counter
from operator import itemgetter
from heapq import heappop,heappush
sys.setrecursionlimit(10**7)
def lcm(x, y): return ((x * y) // gcd(x, y)) # 最小公倍数
# list(map(int, input().split()))

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

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

for _ in range(k):
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
    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())
import math
x=int(math.log(a/b,2))+1
b*=2**x
y=int(math.log(b/c,2))+1
if x+y<=k:
    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=0
for i in range(100):
    b*=2
    if b>a:
        x=i+1
        break
if  x>N and c<=b:
    print("No")
else:
    for i in range(N-x):
        c*=2
    if c>b:
        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
    if 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())

numbers=[A,B,C]

for k in range(K):
    a=numbers[0]
    b=numbers[1]
    c=numbers[2]
    if c<a or c<b:
        c*=2
        numbers[2]=c
    elif b < a:
        b*=2
        numbers[1]=b

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

Submission status: Wrong Answer

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

while tmp < k:
    if b<a:
        b += b
    elif c<b:
        c += c
    if a<b and b<c:
        print('Yes')
        flag = 1
        break
    tmp += 1

if flag != 1:
    print('No')

Submission status: Wrong Answer

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

    for k in range(K):
        if B < A:
            B *= 2
        elif C < B:
            C *= 2
    
    if A < B and 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())

for i in range(0,K):
    if C < B or C < A:
        C = C * 2
        continue

    if B < A:
        B = B * 2
        continue

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

Submission status: Wrong Answer

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

for i 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:
a,b,c= map(int,input().split())
k=int(input())

ans=False
for p in range(k):
    for q in range(k-p):
        for r in range(k-p-q):
            if a*(2**p) <= b*(2**q) and b*(2**q) <= c*(2**r):
                ans= True
                break
if ans:
    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):
  if a < b:
    if b >= c:
      c *= 2
  else:
    b *= 2
  if a < b < c:
    print("Yes")
    flag = True
if flag == False:
  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:
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 < C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    if B >= C:
        C *= 2
        K -= 1

    if A < B < C:
        break

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

Submission status: Wrong Answer

Solution code:
import math
a,b,c= map(int,input().split(" "))
k=int(input())
while(k>0 and b<a):
    b*=2
    k-=1
while(k>0 and c<b):
    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())

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int, K: int):
    r = A
    g = B
    b = C
    # r < g < b
    for i in range(K):
        if r > g:
            g *= 2
        elif g > b:
            b*=2
    if r<g<b: print(YES)
    else:print(NO)
   
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(A, B, C, K)

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 < c:print("Yes")
else:print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
d=int(input())
ans=0
for i in range(3):
  if a<b:
    pass
  else:
    b=b*2
    ans=ans+1
for i in range(3):
  if b<c:
    pass
  else:
    c=c*2
    ans=ans+1
if d>=ans:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

ans=False
for i in range(0,k+1):
    for j in range(0,k+1):
        if(i+j>k):
            continue
        if(a*2**i<b*2**j and b*2**j < c*2**(k-i-j)):
            print(i,j,k-i-j)
            ans=True

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

Submission status: Wrong Answer

Solution code:
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 k >= 0 and 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
for _ in range(k):
    if b <= a:
        b *= 2
        cnt += 1
    else:
        break
        
for _ in range(k):
    if c <= b:
        c *= 2
        cnt += 1
    else:
        break
        
        
if cnt > k:
    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):
    for j in range(K-i):
        for k in range(K-i-j):
            if A**i<B**j and B**j<C**k:
                print('Yes')
                exit()

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
if c > b > a:
    print('Yes')
    exit()

if a > b:
    while b <= a:
        b *= 2
        cnt += 1

if b > c:
    while c <= b:
        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())

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from collections import deque
a,b,c=map(int,input().split())
k=int(input())
i=0
while b>a:
    b*=2
    i+=1
while c>b:
    c*=2
    i==1
if i<=k:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
red, green, blue = map(int, input().split())
k = int(input())

for i in range(k):
  if red < green and green < blue:
    break
  else:
    if red > green:
      green *= 2
    elif green > blue:
      blue *= 2
      
if red < green and green < blue:
  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):
    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:
a, b, c =  map(int, input().split())
K = int(input())

while K > 0:
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
    K -= 1

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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

ans=False
for p in range(k):
    for q in range(k-p):
        for r in range(k-p-q):
            if a*(2**p) < b*(2**q) and b*(2**q) < c*(2**r):
                ans= True
                break
if ans:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
R,G,B = map(int,input().split())
K = int(input())
# R < G < B
for k in range(K):
    if G < R:
        G = G*2
    elif G > B:
        B = B*2
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())
for i in range(K):
    if B<A:
        B*=2
    elif C<B:
        C*=2
    else:
        break
if A<B<C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math

aka, mi, ao = map(int, input().split(" "))
k = int(input())

for i in range(k):
    if ao > mi:
        mi *= 2
        continue
    if mi > aka:
        aka *= 2
        continue
    ao *= 2

if aka > mi > ao:
    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):
  for j in range(k-i+1):
    if a<b*(2**i)<c*(2**j):
      print("Yes")
      quit()
print("No")

Submission status: Wrong Answer

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

for ai in range(k):
    for bi in range(k):
        for ci in range(k):
            if not (ai + bi + ci == k):
                continue
            newA = a * (2 ** ai)
            newB = b * (2 ** bi)
            newC = c * (2 ** ci)

            if newB > newA and newC > newB:
                print('Yes')
                exit()

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:
        g*=2
    elif g>b:
        b*=2
if r<g<b:
    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 = 2*c
  elif b<a:
    b = 2*b
  
  if a<b<c:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
red, green, blue = map(int, input().split())

K = int(input())

# blue >　green > red

for i in range(K):
    if green < red:
        green *= 2
        continue
    if blue < green:
        blue *= 2

if blue > green > red:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

if (A < B < C):
    print("Yes")
    exit(0)

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

    if (A < B < C):
        print("Yes")
        exit(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 a<b:break
  b*=2
for j in range(i,k):
  if b<c:break
  c*=2
print(['No','Yes'][a<b<c])

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
    continue
  if C <= B:
    C *= 2
    continue
    
if A < B < C:
  print("Yes")
else:
  print("No")
  
print(A,B,C)

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
    elif b > c:
        c = 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(k>0):
        if(a>b):
            b *= 2
        elif(b>c):
            c *= 2
        k -= 1

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
# Author: S Mahesh Raju
# Username: maheshraju2020
# Date: 25/07/2020

from sys import stdin,stdout
from math import gcd, ceil, sqrt
from collections import Counter
from bisect import bisect_left, bisect_right
ii1 = lambda: int(stdin.readline().strip())
is1 = lambda: stdin.readline().strip()
iia = lambda: list(map(int, stdin.readline().strip().split()))
isa = lambda: stdin.readline().strip().split()
mod = 1000000007

a, b, c = iia()
k = ii1()
if b > a and c > b:
    print('Yes')
else:
    while b < a and k > 0:
        b *= 2
        k -= 1
    while c < b and k > 0:
        c *= 2
        k -= 1
    if b > a and c > b:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

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

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

def solve(k, tup):
    a, b, c = tup
    while k:
        if a >= b:
            b *= 2
            k -= 1
            continue
        if b >= c:
            c *= 2
            k -= 1
            continue
    
    if a < b < c:
        return "YES"
    else:
        return "NO"


print(solve(k, (a, b, c)))

Submission status: Wrong Answer

Solution code:
import sys, math, itertools, collections, bisect 
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

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:
a, b, c = map(int, input().split())
n = 3
for i in range(n):
    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:
a,b,c = map(int,input().split())
k = int(input())
count = 0
while count<=k and a>=b:
    b = 2*b
    count +=1
while count<=k and b>=c:
    c = c*2
    count +=1
# print(a,b,c)
if a<b and  b<c:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
import numpy as np
import math  # gcdもあるよ
from collections import deque
from collections import defaultdict
from copy import deepcopy
from itertools import accumulate #リストを与えると累積和を返す
def input(): return sys.stdin.readline().rstrip()
from functools import lru_cache #メモ化

def main():
    a, b, c = list(map(int,input().split()))
    n = int(input())
    for _ in range(n):
        if a > b:
            b = b * 2
            continue
        if b > c:
            c = c * 2
            continue
    if a < b and b < c:
        print("Yes")
    else: print("No")
    return 0

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 a > b:
        b *= 2
        continue
    c *= 2
if a < b and b < c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
a, b, c = M()
k = I()
for _ in range(k):
    if a > b:
        b = 2*b
    else:
        c = 2*c
if a < b < c:
    print('Yes')
else:
    print('No')