|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 31 楼』:
使用 LLM 解释/回答一下
看来我的表达能力是大有问题。
再来一次
要求生成一个文本文件,内容是a和b及空格,但是a和b的总数是60个。
第一行不能有空格,且必须是ababab这样交错的,不能是bba或aab这样的
举例:
假设得到的第一个随机字母是a,那么就把a写入b.txt
再获取第二个随机字母,假设又是a,则写入到前面得到的a的下面。如果得到的是b。则写入到b.txt的第一行,就是和第一个a并排。
继续获取随机字母,再判断它和上一个字母是否相同,如果相同则写入到上一个字母的正下方,注意:“是上一个字母”,否则就写入到第一行,
那么这样得到的最终结果,就会是以下格式的文本。
ababababa
a ab b ba
ab b a
b a
It seems that my expression ability is quite problematic.
Do it again
Require to generate a text file with content being a, b and spaces, but the total number of a and b is 60.
The first line cannot have spaces and must be interlaced like ababab, not like bba or aab.
For example:
Suppose the first randomly obtained letter is a, then write a into b.txt
Then obtain the second randomly obtained letter, suppose it is a again, then write it below the previously obtained a. If it is b, then write it in the first line of b.txt, that is, side by side with the first a.
Continue to obtain the randomly obtained letter, then judge whether it is the same as the previous letter. If it is the same, write it directly below the previous letter. Note: "is the previous letter", otherwise write it in the first line.
Then the final result obtained in this way will be the following format of text.
ababababa
a ab b ba
ab b a
b a
|

