From 1875a07fa80907c374721926292108d6235f01eb Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Fri, 13 Feb 2026 21:39:59 +0500 Subject: [PATCH] Esphome --- f.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/f.py b/f.py index 3da8c99..61ef557 100644 --- a/f.py +++ b/f.py @@ -1 +1,7 @@ -print(max([int(input()) for i in range(int(input()))])) \ No newline at end of file +sum_i=0 +for i in range(int(input('Введите число последовательности: '))): + a=int(input('Введите числа')) + if a%5==0 and a>sum_i: + sum_i=a + +print(sum_i) \ No newline at end of file