Problem:


Score: 100 points

Problem Statement

A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.

You will be given three integers A, B, and C. If this triple is poor, print Yes; otherwise, print No.

Constraints

A, B, and C are all integers between 1 and 9 (inclusive).

Input

Input is given from Standard Input in the following format:

A B C

Output

If the given triple is poor, print Yes; otherwise, print No.

Sample Input 1

5 7 5

Sample Output 1

Yes

A and C are equal, but B is different from those two numbers, so this triple is poor.

Sample Input 2

4 4 4

Sample Output 2

No

A, B, and C are all equal, so this triple is not poor.

Sample Input 3

4 9 6

Sample Output 3

No

Sample Input 4

3 3 4

Sample Output 4

Yes



Sample input:
5 7 5


Sample output:
Yes

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

a_b = a==b
b_c = b==c
a_c = a==c

if a_b and b_c and a_c:    
    print("No")

elif a_b or b_c or a_c:
    print("Yes") 

else:
    print("No")

Submission status: Accepted

Solution code:
if len(set(map(int,input().split())))==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print("Yes" if len(set(list(map(int, input().split())))) == 2 else "No" )

Submission status: Accepted

Solution code:
A = [0] * 10

B = list(map(int, input().split()))
for i in range(len(B)):
    A[B[i]] += 1

for i in range(len(A)):
    if A[i] == 2:
        print('Yes')
        break
else:
    print('No')

Submission status: Accepted

Solution code:
A, B ,C = map(int, input().split())

if A == B == C:
    print('No')
elif A ==B or B == C or C == A:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b!=c or b==c!=a or c==a!=b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b and b == c:
    print("No")
elif a == b or b == c or a == c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
print('Yes' if (A == B and A != C) or (A == C and A != B) or (B == C and A != B) else 'No')

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input("").split(" ")]
ispoor = False
if (a == b and b != c):
  ispoor = True
if (b == c and c != a):
  ispoor = True
if (c == a and a != b):
  ispoor = True
if(ispoor):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b:
  if a==c:
    print("No")
  else:
    print("Yes")
elif b==c:
  print("Yes")
elif c==a:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
number=list(map(int,input().split()))
for i in range(1,10):
    if number.count(i)==2:
        print("Yes")
        exit(0)
print("No")

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A == B == C:
    print('No')
elif A == B or B == C or C == A:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
if len(set(input().split()))==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
if(A==B and B==C):
    print('No')
    exit()
if(A==B or A==C or B==C):
    print('Yes')
    exit()
else:
    print('No')

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))
newA = sorted(A)

if newA[0]==newA[1]==newA[2]:
    print("No")
elif newA[0]  == newA[1] or newA[1] == newA[2]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a == b and b != c :
 	print("Yes")
elif c == b and b != a :
 	print("Yes")
elif a == c and b != c :
 	print("Yes")
else :
 	print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a == b and b != c :
  print("Yes")
elif c == b and b != a :
  print("Yes")
elif a == c and b != c :
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
a,b,c = (int(a) for a in input().split())
if a == b == c or (a != b and b != c and c != a) :
    print("No")
else : print("Yes")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a==b and b==c:
    print("No")
elif a==b or b==c or c==a:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

ans = "No"

if (a == b or a== c or b == c) and not (a==b==c): ans = "Yes"
  
print(ans)

Submission status: Accepted

Solution code:
l = len(set(list(map(int, input().split()))))
if l == 2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def main():
    a, b, c = map(int, input().split())
    if (a == b and b != c) or (b == c and a != b) or (a == c and a != b):
        print('Yes')
    else:
        print('No')
main()

Submission status: Accepted

Solution code:
i = input()
a,b,c = map(int, i.split())

s = set()

s.add(a)
s.add(b)
s.add(c)

if len(s) == 2: 
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
if len(set(list(map(int, input().split())))) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
l=[b,c]
ans=0
for i in l:
  if a==i:
    ans+=1
if b==c:
  ans+=1
if ans==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
 
if (A == B) and (B == C) and (C == A):
  print("No") 
elif (A == B) or (B == C) or (C == A):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b and b == c and c == a: print('No')
elif a != b and b != c and c != a: print('No')
else: print('Yes')

Submission status: Accepted

Solution code:
a, b, c = map( int, input().split() )

if a != b and b == c:
    print( "Yes" )
