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: Accepted

Solution code:
def main():
    from sys import setrecursionlimit, stdin, stderr
    from os import environ
    from collections import defaultdict, deque, Counter
    from math import ceil, floor
    from itertools import accumulate, combinations, combinations_with_replacement
    setrecursionlimit(10**6)
    dbg = (lambda *something: stderr.write("\033[92m{}\033[0m".format(str(something)+'\n'))) if 'TERM_PROGRAM' in environ else lambda *x: 0
    input = lambda: stdin.readline().rstrip()
    LMIIS = lambda: list(map(int,input().split()))
    II = lambda: int(input())
    P = 10**9+7
    INF = 10**18+10
    A,B,C = LMIIS()
    K = II()
    count = 0
    while A >= B:
        B *= 2
        count += 1
    while B >= C:
        C *= 2
        count += 1
    print('Yes' if count <= K else 'No')


    
main()

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
k=int(input())
for _ in range(k):
  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: Accepted

Solution code:
import math
import sys

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b,c=INTM()
    k=INT()
    ct=0
    for i in range(7):
        if a>=b:
            b=2*b
            ct+=1
        else:
            break
    for i in range(7):
        if b>=c:
            c=2*c
            ct+=1
        else:
            break
    
    if ct<=k:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    do()

Submission status: Accepted

Solution code:
# Fast IO (only use in integer input)

import os,io
input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    a, b, c = map(int, readline().split())
    k = int(readline())
    cnt = 0

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

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def examA():
    X = I()
    X -= 400
    ans = 8 - X//200
    print(ans)
    return

def examB():
    A, B, C = LI()
    K = I()
    cnt = 0
    while(A>=B):
        B *= 2
        cnt += 1
    while(B>=C):
        C *= 2
        cnt += 1

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

def examC():
    ans = 0
    print(ans)
    return

def examD():
    ans = 0
    print(ans)
    return

def examE():
    ans = 0
    print(ans)
    return

def examF():
    ans = 0
    print(ans)
    return

