Problem p02677 (python)

Fixed submission:
def resolve():
    import math
    A, B, H, M = map(int, input().split())
    sita = abs(H*30+M*0.5-M*6)
    if sita > 180:
        sita = 360 - sita
    print(math.sqrt(A**2+B**2-2*A*B*math.cos(math.radians(sita))))
resolve()

Buggy submission (verdict: Runtime Error):
import.math
A, B, C, D = map(int, input().split())
sita = A*30+B*0.5-B*6
sitas = 0
if sita > 180:
  sitas = 360 - sita
elif -180<= sita < 0:
  sitas = sita * -1
elif sita < -180:
  sitas = sita + 360
else:
  sitas = sita
sin = math.cos(math.radians(sitas))
tan = C**2+D**2-2*C*D*sin
print(math.sqrt(tan))

Buggy submission (verdict: Runtime Error):
import.math
A, B, C, D = map(int, input().split())
sita = A*30+B*0.5-B*6
sitas = 0
if sita > 180:
  sitas = 360 - sita
elif -180<= sita < 0:
  sitas = sita * -1
elif sita < -180:
  sitas = sita + 360
else:
  sitas = sita
sin = math.cos(str(sitas))
tan = C**2+D**2-2*C*D*sin
print(math.sqrt(tan))

Buggy submission (verdict: Runtime Error):
import.math
A, B, C, D = map(int, input().split())
sita = A*30+B*0.5-B*6
sitas = 0
if sita > 180:
  sitas = 360 - sita
elif -180<= sita < 0:
  sitas = sita * -1
elif sita < -180:
  sitas = sita + 360
else:
  sitas = sita
print(math.sqrt(C**2+D**2-2*C*D*(math.cos(sitas))))

Buggy submission (verdict: Runtime Error):
import.math
A, B, C, D = map(int, input().split())
sita = A*30+B*6
sitas = 0
if sita > 180:
  sitas = 360 - sita
elif -180<= sita < 0:
  sitas = sita * -1
elif sita < -180:
  sitas = sita + 360
else:
  sitas = sita
print(math.sqrt(C**2+D**2-2*C*D*(math.cos(sitas))))

Buggy submission (verdict: Runtime Error):
import.math
A, B, C, D = map(int, input().split())
sita = A*30+B*6
if sita > 180:
  sitas = 360 - sita
elif -180<= sita < 0:
  sitas = sita * -1
elif sita < -180:
  sitas = sita + 360
else:
  sitas = sita
print(math.sqrt(C**2+D**2-2*C*D*math.cos(sitas)))

Buggy submission (verdict: Runtime Error):
import.math
A, B, H, M = map(int, input.split())
sita = (H*30+M*0.5)-(M*6)
print((A**2+B**2-2*A*B*(math.cos(math.radians(Sita))))**0.5)

Buggy submission (verdict: Runtime Error):
import.math
A, B, H, M = map(int, input.split())
sita = (H*30+M*0.5)-(M*6)
if sita > 180:
  Sita = 360 - sita
elif 0 > sita >= -180:
  Sita = sita * -1
elif -180 > sita > -360:
  Sita = sita + 360
else:
  Sita = sita
print((A**2+B**2-2*A*B*(math.cos(math.radians(Sita))))**0.5)

Buggy submission (verdict: Runtime Error):
import.math
A, B, H, M = map(int, input.split())
sita = (H*30+M*0.5)-(M*6)
if (sita > 180):
  Sita = 360 - sita
elif (0 > sita >= -180):
  Sita = sita * -1
elif (-180 > sita > -360):
  Sita = sita + 360
elif (0 <= sita <= 180):
  Sita = sita
print((A**2+B**2-2*A*B*(math.cos(math.radians(Sita))))**0.5)

Buggy submission (verdict: Runtime Error):
import.math
A, B, H, M = map(int, input.split())
sita = (H*30+M*0.5)-(M*6)
if (sita > 180):
  Sita = 360 - sita
elif (0 > sita >= -180):
  Sita = sita * -1
elif (-180 > sita > -360):
  Sita = sita + 360
else:
  Sita = sita
print((A**2+B**2-2*A*B*(math.cos(Sita)))**0.5)

Buggy submission (verdict: Runtime Error):
import.math
A, B, H, M = map(int, input.split())
sita = (H*30+M*0.5)-(M*6)
if (sita > 180):
  Sita = 360 - sita
elif (0 > sita >= -180):
  Sita = sita * -1
elif (-180 > sita > -360):
  Sita = sita + 360
else:
  Sita = sita
print((A**2+B**2-2*A*B*(math.cos(math.radians(Sita))))**0.5)