致精致简! |
|
2008-5-7 23:33 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 32 楼』:
使用 LLM 解释/回答一下
我说下我的思路~
abflag="sloreissloreleeandsloreleeisslorehahailovedoscndosgood"
随机生成一个数表示行~比如12
然后生成
abababababab做第一行ab=12
后面开始:
i=i+1
if abflag的i%12位是" " 看是奇数还是偶数直接输出a或者b,ab+=1
i%2……
奇数就a或" "……随机下
if 是" "就abflag的i位换" " else 那就是a了呗,哦对了~ab+=1
偶数就b或" "……再随机
if 是" "就abflag的i位换" " else 那就是b了呗,哦对了~ab+=1
i%12自己处理是不是要换行了呀~
恩,ab=60啦~88
自己看这样的伪代码能看懂不嗬~不懂就当标记了下……
对P处理文字不感冒没有兴趣=。=
Last edited by slore on 2008-5-7 at 11:49 PM ]
Let me state my train of thought~
abflag = "sloreissloreleeandsloreleeisslorehahailovedoscndosgood"
Randomly generate a number to represent the row~ For example, 12
Then generate
abababababab as the first row, ab = 12
Then start:
i = i + 1
If the i%12th character of abflag is " ", see whether it's odd or even and directly output a or b, ab += 1
i%2……
If odd, then a or " "……Random next
If it's " ", then replace the i-th character of abflag with " ", else that's a, oh right~ ab += 1
If even, then b or " "……Random again
If it's " ", then replace the i-th character of abflag with " ", else that's b, oh right~ ab += 1
Do I need to handle the line break for i%12 by myself?
Hmm, ab = 60啦~88
See if you can understand this pseudo-code~ If not, just treat it as a mark……
No interest in processing text with P~
Last edited by slore on 2008-5-7 at 11:49 PM ]
|
|
2008-5-7 23:39 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 33 楼』:
使用 LLM 解释/回答一下
顺便把歪掉脑袋~~的思路题下……
随机要a还是b开始?x=a?b
随机个行数比如8
k=60-8
循环开始
随机生成小于等于k的数i(k=k-i)
连续生成i个x
随机生成小于等于k的数i(k=k-i)
连续生成i个x反(x是a那么x反就是b)
如果循环次数到第7次了……剩下的k个全输出……
如果k=0了结束……
这样是会生成一个
8行内的52字符……
假使a开始……
第一次随机是8
循环中第一次生成了个9
输出
aaaaaaaaa
然后循环生成5
bbbbb
在循环生成0
再循环生成4
bbbb
再循环生成8
aaaaaaaa
循环生成0
循环生成12
aaaaaaaaaaaa
7次循环了还没有够60哇?
剩下14个给你咯
bbbbbbbbbbbbbb
结果:
aaaaaaaaa
bbbbb
aaaaaaaa
bbbb
aaaaaaaa
aaaaaaaaaaaa
bbbbbbbbbbbbbb
行列转换的代码论坛有吧?
转制后输入到b.txt
然后输出:
babababa
type b.txt
这个似乎麻烦了?哪个快就不知道了……
如果不转的话,生成的代码这个是最容易的……
By the way, let's comment on the crooked-headed~~thinking problem...
Randomly choose to start with a or b? x = a? b
Randomly a number of lines, such as 8
k = 60 - 8
Start the loop
Randomly generate a number i ≤ k (k = k - i)
Generate i consecutive x
Randomly generate a number i ≤ k (k = k - i)
Generate i consecutive reversed x (if x is a, then reversed x is b)
If the loop has reached the 7th time... output all remaining k...
If k = 0, end...
This will generate a 52-character within 8 lines...
Suppose starting with a...
The first random is 8
In the loop, the first generated is 9
Output
aaaaaaaaa
Then the loop generates 5
bbbbb
Then the loop generates 0
Then the loop generates 4
bbbb
Then the loop generates 8
aaaaaaaa
Then the loop generates 0
Then the loop generates 12
aaaaaaaaaaaa
7 loops and still not enough 60?
The remaining 14 are given to you
bbbbbbbbbbbbbb
Result:
aaaaaaaaa
bbbbb
aaaaaaaa
bbbb
aaaaaaaa
aaaaaaaaaaaa
bbbbbbbbbbbbbb
There are codes for row-column conversion in the forum, right?
Convert and input to b.txt
Then output:
babababa
type b.txt
This seems troublesome? I don't know which is faster...
If not converting, generating this code is the easiest...
|
|
2008-5-8 00:19 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 34 楼』:
使用 LLM 解释/回答一下
我来一个,这个代码会由于a和b的数量不足60个而显示ECHO 处于关闭状态(只能叉掉才能停止,汗...,希望高手改进),因水平有限第一行的字符数量都是双数(唉,再次汗...),当然也可以为单,只因太牵强,故不为之.没有所谓的算法,只有一点点想法,即把下一行的对应位置的字符和上一行的进行比较,如果不同,则用空格代替,期望高手能给出更高效简洁的代码(最好能把算法讲一讲以便新手及吾等菜鸟学习).
@echo off
setlocal enabledelayedexpansion
set "code=ab"
set /a c=%random%%%2,d=%random%%%60+1,e=d*2
for /l %%i in (1,1,%d%) do (
if %c%==0 (
set var1=!var1!ab&set /a numa+=1,numb+=1
) else (
set var1=!var1!ba&set /a numa+=1,numb+=1
))
:again
echo %var1%
set "var2="
set n=0
:again_
set /a f=%random%%%2
call set g=%%code:~%f%,1%%
call set h=%%var1:~%n%,1%%
if "%g%"=="%h%" (
set "var2=%var2%!g!"&set /a num!g!+=1,n+=1
) else (
set "var2=%var2% "&set /a n+=1
)
if %numa% gtr 60 (if %numb% gtr 60 echo %var2%&pause&exit /b)
if %n% lss %e% goto :again_
echo %var2%
set n=0
set "var1="
:more
set /a i=%random%%%2
call set j=%%code:~%i%,1%%
call set k=%%var2:~%n%,1%%
if "%j%"=="%k%" (
set "var1=%var1%!j!"&set /a num!j!+=1,n+=1
) else (
set "var1=%var1% "&set /a n+=1
)
if %numa% gtr 60 (if %numb% gtr 60 echo %var2%&pause&exit /b)
if %n% lss %e% goto :more
goto :again
I'll come one. This code will display that ECHO is off because the number of a and b is less than 60 (can only be closed by closing the window, sweat... Hope experts can improve it). Due to limited level, the number of characters in the first line is all even numbers (alas, sweat again...), of course, it can also be odd, just because it's too far-fetched, so it's not. There is no so-called algorithm, only a little idea, that is, compare the characters in the corresponding position of the next line with the previous line, if they are different, replace them with spaces. I hope experts can give a more efficient and concise code (preferably explain the algorithm so that novices and we chumps can learn).
@echo off
setlocal enabledelayedexpansion
set "code=ab"
set /a c=%random%%%2,d=%random%%%60+1,e=d*2
for /l %%i in (1,1,%d%) do (
if %c%==0 (
set var1=!var1!ab&set /a numa+=1,numb+=1
) else (
set var1=!var1!ba&set /a numa+=1,numb+=1
))
:again
echo %var1%
set "var2="
set n=0
:again_
set /a f=%random%%%2
call set g=%%code:~%f%,1%%
call set h=%%var1:~%n%,1%%
if "%g%"=="%h%" (
set "var2=%var2%!g!"&set /a num!g!+=1,n+=1
) else (
set "var2=%var2% "&set /a n+=1
)
if %numa% gtr 60 (if %numb% gtr 60 echo %var2%&pause&exit /b)
if %n% lss %e% goto :again_
echo %var2%
set n=0
set "var1="
:more
set /a i=%random%%%2
call set j=%%code:~%i%,1%%
call set k=%%var2:~%n%,1%%
if "%j%"=="%k%" (
set "var1=%var1%!j!"&set /a num!j!+=1,n+=1
) else (
set "var1=%var1% "&set /a n+=1
)
if %numa% gtr 60 (if %numb% gtr 60 echo %var2%&pause&exit /b)
if %n% lss %e% goto :more
goto :again
|
|
2008-5-8 10:52 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 35 楼』:
使用 LLM 解释/回答一下
上帝!总算有一个明白题意的了,代码确实存在bug,而且b和a好像不太随机,要求的是每一个a或b都是随机得到的。。
也不错了,加分鼓励。。
Oh my God! Finally there is someone who understands the problem. There are indeed bugs in the code, and it seems that b and a are not very random. What is required is that each a or b is randomly obtained. Not bad either, bonus for encouragement.
|

