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


Groups > comp.lang.python > #7726 > unrolled thread

Fast Python in Programming Contests

Started byKK <kunalkapadia12@gmail.com>
First post2011-06-16 00:09 -0700
Last post2011-06-16 13:45 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#7726 — Fast Python in Programming Contests

FromKK <kunalkapadia12@gmail.com>
Date2011-06-16 00:09 -0700
SubjectFast Python in Programming Contests
Message-ID<b774cc17-942e-404a-8418-a057256ec77b@q14g2000prh.googlegroups.com>
How can the execution time of python program be increased in
programming contest so that we dont get TLE for gud algos......

[toc] | [next] | [standalone]


#7757

FromTerry Reedy <tjreedy@udel.edu>
Date2011-06-16 13:45 -0400
Message-ID<mailman.27.1308246371.1164.python-list@python.org>
In reply to#7726
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web