5
Your challenge is very simple: output the previous answer, in reverse.
However, as with this similarly-titled question, there's a catch: in this case, you cannot use characters from the answer before the last. For example:
Let's say the first answer looks like this:
1 - Python
print('hi!')
And the second answer looks like this: (see 'Chaining' section for more info)
2 - Javascript
console.log(")'!ih'(tnirp")
Now, it would be my job to write the third answer: a program to output the text )"print('hi!')"(gol.elosnoc
, without using the characters p
, r
, i
, n
, t
, (
, '
, h
, i
, !
and )
. I can choose whatever language I like to complete this task.
Chaining
The first answer can output any text: but it must output something. The second answer should simply output the first answer in reverse, using any characters you like. The further rules about restricted characters, as described above, come into play from the third answer onwards.
Scoring
Your score is \$\frac{l_{n}}{l_{n-1}} - l_{n-2}\$, where \$l_x\$ represents the length of the \$x\$th answer, and \$n\$ is the position your answer is at in the chain. (all lengths are in bytes; if your answer is no. 1 or no. 2 then miss out \$l_{n-1}\$ and/or \$l_{n-2}\$ where necessary.
Best (lowest) score by August 1st wins.
Formatting
Please format your post like this:
[Answer Number] - [language]
[code]
(preferably a TIO link)
SCORE: [Submission Score]
(notes, explanations, whatever you want)
Everything in square brackets is a required argument to fill in; everything in normal brackets is an optional argument; everything not in brackets is there to make the snippet work.
Rules
- All characters, etc. are case sensitive.
- Preceeding/trailing whitespace is allowed, within reason (I'm looking at you, Whitespace).
- Every submission must be a unique language.
- You must wait at least 1 hour before submitting a new answer if you have just posted.
- You may NOT submit two answers in a row, you must wait for TWO more submissions before posting a new answer.
- Of course, standard loopholes are disallowed.
- Please make sure to triple check that your answer is valid. This is especially important, because someone may start writing their answer based on yours, so if it's wrong you can't really edit it any more... and the whole chain breaks down. Also, you can't edit answers for continuity purposes.
- Standard I/O methods are allowed.
Answer list/used languages
Had to write some custom JS (not my strong point), so it may be a bit dodgy. If you stick strictly to the formatting guidelines, it should be fine.
$.ajax({type: "GET",url: "https://api.stackexchange.com/2.2/questions/187674/answers?site=codegolf&filter=withbody&sort=creation&order=asc",success: function(data) {for (var i = 0; i < data.items.length; i++) {var temp = document.createElement('p');temp.innerHTML = data.items[i].body.split("\n")[0];try {temp.innerHTML += " - <i>Score: " +data.items[i].body.split("SCORE")[1].split("\n")[0].match(/(?<!h)[+-]?(\d+(\.\d+)?)/g).slice(-1)[0].trim() +"</i>";} catch (TypeError) {temp.innerHTML += " (no score)";} finally {$('#list').append('<li><a href="/a/' + data.items[i].answer_id + '">' + temp.innerText || temp.textContent + '</a>');}}}})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<base href="https://codegolf.stackexchange.com">
<ul id="list"></ul>
2Are we not allowed to use the same code points (for non-ASCII aligned code pages) or characters? What do you mean by "miss out"? – MilkyWay90 – 2019-07-04T17:50:02.093
Is it length in bytes or chars, it doesn't clearly state in rules – Expired Data – 2019-07-04T18:38:14.140
1@ExpiredData It says all lengths are in bytes – MilkyWay90 – 2019-07-04T18:41:26.310
@MilkyWay90 by "miss out", I mean assume as if their part of the equation didn't exist. Don't replace them with values, but for instance assume that, since $l_{n−1}$ isn't defined, the fraction cannot be formed. – Geza Kerecsenyi – 2019-07-04T19:34:58.673
2isn't the score always going to be majorly based on the answer two before yours, no matter the length of your own? – Jo King – 2019-07-04T22:03:21.110
1@JoKing Your own length primarily influences the score 2 ahead of you (and vice versa). The immediately adjacent answers are almost irrelevant.
[whatever] / [literally irrelevant] - [mega huge] = [ridiculously low score]
no matter how you look at it. – Draco18s no longer trusts SE – 2019-07-04T23:26:51.2401Thus, given that there must be at least two answers between each of your answers, you want your code to be as short as possible, to lower the score of the the answer two after yours, which must be a competitor. – pppery – 2019-07-05T00:24:06.460