三角形

三角形

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 217    Accepted Submission(s): 73

Problem Description
这是一个简单的任务:
假设告诉你三个正整数A,B和C (0<A,B,C<10000),它们分别表示三条边的长度,请判断这三条边是否能够组成一个合法的三角形。
 

 

Input
输入数据的第一行是一个正整数N,表示有N组测试数据,然后是N行数据,每行包含三个整数A,B和C。
 

 

Output
对于每组数据,如果能够组成合法三角形,请输出Yes,否则请输出No。
 

 

Sample Input
3 3 4 4 3 4 5 3 4 8
 

 

Sample Output
Yes Yes No
13th June 2010 1 Comment Permalink

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Statistical data collected by Statpress SEOlution (blogcraft).