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

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

Submission status: Accepted

Solution code:
# A - Poor
A, B, C = tuple(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:
A, B, C = map(int, input().split())

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

Submission status: Accepted

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

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

ab = A==B
ac = A==C
bc = B==C
if ab + ac + bc == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if a == b == c:
    print("No")
elif a == b:
    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())
x = abs(a-b-c)
if((a==b&b==c)|(a!=b&b!=c&c!=a)):
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
A = [int(i) for i in input().split()]
d = {}
for a in A:
    if a in d:
        d[a] += 1
    else:
        d[a] = 1
ans = "No"
for v in d.values():
    if v == 2:
        ans = "Yes"
        break
print(ans)

Submission status: Accepted

Solution code:
a, b, c = [0] * 3

def format_input(filename = None):
	global a, b, c
	if filename == None:
		a, b, c = list(map(int, input().split()))

	elif filename == '__random__':
		from random import randint as rng
		a = rng(1, 9)
		b = rng(1, 9)
		c = rng(1, 9)

def get_answer():
	poorness = 'No'
	if len(set([a, b, c])) == 2:
		poorness = 'Yes'
	return poorness

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	print(ans)

Submission status: Accepted

Solution code:
A,B,C = map(int,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=input().split()

d=[""]*3
d[0]=a
d[1]=b
d[2]=c

e=set(d)
if len(e) ==2:
  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) 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 = list(map(int, input().split()))
if (a[0]==a[1] and a[1]!=a[2]) or (a[0]==a[2] and a[1]!=a[2]) or (a[1]==a[2] and a[0]!=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:
	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()))
b = len(set(a))
if b == 1 or b == 3:
    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 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("No")
elif A!=B and A!=C and B!=C:
  print("No")
else: print("Yes")

Submission status: Accepted

Solution code:
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
d=0
if (a==b):
    d+=1
if (b==c):
    d+=1
if (c==a):
    d+=1
if (d==1):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
a = n[0]
b = n[1]
c = n[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:

s = input().split()
if (s[0] == s[1]) and (s[0] != s[2]):
    output = "Yes"
elif (s[0] == s[2]) and (s[0] != s[1]):
    output = "Yes"
elif (s[1] == s[2]) and (s[1] != s[0]):
    output = "Yes"
else:
    output = "No"

print(output)

Submission status: Accepted

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

Submission status: Accepted

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

bool1 = nums[0] == nums[1]
bool2 = nums[0] == nums[2]
bool3 = nums[1] == nums[2]

bool_list = [bool1, bool2, bool3]

if bool_list.count(True) == 0 or bool_list.count(True) == 3:
  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 or B == C or A==C:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if a == b and b != c:
  poorFlag = True
if a == c and a != b:
  poorFlag = True
if b == c and a != b:
  poorFlag = True

print("Yes" if poorFlag else "No")

Submission status: Accepted

Solution code:
import numpy as np

A = [int(x) for x in input().split()]
A = np.array(A)
t = 0

if A[0] == A[1]:
  t += 1
else:
  pass

if A[0] == A[2]:
  t += 1
else:
  pass

if A[1] == A[2]:
  t += 1
else:
  pass

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if (A == B and C != A) or (A == C and B != A) or (B == C and A != B):
    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()]

flag = True
if a == b:
    if a == c:
        flag = False
    else:
        flag = True
elif a == c:
    flag = True
elif b == c:
    flag = True
else:
    flag = False

if flag:
    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:
import sys

input = sys.stdin.readline

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

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

Submission status: Accepted

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

if (a[0] == a[1] and a[0] != a[2]) or (a[0] == a[2] and a[0] != a[1]) 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())
s=set([a,b,c])
s=list(s)
if len(s)==2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

stdin = open(0)
A, B, C = map(int, stdin.read().split())


def check(A, B, C):
    for _ in range(3):
        A, B, C = B, C, A
        if A == B != C:
            return True
    return False


answer = 'Yes' if check(A, B, C) else 'No'
print(answer)

Submission status: Accepted

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

l_unique = len(set(l))

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

Submission status: Accepted

Solution code:

a, b, c = (int(x) for x in input().split())

ans = ''

if a == b and a != c :
 ans = 'Yes'
elif a == c and a != b :
 ans = 'Yes'
elif b == c and a != b :
 ans = 'Yes'
else:
 ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

# cが仲間外れ
if a == b and b != c:
    print("Yes")
# bが仲間外れ
elif a == c and a != b:
    print("Yes")