from decimal import getcontext,Decimal as dec
import sys,bisect,itertools,heapq,math,random
from copy import deepcopy
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
def I(): return int(input())
def LI(): return list(map(int,sys.stdin.readline().split()))
def DI(): return dec(input())
def LDI(): return list(map(dec,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
global mod,mod2,inf,alphabet,_ep
mod = 10**9 + 7
mod2 = 998244353
inf = 10**18
_ep = dec("0.000000000001")
alphabet = [chr(ord('a') + i) for i in range(26)]
alphabet_convert = {chr(ord('a') + i): i for i in range(26)}

getcontext().prec = 28

sys.setrecursionlimit(10**7)

if __name__ == '__main__':
    examB()

"""
142
12 9 1445 0 1
asd dfg hj o o
aidn
"""

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
k = int(input())
while k:
    if a >= b:
        b*=2
    elif b >= c:
        c*=2
    k-=1

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

ans=0
while B<=A:
    B*=2
    ans+=1
while C<=B:
    C*=2
    ans+=1
if ans<=K:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate

sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7

def main():
    A, B, C = map(int, input().split())
    K = int(input())
    ans = 0
    while A >= B:
        ans += 1
        B *= 2
    
    while B >= C:
        ans += 1
        C *= 2
    if ans <= K:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#float型を許すな
#numpyはpythonで
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil,pi,factorial,sin
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
def SI(): return input().rstrip()
def printns(x): print('\n'.join(x))
def printni(x): print('\n'.join(list(map(str,x))))
inf = 10**17
mod = 10**9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import heapq
import math
import fractions
import bisect
import itertools
from collections import Counter
from collections import deque
from operator import itemgetter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

a,b,c=mp()
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: Accepted

Solution code:
import sys

def solve():
      input = sys.stdin.readline
      A, B, C = map(int, input().split())
      K = int(input())
      count = 0
      while B <= A:
            B *= 2
            count += 1
      while C <= B:
            C *= 2
            count += 1
      if count <= K: print("Yes")
      else: print("No")

      return 0

if __name__ == "__main__":
      solve()

Submission status: Accepted

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

K = int(input())

for i in range(K):

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

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

Submission status: Accepted

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: Accepted

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

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

while a >= b and k >= 1:
    b *= 2
    k -= 1
c *= pow(2, k)

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

Submission status: Accepted

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

d = 0
while b <= a:
    d += 1
    b *= 2
while c <= b:
    d += 1
    c *= 2
print("Yes" if d <= k else "No")

Submission status: Accepted

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

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

count = 0

while b<=a:
  b *= 2
  count += 1

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

k = 0
while B <= A:
	B *= 2
	k += 1

while C <= B:
	C *= 2
	k += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#

import sys
input=sys.stdin.readline

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<C:
        print("Yes")
    else:
        print("No")
    
    
    
if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

cnt = 0
while b <= a:
    b *= 2
    cnt += 1

while c <= b:
    c *= 2
    cnt += 1

ans = 'Yes' if cnt <= k else 'No'
print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import sys
read = sys.stdin.read
readline = sys.stdin.readline

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


v = 0
while b <= a:
    b *= 2
    v += 1

while c <= b:
    c *= 2
    v += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline

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

Submission status: Accepted

Solution code:
def main():
    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')


if __name__ == '__main__':
    main()

# import sys
# input = sys.stdin.readline
# 
# sys.setrecursionlimit(10 ** 7)
# 
# (int(x)-1 for x in input().split())
# rstrip()
#
# def binary_search(*, ok, ng, func):
#     while abs(ok - ng) > 1:
#         mid = (ok + ng) // 2
#         if func(mid):
#             ok = mid
#         else:
#             ng = mid
#     return ok

Submission status: Accepted

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

'''
Author: andyli
Time: 2020-07-25 19:57:00
'''

import os
from io import BytesIO, IOBase
import sys


def main():
    a,b,c = map(int,input().split())

    k = int(input())

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


# region fastio
BUFSIZE = 1048576


class FastIO(IOBase):
    newlines = 0

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

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

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

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


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


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

# endregion


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from collections import deque
import math

def Next(): return input()
def NextInt(): return int(Next())
def NextInts(): return map(int,input().split())
def Nexts(): return map(str,input().split())
def NextIntList(): return list(map(int,input().split()))
def RowInts(n): return [input() for i in range(n)]

a,b,c = NextInts()
k = NextInt()

cnt = 0
while b <= a:
    b *= 2
    cnt += 1
while c <= b:
    c *= 2
    cnt += 1
if cnt <= k:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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: Accepted

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

K = int(input())

# a < b < c

c = 0
while A >= B:
    B *= 2
    c += 1
while B >= C:
    C *= 2
    c += 1

print('Yes' if c <= K else 'No')

Submission status: Accepted

Solution code:
def main():
    A, B, C = list(map(int, input().split()))
    K = int(input())
    k = 0
    while B <= A:
        k += 1
        B *= 2
    while C <= B:
        k += 1
        C *= 2
    return k <= K

print('Yes' if main() else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
K=int(input())
x=0
while B<=A:
    B*=2
    x+=1
while C<=B:
    C*=2
    x+=1
print(['No','Yes'][x<=K])

Submission status: Accepted

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

Submission status: Accepted

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

F=0
for x in range(K+1):
    for y in range(K+1):
        for z in range(K+1):
            p=A*2**x
            q=B*2**y
            r=C*2**z
            if p<q<r and x+y+z<=K:
                F=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for x in sys.stdin.readline().split()]
def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res
def IR(n):
    return [I() for i in range(n)]
def LIR(n):
    return [LI() for i in range(n)]
def SR(n):
    return [S() for i in range(n)]
def LSR(n):
    return [LS() for i in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

def solve():
    a,b,c = LI()
    k = I()
    ans = 0
    while b <= a:
        b *= 2
        ans += 1
    while c <= b:
        c *= 2
        ans += 1
    if ans <= k:
        print("Yes")
    else:
        print("No")
    return

#Solve
if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
from collections import deque, Counter, defaultdict
from itertools import chain, combinations
import json
# import numpy as np
import bisect
import sys
import math
import bisect
from functools import lru_cache
import itertools

sys.setrecursionlimit(10 ** 8)

M = 10 ** 9 + 7
INF = 10 ** 17


def main():
    A, B, C = [int(a) for a in input().split()]
    # A = [int(a) for a in input().split()]
    K = int(input())
    # A = [int(a) for a in input().split()]
    # T1, T2, T3 = [int(a) for a in input().split()]
    c = 0
    while A >= B:
        B *= 2
        c += 1
    while B >= C:
        C *= 2
        c += 1
    if c <= K:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
    if a >= b:
        b *= 2
    else:
        c *= 2

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

Submission status: Accepted

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

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

else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
n = int(input())
for i in range(3 ** n):
    l = [a,b,c]
    for j in range(n):
        l[i % 3] *= 2
        i //= 3
    if l[0] < l[1] and l[1] < l[2]:
        print('Yes')
        exit(0)
print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print('Yes' if n <= k else 'No')

Submission status: Accepted

Solution code:
# じょえチャンネルおもしろいよ～～～
# https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ

yay="Yay!"
noyay=":("
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("Yes")
else:print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import random
# random.sample to choose distinct element in a list or tuple 
abc=list(map(int ,input().split()))
k=int(input())
count=0
# x=element
for j in range(0,len(abc)):
    for i in range(0,k):
        element=random.sample(abc,i)
        second_multi=element*2
        if(element == abc[0]):
            if(b>second_multi and c>b):
                count+=1
            else:
                count+=0
        elif(element == abc[1]):
            second_multi1=element*2
            if(second_multi1>a and c>b):
                count+=1
            else:
                count+=0
        elif(element== abc[2]):
            second_multi2=element*2
            if(b>a and second_multi2>b):
                count+=1
            else:
                count+=0

if(count > 1):
    print("Yes")
elif(count==0):
    print("No")

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
k=int(input())
B=b
for n in range(k):
  if a>b:
    b=b*2
  else:
    break
e=b/B
f=e//2
for m in range(k-f):
  if b>c:
    c=c*2
  else:
    break
if b>a and c>b:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
k=int(input())
B=b
for n in range(k):
  if a>b:
    b=b*2
  else:
    break
e=b/B
for n in range(k-e):
  if b>c:
    c=c*2
  else:
    break
if b>a and c>b:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

n = 0
while B <= A:
  B * 2
  i += 1
  
while C <= B:
  C * 2
  i += 1

print('Yes' if i <= K else 'No)

Submission status: Runtime Error

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: Runtime Error

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

while k > 0:
  if b <= a:
    b *= 2
    k -= 1
  else:
    break
if k > 0:
  multiplier = 2 ** k
  if c * multiplier > b:
    ans = 'Yes'
  else:
    ans = 'No'

print(ans)

Submission status: Runtime Error

Solution code:
a, b, c = input1
k = int(input())

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

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

Submission status: Runtime Error

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

n = 0
while b <= a:
  b = b*2
  n += 1
while c <= b:
  c = c*2
  n += 1
if n <= k:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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<c else 'Yes')

Submission status: Runtime Error

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:
if is_yes == 0:
  print("No")

Submission status: Runtime Error

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: Runtime Error

Solution code:
a,b,c=map(int,input())
k=int(input())
for i in range(1,k+1):
  if a>=b>=c or a>=c>=b:
    c=c*2
  elif b>=a>=c or b>=c>=a:
    c=c*2
  elif c>=b>a:
    c=c*2
  elif c>b==a:
    b=b*2
  elif c>a>=b:
    b=b*2
if c>b>a:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

def Base_10_to_n(X, n):
    if (int(X/n)):
        return Base_10_to_n(int(X/n), n)+str(X%n)
    return str(X%n)


ans = 0
if a < b < c:
    ans = 1

for i in range(3**k):
    a = A
    b = B
    c = C
    i3 = Base_10_to_n(i, 3).zfill(k)
    mem = 0
    Pick = []
    for j in range(k):
        if i3[j] == '0':
            a *= 2
        elif i3[j] == '1':
            b *= 2
        elif i3[j] == '2':
            c *= 2
#        print(a, b, c)
    if a < b < c:
        ans = 1
#        print('!!')
if ans:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split(" "))
k = int(input())
f = False
for conb in list(itertools.combinations_with_replacement([0, 1, 2], k)):
    a_i = conb.count(0)
    b_i = conb.count(1)
    c_i = conb.count(2)
    
    if (a * (2 ** a_i) < b * (2 **b_i)) and (b * (2 ** b_i) < c * (2 ** c_i)):
        f = True

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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