出题目的:
掌握字符截取技巧
掌握学符替换技巧
掌握改写文本技巧
解题要求:
代码通用、高效
尽量简洁
不生成临时文件
加分规则:
思路独特基准分5分
代码高效、通用基准分4分
技巧高超基准分3分
代码简洁基准分2分
完美代码加分15分
题目如下:
有文本a.txt- Network vertically: In the research phase of your job hunt,talk to
- people who are on a level above you in your desired industry. They'll
- have some insights that people at your own level won't have,and will be
- in a good position to hire you or recommend you to be hired. Keep your
- spirits up. Looking for a job is one of the toughest things you will
- ever have to do. Maintain your confidence,stay persistent,and think
- positively,and eventually you will get a job that suits you.
复制代码 1 要求通过批处理将文本中的you全替换成me并输出,但your不能变
2 要求通过批处理将文本整理成如下格式(遇:号和.号换行并在行首空两格),并生成文本b.txt:- Network vertically:
- In the research phase of your job hunt,talk to people who are on a level abov
- e me in your desired industry.
- They'll have some insights that people at your own level won't have,and will
- be in a good position to hire me or recommend me to be hired.
- Keep your spirits up.
- Looking for a job is one of the toughest things me will ever have to do.
- Maintain your confidence,stay persistent,and think positively,and eventuall
- y me will get a job that suits me.
复制代码 3 要求将文本b.txt中的Looking for a job is one of the toughest things me will ever have to do.
这句改写成bathomework is a nice job,其它的不变。
解题限制:
高手请暂做旁观,请新手老手解答。
补充两点:
1 a.txt中只有一行
2 解题中不使用第三方工具(并不是提倡不使用第三方)
[ 本帖最后由 batman 于 2008-8-30 13:00 编辑 ] |