本帖最后由 QIAOXINGXING 于 2012-2-26 13:44 编辑
- @echo off&setlocal enabledelayedexpansion&cd /d "%~dp0"
- set "n=0"
- for /l %%i in (2 1 1000) do (
- set "a=%%i"
- set /a "b=a/2+1"
- if !b! gtr 32 set /a "b=32"
- call :1
- if "!c!"=="!b!" set /a "n+=1"&echo !n!:!a!
- )
- pause
- :1
- for /l %%a in (2 1 !b!) do (
- set "c=%%a"
- set /a "d=a%%c"
- if "!d!"=="0" goto :eof
- )
复制代码
|