elif b != c and c == a:
    print( "Yes" )
elif c != a and a == b:
    print( "Yes" )
else:
    print( "No" )

Submission status: Accepted

Solution code:
s = set(map(int, input().split()))
if len(s) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if (a == b) and (b == c) and (c == a):
  print("No") 
elif (a == b) or (b == c) or (c == a):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c:
    print('No')
elif a==b or b==c or a==c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B, C = list(map(int, input().split()))
if A == B == C:
  print('No')
elif A == B or A == C or B == C:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
lists = list(map(int, input().split()))

set = set(lists)

if len(set) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a!=b and b!= c and c!=a:
    print("No")
elif a==b and b==c:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
# 155 A

a, b, c = input().split()

if a == b == c or (a != b and b != c and c != a):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a=input().split()
a=[int(a[i]) for i in (0,1,2)]
a=list(dict.fromkeys(a))
if len(a)==2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if (A==B and B!=C) or (B==C and A!=C) or (A==C and A!=B):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
if len(set(a))==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == b == c or (a != b != c and a != c):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No")

main()

Submission status: Accepted

Solution code:
a = sorted(map(int, input().split()))
print("Yes" if (a[0] == a[1] or a[1] == a[2] ) and a[0] != a[2] else "No")

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
L = []
for i in A:
  if i not in L:
    L.append(i)
if len(L) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
x = [int(x) for x in input().split()]
if (len(set(x))==2):
      print('Yes')
else:
      print('No')

Submission status: Accepted

Solution code:
A,B,C = sorted(map(int,input().split()))

if A==B==C:
  print("No")

elif A==B or B==C:
  print("Yes")

else:
  print("No")

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
if A == B and B == C:
    print('No')
    exit()
if A != B and B != C and C != A:
    print('No')
    exit()
print('Yes')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if len(set([a,b,c])) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b,c = map(int, input().split())
s=False
if a==b and b!=c:
    
    s=True
if a==c and b!=c:
    s=True
if c==b and a!=c:
    s=True
if s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A,B,C = (int(x) for x in input().split())
List = [A,B,C]
if len(set(List))==2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ans = "No"

if a == b and b != c:
    ans = "Yes"
elif b == c and c != a:
    ans = "Yes"
elif a == c and c != b:
    ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())

if a == b or b == c or c == a:
  if a == b == c:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b:
  if a != c and b !=c:
    print('Yes')
  else:
    print('No')
elif a == c:
  if a != b and c != b:
    print('Yes')
  else:
    print('No')
elif b == c:
  if b != a and c != a:
    print('Yes')
  else:
    print('No')
elif a == b == c:
  print('No')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if (a == b or b == c or c == a):
    if a==b==c:
        print('No')
    else:
        print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
input_line = list(map(int, input().split(' ')))
result = False
for x in list(set(input_line)):
    if input_line.count(x) == 2:
        result = True
if result:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = set(list(map(int,input().split())))
print('Yes' if len(s)==2 else 'No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and b==c and c==a:
    print("No")
elif a!=b and a!=c and b!=c:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
char = list(map(str,input().split()))
if char.count(char[0]) == 2 or char.count(char[1]) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7) #再帰関数の上限,10**5以上の場合python
import math
from copy import copy, deepcopy
from copy import deepcopy as dcp
from operator import itemgetter
from bisect import bisect_left, bisect, bisect_right#2分探索
#bisect_left(l,x), bisect(l,x)#aはソート済みである必要あり。aの中からx未満の要素数を返す。rightだと以下
from collections import deque
#deque(l), pop(), append(x), popleft(), appendleft(x)
##listでqueの代用をするとO(N)の計算量がかかってしまうので注意
from collections import Counter#文字列を個数カウント辞書に、
#S=Counter(l),S.most_common(x),S.keys(),S.values(),S.items()
from itertools import accumulate#累積和
#list(accumulate(l))
from heapq import heapify,heappop,heappush
#heapify(q),heappush(q,a),heappop(q) #q=heapify(q)としないこと、返り値はNone
#import fractions#古いatcoderコンテストの場合GCDなどはここからimportする
from functools import lru_cache#pypyでもうごく
#@lru_cache(maxsize = None)#maxsizeは保存するデータ数の最大値、2**nが最も高効率


