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

7 of 10
-5 bytes, shorter, less buggy approach
640KB
  • 12.4k
  • 2
  • 38
  • 61

PHP, (削除) 61 (削除ここまで) 56 bytes

foreach(str_split($argn,2)as$a)$r|=$a[0]!=$a[1];echo!$r;

Try it online!

Input string via STDIN, output is truthy (1) if it is double speak, and falsey (0) if it is not double speak.

640KB
  • 12.4k
  • 2
  • 38
  • 61

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