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())
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:
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:
a = input().split()
ans = set(a)
if len(ans) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
A = input().split()

matchflg = False
result = False
for i, d in enumerate(A):
    for f in A[(i + 1):]:
        if d == f:
            if matchflg == True:
                result = False
            elif matchflg == False:
                result = True
                matchflg = True

if result:
    print('Yes')
elif not result:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python

A, B, C = list(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:

#a = input()
x, y ,z= map(int, input().split())

#print(a ,type(a))
if x == y and y == z and z == x:
    print("No")
elif x != y and y != z and z != x:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b, c = (int(x) for x in input().split())
def check(a, b, c):
    if a==b and not(a==b==c): return(True)
    if a==c and not(a==b==c): return(True)
    if b==c and not(a==b==c): return(True)
    return False

if check(a, b, c):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#3つの数字をリストにする
data = input().split( )
#場合わけ
if (data[0] == data[1] or data[1] == data[2] or
   data[2] ==data[0]) and not data[1]== data[2]==data[0] :
    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:
n = set(map(int, input().split()))
if len(n) == 2:
    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(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) or (A==C and C!=B) or (C==B and B!=A):
  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 (b != c) and a != c):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
list = input().split(" ")
A = int(list[0])
B = int(list[1])
C = int(list[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())
if  A == B and (A != C and B != C) or\
    B == C and (B != A and C != A) or\
    C == A and (C != B and A != B):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b, c = [int(x) for x in 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())
if A !=B and A!=C and B != C:
    print("No")
elif A == B 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 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,B,C = map(int,input().split())
if(A == B and A != C):
    print('Yes')
elif(A == C and A != B):
    print('Yes')
elif(C == B and A != B):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))
A_unique = list(set(A))
A_length = len(A_unique)

if A_length == 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 B==C and C!=A:
	print('Yes')
elif C==A and A!=B:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

sum_distance = set([a,b,c])

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

Submission status: Accepted

Solution code:
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def S(): return input().rstrip()

def main():
    A, B, C = MI()
    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')
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 :
    print('Yes')
elif B == C :
    print('Yes')
elif A == C :
    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 = sorted([int(x) for x in input().split()])
if (A == B and B != C) or (A != B and B == C):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if (arr[0] == arr[1] and arr[0] != arr[2]) or \
   (arr[1] == arr[2] and arr[0] != arr[1]):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A==B:
  if A!=C:
    print("Yes")
  else:
    print("No")
else:
  if A==C:
    print("Yes")
  elif 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) or (b != c and c == a) or (c != a and a == b):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
