Buggy python submission (verdict: Time Limit Exceeded):
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    bigNumber = 0

    for i in range(x-y+1):

        number = sum(p[i:i+y])

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()


Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    bigNumber = 0

    for i in range(x-y+1):

        number = sum(p[i:i+y])

        if sum(p[i:i+y]) > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()


Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    bigNumber = 0

    for i in range(x-y+1):

        number = sum(p[i:i+y])

        if sum(p[i:i+y]) > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()


Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()

Buggy python submission (verdict: Runtime Error):
x,y = map(int,input().split())
p = list(map(int,input().split()))

bigNumber = 0

for i in range(x-y+1):
    if sum(p[i:i+y]) > bigNumber:
        bigNumber = number

print((bigNumber + y) / 2)


Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()

Buggy python submission (verdict: Time Limit Exceeded):
x,y = map(int,input().split())
p = list(map(int,input().split()))

bigNumber = 0

for i in range(x-y+1):

    number = sum(p[i:i+y])

    if number > bigNumber:
        bigNumber = number

print((bigNumber + y) / 2)



Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()

Buggy python submission (verdict: Time Limit Exceeded):
x,y = map(int,input().split())
p = list(map(int,input().split()))

bigPoint = 0
bigNumber = 0

for i in range(x-y+1):

    number = sum(p[i:i+y])

    if number > bigNumber:
        bigNumber = number
        bigPoint = i

print((bigNumber + y) / 2)


Fixed submission:
def main():
    x,y = map(int,input().split())
    p = list(map(int,input().split()))

    number = sum(p[0:y])
    bigNumber = number

    for i in range(x-y):

        number = number - p[i] + p[i+y]

        if number > bigNumber:
            bigNumber = number

    print((bigNumber + y) / 2)

main()