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 Revisions

2 of 7
added 160 characters in body
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Labyrinth, 80 bytes

?::`}:("(!@
perfect:
{:{:;%"}
+puts; "
}zero: "
}else{(:
"negI" _~
""""""{{{"!@

The Latin characters perfect puts zero else neg I are actually just comments*.
i.e. if the input is perfect a 0 is printed, otherwise -1 is.

Try it online!


* so this works too...

?::`}:("(!@
 :
{:{:;%"}
+ ; "
} : "
} {(:
" " _~
""""""{{{"!@
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

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