请列出用2、5、8、0这四个数字组成的所有四位数(数字可以重复使用)
请列出用2、5、8、0这四个数字组成的所有四位数(数字可以重复使用)
急用!
0也可以做第一个数字,我电脑的密码忘了,只记得好像有这四个数字组成,
共有:3×4×4×4=192种
2000,2002,2005,2008,2020,2022,2025,2028,2050,2052,2055,2058,2080,2082,2085,2088,
2200,2202,2205,2208,2220,2222,2225,2228,2250,2252,2255,2258,2280,2282,2285,2288,
2500,2502,2505,2508,2520,2522,2525,2528,2550,2552,2555,2558,2580,2582,2585,2588,
2800,2802,2805,2808,2820,2822,2825,2828,2850,2852,2855,2858,2880,2882,2885,2888,
5000,5002,5005,5008,5020,5022,5025,5028,5050,5052,5055,5058,5080,5082,5085,5088,
5200,5202,5205,5208,5220,5222,5225,5228,5250,5252,5255,5258,5280,5282,5285,5288,
5500,5502,5505,5508,5520,5522,5525,5528,5550,5552,5555,5558,5580,5582,5585,5588,
5800,5802,5805,5808,5820,5822,5825,5828,5850,5852,5855,5858,5880,5882,5885,5888,
8000,8002,8005,8008,8020,8022,8025,8028,8050,8052,8055,8058,8080,8082,8085,8088,
8200,8202,8205,8208,8220,8222,8225,8228,8250,8252,8255,8258,8280,8282,8285,8288,
8500,8502,8505,8508,8520,8522,8525,8528,8550,8552,8555,8558,8580,8582,8585,8588,
8800,8802,8805,8808,8820,8822,8825,8828,8850,8852,8855,8858,8880,8882,8885,8888,万分感谢!请问可以把0打头的也列出来吗?共有:4×4×4×4=256种0做开头的数字有:0000,0002,0005,0008,0020,0022,0025,0028,0050,0052,0055,0058,0080,0082,0085,0088,0200,0202,0205,0208,0220,0222,0225,0228,0250,0252,0255,0258,0280,0282,0285,0288,0500,0502,0505,0508,0520,0522,0525,0528,0550,0552,0555,0558,0580,0582,0585,0588,0800,0802,0805,0808,0820,0822,0825,0828,0850,0852,0855,0858,0880,0882,0885,0888只要找到规律,做起来很简单。祝你开心!