本帖最后由 terse 于 2015-11-7 02:31 编辑
- @ECHO OFF&setlocal enabledelayedexpansion
- md "D:/数据/002/" 2>nul
- for /l %%i in (0,1,8) do set /a _%%i=%%i+1
- for /l %%s in (100000,1,199999) do (
- set $n=&set $m=&set str=%%s
- for /l %%i in (1,1,4) do (
- for /l %%j in (!_%%i!,1,5) do (
- set /a "n=(!str:~%%i,1!+!str:~%%j,1!)%%10"
- set /a "m=(!str:~%%i,1!-!str:~%%j,1!)%%10"
- set $n=!$n!!n!
- set $m=!$m!!m:-=!
- )
- )
- for /l %%a in (0,1,6) do (
- for /l %%b in (!_%%a!,1,9) do (
- for /l %%c in (!_%%b!,1,9) do (
- for /l %%d in (!_%%c!,1,9) do (
- for %%n in (n m) do (
- set /a %%n=10!$%%n:~%%a,1!!$%%n:~%%b,1!!$%%n:~%%c,1!!$%%n:~%%d,1!+1
- if not defined !str!#!%%n! (
- set !str!#!%%n!=0
- >> "D:/数据/002/!%%n:~-5!.txt" echo;!str:~1!
- )
- )
- )
- )
- )
- )
- )
- PAUSE
复制代码
|