Buggy python submission (verdict: Time Limit Exceeded):
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

temp = 1
old = 1
for i in range(k):
    temp *= data[i]

for i in range(k, n):
    old = temp
    temp = temp / data[i-k] * data[i]
    if temp > old:
        print("Yes")
    else:
        print("No")




Fixed submission:
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

for i in range(n-k):
    if data[i] < data[k+i]:
        print("Yes")
    else:
        print("No")

Buggy python submission (verdict: Time Limit Exceeded):
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

temp = 1
old = 1
for i in range(n):
    if i < k:
        temp *= data[i]
        continue
    else:
        old = temp
        temp = temp / data[i-k] * data[i]
    #print("i:{}, k:{}".format(i, k))
    #print(score)

    if i > k-1:
        if temp > old:
            print("Yes")
        else:
            print("No")




Fixed submission:
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

for i in range(n-k):
    if data[i] < data[k+i]:
        print("Yes")
    else:
        print("No")

Buggy python submission (verdict: Time Limit Exceeded):
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

temp = 1
old = 1
for i in range(n):
    if i < k:
        temp *= data[i]
    else:
        old = temp
        temp = temp // data[i-k] * data[i]
    #print("i:{}, k:{}".format(i, k))
    #print(score)

    if i > k-1:
        if temp > old:
            print("Yes")
        else:
            print("No")




Fixed submission:
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

for i in range(n-k):
    if data[i] < data[k+i]:
        print("Yes")
    else:
        print("No")

Buggy python submission (verdict: Time Limit Exceeded):
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))
score = []

temp = 1
for i in range(n):
    if i < k-1:
        temp *= data[i]
        score.append(0)
    elif i == k-1:
        temp *= data[i]
        score.append(temp)
    else:
        temp = temp // data[i-k] * data[i]
        score.append(temp)
    #print("i:{}, k:{}".format(i, k))
    #print(score)

    if i > k-1:
        if score[i] > score[i-1]:
            print("Yes")
        else:
            print("No")




Fixed submission:
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

for i in range(n-k):
    if data[i] < data[k+i]:
        print("Yes")
    else:
        print("No")

Buggy python submission (verdict: Time Limit Exceeded):
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))
score = []

temp = 1
for i in range(n):
    if i < k-1:
        temp *= data[i]
        score.append(0)
    elif i == k-1:
        temp *= data[i]
        score.append(temp)
    else:
        temp = temp // data[i-k] * data[i]
        score.append(temp)
    #print("i:{}, k:{}".format(i, k))
    #print(score)

for j in range(k, n):
    if score[j] > score[j-1]:
        print("Yes")
    else:
        print("No")

Fixed submission:
#!/usr/bin/env python3
# スペース区切りの整数の入力
n, k = map(int, input().split())
#配列の入力
data = list(map(int, input().split()))

for i in range(n-k):
    if data[i] < data[k+i]:
        print("Yes")
    else:
        print("No")