mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 03:33:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			913 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			913 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>表: <code>Triangle</code></p>
 | 
						|
 | 
						|
<pre>
 | 
						|
+-------------+------+
 | 
						|
| Column Name | Type |
 | 
						|
+-------------+------+
 | 
						|
| x           | int  |
 | 
						|
| y           | int  |
 | 
						|
| z           | int  |
 | 
						|
+-------------+------+
 | 
						|
在 SQL 中,(x, y, z)是该表的主键列。
 | 
						|
该表的每一行包含三个线段的长度。
 | 
						|
</pre>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
 | 
						|
<p>对每三个线段报告它们是否可以形成一个三角形。</p>
 | 
						|
 | 
						|
<p>以 <strong>任意顺序 </strong>返回结果表。</p>
 | 
						|
 | 
						|
<p>查询结果格式如下所示。</p>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
 | 
						|
<p><strong>示例 1:</strong></p>
 | 
						|
 | 
						|
<pre>
 | 
						|
<strong>输入:</strong> 
 | 
						|
Triangle 表:
 | 
						|
+----+----+----+
 | 
						|
| x  | y  | z  |
 | 
						|
+----+----+----+
 | 
						|
| 13 | 15 | 30 |
 | 
						|
| 10 | 20 | 15 |
 | 
						|
+----+----+----+
 | 
						|
<strong>输出:</strong> 
 | 
						|
+----+----+----+----------+
 | 
						|
| x  | y  | z  | triangle |
 | 
						|
+----+----+----+----------+
 | 
						|
| 13 | 15 | 30 | No       |
 | 
						|
| 10 | 20 | 15 | Yes      |
 | 
						|
+----+----+----+----------+</pre>
 |