|
36 | 36 | <p> </p>
|
37 | 37 |
|
38 | 38 | <p><strong>示例 1:</strong></p>
|
39 |
| -<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/1.png" style="width: 529px; height: 241px;"> |
40 |
| -<pre><b>输入:</b>segments = [[1,4,5],[4,7,7],[1,7,9]] |
| 39 | +<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/1.png" style="width: 529px; height: 241px;" /> |
| 40 | +<pre> |
| 41 | +<b>输入:</b>segments = [[1,4,5],[4,7,7],[1,7,9]] |
41 | 42 | <b>输出:</b>[[1,4,14],[4,7,16]]
|
42 |
| -<strong>解释:</strong>绘画借故偶可以表示为: |
| 43 | +<strong>解释:</strong>绘画结果可以表示为: |
43 | 44 | - [1,4) 颜色为 {5,9} (和为 14),分别来自第一和第二个线段。
|
44 | 45 | - [4,7) 颜色为 {7,9} (和为 16),分别来自第二和第三个线段。
|
45 | 46 | </pre>
|
46 | 47 |
|
47 | 48 | <p><strong>示例 2:</strong></p>
|
48 |
| -<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/2.png" style="width: 532px; height: 219px;"> |
49 |
| -<pre><b>输入:</b>segments = [[1,7,9],[6,8,15],[8,10,7]] |
| 49 | +<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/2.png" style="width: 532px; height: 219px;" /> |
| 50 | +<pre> |
| 51 | +<b>输入:</b>segments = [[1,7,9],[6,8,15],[8,10,7]] |
50 | 52 | <b>输出:</b>[[1,6,9],[6,7,24],[7,8,15],[8,10,7]]
|
51 | 53 | <b>解释:</b>绘画结果可以以表示为:
|
52 | 54 | - [1,6) 颜色为 9 ,来自第一个线段。
|
|
56 | 58 | </pre>
|
57 | 59 |
|
58 | 60 | <p><strong>示例 3:</strong></p>
|
59 |
| -<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/c1.png" style="width: 529px; height: 289px;"> |
60 |
| -<pre><b>输入:</b>segments = [[1,4,5],[1,4,7],[4,7,1],[4,7,11]] |
| 61 | +<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/1900-1999/1943.Describe%20the%20Painting/images/c1.png" style="width: 529px; height: 289px;" /> |
| 62 | +<pre> |
| 63 | +<b>输入:</b>segments = [[1,4,5],[1,4,7],[4,7,1],[4,7,11]] |
61 | 64 | <b>输出:</b>[[1,4,12],[4,7,12]]
|
62 | 65 | <strong>解释:</strong>绘画结果可以表示为:
|
63 | 66 | - [1,4) 颜色为 {5,7} (和为 12),分别来自第一和第二个线段。
|
|
0 commit comments