致精致简! |
|
2008-5-8 11:15 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 36 楼』:
使用 LLM 解释/回答一下
而且b和a好像不太随机
set "code=ab"
set f=%random%%%2
call set g=%%code:~%f%,1%%
这样不算随机吗
And b and a don't seem very random
set "code=ab"
set f=%random%%%2
call set g=%%code:~%f%,1%%
Is this not random?
|
|
2008-5-8 11:22 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 37 楼』:
使用 LLM 解释/回答一下
也是哦,应该是随机的,只是开始看你的结果怎么有这么多字母,应该总数60个才对啊。
Oh, that's right. It should be random. I just noticed that your result has so many letters at first. The total should be 60.
|

致精致简! |
|
2008-5-8 12:01 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 38 楼』:
使用 LLM 解释/回答一下
强烈要求26933062老大将代码贴出来
Strongly request 26933062 boss to post the code
|
|
2008-5-8 12:53 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 39 楼』:
使用 LLM 解释/回答一下
@echo off&setlocal enabledelayedexpansion
Title 本代码演示了个无聊的过程…
color 1f
Set Max=60
Set FixTime=0
::这个为自定义开关~你想使用自己设定的列数修改之……
Set firstline=slore
Set abFlag=sloreissloreleeandsloreleeisslorehahailovedoscndosgoodblue
::自然可以用1~60,不过第一行太多不好看哈哈,不喜欢的自己改~
if %firstline%==slore (
Set /a firstline=%random%%%5+20
Set /a Max=%random%%%20+40
Set Msg=Slore 设置输出!firstline!列 共!Max!个字符
) else (
Set Msg=%username% 设置输出%firstline%列 共%Max%个字符)
echo o(∩_∩)o-----------------------------------轩----
echo %Msg%
echo ----轩-----------------------------------o(∩_∩)o
echo.
Set /a n=%firstline%/2
for /l %%i in (1,1,%n%) do Call,Set fl=!fl!ab
Set /a n=%firstline%%%2
if %n% EQU 1 Set fl=%fl%a
echo %fl%
Set ab=%firstline%
Set /a endline=%ab%-1
Set i=0
:Loop
Set /a abPos=%i%%%%firstline%
Set /a rad1=%abPos%%%2
Set /a rad2=%random%%%2
Set /a i+=1
Set Posletter=!abFlag:~%abPos%,1!
if %FixTime% EQU %endline% Set rad2=1
if %rad1% EQU 0 (
if "%Posletter%"==" " (Set nl=%nl% ) else (
if %rad2% EQU 0 (Set nl=%nl% &Call :Fix %abPos%) else Set nl=%nl%a&Set /a ab+=1)
) else (
if "%Posletter%"==" " (Set nl=%nl% ) else (
if %rad2% EQU 0 (Set nl=%nl% &Call :Fix %abPos%) else Set nl=%nl%b&Set /a ab+=1)
)
if %abPos% EQU %endline% echo %nl%
if %abPos% EQU %endline% Set nl=
if %ab% EQU %Max% goto :ExitLoop
goto :Loop
:ExitLoop
if Not "%nl%"=="" echo %nl%
echo.
::echo ab的个数为:%ab%
echo 无聊的代码演示结束!
pause>nul
:Fix
if %FixTime% EQU %endline% goto :EndFix
Set /a e=%1+1
Set abFlag=!abFlag:~0,%1! !abFlag:~%e%!
Set /a FixTime+=1
:EndFix
Last edited by slore on 2008-5-8 at 05:19 PM ]
```
@echo off&setlocal enabledelayedexpansion
Title This code demonstrates a boring process...
color 1f
Set Max=60
Set FixTime=0
::This is a custom switch~ If you want to use your own set number of columns, modify it...
Set firstline=slore
Set abFlag=sloreissloreleeandsloreleeisslorehahailovedoscndosgoodblue
::Naturally, it can be 1~60, but the first line is too long and not good-looking. Haha, change it if you don't like it~
if %firstline%==slore (
Set /a firstline=%random%%%5+20
Set /a Max=%random%%%20+40
Set Msg=Slore sets output!firstline! columns, total!Max! characters
) else (
Set Msg=%username% sets output%firstline% columns, total%Max% characters)
echo o(∩_∩)o-----------------------------------Xuan----
echo %Msg%
echo ----Xuan-----------------------------------o(∩_∩)o
echo.
Set /a n=%firstline%/2
for /l %%i in (1,1,%n%) do Call,Set fl=!fl!ab
Set /a n=%firstline%%%2
if %n% EQU 1 Set fl=%fl%a
echo %fl%
Set ab=%firstline%
Set /a endline=%ab%-1
Set i=0
:Loop
Set /a abPos=%i%%%%firstline%
Set /a rad1=%abPos%%%2
Set /a rad2=%random%%%2
Set /a i+=1
Set Posletter=!abFlag:~%abPos%,1!
if %FixTime% EQU %endline% Set rad2=1
if %rad1% EQU 0 (
if "%Posletter%"==" " (Set nl=%nl% ) else (
if %rad2% EQU 0 (Set nl=%nl% &Call :Fix %abPos%) else Set nl=%nl%a&Set /a ab+=1)
) else (
if "%Posletter%"==" " (Set nl=%nl% ) else (
if %rad2% EQU 0 (Set nl=%nl% &Call :Fix %abPos%) else Set nl=%nl%b&Set /a ab+=1)
)
if %abPos% EQU %endline% echo %nl%
if %abPos% EQU %endline% Set nl=
if %ab% EQU %Max% goto :ExitLoop
goto :Loop
:ExitLoop
if Not "%nl%"=="" echo %nl%
echo.
::echo The number of ab is:%ab%
echo Boring code demonstration ends!
pause>nul
:Fix
if %FixTime% EQU %endline% goto :EndFix
Set /a e=%1+1
Set abFlag=!abFlag:~0,%1! !abFlag:~%e%!
Set /a FixTime+=1
:EndFix
```
Last edited by slore on 2008-5-8 at 05:19 PM ]
|
|
2008-5-8 17:09 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 40 楼』:
使用 LLM 解释/回答一下
先删掉,汗
Last edited by moniuming on 2008-5-8 at 06:27 PM ]
First delete, sweat
Last edited by moniuming on 2008-5-8 at 06:27 PM ]
|
|
2008-5-8 17:56 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 41 楼』:
使用 LLM 解释/回答一下
……
你的代码貌似不是固定输出格式?
而且md,rd=。=造文件夹是……
……
Your code doesn't seem to be in a fixed output format?
And md, rd =... Creating a folder is...
|
|
2008-5-8 18:06 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 42 楼』:
使用 LLM 解释/回答一下
39楼格式是对了,但初看你的列数都是可以自定义的啊?那a和b岂不是就不是随机的了?若每一个a和b都是随机的,那么列数是不可能预知的。
Floor 39 has the correct format, but at first glance, your number of columns can be customized? Then aren't a and b not random? If each a and b is random, then the number of columns cannot be predicted.
|

