Buggy python submission (verdict: Runtime Error):
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  Z = Y - X
elif X - Y <= -180:
  Z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Buggy python submission (verdict: Runtime Error):
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  Z = Y - X
elif X - Y <= -180:
  Z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
else:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Buggy python submission (verdict: Runtime Error):
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  Z = Y - X
elif X - Y <= -180:
  Z = 360 -(Y - X)
elif 180 > X - Y => 0:
  z = X - Y
else:
  Z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(Z))
ANS = ans**0.5

print(ANS)

Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Buggy python submission (verdict: Runtime Error):
A,B,H,M = map(int, input().split())
X = H / 12 * 360 + M / 60 * 30
Y = M / 60 * 360 

if X - Y => 0 and X - Y <= 180:
 C = X - Y
elif X - Y > 180:
 C = 360 - (X - Y)
elif X - Y <= 0 and X - Y > -180:
 C = Y - X
else:
 C = 360 - (Y - X)
print(math.sqrt(A*A + B*B - 2*A*B*math.cos(math.radians(int(C))) ))


Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Buggy python submission (verdict: Runtime Error):
A,B,H,M = map(int, input().split())
X = H / 12 * 360 + M / 60 * 30
Y = M / 60 * 360 

if X - Y => 0 and X - Y <= 180:
 C = X - Y
elif X - Y > 180:
 C = 360 - (X - Y)
elif X - Y <= 0 and X - Y > -180:
 C = Y - X
else:
 C = 360 - (Y - X)
print(math.sqrt(A*A + B*B - 2*A*B*math.cos(math.radians(int(C))) ))


Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)

Buggy python submission (verdict: Runtime Error):
A,B,H,M = map(int, input().split())
X = H / 12 * 360 + M / 60 * 30
Y = M / 60 * 360 

if X => Y:
 C = X - Y
else:
 C = Y - X
print(math.sqrt(A*A + B*B - 2*A*B*math.cos(int(C)) ))

Fixed submission:
import math
A,B,H,M = map(int, input().split())
X = H*30+M*0.5
Y = M*6
if  -180 < X - Y < 0:
  z = Y - X
elif X - Y <= -180:
  z = 360 -(Y - X)
elif 180 > X - Y >= 0:
  z = X - Y
elif X - Y >= 180:
  z = 360-(X - Y)
ans = A*A+B*B-2*A*B*math.cos(math.radians(z))
ANS = math.sqrt(ans)

print(ANS)