Python编程竞赛 [英] Python Programming Contest
问题描述
我已经决定举办每周一次的Python编程
比赛会很有趣。重点将放在算法上,需要一点点思考来设计,但实现的代码不多。
我正在做的判断解决方案基于执行速度。它很糟糕,但这是客观衡量的最简单的重要考虑因素。我会
还表明我认为哪些解决方案是Python的好例子
design。希望人们的解决方案可以为人们提供资源
寻找最佳实践示例,以及寻找
表现创意的人。
>
您可以在这里找到第一个问题:
http:/ /www.sweetapp.com/pycontest/contest1
我一直在寻找反馈,所以让我知道你的想法或者你是否
对未来的问题有任何想法。
干杯,
Brian
I''ve decided that it would be be fun to host a weekly Python programming
contest. The focus will be on algorithms that require a bit of thought
to design but not much code to implement.
I''m doing to judge the solutions based on execution speed. It sucks but
that is the easiest important consideration to objectively measure. I''ll
also indicated which solutions I think are good examples of Python
design. Hopefully, people''s solutions can provide a resource for people
looking for best practice examples and also for people looking for
performance ideas.
You can find the first problem here:
http://www.sweetapp.com/pycontest/contest1
I''m always looking for feedback, so let me know what you think or if you
have any ideas for future problems.
Cheers,
Brian
推荐答案
您是否了解 http:// mathschallenge。 net / index.php?section = project ?
焦点将集中在需要一点思考的算法上
to设计但实施的代码不多。部分似乎很常见,虽然
您的问题域可能更大。
/ Simon
Are you aware of http://mathschallenge.net/index.php?section=project ?
The "The focus will be on algorithms that require a bit of thought
to design but not much code to implement." part seems common, although
your problem domain probably is larger.
/Simon
Brian Quinlan写道:
Brian Quinlan wrote:
我已经决定举办每周一次的Python编程比赛会很有趣。重点将放在需要一些思考设计但不需要实现的代码的算法上。
我正在根据执行速度来判断解决方案。它很糟糕,但这是客观衡量的最简单的重要考虑因素。我也会说明我认为哪些解决方案是Python
设计的好例子。希望人们的解决方案可以为人们提供寻找最佳实践示例的资源,也可以为寻找性能创意的人们提供资源。
你可以在这里找到第一个问题:
http://www.sweetapp.com/pycontest/contest1
我一直在寻找反馈,所以请告诉我你的想法,或者你对未来的问题有什么想法。
干杯,
Brian
I''ve decided that it would be be fun to host a weekly Python programming
contest. The focus will be on algorithms that require a bit of thought
to design but not much code to implement.
I''m doing to judge the solutions based on execution speed. It sucks but
that is the easiest important consideration to objectively measure. I''ll
also indicated which solutions I think are good examples of Python
design. Hopefully, people''s solutions can provide a resource for people
looking for best practice examples and also for people looking for
performance ideas.
You can find the first problem here:
http://www.sweetapp.com/pycontest/contest1
I''m always looking for feedback, so let me know what you think or if you
have any ideas for future problems.
Cheers,
Brian
我不确定当你使用LiveCD for OS时是否是个好主意
测试速度。 CD访问速度波动甚至可能影响
性能,即使您在模块加载后开始测量
完成。
I am not sure if it is a good idea to use a LiveCD for OS when you are
testing for speed. CD access speeds fluctuate and may even impact
performance even if you start measuring after the module loading is
complete.
< br>
James写道:
当你在测试速度时,我不确定使用LiveCD for OS是否是一个好主意。即使您在模块加载完成后开始测量,CD访问速度也会波动,甚至可能影响性能。
I am not sure if it is a good idea to use a LiveCD for OS when you are
testing for speed. CD access speeds fluctuate and may even impact
performance even if you start measuring after the module loading is
complete.
它没有在我的测试中似乎很重要。模块加载在测试运行之前完成。
。此外,如果在没有可写文件系统的操作系统上运行恶意代码,最简单的方法是保护我的系统免受恶意代码的侵害。
干杯,>
Brian
It didn''t seem to matter in my testing. Module loading is done before
the test is run. Also, it is easiest to protect my system against
malicious code if it is being run on an OS without a writeable filesystem.
Cheers,
Brian
这篇关于Python编程竞赛的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!