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

previous edit struck out 132 but forgot to leave the actual number of bytes :-)
Source Link

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) (削除) 132 (削除ここまで) 130 bytes

-2 bytes thanks to @JonathanFrech

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if~c:print f,l,'definitely '*c+'has two first names'

Try it online!

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) (削除) 132 (削除ここまで) bytes

-2 bytes thanks to @JonathanFrech

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if~c:print f,l,'definitely '*c+'has two first names'

Try it online!

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) (削除) 132 (削除ここまで) 130 bytes

-2 bytes thanks to @JonathanFrech

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if~c:print f,l,'definitely '*c+'has two first names'

Try it online!

added 41 characters in body
Source Link
ovs
  • 61.2k
  • 3
  • 49
  • 164

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) 132(削除) 132 (削除ここまで) bytes

-2 bytes thanks to @JonathanFrech

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if-c<1if~c:print f,l,'definitely '*c+'has two first names'

Try it online! Try it online!

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) 132 bytes

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if-c<1:print f,l,'definitely '*c+'has two first names'

Try it online!

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) (削除) 132 (削除ここまで) bytes

-2 bytes thanks to @JonathanFrech

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if~c:print f,l,'definitely '*c+'has two first names'

Try it online!

deleted 9 characters in body
Source Link
ovs
  • 61.2k
  • 3
  • 49
  • 164

Python 2, (削除) 141 (削除ここまで) 137(削除) 137 (削除ここまで) 132 bytes

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if-c<1:print f+' '+l+' definitely'*c+'f,l,'definitely has'*c+'has two first names'

Try it online! Try it online!

Python 2, (削除) 141 (削除ここまで) 137 bytes

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if-c<1:print f+' '+l+' definitely'*c+' has two first names'

Try it online!

Python 2, (削除) 141 (削除ここまで) (削除) 137 (削除ここまで) 132 bytes

n=map(str.split,input())
for f,l in n:
 c=cmp(*[x.count(l)for x in zip(*n)])
 if-c<1:print f,l,'definitely '*c+'has two first names'

Try it online!

added 1 character in body
Source Link
ovs
  • 61.2k
  • 3
  • 49
  • 164
Loading
Source Link
ovs
  • 61.2k
  • 3
  • 49
  • 164
Loading

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