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

#PHP, (削除) 88 (削除ここまで) 89 bytes

PHP, (削除) 88 (削除ここまで) 89 bytes

for(;++$i<2*$e=count($a=str_split($argn));)echo join(str_pad("",~-$e-abs($i-$e)),$a),"\n";

requires PHP 5 or later for str_split. Run as pipe with -nR or try it online.

#PHP, (削除) 88 (削除ここまで) 89 bytes

for(;++$i<2*$e=count($a=str_split($argn));)echo join(str_pad("",~-$e-abs($i-$e)),$a),"\n";

requires PHP 5 or later for str_split. Run as pipe with -nR or try it online.

PHP, (削除) 88 (削除ここまで) 89 bytes

for(;++$i<2*$e=count($a=str_split($argn));)echo join(str_pad("",~-$e-abs($i-$e)),$a),"\n";

requires PHP 5 or later for str_split. Run as pipe with -nR or try it online.

fixed output (+1 byte)
Source Link
Titus
  • 14.9k
  • 1
  • 25
  • 41

#PHP, 88(削除) 88 (削除ここまで) 89 bytes

whilefor(++$i<2*$e=count;++$i<2*$e=count($a=str_split("\n$argn"$argn));)echo join(str_pad("",~-$e-abs($i-$e)),$a);,"\n";

requires PHP 5 or later for str_split. Run as pipe with -RnR or try it online try it online.

#PHP, 88 bytes

while(++$i<2*$e=count($a=str_split("\n$argn")))echo join(str_pad("",~-$e-abs($i-$e)),$a);

requires PHP 5 or later for str_split. Run as pipe with -R or try it online.

#PHP, (削除) 88 (削除ここまで) 89 bytes

for(;++$i<2*$e=count($a=str_split($argn));)echo join(str_pad("",~-$e-abs($i-$e)),$a),"\n";

requires PHP 5 or later for str_split. Run as pipe with -nR or try it online.

Source Link
Titus
  • 14.9k
  • 1
  • 25
  • 41

#PHP, 88 bytes

while(++$i<2*$e=count($a=str_split("\n$argn")))echo join(str_pad("",~-$e-abs($i-$e)),$a);

requires PHP 5 or later for str_split. Run as pipe with -R or try it online.

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