text stringlengths 0 66.2k |
|---|
C1:2, C2:1, C3:0, C4:1. |
Needs: |
C2:1 more, C3:1, C4:0 (since it's already at 1). |
R3 can place in C2 or C3 (can't place in C4). |
R4 can place in C2 or C3 (can't place in C4). |
So: |
To fulfill C2 needs 1 more and C3 needs 1. |
R3 and R4 must place one in C2 and one in C3. |
Possible ways: |
R3 in C2, R4 in C3: |
R3: [0,1,0,0] |
R4: [0,0,1,0] |
Or R3 in C3, R4 in C2: |
R3: [0,0,1,0] |
R4: [0,1,0,0] |
Thus, 2 ways. |
5. (4,2): |
Symmetric to case 4. R1 in 4, R2 in 2. |
R1: [1,0,0,1] |
R2: [1,1,0,0] |
Columns: |
C1:2, C2:1, C3:0, C4:1. |
Same as case 4, leading to 2 ways. |
6. (3,4): |
R1: [1,0,1,0] |
R2: [1,0,0,1] |
Columns: |
C1:2, C2:0, C3:1, C4:1. |
Needs: |
C2:2, C3:0, C4:0. |
R3 and R4 must place both in C2. |
R3 can place in C2 (since its empty is C3). |
R4 can place in C2 (since its empty is C4). |
Thus: |
R3: [0,1,0,0] |
R4: [0,1,0,0] |
This is valid, as column 2 gets 2. |
So 1 way. |
7. (4,3): |
Symmetric to case 6. R1 in 4, R2 in 3. |
R1: [1,0,0,1] |
R2: [1,0,1,0] |
Columns: |
C1:2, C2:0, C3:1, C4:1. |
Same as case 6, leading to 1 way. |
So total for Case 2 (R1 and R2 share column 1): |
Cases 1-7 give: |
1 (case1) + 2 (case2) + 2 (case3) + 2 (case4) + 2 (case5) + 1 (case6) + 1 (case7) = 1+2+2+2+2+1+1=11. |
Wait, let's add them up: |
Case1:1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.