Buggy python submission (verdict: Time Limit Exceeded):
# import decimal
import time
time1 = time.time()

N, K = map(int, input().split())
# N = 200000
# K = 50000
A_list = list(map(int, input().split()))
# A_list = [2 for i in range(N)]
Score_list = [1 for i in range(N+1)]

for i in range(K, N+1):
    if i == K:
        S = 1
        for j in range(i-K, i):
            S *= A_list[j]
        Score_list[i] = S
    else:
        Score_list[i] = int(Score_list[i-1] / A_list[i-1-K])
        Score_list[i] *= A_list[i-1]
    if i > K:
        if Score_list[i] > Score_list[i-1]:
            print("Yes")
        else:
            print("No")
    # print(Score_list)

# print(Score_list)
time2 = time.time()
# print(time2-time1)


Fixed submission:
# import decimal
import time
time1 = time.time()

N, K = map(int, input().split())
# N = 200000
# K = 50000
A_list = list(map(int, input().split()))
# A_list = [2 for i in range(N)]
# Score_list = [1 for i in range(N+1)]

for i in range(K+1, N+1): #KからNの数字が入る
    # print(i-1)
    # print(i-2-K)
    if A_list[i-1] > A_list[i-1-K]:
        print("Yes")
    else:
        print("No")
    # if i == K:
    #     S = 1
    #     for j in range(i-K, i):
    #         S *= A_list[j]
    #     Score_list[i] = S
    # else:
    #     Score_list[i] = int(Score_list[i-1] / A_list[i-1-K])
    #     Score_list[i] *= A_list[i-1]
    # if i > K:
    #     if Score_list[i] > Score_list[i-1]:
    #         print("Yes")
    #     else:
    #         print("No")
    # # print(Score_list)

# print(Score_list)
time2 = time.time()
# print(time2-time1)

Buggy python submission (verdict: Time Limit Exceeded):
N, K = map(int, input().split())
A_list = list(map(int, input().split()))
Score_list = [1 for i in range(N+1)]

for i in range(K, N+1):
    # print(sum(A_list[0:i]))
    #
    # Score_list[i] = sum(A_list[0:i])
    # Score_list[i] = 1
    if i == K:
        for j in range(i-K, i):
            Score_list[i] *= A_list[j]
    else:
        # print(i)
        # print(A_list[i])
        Score_list[i] = int(Score_list[i-1] * A_list[i-1] / A_list[i-1-K])
    if i > K:
        if Score_list[i] > Score_list[i-1]:
            print("Yes")
        else:
            print("No")
    # print(Score_list)

# print(Score_list)


Fixed submission:
# import decimal
import time
time1 = time.time()

N, K = map(int, input().split())
# N = 200000
# K = 50000
A_list = list(map(int, input().split()))
# A_list = [2 for i in range(N)]
# Score_list = [1 for i in range(N+1)]

for i in range(K+1, N+1): #KからNの数字が入る
    # print(i-1)
    # print(i-2-K)
    if A_list[i-1] > A_list[i-1-K]:
        print("Yes")
    else:
        print("No")
    # if i == K:
    #     S = 1
    #     for j in range(i-K, i):
    #         S *= A_list[j]
    #     Score_list[i] = S
    # else:
    #     Score_list[i] = int(Score_list[i-1] / A_list[i-1-K])
    #     Score_list[i] *= A_list[i-1]
    # if i > K:
    #     if Score_list[i] > Score_list[i-1]:
    #         print("Yes")
    #     else:
    #         print("No")
    # # print(Score_list)

# print(Score_list)
time2 = time.time()
# print(time2-time1)

Buggy python submission (verdict: Time Limit Exceeded):
N, K = map(int, input().split())
A_list = list(map(int, input().split()))
Score_list = [1 for i in range(N+1)]

for i in range(K, N+1):
    # print(sum(A_list[0:i]))
    #
    # Score_list[i] = sum(A_list[0:i])
    # Score_list[i] = 1
    for j in range(i-K, i):
        Score_list[i] *= A_list[j]
    if i > K:
        if Score_list[i] > Score_list[i-1]:
            print("Yes")
        else:
            print("No")

# print(Score_list)


Fixed submission:
# import decimal
import time
time1 = time.time()

N, K = map(int, input().split())
# N = 200000
# K = 50000
A_list = list(map(int, input().split()))
# A_list = [2 for i in range(N)]
# Score_list = [1 for i in range(N+1)]

for i in range(K+1, N+1): #KからNの数字が入る
    # print(i-1)
    # print(i-2-K)
    if A_list[i-1] > A_list[i-1-K]:
        print("Yes")
    else:
        print("No")
    # if i == K:
    #     S = 1
    #     for j in range(i-K, i):
    #         S *= A_list[j]
    #     Score_list[i] = S
    # else:
    #     Score_list[i] = int(Score_list[i-1] / A_list[i-1-K])
    #     Score_list[i] *= A_list[i-1]
    # if i > K:
    #     if Score_list[i] > Score_list[i-1]:
    #         print("Yes")
    #     else:
    #         print("No")
    # # print(Score_list)

# print(Score_list)
time2 = time.time()
# print(time2-time1)