batman 当前离线
考官
荣誉版主
@echo offcall :lp 16echo %total%pause>nul&exit:lpif not defined num set /a num=%1,total=1if %num% neq 0 set /a total*=num,num-=1&call :lp %num%COPY
CrLf 当前离线
论坛巡查
@echo offset /a n=m=1set bat="%~0"setlocal enabledelayedexpansionset "next=if ^!n^! leq 12 (set /a m*=n,n+=1&echo ^!next^!>>^!bat^!) else (echo ^!m^!&pause&exit)"(echo;&echo !next!)>>!bat!COPY
TOP
523066680 (消遣区)当前离线
版主
@echo offset /p inp="1-7: "call :next %inp% a c bpause:nextif %1 equ 0 goto :eofset /a now=%1-1call :next %now% %2 %4 %3echo,%1 from %2 to %3set /a now=%1-1call :next %now% %4 %3 %2COPY
@echo offcall:perm "a b c xy z"pause :perm <"c1 c2 ..."> // code by plpsetlocal enabledelayedexpansion&set "s=%~1 "if "!s: =!" == "" (echo %~2)else for %%b in (%~1)do call:perm "!s:%%b =!" "%~2 %%b"endlocal&goto:eofCOPY
@echo offcall:perm "1 2 3 4 5 6"pause :perm <"c1 c2 ..."> // code by plpset "s=%~1 "if "%s: =%" == "" (echo %~2 &goto:eof)for %%b in (%~1) do (call:perm "%%s:%%b =%%" "%~2%%b" &set "s=%~1 ")COPY
评分人数
xxpinqz (YiFeng)当前离线
中校
悬崖之树 当前离线
上尉
@echo offsetlocal enabledelayedexpansionset total=1call :lp 16echo %total%pause>nul&exit:lpset /a num=%1if %num% neq 0 ( set /a total*=num,num-=1&call :lp !num!)COPY
PakTC 当前离线
四级士官
@echo offRem Combination.bat by Paktccall :func "abcd" ""pause &exit :func setlocal if %1=="" ( if not %2=="" (echo %~2) goto :eof ) set strnow=%~1 call :func "%strnow:~1%" "%~2%strnow:~0,1%" call :func "%strnow:~1%" "%~2" endlocalCOPY