def input(): return sys.stdin.readline()[:-1]
def printl(li): _=print(*li, sep="\n") if li else None
def argsort(s, return_sorted=False): 
    inds=sorted(range(len(s)), key=lambda k: s[k])
    if return_sorted: return inds, [s[i] for i in inds]
    return inds
def alp2num(c,cap=False): return ord(c)-97 if not cap else ord(c)-65
def num2alp(i,cap=False): return chr(i+97) if not cap else chr(i+65)
def matmat(A,B):
    K,N,M=len(B),len(A),len(B[0])
    return [[sum([(A[i][k]*B[k][j]) for k in range(K)]) for j in range(M)] for i in range(N)]
def matvec(M,v):
    N,size=len(v),len(M)
    return [sum([M[i][j]*v[j] for j in range(N)]) for i in range(size)]
def T(M):
    n,m=len(M),len(M[0])
    return [[M[j][i] for j in range(n)] for i in range(m)]
def main():
    mod = 1000000007
    #w.sort(key=itemgetter(1),reversed=True)  #二個目の要素で降順並び替え

    #N = int(input())
    #N, K = map(int, input().split())
    #A = tuple(map(int, input().split())) #1行ベクトル
    #L = tuple(int(input()) for i in range(N)) #改行ベクトル
    #S = tuple(tuple(map(int, input().split())) for i in range(N)) #改行行列


    A,B,C=map(int, input().split())

    if A==B and B!=C:
        print('Yes')
    
    elif A==C and B!=C:
        print('Yes')
    
    elif C==B and A!=C:
        print('Yes')
    
    else: print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a ,b ,c = map(int, input().split())
if (a == b and a != c) or (a == c and a != b) or (b == c and b != a):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = input().split()
a,b,c = int(x[0]), int(x[1]), int(x[2])
if a==b and a!=c:
    print("Yes")
elif a==c and a!=b:
    print("Yes")
elif b==c and b!=a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
result=0
if A == B:
    if A != C and B != C:
        result+=1
elif A == C:
    if A != B and B != C:
        result+=1
elif B == A:
    if B != A and C != B:
        result+=1
elif B ==C:
    if B != A and A != C:
        result+=1
elif C == A:
    if C != B and A == B:
        result+=1
elif C == B:
    if C != A and A == B:
        result+=1
if result==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b!=c or a==c!=b or b==c!=a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = input().split()
if len(set([a, b, c])) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))
l = set(A)
if len(l) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def solve():
    A, B, C = map(int, input().split())
    if A == B and A != C:
        print('Yes')
    elif A == C and A != B:
        print('Yes')
    elif B == C and A != B:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b == c or (a != b and a != c and b != c):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
ABC=input().split()
if len(set(ABC))==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
S=[a,b,c]
s=set(S)
if len(s)==2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

ans='No'

if a==b:
  if b!=c:
    ans='Yes'
elif b==c:
  ans='Yes'
elif a==c:
  ans='Yes'

print(ans)

Submission status: Accepted

Solution code:
import collections
ABC = list(map(str, input().split()))
cnt = collections.Counter(ABC)
 
if cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
  sys.exit()
elif c==b and b!=a:
  print("Yes")
  sys.exit()
elif a==c and b!=c:
  print("Yes")
  sys.exit()
else:
  print("No")
  sys.exit()

Submission status: Accepted

Solution code:
x=set(map(int,input().split()))
if len(list(x))==2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c=input().split()
if (a==b and b==c) or (a!=b and b!=c and c!=a):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a == b and a != c:
  print('Yes')
elif a == c and a != b:
  print('Yes')
elif b == c and a != c:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())

if A==B and B!=C:
  print("Yes")
  exit()
  
if B==C and C!=A:
  print("Yes")
  exit()
  
if A==C and C!=B:
  print("Yes")
  exit()

print("No")

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
if A == B == C:
    print('No')
elif B == C:
    print('Yes')
elif A == C:
    print('Yes')
elif A == B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
if A ==B and B == C:
    print('No')
elif B == C:
    print('Yes')
elif A == C:
    print('Yes')
elif A == B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
print("YNeos"[len(set(input().split())) != 2::2])

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if (a==b and a!=c) or (a==c and a!=b) or (b==c and b!=a):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a= set(input().split())
if len(a) == 2:
  print("Yes")

