Answer to Question #332659 in Java | JSP | JSF for Nikhil

Question #332659



Sara loves triangles. Whenever she sees three points she connects them by straight lines to form a triangle. In triangles, her favorite one is a right-angled triangle. If the triangle is not right-angled but it can be converted into one by moving one of the points exactly by distance 1 so, that all the coordinates remain integer, she calls such triangles "Special".




Given three points A, B, and C your task is to check if the formed triangle is "Right", "Special" or "Simpl





Constraints:-




|X|, |Y| <= 10^9




Output




Print "Right" if the triangle is right- angled, print "Special" if the triangle can be formed into a right- angled by moving one of the points exactly by distance 1, else print "Simple".




Example




Sample Input:-




0 0




2 0




0 1





Sample Output:-




Right





Sample Input:-




-1 0




2 0




0 1





Sample Output:-




Special





Sample Input:-




-1 0




2 0




10 10





Sample Output:-




Simple

0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS