Compare commits

..

10 Commits

Author SHA1 Message Date
Victor Alexandrovich Tsyrenschikov
7aa4b53909 python 2026-03-30 20:20:58 +05:00
Victor Alexandrovich Tsyrenschikov
f5d3dbe0e0 python 2026-03-21 11:26:51 +05:00
Victor Alexandrovich Tsyrenschikov
81d0645603 ESPHOME 2026-03-08 11:47:35 +05:00
Victor Alexandrovich Tsyrenschikov
569de9a058 HA 2026-03-05 20:58:01 +05:00
Victor Alexandrovich Tsyrenschikov
e07e2445bf 8 2026-03-03 12:51:17 +05:00
Victor Alexandrovich Tsyrenschikov
444c46b695 Project and EspHome 2026-03-01 21:02:34 +05:00
Victor Alexandrovich Tsyrenschikov
557b0cb514 Project and EspHome 2026-02-22 10:47:59 +05:00
Victor Alexandrovich Tsyrenschikov
3a016aaca3 Project 2026-02-17 18:59:26 +05:00
Victor Alexandrovich Tsyrenschikov
1875a07fa8 Esphome 2026-02-13 21:39:59 +05:00
Victor Alexandrovich Tsyrenschikov
3f866f753e 8 2026-02-10 13:17:29 +05:00
8 changed files with 10051 additions and 10022 deletions

2
1.py Normal file
View File

@@ -0,0 +1,2 @@
c=-654%10
print(c)

12
17.py Normal file
View File

@@ -0,0 +1,12 @@
b=ma=0
f=open('17_1.txt')
mi=10**10
o=[int(i) for i in f]
for i in range(len(o)):
if abs(o[i])%10==6:
mi=min(mi,o[i])
for i in range(len(o)-1):
if ((abs(o[i])%10==6 and abs(o[i+1])%10!=6) or (abs(o[i])%10!=6 and abs(o[i+1])%10==6)) and (o[i]**2+o[i+1]**2)< mi**2:
b+=1
ma=max(ma,(o[i]**2+o[i+1]**2))
print(b,ma)

5000
17.txt Normal file

File diff suppressed because it is too large Load Diff

5000
17_1.txt Normal file

File diff suppressed because it is too large Load Diff

10000
24.txt

File diff suppressed because it is too large Load Diff

28
8.py
View File

@@ -1,13 +1,25 @@
from itertools import product, combinations, count
from timeit import repeat
# Генерируем все пары из двух списков
for x in product([1,2], repeat=1):
print(x)
# for x in product([1,2], repeat=1):
# print(x)
#
#
# from itertools import product
# print(*(list(product('ЛНРТ', repeat=5))[149]))
#
#
# from itertools import product
# print([''.join(p) for p in product('ЛНРТ', repeat=5)][149])
# a=0
# collec=sorted(list(''.join(i) for i in product('СДАЙЕГЭ', repeat=6)))
# for i in range(len(collec)):
# # if 'ЕГЭ' in collec[i]:
# if collec[i].count('ЕГЭ'):
# a+=i+1
# print(a)
from itertools import product
print(*(list(product('ЛНРТ', repeat=5))[149]))
from itertools import product
print([''.join(p) for p in product('ЛНРТ', repeat=5)][149])
a=[i for i in product([i for i in range(20)],repeat = 5)]
print(a)

19
f.py
View File

@@ -1,7 +1,12 @@
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)
# Тип 6 № 43583
dict1=dict()
count=0
for A in range(101):
for i in range(9):
s = int(input())
t = int(input())
if (s > A) or (t > 11):
count+=1
if count==4:
dict1[A] = count
count=0

10
one.py
View File

@@ -1,6 +1,4 @@
wrong = '@&*$/'
password=input("enter your password")
for i in password:
if i in wrong:
print('Запрещенный символ -',i)
set1=set(map(int,input().split()))
set2=set(map(int,input().split()))
set3=set(map(int,input().split()))
print(sorted(set1&set2&set3))