第 341 题:(2024 AIME II, 3)
Find the number of ways to place a digit in each cell of a 2x3 grid so that the sum of the two numbers formed by reading left to right is $999$, and the sum of the three numbers formed by reading top to bottom is $99$. The grid below is an example of such an arrangement because $8+991=999$ and $9+9+81=99$. \[ \begin{array}{|c|c|c|} \hline 0 & 0 & 8 \\ \hline 9 & 9 & 1 \\ \hline \end{array} \]
- With top row $a,b,c$ and bottom row $d,e,f$, $\overline{abc}+\overline{def}=999$ forces $a+d=b+e=c+f=9$ (no carries are possible).
- Then $10(a+b+c)+(d+e+f)=99$ with $d+e+f=27-(a+b+c)$ gives $9(a+b+c)=72$, $a+b+c=8$.
- Nonnegative solutions: $\binom{10}2=45$. The answer is $\boxed{045}$.
Find the number of ways to place a digit in each cell of a 2x3 grid so that the sum of the two numbers formed by reading left to right is $888$, and the sum of the three numbers formed by reading top to bottom is $123$. The grid below is an example of such an arrangement because $109+779=888$ and $17+7+99=123$. \[ \begin{array}{|c|c|c|} \hline 1 & 0 & 9 \\ \hline 7 & 7 & 9 \\ \hline \end{array} \]