Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#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.

added 137 characters in body
Source Link
Nikolai97
  • 663
  • 1
  • 6
  • 12

#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.

Source Link
Nikolai97
  • 663
  • 1
  • 6
  • 12

#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.

AltStyle によって変換されたページ (->オリジナル) /