致精致简! |
|
2008-5-8 19:30 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 43 楼』:
使用 LLM 解释/回答一下
你的代码貌似不是固定输出格式?
而且md,rd=。=造文件夹是……
因为我无法控制输出的字符个数,当超出范围会显示"ECHO 处于关闭状态",所以只能造文件夹来确定变量是否为空格(即如果可以造文件夹,则继续输出,否则退出)
@echo off
setlocal enabledelayedexpansion
set "code=ab"
set /a c=%random%%%2,d=%random%%%20+20,e=d*2
for /l %%i in (1,1,%d%) do (
if %c%==0 (
set var1=!var1!ab
) else (
set var1=!var1!ba
))
:again
md "%var1%" >nul 2>nul
if errorlevel 1 pause&exit /b
rd "%var1%" >nul 2>nul
echo %var1%
set "var2="
set n=0
:again_
set /a f=%random%%%2
call set g=%%code:~%f%,1%%
call set h=%%var1:~%n%,1%%
if "%g%"=="%h%" (
set "var2=%var2%!g!"&set /a n+=1
) else (
set "var2=%var2% "&set /a n+=1
)
if %n% lss %e% goto :again_
md "%var2%" >nul 2>nul
if errorlevel 1 pause&exit /b
rd "%var2%" >nul 2>nul
echo %var2%
set n=0
set "var1="
:more
set /a i=%random%%%2
call set j=%%code:~%i%,1%%
call set k=%%var2:~%n%,1%%
if "%j%"=="%k%" (
set "var1=%var1%!j!"&set /a n+=1
) else (
set "var1=%var1% "&set /a n+=1
)
if %n% lss %e% goto :more
goto :again
Last edited by moniuming on 2008-5-8 at 08:08 PM ]
Your code doesn't seem to be in a fixed output format?
And md, rd =。= Creating folders is...
Because I can't control the number of output characters, when it exceeds the range, it will display "ECHO is off", so I can only create folders to determine whether the variable is a space (that is, if I can create a folder, then continue outputting, otherwise exit)
@echo off
setlocal enabledelayedexpansion
set "code=ab"
set /a c=%random%%%2,d=%random%%%20+20,e=d*2
for /l %%i in (1,1,%d%) do (
if %c%==0 (
set var1=!var1!ab
) else (
set var1=!var1!ba
))
:again
md "%var1%" >nul 2>nul
if errorlevel 1 pause&exit /b
rd "%var1%" >nul 2>nul
echo %var1%
set "var2="
set n=0
:again_
set /a f=%random%%%2
call set g=%%code:~%f%,1%%
call set h=%%var1:~%n%,1%%
if "%g%"=="%h%" (
set "var2=%var2%!g!"&set /a n+=1
) else (
set "var2=%var2% "&set /a n+=1
)
if %n% lss %e% goto :again_
md "%var2%" >nul 2>nul
if errorlevel 1 pause&exit /b
rd "%var2%" >nul 2>nul
echo %var2%
set n=0
set "var1="
:more
set /a i=%random%%%2
call set j=%%code:~%i%,1%%
call set k=%%var2:~%n%,1%%
if "%j%"=="%k%" (
set "var1=%var1%!j!"&set /a n+=1
) else (
set "var1=%var1% "&set /a n+=1
)
if %n% lss %e% goto :more
goto :again
Last edited by moniuming on 2008-5-8 at 08:08 PM ]
|
|
2008-5-8 19:47 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 44 楼』:
使用 LLM 解释/回答一下
汗啊!
我只是觉得自己这段代码平均要把loop标签运行30次左右,效率不太高,想寻求更高效点的代码,没想到引发40几楼的回帖,居然大部分是搞不清题意的。表达能力实在是差到极点,相信此帖已经没法引起其他高手的兴趣了。唉。。。
还是用代码来说明问题吧,为了显示美观我把a和b替换成了两个其它符号,看起来更清楚。
代码如下:
@echo off&color 1f
set _0=○&set "_1=●"&set /a ko=60
setlocal enabledelayedexpansion
for /l %%l in (1 1 %ko%) do (
set /a w=!random!%%2
call set "ss=%%_!w!%%"
if not "!ss!"=="!flag!" (
set "flag=!ss!"
set /a h=1
set "num1=!num1!!ss!"
call :loop
) else (
set /a h+=1
call set "num!h!=%%num!h!:~0,-1%%!ss!"
))
for /l %%l in (1 1 %ko%) do if not "!num%%l: =!"=="" echo !num%%l!
echo.&pause&exit
:loop
for /l %%l in (2 1 !ko!) do set "num%%l=!num%%l! "
goto :eof
Sweat!
I just feel that my code needs to run the loop tag about 30 times on average, which is not very efficient. I wanted to find a more efficient code, but I didn't expect that more than 40 posts came up, and most of them didn't understand the question. My expression ability is really extremely poor. I believe this post can no longer arouse the interest of other experts. Alas...
Still use code to illustrate the problem. In order to display beautifully, I replaced a and b with two other symbols, which looks clearer.
The code is as follows:
@echo off&color 1f
set _0=○&set "_1=●"&set /a ko=60
setlocal enabledelayedexpansion
for /l %%l in (1 1 %ko%) do (
set /a w=!random!%%2
call set "ss=%%_!w!%%"
if not "!ss!"=="!flag!" (
set "flag=!ss!"
set /a h=1
set "num1=!num1!!ss!"
call :loop
) else (
set /a h+=1
call set "num!h!=%%num!h!:~0,-1%%!ss!"
))
for /l %%l in (1 1 %ko%) do if not "!num%%l: =!"=="" echo !num%%l!
echo.&pause&exit
:loop
for /l %%l in (2 1 !ko!) do set "num%%l=!num%%l! "
goto :eof
|

