- @echo off&setlocal enabledelayedexpansion
- for /l %%a in (1,1,378) do (
- set /p str=<%%a.txt
- set n=0
- for %%b in (!str!) do set /a #!n!.%%b+=1,n+=1
- )
- for /l %%a in (0,1,9) do (
- for /l %%b in (0,1,9) do (
- set /a m=0
- for /l %%c in (0,1,9) do (
- if !#%%a.%%b!%%c lss !#%%a.%%c!%%b set /a m+=1
- )
- set "!m!=%%b"
- )
- for /l %%i in (0,1,9) do set "echo=!echo!!%%i! "
- )
- echo,%echo%>new.txt
复制代码
|