Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Sample competition problems Triangle Types jdcc16c3a Mehwar Raza Triangles can be described in many ways. One way to describe a triangle is by the equality between its angles/sides (equilateral, isosceles, scalene). Another way to describe a triangle is by the size of its largest angle (acute, right, obtuse). These two descriptions can be combined as well! So a triangle with all three angles equaling 60 degrees is an acute equilateral triangle, and a triangle with one 100 degree angle and two 40 degree angles is an obtuse isosceles triangle. Your job is to write a program that will describe a triangle given the size of its angles. Input Each test case contains three integers A,B,CA,B,C (1≤A,B,C≤178)(1≤A,B,C≤178), the three angles of a triangle. Output Output the triangle's description, starting with one of acute, right, obtuse, and ending with one of equilateral, isosceles, scalene. Sample Input 1 Sample Output 2 60 60 60 obtuse isosceles Sample Output 1 Sample Input 3 acute equilateral 90 89 1 Sample Input 2 Sample Output 3 100 40 40 right scalene Word Sums jdcc16c5a Reyno Tilikaynen, Mehwar Raza Nicole is ecstatic to have finally learned addition. Armed with this powerful technique, she has run around her house and added together every pair of numbers she could possibly find. Now that she is out of numbers, she wonders to herself: why should addition only be limited to numbers? Why can't we also add words together? She has decided to add two words together as follows: take the first letter of both words, say B and C, figure out which letter in the alphabet they are (B = 2, C = 3), add those two numbers together, (2+3=52+3=5), then figure out which letter is fifth in the alphabet (E), and make that the first letter of the sum. If the sum is greater than 2626, subtract 2626 from the sum. Repeat the process with the remaining letters. For example, CAT + BZ = EAT Now that Nicole is no longer limited to numbers, she now has a new world of words that she can add. However, she has been having trouble adding some of the longer words together. As her favourite older sibling, could you help her add these long words? Input Each test case contains two non-empty words containing at most 1,0001,000 uppercase letters. Output For each test case, output the sum of the two words. Sample Input 1 Sample Input 2 CAT NICOLE BZ ROCKS Sample Output 1 Sample Output 2 EAT FXFZEE © 2016 - 2017 mcpt.ca