python竞赛试题及答案_Python编程竞赛

1586010002-jmsa.png

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

解决方案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 wrote: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

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.

James wrote: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.

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值