Martin has created a nice snippet that can be used to keep track of the score for answers to challenges. That's great and all, but wouldn't it be better if you could keep track of it yourself?
Create a program that compares the byte counts in itself with the rest of the answers to this question, and returns "I'm answer number n".
Rules:
The byte count in your own answer can be hardcoded in the code
The function can take the url as input, or it can be hardcoded. The chars for the url will not count toward the byte count, so it's not necessary to use a url-shortener.
url-addresses to answers cannot be hardcoded
The score for the answers can be found from the header, (the same way Martin's snippet does).
The answer header must have the correct format (described below).
If it's possible to run the program online, please share a link to an online compiler (or a code snippet that can be executed from the answer). If it's not possible, please show how to call the function, and show the output from your own compiler (at the time you posted the answer. You don't need to update it unless you want to of course).
You have to actually compare the answer with the other answers to this question. Simply writing a script
I'm answer number 1.
in some language is not legal.If other answers have the same number of bytes as your own, you can choose if you want to be best or worse of them.
The header must be formatted:
# Language Name, N bytes
Strike-through etc cannot be used, so if the code size is changed, show it in bold text below the header or indicate it in some other way.
The output must be I'm answer number n.
, where the number n
is the position (trailing newline/spaces are OK). So, the shortest answer will output: "I'm answer number 1.", the second will be "I'm answer number 2." etc.
This is code golf, so the shortest answer in bytes will win.