else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if (a == b and a != c) or (a == c and a != b) or (c == b and a != c):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = list(input().split())
print("Yes" if len(set(s))==2 else "No")

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
ans = 'No'
if (A == B and B != C) or (A == C and B != C) or (C == B and A != C):
  ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A == B and B != C:
    print('Yes')
elif B == C and C != A:
    print('Yes')
elif A == C and C != B:
    print("Yes")
else:
    print('No')

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))

if len(set(l)) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())

if A == B == C:
    print('No')
elif B == C or A == B or A == C:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = set(input().split())
print('Yes' if len(S) == 2 else 'No')

Submission status: Accepted

Solution code:
A, B, C = list(map(int, input().split()))
ans = "No"
if A == B:
    if B != C:
        ans = "Yes"
elif A == C or B == C:
    ans = "Yes"
print(ans)

Submission status: Accepted

Solution code:
def main():
    a,b,c = map(int,input().split())
    if a == b and b==c :
        print("No")
        return
    if a != b and b != c and a != c:
        print("No")
        return
    print("Yes")
    return

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))

if len(set(a)) == 2:
  print('Yes')
else:
  print('No')
#5 7 5
#4 4 4
#4 9 6
#3 3 4

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
if A==B and A==C:
  print('No')
elif A!=B and A!=C and B!=C:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ret = "No"
if (a == b and a != c) or (b == c and c != a) or (c == a and a != b):
    ret = "Yes"

print("{}".format(ret))

Submission status: Accepted

Solution code:
import  itertools

li = input().split()
if li[0]==li[1]==li[2]:
    print('No')
    exit()

p=itertools.permutations(li,2)

for i in p:
   if i[0] == i[1]:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if len(list(set(a))) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b == c or (a != b and b != c and a != c):
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
b = set(a)
if len(b) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
k=list(map(int,input().split()))
from collections import Counter
l=Counter(k)
if len(l)==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#<ABC155>
#<A>
a,b,c=map(int,input().split())
if a==b and a!=c:
    print("Yes")
elif a==c and a!=b:
    print("Yes")
elif b==c and a!=b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))

if len(set(x)) == 2:
   print('Yes')
else:
   print('No')

Submission status: Accepted

Solution code:
A,B,C = input().split()
if A == B and A != C:
    print("Yes")
elif A == C and A != B:
    print("Yes")
elif B == C and A != B:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A = set(map(int,input().split()))

if len(A)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())

if A == B and B == C:
  print("No")
elif A != B and B != C and C != A:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if a[0] == a[1] and a[0] != a[2]:
  print("Yes")
elif a[0] != a[1] and a[1] == a[2]:
  print("Yes")
elif a[0] == a[2] and a[0] != a[1]:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

if A==B and B==C or A!=B and A!=C and B!=C:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
ans = len(set(a))
if ans == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a = list(map(int, input().split()))
if len(a) - len(set(a)) == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
if A == B != C:
    print('Yes')
elif A == C != B:
    print('Yes')
elif B == C != A:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b or b==c or c==a:
  if a==b==c:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())

print('Yes' if a == b != c
            or b == c != a
            or c == a != b
      else 'No')

Submission status: Accepted

Solution code:
def main():
    a, b, c = map(int, input().split())
    if a == b or b == c or a == c:
        if a == b == c:
            print("No")
        else:
            print("Yes")
    else:
        print("No")
    

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A == B and A == C and B == C:
    print('No')
