There are 6 identical rectangles with side lengths of 3 cm, 4 cm, and 5 cm, and they are numbered ①, ②, ③, ④, ⑤, and ⑥ in sequence, and then according to the numbers, their 1 surface, 2 3 faces, 4 faces, 5 faces, 6 faces are dyed red, and the six cuboids are dyed, and all of them are divided into small cubes with a side length of 1 cm, and only one face is red. What is the minimum number of cubes?
现有6个边长为3厘米、4厘米、5厘米的相同的长方形，将它们依次编号为①、②、③、④、⑤、⑥号，然后根据编号分别将它们的1个面、2个面、3个面、4个面、5个面、6个面染成红色，六个长方体染色完毕，将它们全部分割成棱长为1厘米的小正方体，问只有一个面是红色的小正方体最少有多少个？
<gadget id="calculator">3 * 4</gadget>
<output>12</output>

<gadget id="calculator">3 * 4 * 2</gadget>
<output>24</output>

<gadget id="calculator">3 * 5</gadget>
<output>15</output>

<gadget id="calculator">24 + 15</gadget>
<output>39</output>

<gadget id="calculator">3 * 5 * 2</gadget>
<output>30</output>

<gadget id="calculator">24 + 30</gadget>
<output>54</output>

<gadget id="calculator">4 * 5</gadget>
<output>20</output>

<gadget id="calculator">24 + 30 + 20</gadget>
<output>74</output>

<gadget id="calculator">4 * 5 * 2</gadget>
<output>40</output>

<gadget id="calculator">40 + 30 + 24</gadget>
<output>94</output>

<gadget id="calculator">12 + 24 + 39 + 54 + 74 + 94</gadget>
<output>297</output>

<result>297</result>