Originally posted by zw19750516 at 2008-7-14 10:39 AM:
The efficiency problem lies here: echo %input%|findstr >nul||set str=#%str:~1,-1%%#
In batch processing, try to use if for judgment as much as possible and use findstr less.
As mentioned earlier, this is for compatibility. What I'm most proud of is this sentence. And in fact, there is only a judgment of 2 letters here. No matter how long your CODE is, it's still 2 letters.
High efficiency and conciseness should be based on accuracy, right?
Compared with the code on floor 38, it runs much faster, and I admit it because it gives the answer almost instantly. But as the author said, it can't handle repeated letters.
My code on floor 57 needs to wait a bit. I want to improve it but due to the level problem, I can't improve it anymore.
Also, who can tell me what's wrong with the second paragraph of the code on floor 57? Thanks
[ Last edited by quya on 2008-7-14 at 11:20 AM ]
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.
