This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-03-30 20:20:58 +05:00
parent f5d3dbe0e0
commit 7aa4b53909
4 changed files with 10014 additions and 0 deletions

2
1.py
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