from typing import List


def sum_cpu_resources_unformatted(cpu_resources: List[str]):
    """ Sum cpu resources given in k8s format and return the sum in the same format. """
    cpu_sum = 0
    for cpu_resource in cpu_resources:
        if not cpu_resource:
            continue
        # If CPU resources are gives as for example 100m, we simply strip last character and sum leftover numbers.
        elif cpu_resource[-1] == "m":
            cpu_sum += int(cpu_resource[:-1])
        # Else we assume that cpu resources are given as float value of normal CPUs instead of miliCPUs.
        else:
            cpu_sum += int(float(cpu_resource) * 1000)

    return cpu_sum