# aが仲間外れ
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 :
    if a != c:
        print('Yes')
    else:
        print('No')
elif a ==c:
    if a!=b:
        print('Yes')
    else:
        print('No')
elif b ==c:
    if b != a:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

Solution code:
number = input().split()
newNumber = set(number)
if(len(newNumber) + 1 == len(number)):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C = input().split()
lis = [A,B,C]
for i in lis:
  if lis.count(i)==2:
    print("Yes")
    exit()
print("No")

Submission status: Accepted

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

if same==1:
    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:
A = input()
arr1 = [i for i in A.split(' ')]
if(arr1[0]==arr1[1]==arr1[2]):
	print('No')
elif((arr1[0]!=arr1[1]) and (arr1[0]!=arr1[2]) and (arr1[1]!=arr1[2])):
	print('No')
else:
	print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
L=map(int,input().split())
L=sorted(L)
if L[0]==L[1] and L[1]<L[2]:
    print('Yes')
elif L[0]<L[1] and L[1]==L[2]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = list(map(int,input().split()))
N = set(N)
n = len(N)
if n == 2:
    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 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,b,c = map(int,input().split())
S = set()
S.add(a)
S.add(b)
S.add(c)
print("Yes" if len(S)==2 else "No")

Submission status: Accepted

Solution code:
n=list(map(int, input().split()))
if n[0]==n[1]:
    if n[0]==n[2]:
        print('No')
    else:
        print('Yes')
elif n[0]==n[2]:
    if n[0]==n[1]:
        print('No')
    else:
        print('Yes')
elif n[1]==n[2]:
    if n[0]==n[1]:
        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:
    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:
  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 inpl():
    return list(map(int, input().split()))


A = inpl()
A.sort()
print("Yes" if A[0] != A[2] and (A[0] == A[1] or A[1] == A[2]) else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def calculate():
    S = input().split(" ")
    A = S.count(S[0])
    if A == 2:
        print("Yes")
        return

    B = S.count(S[1])

    if B == 2:
        print("Yes")
        return

    C = S.count(S[2])

    if C == 2:
        print("Yes")

    print("No")

calculate()

Submission status: Accepted

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

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

def solve(A, B, C):
    na = sorted([A, B, C])
    is_poor = False
    if na[0] == na[1] and na[1] < na[2]:
        is_poor = True
    elif na[0] < na[1] and na[1] == na[2]:
        is_poor = True
    return 'Yes' if is_poor else 'No'


if __name__ == '__main__':
    inputs = read()
    print("{}".format(solve(*inputs)))

Submission status: Accepted

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

Submission status: Accepted

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

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

    # A = B の時
    if a == b:
        if a != c:
            print('Yes')
        else:
            print('No')
    # A != B の時
    else:
        if a == c or b == c:
            print('Yes')
        else:
            print('No')

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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:
s = [int(x) for x in input().split()]
a =0
if s[0] == s[1]and s[0] != s[2] or s[1] == s[2] and s[0] != s[2] or s[0] == s[2] and s[1] != s[2]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

if A[0] == A[1] or A[0] == A[2] or A[1] == A[2]:
    if A[0] == A[1] == A[2]:
        print('No')
    else:
        print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = map(int,input().split())
li = [A, B, C]
li.sort()

ans = "No"

if li[0] == li[1] and li[1] != li[2] :
  ans = "Yes"

elif li[0] != li[1] and li[1] == li[1] == li[2]:
  ans = "Yes"

print(ans)

Submission status: Accepted

Solution code:
# 2つの整数
a, b, c = input().strip().split()
a, b, c = [int(a), int(b), int(c)]

ans = 0

if a == b:
	if b != c:
		ans = 1
else:
	if b == c:
		ans = 1
	elif a == c:
		ans = 1
        
if ans:
	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 = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
def main():
    num = list(map(int,input().split()))
    if num.count(num[0]) == 2 or num.count(num[1]) == 2:
        print('Yes')
        return

    print('No')


main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
userinput = input()
inputlist = userinput.split(" ")
inputset = set(inputlist)
num = 0
for i in inputlist:
  num = num + int(i)
if num <= 27:
  if len(inputset) == 2:
    print("Yes")
  else:
    print("No")
else:
  print("")

Submission status: Accepted

Solution code:
# 入力が10**5とかになったときに100ms程度早い
import sys
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_matrix(H):
    '''
    H is number of rows
    '''
    return [list(map(int, read().split())) for _ in range(H)]


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols

    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])

    return ret


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

Submission status: Accepted

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

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

