diff --git a/solutions/beecrowd/1159/1159.py b/solutions/beecrowd/1159/1159.py new file mode 100644 index 00000000..6445cd3b --- /dev/null +++ b/solutions/beecrowd/1159/1159.py @@ -0,0 +1,11 @@ +import sys + + +def sum_five_consecutive_even_numbers(number): + return sum(filter(lambda x: x % 2 == 0, range(number, number + 10))) + + +for line in sys.stdin: + number = int(line) + if number: + print(sum_five_consecutive_even_numbers(number))