六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 35|回复: 0

joj 1817: Triangle 三角形的判定

[复制链接]

升级  1%

57

主题

57

主题

57

主题

举人

Rank: 3Rank: 3

积分
203
 楼主| 发表于 2013-1-26 12:54:27 | 显示全部楼层 |阅读模式
<span style="font-size: 14px;"> 1817: Triangle

ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE5s8192K2409685Standard<div class="prob_text">2nd JOJ Cup Online VContest Problem
Given three integers a, b and c(|a|, |b|, |c|<10000), determine if they can compose a valid triangle. If so, further determine which kind of the triangle it is.
Input Specification
The input consists of several lines, each of which contains three integers a, b and c.
Output Specification
For each group of a b and c, first print "Case K:", a space, and then one of the following four lines:
is not a valid triangle.
is a sharp triangle.
is a right triangle.
is a blunt triangle.
corresponding to your determinant, where K is the number of the test cases starting from 1.
Sample Input
3 4 5
3 3 3
1 2 3
3 4 6
Sample Output
Case 1: is a right triangle.
Case 2: is a sharp triangle.
Case 3: is not a valid triangle.
Case 4: is a blunt triangle.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表