Pyhon perfomance tips

Revision en1, by kfx, 2015-11-29 14:57:52

Python is a great programming language: simple, expressive, compact.

In Codeforces, Python is often the best choice for Div 2 A and B exercises. For example, problem 600A - Extract Numbers is very easy to write in Python: first tokenize the string with the built-in split() function, then try to parse the integers with the built int(), then output the comma-separated strings of results with ",".join(lst).

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en9 English kfx 2015-11-30 12:01:15 1
en8 English kfx 2015-11-30 11:59:55 139 Tiny change: 'ons were: `g++` 4.8.4, Py' -> 'ons were: g++ 4.8.4, Py'
en7 English kfx 2015-11-30 11:55:15 1 Tiny change: 'bit unread at the mo' -> 'bit unready at the mo'
en6 English kfx 2015-11-30 11:54:50 7
en5 English kfx 2015-11-29 16:21:48 195
en4 English kfx 2015-11-29 15:47:09 155
en3 English kfx 2015-11-29 15:43:56 364 (published)
en2 English kfx 2015-11-29 15:33:56 3561
en1 English kfx 2015-11-29 14:57:52 433 Initial revision (saved to drafts)