mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<p>The <strong>grid happiness</strong> is the <strong>sum</strong> of each person's happiness. Return<em> the <strong>maximum possible grid happiness</strong>.</em></p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2020/11/05/grid_happiness.png" style="width: 261px; height: 121px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> m = 2, n = 3, introvertsCount = 1, extrovertsCount = 2
|
||||
@@ -28,7 +28,7 @@ The grid happiness is 120 + 60 + 60 = 240.
|
||||
The above figure shows the grid in this example with each person's happiness. The introvert stays in the light green cell while the extroverts live on the light purple cells.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> m = 3, n = 1, introvertsCount = 2, extrovertsCount = 1
|
||||
@@ -40,7 +40,7 @@ The above figure shows the grid in this example with each person's happiness
|
||||
The grid happiness is 90 + 80 + 90 = 260.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> m = 2, n = 2, introvertsCount = 4, extrovertsCount = 0
|
||||
|
Reference in New Issue
Block a user