致精致简! |
|
2008-5-8 20:59 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 45 楼』:
使用 LLM 解释/回答一下
Originally posted by 26933062 at 2008-5-8 19:30:
39楼格式是对了,但初看你的列数都是可以自定义的啊?那a和b岂不是就不是随机的了?若每一个a和b都是随机的,那么列数是不可能预知的。
那就仔细看...
自定义也没有啥稀奇的……因为随机结果不一定很理想……
如果随出个1!
那就是60个a一列了……
谁叫这个问题你叙述的也怪怪的……
第一行不能有空格,且必须是ababab这样交错的
每一个a和b都是随机的……
你这样随机了?
你的第一行就是最大列数……
我的是这个样子的……
如果不修改默认slore的话~列数和最大值都采用随机设置……
除了第一行剩下的都是random……的……
Originally posted by 26933062 at 2008-5-8 19:30:
The format of floor 39 is correct, but at first glance, your number of columns can be customized? Then aren't a and b not random? If each a and b are random, then the number of columns cannot be predicted.
Then take a closer look...
Customization is nothing special... Because the random result may not be ideal...
If you get a 1!
Then there are 60 a's in one column...
Who told you that the problem is also strange...
The first line cannot have spaces and must be interleaved like ababab
Each a and b are random...
Did you random like this?
Your first line is the maximum number of columns...
Mine is like this...
If you don't modify the default slore, the number of columns and the maximum value are set randomly...
Except for the first line, the rest are all random...
|
|
2008-5-8 21:01 |
|
|