login css
This commit is contained in:
15
546456.py
15
546456.py
@@ -1,13 +1,4 @@
|
|||||||
a=int(input());b=int(input())
|
import math
|
||||||
CD=open("24__.txt").readline().strip()
|
|
||||||
position=[]
|
|
||||||
|
|
||||||
for i in range(len(CD) - 1):
|
a,b=map(int,input().split())
|
||||||
if CD[i:i+2] == 'CD':
|
print(round(math.sqrt(a**2+b**2),2))
|
||||||
position.append(i)
|
|
||||||
position.append(len(CD) - 1)
|
|
||||||
|
|
||||||
ml = 0
|
|
||||||
for p, p1 in zip(position, position[161:]):
|
|
||||||
ml = max(ml, p1 - p)
|
|
||||||
print(ml)
|
|
||||||
Reference in New Issue
Block a user