Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# coding: UTF-8

import math, sys
if sys.version_info[0]<3: input=raw_input

class StandardInput:

    def stdin_string(self):
        self.s=str(input().rstrip())
        return self.s

    def stdin_integer(self):
        self.n=int(input().rstrip())
        return self.n

    def stdin_array(self):
        self.arr=input().rstrip().split()
        return self.arr

    def stdin_integer_array(self):
        self.arr=list(map(int,input().rstrip().split()))
        return self.arr

def test(arr):
    a,b,h,m=arr
    ar=2*math.pi*( h/12 + m/60/12 )
    br=2*math.pi*( m/60 )
    return math.sqrt( ( a*math.cos(ar) - b*math.cos(br) )**2 + ( a*math.sin(ar) - b*math.sin(br) )**2 )

def main():
    obj=StandardInput()
    arr=obj.stdin_integer_array()
    s=obj.stdin_string()
    print(test(arr))
        
if __name__ == '__main__':
    main()

Fixed submission:
#!/usr/bin/env python
# coding: UTF-8

import math, sys
if sys.version_info[0]<3: input=raw_input

class StandardInput:

    def stdin_string(self):
        self.s=str(input().rstrip())
        return self.s

    def stdin_integer(self):
        self.n=int(input().rstrip())
        return self.n

    def stdin_array(self):
        self.arr=input().rstrip().split()
        return self.arr

    def stdin_integer_array(self):
        self.arr=list(map(int,input().rstrip().split()))
        return self.arr

def test(arr):
    a,b,h,m=arr
    ar=2*math.pi*( h/12 + m/60/12 )
    br=2*math.pi*( m/60 )
    return math.sqrt( ( a*math.cos(ar) - b*math.cos(br) )**2 + ( a*math.sin(ar) - b*math.sin(br) )**2 )

def main():
    obj=StandardInput()
    arr=obj.stdin_integer_array()
    print(test(arr))
        
if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# coding: UTF-8

import math, sys
if sys.version_info[0]<3: input=raw_input

class StandardInput:

    def stdin_string(self):
        self.s=str(input().rstrip())
        return self.s

    def stdin_integer(self):
        self.n=int(input().rstrip())
        return self.n

    def stdin_array(self):
        self.arr=input().rstrip().split()
        return self.arr

    def stdin_integer_array(self):
        self.arr=list(map(int,input().rstrip().split()))
        return self.arr

def test(arr):
    a,b,h,m=arr
    ar=2*math.pi*( h/12 + m/60/12 )
    br=2*math.pi*( m/60 )
    return math.sqrt( ( a*math.cos(ar) - b*math.cos(br) )**2 + ( a*math.sin(ar) - b*math.sin(br) )**2 )

def main():
    obj=StandardInput()
    arr=obj.stdin_integer_array()
    s=obj.stdin_string()
    print(test(arr))
        
if __name__ == '__main__':
    main()

Fixed submission:
#!/usr/bin/env python
# coding: UTF-8

import math, sys
if sys.version_info[0]<3: input=raw_input

class StandardInput:

    def stdin_string(self):
        self.s=str(input().rstrip())
        return self.s

    def stdin_integer(self):
        self.n=int(input().rstrip())
        return self.n

    def stdin_array(self):
        self.arr=input().rstrip().split()
        return self.arr

    def stdin_integer_array(self):
        self.arr=list(map(int,input().rstrip().split()))
        return self.arr

def test(arr):
    a,b,h,m=arr
    ar=2*math.pi*( h/12 + m/60/12 )
    br=2*math.pi*( m/60 )
    return math.sqrt( ( a*math.cos(ar) - b*math.cos(br) )**2 + ( a*math.sin(ar) - b*math.sin(br) )**2 )

def main():
    obj=StandardInput()
    arr=obj.stdin_integer_array()
    print(test(arr))
        
if __name__ == '__main__':
    main()