Computer/Algorithm

Daily Algorithm - 삼각형의 성립 조건

kentakang 2018. 1. 6. 11:07
반응형

문제 출처 : http://codeup.kr/JudgeOnline/problem.php?id=1212


풀이 :

#include <stdio.h>

int main()
{
	int a, b, c;
	
	scanf("%d %d %d", &a, &b, &c);
	if(c < a + b && b < a + c && a < b + c)
		printf("yes");
	else
		printf("no");
}
반응형