Diamond
#描述#
Jelly loves diamond. She likes to play the Diamond game when feeling unhappy. This game is very easy and silly somehow. Every time, there is a running diamond in the screen (rotating and changing position), and Jelly clicks mouse to catch it. If the mouse click point is inside of the diamond, then this diamond is caught, and Jelly will be very happy ;)
In this game, the running diamond is represented by an angle (A) and an ending point (E). Note, the length of diamond (H) is fixed to 20. Fig.1 shows two diamonds with different angle:
#格式#
##输入格式##
There are several test cases. Each test case consists of five integer values: angle (0 <= angle < 360), x-coordinate of ending point, y-coordinate of ending point, x-coordinate of mouse click point, y-coordinate of mouse click point.
##输出格式##
For each test case, print a smile face if the diamond is caught, print a sad face otherwise.
#样例1#
##样例输入1##
0 20 0 10 0
0 20 0 5 5
90 0 20 10 0
90 0 20 10 10
##样例输出1##
;)
;(
;(
;(
#限制#
1000ms
32768KB
#提示#
#来源#