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

add example
Source Link

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Examples for the numbers 1, 2, 3, and 4:

print( 1//0.5if 1/2else 3#"4"
)

JavaScript (1) Python 3 (2) Python 2 (3) Foo (4)

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Examples for the numbers 1, 2, 3, and 4:JavaScript (1) Python 3 (2) Python 2 (3) Foo (4)

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Examples for the numbers 1, 2, 3, and 4:

print( 1//0.5if 1/2else 3#"4"
)

JavaScript (1) Python 3 (2) Python 2 (3) Foo (4)

add links
Source Link

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Examples for the numbers 1, 2, 3, and 4: JavaScript (1) Python 3 (2) Python 2 (3) Foo (4)

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print( ${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Examples for the numbers 1, 2, 3, and 4: JavaScript (1) Python 3 (2) Python 2 (3) Foo (4)

add foo, replace \n with an actual new line
Source Link

JavaScript => JavaScript (V8), Python 3, Python 2, 47/32=5.222222..Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print(${x}//${x/y}if 1/2else ${z}\n#"${w}"
)`

Try it online! Try it online!

JavaScript => JavaScript (V8), Python 3, Python 2, 47/32=5.222222...

(x,y,z)=>`print(${x}//${x/y}if 1/2else ${z}\n)`

Try it online!

JavaScript => JavaScript (V8), Python 3, Python 2, Foo - (削除) 57 (削除ここまで) 56 bytes, (削除) 3 (削除ここまで) 4 languages = 3.5

Thanks to The Thonnu for -1 byte!

(x,y,z,w)=>`print(${x}//${x/y}if 1/2else ${z}#"${w}"
)`

Try it online!

Source Link
Loading

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