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: Wrong Answer

Solution code:
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda x: [na() for _ in range(x)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda x: [ns() for _ in range(x)]
nas = lambda: stdin.readline().split()

a, b, c = na()

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X,Y,Z = map(int,input().split())
if(X == Y):
    if(Y == Z):
        print("No")
    else:
        print("Yes")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
l=[]
l.append(a)
l.append(b)
l.append(c)
l.sort()

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    if A == B and A != C:
        print('Yes')
    elif A == C and A != B:
        print('Yes')
    elif B == C and B != C:
        print('Yes')
    else:
        print('No')
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 a==c:
  print("YES")
elif b==c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

a.sort()

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

Submission status: Wrong Answer

Solution code:
import itertools
import sys
import math
import numpy as np
from collections import deque
from itertools import combinations
from functools import lru_cache
sys.setrecursionlimit(10**9)

def main():
    X = sorted(list(map(int,input().split())))

    j = 0
    pre = X[0]
    if pre == X[1] and pre != X[2]:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
  main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(map(int , input().split()))
if len(A) != A.count(A[0]):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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: Wrong Answer

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

Solution code:
n, m,c= map(int, input().split())
if(n==m and m==c):
    print("No")
elif(n==m):
    print("Yes")
elif(m==c):
    print("Yse")
elif(n==c):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ans = list(int(i) for i in input().split()) 
ans.sort()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

def main():
    s = input().split()
    if len(s) == set(s) or len(set(s)) == 1:
        print("No")
    else:
        print("Yes")


main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#100
A = list(map(int,input().split()))
A.sort()
if A[0] == A[1]:
    if A[1] == A[2]:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    a,b,c = sorted([x for x in 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")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C=input().split()
print('Yes' if A==B==C else 'NO')

Submission status: Wrong Answer

Solution code:
lis=list(map(int,input().split()))
lis.sort()
if set(lis)==1: print('No')
elif set(lis)==3: print('No')
elif lis[0]==lis[1] or lis[2]==lis[1]: print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i=input().split()
a=i[0]
b=i[1]
c=i[2]
if(a==b and b==c):
 print("YES")
else:
 print("NO")

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

N = set(N)

if len(N) == 3:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if len(set(dataList)) == 2:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a, b, c = map(int, stdin.readline().rstrip().split())
if a == b == c:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
print('Yes' if len(set([A, B, C])) != 1 else 'No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X,Y,Z = map(int,input().split())
if(X == Y == Z):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from fractions import gcd
from itertools import groupby as gb
from itertools import permutations as perm
from itertools import combinations as comb
from collections import Counter as C
from collections import defaultdict as dd
sys.setrecursionlimit(10**5)
def y(f):
    if f:
        print('Yes')
    else:
        print('No')
def Y(f):
    if f:
        print('YES')
    else:
        print('NO')
def Z(f):
    if f:
        print('Yay!')
    else:
        print(':(')
def ispow(n):
    if int(n**.5)**2==n:
        return True
    return False

a = list(map(int,input().split()))
a = sorted(a)
y(a[0] == a[1] or a[1] == a[2])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if (a==b and b==c) or (not a==b and not b==c and not a==c):
  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:
import collections
ls = list(map(int,input().split()))
counter = collections.Counter(ls)
ls2 = list(counter.values())
if 2 in ls2:
    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 and A!=C:
  print ("No")
else :
  print ("Yes")

Submission status: Accepted

Solution code:
#155-A

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

D =[A,B,C]

D.sort()

#print(D)

if D.count(A)== 2:
    print("Yes")

elif D.count(A)== 1:
    if B == C:
        print("Yes")

    else:
        print("No")

elif D.count(A)== 3:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import collections

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

c = collections.Counter(li)

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

Submission status: Accepted

Solution code:
import collections

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

c = collections.Counter(li)

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

Submission status: Accepted

Solution code:
print(["No","Yes"][len(set(input().split()))==2])

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

Submission status: Accepted

Solution code:
print(['No', 'Yes'][len(set(input().split())) == 2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

ans='No'
if len(A) == 2:
    ans='Yes'
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x,y,z = map(int,input().split())
if x == y and x != z:
  print('Yes')
elif x == z and x != y:
  print('Yes')
elif y == z and x != y:
  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:
#ABC155
s = input().split()
print("Yes" if len(set(s))==2 else "No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
poor = False
if a == b and a != c:
    poor = True
elif c == b and c != a:
    poor = True
elif a == c and a != b:
    poor = True
if poor:
    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 A==C:
  cnt+=1
if B==C:
  cnt+=1
if cnt==1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]
print('Yes' if len(set([a, b, c])) == 2 else '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 = sorted(map(int, input().split()))
print('Yes' if a < c and (a == b or b == c) else 'No')

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:
import collections
l = list(map(int,input().split()))
c = collections.Counter(l)
ans = 'No'

if len(c) == 2:
    ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
import os, sys, re, math

(A, B, C) = [int(n) for n in input().split()]

if (A == B and B != C) or (A == C and A != B) or (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[1] != s[2]) or (s[0] != s[1] and s[1] == 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 = 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:
import bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

from  collections import defaultdict
from collections import Counter
def main():
    ABC = LI()
    c = Counter(ABC)
    ans = len(c.values())

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from collections import defaultdict

def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dic = {}
for i in input().split():
  dic[i] = 0
if len(dic) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list1=list(map(int,input().split()))
A=list1[0]
B=list1[1]
C=list1[2]
if list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from collections import defaultdict
d = defaultdict(int)

N,M,L = map(int,input().split())
d[N] += 1
d[M] += 1
d[L] += 1
print(("No","Yes")[len(d)==2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

A, B, C = rii()

print("Yes" if len(set([A, B, C])) == 2 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis = list(map(int, input().split()))
lis.sort()
if lis[0] == lis[1] and lis[1] != lis[2]:
    print('Yes')
elif lis[1] == lis[2] and lis[0] != lis[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:
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n = li()
N = []
N.append(n[0])

for i in range(1,3,1):
    if n[i] in N: continue
    N.append(n[i])

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

Submission status: Accepted

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

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