Tell me more ×
Programming Puzzles & Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It's 100% free, no registration required.

Write a program that become much, much slower on the addition of a line of code.

Rules:

  1. No sleep( ) statements, please.

  2. No loops with huge LCVs.

  3. As always, may the shortest win!

share|improve this question
5  
This needs to be much more specific to be an answerable question. – Peter Taylor Nov 17 '12 at 12:14

closed as not constructive by Peter Taylor, Howard, Gareth, vsz, w0lf Nov 17 '12 at 18:01

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

1 Answer

Python: 0

The empty program.

You can add the line 9**9**9 to make it run slowly.

My score is 0 because you asked for the program before the line is added; The empty program is "a program that becomes slower when a single line is added".

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.