print('Yes' if len(set([A, B, C])) == 2 else '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 and B == C:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Accepted

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

count = 0
if a==b:
    count = count + 1
if a == c:
    count = count + 1
if b == c:
    count = count + 1

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

Submission status: Accepted

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

nn = set(n)
if len(nn) == 1:
    print('No')
elif len(nn)== 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 a!=c:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

if ((a == b) and (a != c)) or ((b == c) and (b != a)) or ((c == a) and (c != b)):
    is_poor = True

if is_poor:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a = list(map(int,input().split()))
a.sort()
if (a[0]==a[1] and a[1] != a[2]) or (a[2]==a[1] and a[1] != a[0]):
    print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
raw_input = input()
l = raw_input.split()
A = int(l[0])
B = int(l[1])
C = int(l[2])

count = 0

if A == B:
    count = count + 1
if B == C:
    count = count + 1
if C == A:
    count = count + 1
    
if count == 1:
    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:
#


def main():
    a, b, c = input().split(" ")
    dic = dict({a: 0, b: 0, c: 0})
    dic[a] += 1
    dic[b] += 1
    dic[c] += 1
    if dic[a] == 2 or dic[b] == 2 or dic[c] == 2:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# /usr/bin/python3
# -*- coding: utf-8 -*-
from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key


yn = 'YNeos'
ynflg = False
cnt = 0
ans = None

def lcm(a, b):
    return (a*b) // gcd(a,b)

def intinput():
    return int(input())

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

def lineinputs(func=intinput):
    datas = []
    while True:
        try:
            datas.append(func())
        except EOFError:
            break
    return datas



A, B, C = mulinputs()

# 出力
if A == B:
    ynflg = A == C
elif B == C:
    ynflg = A == B
elif C == A:
    ynflg = B == C
else:
    ynflg = True

print(yn[ynflg::2])

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
line = input()
a, b, c = line.split(" ")
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:
numbers = list(map(int, input().split()))

count = 0
if(numbers[0] == numbers[1] or numbers[0] == numbers[2]):
    count += 1

if(numbers[1] == numbers[2]):
    count += 1


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

count=len(set(A))

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

Submission status: Accepted

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

Submission status: Accepted

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

abc = [a,b,c]
abc.sort()

if abc[0] == abc[1] and abc[1] != abc[2]:
    print('Yes')
    exit()

if abc[1] == abc[2] and abc[0] != abc[1]:
    print('Yes')
    exit()


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

Submission status: Accepted

Solution code:
ary=input().split()
if ary[0] == ary[1] and ary[2] == ary[1]:
    print("No")
elif ary[0] != ary[1] and ary[2] != ary[1] and ary[0] != ary[2]:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.buffer.readline
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getlist():
    return list(map(int, input().split()))
import math
import heapq
from collections import defaultdict, Counter, deque
MOD = 10**9 + 7
INF = 10**15


def main():
    nums = getlist()
    if len(list(set(nums))) == 2:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

"""
9999
3

2916
"""

Submission status: Accepted

Solution code:
arr = set([int(i) for i in input().split()])
if len(arr) == 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:
ls1= list(map(int,input().split()))
ls = sorted(ls1)
if ls[0] == ls[1] :
    if ls[1] == ls[2]:
        print("No")
    else:
        print("Yes")
else:
    if ls[1] == ls[2]:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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,B,C=(int(i) for i in 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 b == c:
        print('No')
    else:
        print('Yes')
else:
    if a == c:
        print('Yes')
    elif b == c:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import collections

#a = [5, 7, 5]
a = list(map(int,input().split()))

counter = collections.Counter(a)

res = 'No'
for k, v in counter.items():
    if v == 2:
        res = 'Yes'

print(res)

Submission status: Accepted

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

def f(a):
    for i in range(len(a)):
        for j in range(i+1, len(a)):
            if (a[i] == a[j]) and (a[list(set([0,1,2])-set([i,j]))[0]] != a[i]):
                print("Yes")
                return
    print("No")
f(a)

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=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:
    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:
X,Y,Z = map(int,input().split())
if(X == Y):
    if(Y == Z):
        print("No")
    else:
        print("Yes")
elif(X == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
elif(Y == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Accepted

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

if nums.count(nums[0]) == 2 or nums.count(nums[1]) == 2 or nums.count(nums[2]) == 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 c!=a:
  print('Yes')
elif c==a and a!=b:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c = (int(x) for x in input().split())

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

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 and A != C:
  print("Yes")
  
elif A == C and A != B:
  print("Yes")

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