Codeforces Triangle Problem (6A) | Day 17 | Beginner → Grandmaster Series
Автор: CodeOrbit
Загружено: 2026-03-09
Просмотров: 1
Описание:
🚀 Day 17 of the Codeforces Beginner to Grandmaster Series
In this video, we solve Triangle – Problem A from Codeforces Beta Round 6.
The problem gives 4 sticks, and we need to determine whether any 3 of them can form a triangle.
Possible outcomes:
TRIANGLE → if any 3 sticks satisfy the triangle inequality
SEGMENT → if they form a degenerate triangle
IMPOSSIBLE → if neither is possible
💡 Key Idea
For three sides a, b, c:
Triangle → a + b is greater than c
Segment → a + b = c
Otherwise impossible
Since we have 4 sticks, we check all combinations of 3 sticks.
This is a classic implementation + math problem perfect for beginners starting competitive programming.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: