def indicate_hotspots(period: int, gaspersec: int):
    for blockno in range(block_start, block_end):
        is_hotspot[blockno] = False
    for blockno in range(block_start, block_end):
        sum = (- gasused[blockno])
        bk = blockno
        while (timestamp[bk] > (timestamp[blockno] - period)):
            bk -= 1
            sum += gasused[(bk + 1)]
        is_hotspot[blockno] = (sum >= (period * gaspersec))
def indicate_hotspots(period: int, gaspersec: int):
    for blockno in range(block_start, block_end):
        is_hotspot[blockno] = False
    for blockno in range(block_start, block_end):
        sum = (- gasused[blockno])
        bk = blockno
        while (timestamp[bk] > (timestamp[blockno] - period)):
            bk -= 1
            sum += gasused[(bk + 1)]
        is_hotspot[blockno] = (sum >= (period * gaspersec))