3
In this challenge, you'll need to edit a grid of characters to make a program that does a task, while ensuring that you leave a lasting mark on the grid.
Task
The task to perform is determined by when you answer. Specifically, for the n
th answer, divide n
by 5, and if the remainder is...
- 0. Read a positive integer from STDIN (or closest alternative) and print its square.
- 1. Print the value of n9-n8+n7-...-n2+n-1.
- 2. Read a string from STDIN (or closest alternative) and print it, reversed.
- 3. Print the name of the language being used.
- 4. Print the first 99 Fibonacci numbers, with some delimiter.
In all cases, "print" means to STDOUT or closest alternative. Leading or trailing whitespace is okay. A full program is required, not just a function.
Answering (please read before posting)
This is a "sequential answering" challenge. Answers have a specific order. If the previous answer, chronologically, was titled Answer
n
, your answer should be titled Answern+1
.
All answers are 100 characters (in printable ASCII) long, divided into ten rows. Each row is separated by a newline. I have already posted the first answer.
Once an answer has been verified by another user (in a comment), any user, except for the one who gave the previous answer, can submit the next answer, pursuant to the following rules:
For each answer after the first, change at least one character (but not newlines) in the previous answer to another printable ASCII character achieve the correct task. You may not add, remove, or move any characters. You may use any language with a readily available compiler or interpreter.
Furthermore, you must specify one character you changed to be your "mark". You want to maximize the longevity of your mark. If your mark is first changed by the answer five after yours, its lifespan is 4 (four other answers left it untouched). If no one ever removes your mark, then the lifespan is the total number of other answers after it.
If you answer multiple times, you may have multiple existing marks at once.
If your answer is found incorrect, please delete it if there are no subsequent valid answers. Otherwise, do not delete or change your answers.
Scoring
Your score is the sum of your marks' longevities, divided by the total number of characters you changed. Subtract 5% from your score for each answer past the first.
For example, suppose I answer three times. First with 5 changes and a mark longevity of 3, then 4 changes and 20, then 1 change and a longevity of 7. My score is now ((3 + 20 + 7) / (5 + 4 + 1)) * (100% - 10%) = 2.7.
1There is no rule against answering multiple times in a row? – feersum – 2014-10-31T00:10:31.767
@feersum Correct. – Ypnypn – 2014-10-31T00:11:27.723
@MartinBüttner Then you'll lose 20% of your score. – Ypnypn – 2014-10-31T00:13:56.713
@MartinBüttner Do you think that's really the best strategy? – Ypnypn – 2014-10-31T00:18:48.380
1@MartinBüttner Fine, you win. – Ypnypn – 2014-10-31T00:23:59.530
1The definition of mark longevity should be changed to the difference between answer numbers. Otherwise all scores can be 0. – feersum – 2014-10-31T01:26:54.137
Agree. As of now every answer has removed the previous mark (and all scores except the latest are 0). It doesn't make sense not to change it, since it only costs one char more at most, and you effectively erase the last entry from scoring (except for a 5% penalty to their next answer, which will probably end up a 0 anyway ;). – Geobits – 2014-10-31T02:09:18.863
1@Geobits The latest answer always scores 0 (under either definition). – feersum – 2014-10-31T02:15:55.620
1@feersum A strange game. The only winning move is not to play. – Geobits – 2014-10-31T02:19:12.580