mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<p>Given a <code>m * n</code> matrix <code>seats</code> that represent seats distributions in a classroom. If a seat is broken, it is denoted by <code>'#'</code> character otherwise it is denoted by a <code>'.'</code> character.</p>
|
||||
|
||||
<p>Students can see the answers of those sitting next to the left, right, upper left and upper right, but he cannot see the answers of the student sitting directly in front or behind him. Return the <strong>maximum </strong>number of students that can take the exam together without any cheating being possible..</p>
|
||||
<p>Students can see the answers of those sitting next to the left, right, upper left and upper right, but he cannot see the answers of the student sitting directly in front or behind him. Return the <strong>maximum </strong>number of students that can take the exam together without any cheating being possible.</p>
|
||||
|
||||
<p>Students must be placed in seats in good condition.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img height="200" src="https://assets.leetcode.com/uploads/2020/01/29/image.png" width="339" />
|
||||
<pre>
|
||||
<strong>Input:</strong> seats = [["#",".","#","#",".","#"],
|
||||
@@ -15,7 +15,7 @@
|
||||
<strong>Explanation:</strong> Teacher can place 4 students in available seats so they don't cheat on the exam.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> seats = [[".","#"],
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> seats = [["#",".","<strong>.</strong>",".","#"],
|
||||
|
Reference in New Issue
Block a user