elif A != B and A != C and B != C:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if (a[0]==a[1] and a[0] != a[2]) or (a[1]==a[2] and a[1] != a[0]) or (a[0]==a[2] and a[0] != a[1]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
print('Yes' if (a==b or a==c or b==c) and not(a==b==c) else 'No')

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

if (A==B and A!=C) or (B==C and B!=A) or (C==A and C!=B):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys

input = lambda: sys.stdin.readline().rstrip()


def solve():
    n = set(list(map(int, input().split())))
    if len(n) == 2:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a, b, c = input().split()

if len({a,b,c}) == 2:
  	print('Yes')
else:
  	print('No')

Submission status: Accepted

Solution code:
ABC = list(map(int, input().split()))
# 重複だからsetが2つあればyes
if len(set(ABC)) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

ans = "No"
cnt = 0

if a == b:
    cnt += 1

if b == c:
    cnt += 1

if c == a:
    cnt += 1

if cnt == 1:
    ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if (A==B==C) or (A!=B) and (B!=C) and (C!=A):
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if (a-b)*(b-c)*(c-a) == 0 and a+b!=2*c:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c = input().split()

if a == b and b == c:
    print('No')
elif a != b and b != c and a != c:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
if A == B and A != C:
  print('Yes')
elif A == C and A != B:
  print('Yes')
elif B == C and A != B:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a=list(map(int, input().split()))

if len(set(a)) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
numbers = list(map(int, input().split()))

for i in range(1, 10):
    if numbers.count(i) == 2:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:
A = set(input().split())
if len(A) == 2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
arr = list(map(int, input().split()))
arr = list(set(arr))
if len(arr) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys
import decimal

def input():
    return sys.stdin.readline().strip()

def main():
    a, b, c = map(int, input().split())
    ans = "No"
    if a == b and a != c:
        ans = "Yes"
    elif a == c and a != b:
        ans = "Yes"
    elif b == c and b != a:
        ans = "Yes"
    print(ans)
    
main()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b != c:
    print('Yes')
elif a == c != b:
    print('Yes')
elif b == c != a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def main() :
    a, b, c = map(int, input().split())
    if a == b and a != c or a == c and a != b or b == c and a != b :
        print("Yes")
        
    else :
        print("No")
        
    

if __name__ == '__main__':
    import sys;
    try:
        main(sys.argv)
    except TypeError:
        main()

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b:
  if b ==c:
    print('No')
  else:
    print('Yes')
else:
  if b == c:
    print('Yes')
  elif a == c:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
a.sort()
if a[0]==a[1]!=a[2] or a[0]!=a[1]==a[2]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def main():
  num = list(map(int,input().split()))
  if num[0]==num[1]:
    if num[0]!=num[2]:
      print("Yes")
    else:
      print("No")
  else:
    if num[0]==num[2] or num[1]==num[2]:
      print("Yes")
    else:
      print("No")
main()

Submission status: Accepted

Solution code:
n = list(map(int,input().split()))

if(n[0] == n[1] == n[2]):
    print("No")
elif(n[0] == n[1] or 
    n[0] == n[2] or 
    n[1] == n[2]):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if ((a==b)and(a==c)) or ((a!=b)and(b!=c)and(c!=a)):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if (a == b and a != c) or (a == c and a != b) or (b == c and a != b):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
ABC = list(input().split())
print('Yes' if len(set(ABC)) == 2 else 'No')

Submission status: Accepted

Solution code:
combined = input().split(" ")
a = int(combined[0])
b = int(combined[1])
c = int(combined[2])

if (a == b and a != c) or (b == c and b != a) or (a == c and a != b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if a == b and a == c:
  print('No')
elif a != b and a != c and b!= c:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
b = len(set(a))
if b== 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))

P = len(set(A))
print('Yes' if P == 2 else 'No')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a==b!=c:
    print("Yes")
elif a==c!=b:
    print("Yes")
elif b==c!=a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a==b and b==c:
  print("No")
elif a==b or b==c or c==a:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
s=list(set(a))
if len(s)==2:
  print('Yes')
  
else:
  print('No')

Submission status: Accepted

Solution code:
Set = set(map(int,input().split()))

if len(Set) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
x = [int(i) for i in input().split()]
y = len(set(x))

if y == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
print("{}".format("Yes" if len(set([A, B, C])) == 2 else "No"))

Submission status: Accepted

Solution code:
A = list(input().split())
print("Yes" if len(set(A)) == 2 else "No")

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
if A==B and A!=C:
  print("Yes")
elif A==C and A!=B:
  print("Yes")
elif B==C and A!=B:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def resolve():
    a, b, c = list(map(int, input().split()))

    lis = []
    count = 1

    for i in (a, b, c):
        if i in lis:
            count += 1
        lis.append(i)

    print('Yes' if count == 2 else 'No')
resolve()

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if (a==b and a!=c) or (b==c and b!=a) or (c==a and c!=b):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
ABC = set(input().split())
print('Yes' if len(ABC) == 2 else 'No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def main():
    A, B, C = map(int, readline().split())
    if (A == B != C) or (B == C != A) or (C == A != B):
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c:print('No')
elif a==b or b==c or a==c:print('Yes')
else:print('No')