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

Submission status: Accepted

Solution code:
def solve():
    a, b, c= list(input().split())
    if a == b == c:
        print("No")
    elif a == b or a == c or b == c:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a,b,c=list(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:
abc = input().split()

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

Submission status: Accepted

Solution code:

ABC = list(input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
lst=list(map(str,input().split()))
a=set()
for i in range(3):
  a.add(lst[i])
if len(a)==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# A - Poor

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
import sys
def I(): return int(input())  # '123' -> 123
def Is(): return map(int, input().split())  # '123 456' -> 123, 456
def LI(): return list(map(int, input().split()))  # '123 456' -> [123, 456]
def TI(): return tuple(map(int, input().split()))  # '123 456' -> (123, 456)
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  # 'aa bb' -> 'aa','bb' or ['aa','bb']
def LS(): return list(input())  # 'abc123' -> ['a','b','c','1','2','3']
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

a, b, c = Is()
if len({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) or (A==B and B==C):
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
In = list(map(int, input().split()))
d = {}
for i in In:
    if i not in d.keys():
        d[i] = 0
    d[i] += 1
print("Yes" if len(d) == 2 else "No")

Submission status: Accepted

Solution code:



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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
abc = [int(i) for i in readline().split()]

if len(set(abc)) == 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:
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 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 B!=C)or(B==C and A!=B):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict

n = list(map(int, input().split()))
memo = defaultdict(int)

for i in n:
    memo[i] += 1

print("Yes") if 2 in memo.values() else print("No")

Submission status: Accepted

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

d = 0
if a==b:
    d=d+1
if b==c:
    d=d+1
if c==a:
    d=d+1
if d==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A= map(int, input().split())  #数字
if len(set(A)) == 2:
    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:
L = [int(_) for _ in input().split()]
if len(set(L)) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	a,b,c = map(int, input().split())
	l = [b,c]
	if a in l:
		if b == c:
			print('No')
		else:
			print('Yes')
	else:
		if b == c:
			print('Yes')
		else:
			print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a = int(abc[0])
b = int(abc[1])
c = int(abc[2])

d = 0

if a == b:
    d = d + 1

if b == c:
    d = d + 1

if c == a:
    d = d + 1

if d == 1:
    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:
X,Y,Z = input().split()
s = X
t = Y
u = Z
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:
a, b, c = map(int, input().split())

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

Submission status: Accepted

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

print(solve())

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys;input=lambda:sys.stdin.readline().rstrip();aint=lambda:int(input());ints=lambda:list(map(int,input().split()))
import math;floor,ceil=lambda x:int(math.floor(x)),lambda x:int(math.ceil(x))
from functools import reduce;gcd=lambda*x:reduce(math.gcd,x);lcm=lambda*x:reduce(lambda x,y:(x*y)//gcd(x,y),x,1)
from collections import deque
Yes=lambda b:print("Yes"if b else"No");YES=lambda b:print("YES"if b else"NO")
is_even=lambda x:True if x%2==0 else False

def is_palindrome(s):
  n=len(s);b=True
  for i in range(int(0.5*n)):
    if s[i]!=s[n-i-1]:b=False
  return b

def main():
  a,b,c=ints()
  Yes(a==b!=c or b==c!=a or c==a!=b)
  
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

def main():
    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")

if __name__ == "__main__":
    main()

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:
print('Yes') if len(set(input().split())) == 2 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]:
    print('No')
elif a[0] != a[1] and a[1] != a[2]:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
on= input()

on = on.split()
 
if (on[0] != on[1] and on[0] != on[2] and on[1] != on[2]):
    print("No")
elif (on[0] == on[1] and on[0] == on[2] and on[1] == on[2]):
    print("No")

else:
  print("Yes")

Submission status: Accepted

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

m=set(l)
m=list(m)
if len(m)==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

# check
if len(list(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 or B == C or A == C) and not(A == B == C):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
#########行列読み込み ##############################################
"""
from sys import stdin
n = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]
print(data)
print(*data, sep='\n')
"""
##################################################################
#########入力系####################################################
"""
s =input()
s=list(input())
a=int(input())
x,y = map(int,input().split())	
li = input().split()	
li = list(map(int,input().split()))	
li = input().split('T')	
"""
##################################################################
li = input().split()
#print(li)
if len(set(li))==2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

ans = "No"
for i in range(1, 10):
    if lis.count(i) == 2:
        ans = "Yes"
        break
        
print(ans)

Submission status: Accepted

Solution code:
A=[int(x) for x in input().rstrip().split()]
l=list(set(A))
if len(l)==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('No')
elif 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==a 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 and A != C and B != C:
    print("No")
elif A == B == C:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
l=[a,b,c]
l.sort()
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,b,c = map(int,input().split())
ls=[a-b,b-c,c-a]
t = 0
for i in range(3):
    if ls[i] == 0:
        t += 1
if t ==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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==C or A!=B!=C!=A:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A = lr()
se = set(A)
bl = len(se) == 2
print('Yes' if bl else 'No')

Submission status: Accepted

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

def RD(): return sys.stdin.read()
def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))


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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect

MOD = 10 ** 9 + 7
INF = float('inf')
input = lambda: sys.stdin.readline().strip()

sys.setrecursionlimit(10 ** 8)

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

Submission status: Accepted

Solution code:
a = [int(i) for i in 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 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 and C == A:
    print("No")
elif A != B and B != C and C != A:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if (a == b and a != c) or (a == c and a != b) or (b == c and b !=a):
    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:
number = list(map(int, input().split()))
if len(set(number))==2:
    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:
a, b, c = map(int, input().split())

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

Submission status: Accepted

Solution code:
a,b,c = map(str, 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:
# -*- coding: utf-8 -*-
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:
l = [int(x) for x in input().split()]
if l[0] == l[1] and l[0] != l[2]:
    print("Yes")
    exit()
if l[0] == l[2] and l[0] != l[1]:
    print("Yes")
    exit()
if l[1] == l[2] and l[0] != l[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( 'Yes' )
elif A != C and A == B :
    print( 'Yes' )
elif B != C and A == C :
    print( 'Yes' )
else :
    print( 'No' )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

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

c = Counter(Poors)

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
abc = [a,b,c]
nabc = list(set(abc))
 
if len(abc)==len(nabc)or(len(nabc)==1):
  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 ((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:
  if a!=c :
    print('Yes')
  else:
    print('No')
elif a==c:
  if a!=b :
    print('Yes')
  else:
    print('No')   
elif c==b:
  if a!=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(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())
import sys
if a==b and b==c:
    print('No')
    sys.exit()
if 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())
# = list(map(int, input().split()))
# = [int(input()) for _ in range()]
if (a == b and b != c) or (a == c and c != b) or (b == c and c != a):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INT_MAX=10**11+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
#=======================================================================

A=INPUT()
A.sort()

a=A[0]
b=A[1]
c=A[2]
if a==b==c:
    print("No")
elif a==b and b!=c:
    print("Yes")
elif (b==c and b!=a):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

n,m,l = map(int,input().split())
ans = "No"
if n == m and n != l:
    ans = "Yes"
elif n == l and n != m:
    ans = "Yes"
elif l == m and m != n:
    ans=  "Yes"

print(ans)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = list(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:
  print("Yes")
elif c!=b and c==a:
  print("Yes")
elif 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 b==c:
  print("No")
elif a==b or b==c or c==a :
  print("Yes")
  
else:
  print("No")

Submission status: Accepted

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

if A == B and A != C:
    ans = 'Yes'
elif A == C and A != B:
    ans = 'Yes'
elif B == C and B != A:
    ans = 'Yes'

print(ans)

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:
lst1 = list(map(int,input().split()))
lst2 = list(set(lst1))
if len(lst2)==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 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 is b and not a is b is c:
  print("Yes")
elif b is c and not a is b is c:
  print("Yes")
elif c is a and not a is b is c:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def solve():
    if ((a != b) and (b != c) and (a!=c)) or (a == b == c):
        print("No")
    else:
        print("Yes")
    return


# n = int(input())
a, b, c = [int(s) for s in input().split(" ")]
solve()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

l = [0]*9
for i in L:
    l[i-1] += 1
if max(l) == 2:
    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 a == c:
    print("No")

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
import sys
l = len(set(map(int, sys.stdin.readline().split())))
if l == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = set()

for x in input().split():
    ABC.add(x)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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