#Lua, 54 Bytes
Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: (削除) Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes. (削除ここまで) I would like to petition for a bonus because my program prints out both the first position and last position of the input number.
#Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: (削除) Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes. (削除ここまで) I would like to petition for a bonus because my program prints out both the first position and last position of the input number.
Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: (削除) Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes. (削除ここまで) I would like to petition for a bonus because my program prints out both the first position and last position of the input number.
#Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: Currently this(削除) Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes. (削除ここまで) I would like to petition for a bonus because my program prints out both the first occurrence of the first char of the string,position and last position of the point where it ends. If this is not allowed, it will cost a few more bytesinput number.
#Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes.
#Lua, 54 Bytes
s=""for i=1,1e4 do s=s..i end print(s:find(io.read()))
Note: (削除) Currently this program prints both the first occurrence of the first char of the string, and the point where it ends. If this is not allowed, it will cost a few more bytes. (削除ここまで) I would like to petition for a bonus because my program prints out both the first position and last position of the input number.