text stringlengths 0 66.2k |
|---|
C1: 2 (good) |
C2: 2 (good) |
C3: 0 (needs 1) |
C4: 0 (needs 1) |
Then R3 and R4 must place their 1s in C3 and C4. |
R3 can't place in C3 (since it's column 3, R3's empty is there), so R3 must place in C4. |
R4 can't place in C4, so must place in C3. |
Thus: |
R3: [0,0,0,1] |
R4: [0,0,1,0] |
This works, as before. |
Case 2b: R1 places second 1 in column 2, R2 places in column 3. |
Then: |
R1: [1,1,0,0] |
R2: [1,0,1,0] |
Then columns: |
C1: 2 |
C2: 1 (needs 1 more) |
C3: 1 (needs 0 more, since it's type B) |
Wait, column 3 is type B, so it can only have 1 P. So if R2 places there, that's okay, but then R3 and R4 cannot place in column 3. |
But column 3 already has 1 from R2, so it's full. Then R3 and R4 need to place their 1s in columns 2 and 4. |
R3 can place in column 2 or 4 (can't place in 3). |
R4 can place in column 2 or 3 (but 3 is full), so column 2. |
So: |
R3: [0,1,0,0] or [0,0,0,1] |
If R3 places in column 2: |
R3: [0,1,0,0] |
Then column 2 has 1 (R1) +1 (R3) = 2, good. |
Then R4 must place in column 4: |
R4: [0,0,0,1] |
This works. |
If R3 places in column 4: |
R3: [0,0,0,1] |
Then column 4 has 1 (R3), good. |
R4 must place in column 2: |
R4: [0,1,0,0] |
Column 2 has 1 (R1) +1 (R4) = 2, good. |
So both options work. So this gives two possibilities. |
Similarly, if R1 places in column 3 and R2 in column 2, it's symmetric. |
Case 2c: R1 places in column 3, R2 in column 4. |
Then: |
R1: [1,0,1,0] |
R2: [1,0,0,1] |
Columns: |
C1: 2 |
C2: 0 (needs 2) |
C3: 1 (needs 0) |
C4: 1 (needs 0) |
But column 2 needs 2 P's, but currently has 0. R3 and R4 must place their 1s in column 2, but each can only place one. |
R3 can place in column 2 (since its empty is column 3), so: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.