ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN109/111_2016_Questions > задача:


PE06. 51032 - Triangle Property

CEN109/111_2016_Questions

Старт: 07.дек.2016 в 12:37:00
Финиш: 07.дек.2016 в 13:42:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (1)

Задачи турнира

• HW1. 51055 - The competition
• HW2. 51056 - Welcome Picnic
• PE01. 51027 - Download Percentage
• PE02. 51028 - Isosceles Triangles
• PE03. 51029 - Buy Three Items
• PE04. 51030 - Number of Right Tria...
• PE05. 51031 - Convert from Hex to...
• PE06. 51032 - Triangle Property
• PE07. 51033 - Sum of the series
• PE08. 51034 - Area of 3 Shapes
• PE09. 51040 - Annual profit
• PE10. 51041 - Plane Segmentation
• PE11. 51038 - Simple interest
• PE12. 51039 - Automated billing system
• RE1. 51077 - Grades Histogram
• RE2. 51078 - Max trade

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Triangle Property

Question: In mathematics, the triangle inequality states that for any triangle, sum of the lengths of any two sides must be greater than the length of the remaining side. You are given the sides of three triangles, how many of them comply the triangle property?

Input specification: You will be given 3 integers in three lines. (s1, s2 and s3) where 0 ≤ (s1, s2 and s3) ≤ 1 million.

Output specification: Show one number, the number of triangles.

Sample Input I
3 4 5
12 5 13
5 10 15
Sample Input II
19 9 8
6 11 14
3 17 12
Sample Output I
2
Sample Output II
1

Explanation: for the first sample: the third number triple does not comply the triangle property 15 < 5+10. The other two number triples are OK.
For the second sample, only the the second input complies the triangle property 14, 6, 11.

Для отправки решений необходимо выполнить вход.

www.contester.ru