No.3630 Edge of triangle
レベル :
/ AI推定難易度 : 189
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 1024 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 72
作問者 : 👑
ssmbc2929_bartok
/ テスター :
👑
p-adic
タグ : / 解いたユーザー数 72
作問者 : 👑
問題文最終更新日: 2026-07-25 21:42:57
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 510 数学まみれコンテスト
(順位表)
の他の問題:
Problem Statement
Baru has $3$ sticks with lengths $A$ mm, $B$ mm, and $C$ mm.
He wants to use these sticks to make a triangle.
Given $3$ positive integers $A$, $B$, $C$, determine whether there exists a triangle whose $3$ side lengths are these values.
Constraints
- $1 \le A, B, C \le 3000$
- All inputs are integers.
Input
$A\ B\ C$
The input is given from standard input in the above format.
Output
Print Yes if the triangle exists, and No otherwise, on $1$ line.
Print a newline at the end.
Sample
Sample 1
Input
3 5 4
Output
Yes
This triangle does exist. (The triangle with the ratio $\ 3:4:5\ $ is a famous one.)
Sample 2
Input
4 12 7
Output
No
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。