Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7757

Re: Fast Python in Programming Contests

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Fast Python in Programming Contests
Date 2011-06-16 13:45 -0400
References <b774cc17-942e-404a-8418-a057256ec77b@q14g2000prh.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.27.1308246371.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 6/16/2011 3:09 AM, KK wrote:
> How can the execution time of python program be increased in

decreased

> programming contest so that we dont get TLE for gud algos......

TLE = time limit expired?

Sites or 'contests' that have the same time limit for Python as for C, 
especially when the limit does not allow reasonable programs to run so 
you can even find out if they are correct, are stupidly brain-dead.
Ignore them.

Python is a great language for prototyping and experimenting with 
alternate algorithms. Rules that effectively prevent that are, well, you 
pick the adjective.

Any such site that wanted to make even a pretense of fairness would 
provide Cython for converting augmented Python programs to C and thence 
compiled just like C programs.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Fast Python in Programming Contests KK <kunalkapadia12@gmail.com> - 2011-06-16 00:09 -0700
  Re: Fast Python in Programming Contests Terry Reedy <tjreedy@udel.edu> - 2011-06-16 13:45 -0400

csiph-web