abc = set(input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
numbers = set(map(int, input().split()))
if len(numbers) == 2:
    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 A!= C:
    print('Yes')
elif B == C and A!= C:
    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 or b==c and c!=a or c==a and a!=b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d={}
d[a]=1
d[b]=1
d[c]=1
if len(d)==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

def judge(info_num):
    info_num = info_num.split()
    
    num_list = []
    for num in info_num:
        if not num in num_list:
            num_list.append(num)
    result = len(num_list)
    return result

def main():
    info = input()
    result = judge(info)
    
    if result == 2:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
input = [int(x) for x in input().split()]

A = input[0]
B = input[1]
C = input[2]

isPoor = False
if (A==B):
    if (A!=C):
        isPoor = True
elif (A==C):
    if (A!=B):
        isPoor = True

elif (B==C):
    if (A!=B):
        isPoor = True

if (isPoor):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split(" ")
if len(set(n)) == 2:
  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")
else:
    if (c-a)*(c-b)==0:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Mar  4 00:27:57 2020

@author: Kanaru Sato
"""
a,b,c = list(map(int,input().split()))

diff = [a-b, b-c, c-a]

flag = 0

if diff[0]*diff[1]*diff[2] == 0:
    if abs(diff[0])+abs(diff[1])+abs(diff[2]) != 0:
        flag = 1

if flag == 0:
    print("No")
else:
    print ("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

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

c = Counter([A, B, C])
if sorted(list(c.values())) == [1, 2]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
aList = list(map(int, input().split()))
print("YNeos"[len(aList) - len(set(aList)) != 1::2])

Submission status: Accepted

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

if not a == b == c and (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())


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())

s = set([a,b,c])

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

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())

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

Submission status: Accepted

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

Submission status: Accepted

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

print("Yes" if len(set(abc)) == 2 else "No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

lis = [a, b, c]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a, b, c = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

X="Yes"
Y="No"

if A==B:
    if A==C:
        print(Y)
    else:
        print(X)

elif A==C:
    if A==B:
        print(Y)
    else:
        print(X)

elif B==C:
    if B==A:
        print(Y)
    else:
        print(X)

else:
    print(Y)

Submission status: Accepted

Solution code:

A, B, C = map(int, input().split())
s = { A, B, C }
if ( len(s) == 2 ) :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
ABC = list(map(int,input().split()))
ABC.sort()
a_b = ABC[1]-ABC[0]
a_c = ABC[2]-ABC[1]
b_c = ABC[2]-ABC[0]
list_abc=[]
list_abc.append(a_b)
list_abc.append(a_c)
list_abc.append(b_c)
list_abc.sort()
if list_abc[0]==0:
    if list_abc[1]==0:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def solve(string):
    a, b, c = sorted(map(int, string.split()))
    return "Yes" if (a == b and b != c) or (a != b and b == c) else "No"


if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

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:
if len(set(map(int,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')
elif a == b and b != c:
  print('Yes')
elif a == c and b != c:
  print('Yes')
elif b == c and a != b:
  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())
if (( a == b or b == c or c == a ) and not a == b == c) :
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

flg = True
if A == B and B == C:
  flg = False
if A != B and B != C and C != A:
  flg = False
  
print("Yes" if flg else "No")

Submission status: Accepted

Solution code:
A, B, C =[int(i) for i in input().split()]

if ((A !=B) & (B==C)) | ((A !=B) & (A==C)) | ((A !=C) & (B==A)):
  ans ="Yes"
else:
  ans = "No"
  
print(ans)

Submission status: Accepted

Solution code:
a,b,c=[int(x) for x in input().split()]
if a==b and b!=c:
  print("Yes")
elif b==c and a!=b:
  print("Yes")
elif 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 B is not C:
    print('Yes')
elif B==C and C is not A:
    print('Yes')
elif C==A and A is not B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if ((a==b)+(b==c)+(c==a)):
    if ((a==b)*(b==c)):
        ans = 'No'
    else:
        ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, B, C = map(int, input().split())

#内部レーティング
if A==B==C:
    ans="No"
elif A!=B and B!=C and A!=C:
    ans="No"
else:
    ans="Yes"


# 出力
print(ans)

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:
abc = input().split()

print('YNeos'[len(set(abc))!=2::2])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

s = set([a,b,c])
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 a != c) or (b == c and c != a) or (c == a and a != b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l = input().split()
l.sort()
if(l[0]!=l[2] and (l[0]==l[1] or l[1] == l[2])):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=set([int(i) for i in input().split()])
print(["No","Yes"][len(s)==2])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def main():
    N = list(map(int,input().split()))
    if len(set(N)) == 2:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
*l, = map(int, input().split())
print("Yes" if len(set(l)) == 2 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:
A, B, C = map(int, input().split())

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a==b:
  if a!=c:
    print ("Yes")
  else:
    print("No")
elif b==c:
  if b!=a:
    print ("Yes")
  else:
    print("No")
elif c==a:
  if c!=b:
    print ("Yes")
  else:
    print("No")
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 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) 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()))
a.sort()
if (a[0]==a[1] and a[1]!=a[2]) or (a[1]==a[2] and a[1]!=a[0]):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

count = 0
for i in range(1,3):
  if n[0] == n[i]:
    count+=1

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

Submission status: Accepted

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

if a==c:
    print('Yes')
    sys.exit()
    
print('No')

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b and a!=c:
  print("Yes")
elif b==c and b!=a:
  print("Yes")
elif c==a and c!=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("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:
import numpy as np
import math as m

def main(**kwargs):
    if len(set([a, b, c])) == 2:
        r = "Yes"

    else:
        r = "No"

    return r

if __name__ == "__main__":
    cin = np.array(input().split(" ")).astype("int")
    a, b, c = cin

    cout = main(a=a, b=b, c=c)
    print(cout)

Submission status: Accepted

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

y = 0
for i in range(3):
    if l1[(i+0)%3] == l1[(i+1)%3] and l1[(i+1)%3] != l1[(i+2)%3]:
        y = 1
if y == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import collections
dic = collections.Counter(map(int,input().split()))
if len(dic) == 2:
    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 a==c: 
  print("Yes")
elif b==c:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
x=input().split()
num=[]
for k in range(3):
  num.append(int(x[k]))
num.sort()

a=num[1]-num[0]
b=num[2]-num[1]
if a*b!=0:
  print('No')
else:
  if a+b==0:
    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 b != a:
    print("Yes")
elif b==c and a != b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

def hantei(n1,n2,n3):
  ans="Yes"
  if n1==n2 and n2==n3:
    ans="No"
  if n1!=n2 and n2!=n3 and n3!=n1:
    ans="No"
  return ans

print(hantei(a,b,c))

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
s=0
for i, x in enumerate(n):
    if x in n[i+1:]: s+=1
print("%s" % "Yes" if s==1 else "No")

Submission status: Accepted

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

count = 0
for i in ABC:
    if(i == ABC[0]):
        count += 1
    if(i == ABC[1]):
        count += 1
    if(i == ABC[2]):
        count += 1

count = count - 3
if(count == 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 != a):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

flg = False
if a == b and a != c:
    flg = True
elif a == c and a != b:
    flg = True
elif b == c and b != a:
    flg = True

if flg:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
def resolve():
    A, B, C = sorted(lr())
    if A == B and B < C:
        print('Yes')
    elif A < B and B == C:
        print('Yes')
    else:
        print('No')
resolve()

Submission status: Accepted

Solution code:
import sys
from math import *
from collections import deque, Counter, defaultdict
from fractions import gcd
input = lambda: sys.stdin.readline().rstrip()

def eprint(s):
    sys.stderr.write('DEBUG: {}'.format(s))
    return

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 c != a:
        print('No')
        return
    else:
        print('Yes')

    return

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if A==B:
  count+=1

if B==C:
  count+=1

if C==A:
  count+=1

if count==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def kawaiso(a, b, c):
  if (a == b and b != c) or (b == c and c != a) or (c == a and a != b):
    return 'Yes'
  else:
    return 'No'

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

print(kawaiso(a, b, c))

Submission status: Accepted

Solution code:
if __name__ == '__main__':

    s = set([int(i) for i in input().split()])

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

Submission status: Accepted

Solution code:
from sys import stdin
import math

if __name__ == '__main__':
	n = stdin.readline()
	n = n.rstrip('\n')
	n = n.split(' ')
	n = [int(i) for i in n]
	n.sort()
	if (n[0] == n[1] and n[1] != n[2]) or (n[0] != n[1] and n[1] == n[2]):
		print('Yes')
	else:
		print('No')

Submission status: Accepted

Solution code:
import math

class Input():
	def readInt(self):
		return int(input())

	def readIntArray(self):
		return [int(x) for x in input().split(" ")]

	def readString(self):
		return input()

	def readStringArray(self):
		return input().split(" ")

	def readFloat(self):
		return float(input())

	def readFloatArray(self):
		return [float(x) for x in input().split(" ")]

def main():
	inp = Input()
	arr =  inp.readIntArray()
	s = set()
	s.update(arr)
	if len(s) == 2:
		print("Yes")
	else:
		print("No")

if __name__ == "__main__":
   main()

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 == c:
    print('No')
elif a == b or c == b or c ==a :
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def inp():
    return input()
def iinp():
    return int(input())
def inps():
    return input().split()
def miinps():
    return map(int,input().split())
def linps():
    return list(input().split())
def lminps():
    return list(map(int,input().split()))

a,b,c = miinps()

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

Submission status: Accepted

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

Submission status: Accepted

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

print('Yes' if len(st) == 2 else 'No')

Submission status: Accepted

Solution code:
a,b,c = 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] = list(map(int,input().split()))
l = [A,B,C]
l.sort()

if (l[0]+l[1]+l[2])/3 > l[0]:
  if l[0] == l[1] or l[1] == l[2]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
count = 0
if A == B:
    count += 1
if A == C:
    count += 1
if B == C:
    count += 1
if count == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

count = 0

if num[0] == num[1]:
  count = count + 1

if num[1] == num[2]:
  count = count + 1

if num[2] == num[0]:
  count = count + 1

if count == 1:
  ans = "Yes"
elif count == 0 or count == 3:
  ans = "No"

print(ans)

Submission status: Accepted

Solution code:
a, b, c = [int(elem) for elem in 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,b,c = map(int,input().split())
if a == b:
  if a == c:
    print("No")
  else:
    print("Yes")
else:
  if a == c or b == c:
    print ("Yes")
  else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

def main():
	se = set(MAP())

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


if __name__=='__main__':
	main()