| @echo off | | setlocal enabledelayedexpansion | | set /a num=1 | | for /l %%n in (1,1,6) do ( | | for /l %%mi in (1,1,%n%) do set /a num*=2 | | for /l %%a in (1,1,9) do ( | | set /a x=%num%-%%a | | if %x% gtr 0 for /l %%b in (1,1,9) do ( | | set /a x-=%%b | | if %x% gtr 0 for /l %%c in (1,1,9) do ( | | set /a x-=%%c | | if %x% gtr 0 for /l %%d in (1,1,9) do ( | | set /a x-=%d% | | if %x% gtr 0 for /l %%e in (1,1,9) do ( | | set /a x-=%%d | | if %x% gtr 0 if %x% lss 10 echo | | %%a %%b %%c %%d %%e | | ) | | ) | | ) | | ) | | ) | | )COPY |
好象这数也太多了吧 我只写了5位数的 总共有10位数的 怎么办呢
先把这些发上来 明天再改 |