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

Submission status: Accepted

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

import itertools

degit = list(map(int, input().split()))

flag = 0
for i, j, k in itertools.permutations(degit, 3):
    if i == j:
        if j != k:
            flag = 1
    else:
        if j == k:
            flag = 1
    # print(i, j, flag)


print("Yes" if flag == 1 else "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,b,c=map(int,input().split())
n=0
if a==b:
  n+=1
if b==c:
  n+=1
if c==a:
  n+=1
if n==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')
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:
a,b,c = map(int,input().split())

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

Submission status: Accepted

Solution code:
arr = [int(i) for i in input().split()]
st = set(arr)
if len(st) == 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 != A :
	print('Yes')

else : 
	print('No')

Submission status: Accepted

Solution code:
x=set(input())
if len(x)==3: 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')
        exit()

if b == c:
    if a != b:
        print('Yes')
        exit()

if c == a:
    if a != b:
        print('Yes')
        exit()

print('No')

Submission status: Accepted

Solution code:


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

Submission status: Accepted

Solution code:
slist = input().split()
sset = set(slist)

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

Submission status: Accepted

Solution code:
a, b, c = 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:
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())

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
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    l = il()
    print('Yes' if len(set(l)) == 2 else '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 c == a:
  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:
l=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 not b==c:
    print('Yes')
elif c==b and not b==a:
    print('Yes')
elif c==a and not b==a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = set(list(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:
    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())

out=0
if A==B:
    out+=1
if B==C:
    out+=1
if A==C:
    out+=1

if out==1:
    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 a==c and b!=c:
    print('Yes')

elif b==c and a!=c:
    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 = input().split()
if A == B:
  if B != C:
    print("Yes")
  else:
    print("No")
  exit()

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

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

Submission status: Accepted

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

if a==b and b==c and c==a 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 not (A-B)**2+(B-C)**2+(C-A)**2==0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
list = x.split()

if list[0] == list[1] and list[1] == list[2] and list[0] == list[2]:
    print('No')
elif list[0] != list[1] and list[1] != list[2] and list[0] != list[2]:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B,C=input().split()
a,b,c=int(A),int(B),int(C)

if a==b and b!=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:
n = input().split()
for i in range (3) :
    n[i] = int(n[i])

a = sorted (n)

fl = False

if (a[0] == a[1] and a[1] != a[2]) :
    fl = True
if (a[0] != a[1] and a[1] == a[2]) :
    fl = True
print ('Yes' if fl else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = list (map (int, input ().split ()))
k = a ^ b ^ c
print ("Yes" if ((k == a) + (k == b) + (k == c) == 1) else "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:
def main():
    a = list(map(int, input().split()))
    if len(set(a)) == 2:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A, B, C = [int(i) for i in input().split()]
if(A==B!=C or A!=B==C or A==C!=B):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
cnt = 0
if a == b:
    cnt +=1
if b == c:
    cnt +=1
if c == a:
    cnt += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy
A,B,C = input().split()
a = A
b = B
c = C
if (a==b and a==c):
    print("No")
elif (a==b or b==c or a==c):
    print("Yes")
elif (a!=b or b!=c):
    print("No")

Submission status: Accepted

Solution code:
x = list(map(int,input().split()))
a = x[0]
b = x[1]
c = x[2]

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=input().split()
a=int(A)
b=int(B)
c=int(C)
if a==b or b==c or a==c:
    if not(a==b and b==c):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
x, y , z = [int(x) for x in input().split()]
if(x==y and y==z):
    print("No")
elif(x!=y  and x!=z and y!=z):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
li = list(map(int, input().split()))
print("Yes" if len(set(li))==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 B == C or A == C): print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
# 1st:0407,2nd-:0408

#ABC041-C
if False:
    N=int(input())
    A=[int(i) for i in input().split()]
    ans=[(i,a) for i,a in enumerate(A)]
    ans.sort(key=lambda x: x[1],reverse=True)
    for i in range(N): print(ans[i][0]+1)

#AGC017-A
if False:
    N,P=map(int,input().split())
    A=[int(i) for i in input().split()]
    flag=True # 偶数のみか
    for a in A:
        if a%2==1:
            flag=False
            break
    if flag:
        if P==0:
            print(2**N)
        else:
            print(0)
    else:
        print(2**(N-1))

#3rd: ABC155-A
if True:
    if len(set(input().split()))==2:
        print('Yes')
    else:
        print('No')
#4th
#5th

Submission status: Accepted

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

Submission status: Accepted

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

if (A is B and B is C) or (A is not B and B is not C and C is not A):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A, B, C = 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:
inputted = list(map(int, input().split()))
A = inputted[0]
B = inputted[1]
C = inputted[2]

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

print(answer)

Submission status: Accepted

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

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 = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
[A, B, C]= [int(i) for i in 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 = 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 = input().split()
A = int(A)
B = int(B)
C = int(C)

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

Submission status: Accepted

Solution code:

new_list = list(map(int,input().split()))
if len(set(new_list)) == len(new_list) or len(set(new_list)) == 1:
    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 C != A:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

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:
import sys
input = sys.stdin.readline
import math
def print_ans(ar):
    """Test Case
    >>> print_ans([5, 7, 5])
    Yes
    >>> print_ans([4, 4, 4])
    No
    >>> print_ans([4, 9, 6])
    No
    >>> print_ans([3, 3, 4])
    Yes
    """
    print("Yes" if len(set(ar)) == 2 else "No")


if __name__ == '__main__':
    ar = list(map(int, input().rstrip().split()))
    print_ans(ar)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=[int(i) for i in input().split()]
d={}
d[a]=1
d[b]=1
d[c]=1
val=list(d.values())
if len(val)==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 A==B or B==C or C==A:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
num_list = [int(s) for s in input().split()]
num_set = set(num_list)

ans = "Yes" if len(num_set) == 2 else "No"
print(ans)

Submission status: Accepted

Solution code:
#---Poor
A, B, C = map(int, input().split(" "))

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

Submission status: Accepted

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

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:
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 c == a and b != a:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

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

if (A == B and B != C) or (A == C and B != C) or (C == B and A != C):
    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,B,C = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

s = set(l)

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
pon=[a,b,c]
if len(set(pon))==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())

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

Submission status: Accepted

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

if len(set(a_list)) == 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 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 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:
abc=input().split()
a=int(abc[0])
b=int(abc[1])
c=int(abc[2])

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, b, c = map(int,input().split())
d = set([a,b,c])
if len(d) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

if len(mitu)==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 a!=c and b!=c):
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

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:
import collections
A = list(map(int, input().split()))
if len(collections.Counter(A)) == 2:
  print('Yes')
else: print('No')

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[0] != A[1]):
  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, B, C = map(int,input().split())
print('No' if (A==B and B==C) or (A!=B and B!=C and C!=A) else 'Yes')

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 (b == c and b != a):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
x = sorted(x)
if x.count(x[1]) == 2:
     print("Yes")
else:
     print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

if(A.count(A[0]) == 2 or A.count(A[1]) == 2 or A.count(A[2]) == 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 (A != C) and (B != C)) :
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
ispoor = False
if a == b and a != c:
    ispoor = True
if b == c and b != a:
    ispoor = True
if c == a and c != 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 != c or b == c != a or a == c != b :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
v = [int(i) for i in input().split()];

v.sort();
if (v[0] == v[1] or v[1] == v[2]) and v[0] != v[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((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('YNeos'[a==b==c or a!=b!=c!=a::2])

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

Submission status: Accepted

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

if len(nums) == 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 b != a) or (c == a and c!= b):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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


def main():

    a, b, c = map(int, input().split())
    check = set([a, b, c])

    result = "No"
    if len(check) == 2:
        result = "Yes"

    return result


if __name__ == '__main__':
    print(main())

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 = map(int,input().split())
if len(set([a,b,c])) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans="No"
l=list(map(int,input().split()))
l.sort()
if (l[0]==l[1] and l[1]!=l[2]) or (l[0]!=l[1] and l[1]==l[2]):
    ans="Yes"
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    x, y, z = (int(x) for x in input().split())
    if x == y == z:
        print('No')
    elif x == y or y == z or x == z:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
arr=list(map(int,input().strip().split()))[:3]
dict1={}
for i in arr:
    if i in dict1:
        dict1[i]+=1
    else:
        dict1[i]=1
if(len(dict1)==2):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
lst = [int(i) for i in input().rstrip().split(' ')];

for i in range(len(lst)):
    if lst.count(lst[i]) == 2:
        print('Yes')
        sys.exit()
print('No')

Submission status: Accepted

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

if a != b and b != c and c != a or a == 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) 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())
answer = 0
if A == B:
    answer += 1
if B == C:
    answer += 1
if C == A:
    answer += 1
if answer == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

num = list()
num.append(int(A))
num.append(int(B))
num.append(int(C))
if len(list(set(num))) == 2:
    print('Yes')
else:
    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=set(map(int,input().split()))
print("Yes" if len(a)==2 else "No")

Submission status: Accepted

Solution code:
from sys import stdin

a, b, c = stdin.readline().rstrip().split()

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

Submission status: Accepted

Solution code:
# ABC 155: A – Poor
n = [int(s) for s in input().split()]
print('Yes' if n.count(n[0]) == 2 or n.count(n[1]) == 2 or n.count(n[2]) == 2 else 'No')

Submission status: Accepted

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

st = set(li)

if len(st) == 2:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int, input().strip().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:
print('YNeos'[len(set(input().split()))%2::2])

Submission status: Accepted

Solution code:
import bisect
import heapq
import sys
import queue


input = sys.stdin.readline
sys.setrecursionlimit(100000)


class V:
    def __init__(self, f):
        self.f = f
        self.v = None

    def __str__(self):
        return str(self.v)

    def ud(self, n):
        if self.v is None:
            self.v = n
        else:
            self.v = self.f(self.v, n)

    def get(self):
        return self.v


def read_values():
    return map(int, input().split())


def read_list():
    return list(read_values())


def main():
    A, B, C = read_values()
    if len({A, B, C}) == 2:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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