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 2
added 106 characters in body
gastropner
  • 4.5k
  • 1
  • 17
  • 20

C (gcc), (削除) 125 (削除ここまで) 123 bytes

Thanks to ceilingcat for -2 bytes.

f(L,n)int**L;{int i,l,c,F=strlen(*L),s=-F;for(l=i=0;i<n;l=c)c
=strlen(L[i++]),s+=c-l;s=n>1?s||F<2?~abs(s)+n?0:3:n^F?2:1:0;}

Try it online!

gastropner
  • 4.5k
  • 1
  • 17
  • 20

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