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

added 11 characters in body
Source Link
bb94
  • 3.9k
  • 15
  • 20

Setanta, (削除) 29 (削除ここまで) 28 bytes

Thanks to General Grievance for −1 byte

gniomh(a,b){toradh a==b|0&1}

Returns 01 if the sum is 1;arguments are equal; 0 otherwise 1.

try-setanta.ie link

Setanta, (削除) 29 (削除ここまで) 28 bytes

Thanks to General Grievance for −1 byte

gniomh(a,b){toradh a==b|0&1}

Returns 0 if the sum is 1; otherwise 1.

try-setanta.ie link

Setanta, (削除) 29 (削除ここまで) 28 bytes

Thanks to General Grievance for −1 byte

gniomh(a,b){toradh a==b|0&1}

Returns 1 if the arguments are equal; 0 otherwise.

try-setanta.ie link

added 54 characters in body
Source Link
bb94
  • 3.9k
  • 15
  • 20

Setanta, 29(削除) 29 (削除ここまで) 28 bytes

Thanks to General Grievance for −1 byte

gniomh(a,b){toradh a+b-1|0&1a==b|0&1}

Returns 0 if the sum is 1; otherwise 1.

try-setanta.ie link try-setanta.ie link

Setanta, 29 bytes

gniomh(a,b){toradh a+b-1|0&1}

Returns 0 if the sum is 1; otherwise 1.

try-setanta.ie link

Setanta, (削除) 29 (削除ここまで) 28 bytes

Thanks to General Grievance for −1 byte

gniomh(a,b){toradh a==b|0&1}

Returns 0 if the sum is 1; otherwise 1.

try-setanta.ie link

Source Link
bb94
  • 3.9k
  • 15
  • 20

Setanta, 29 bytes

gniomh(a,b){toradh a+b-1|0&1}

Returns 0 if the sum is 1; otherwise 1.

try-setanta.ie link

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