Take the 2-minute tour ×
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
add comment

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 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, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

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
add comment

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