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

55 bytes
Source Link
Surculose Sputum
  • 8.4k
  • 1
  • 14
  • 40

Python 2, 57(削除) 57 (削除ここまで) 55 bytes

-2 bytes thanks to @ovs !

lambda k,s:all(t.find(c)<-~len*2<len(t)/2forfor t in k for c in s)

Try it online! Try it online!

Python 2, 57 bytes

lambda k,s:all(t.find(c)<-~len(t)/2for t in k for c in s)

Try it online!

Python 2, (削除) 57 (削除ここまで) 55 bytes

-2 bytes thanks to @ovs !

lambda k,s:all(t.find(c)*2<len(t)for t in k for c in s)

Try it online!

add tests
Source Link
Surculose Sputum
  • 8.4k
  • 1
  • 14
  • 40

Python 2, 5657 bytes

lambda k,s:all(t.find(c)<=len<-~len(t)/2for t in k for c in s)

Try it online! Try it online!

Python 2, 56 bytes

lambda k,s:all(t.find(c)<=len(t)/2for t in k for c in s)

Try it online!

Python 2, 57 bytes

lambda k,s:all(t.find(c)<-~len(t)/2for t in k for c in s)

Try it online!

Source Link
Surculose Sputum
  • 8.4k
  • 1
  • 14
  • 40

Python 2, 56 bytes

lambda k,s:all(t.find(c)<=len(t)/2for t in k for c in s)

Try it online!

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