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:
List= list(map(int,input().split()))
List=set(List)
if len(List)==2:
    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 b == c:
  count = count + 1
if c == a:
  count = count + 1
if count != 1:
  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:
print("Yes") if len(set(list(map(int,input().split()))))==2 else print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

Submission status: Accepted

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

A = int(m[0])
B = int(m[1])
C = int(m[2])

if A == B:
  if A == C:
    ans = 'No'
  else:
    ans = 'Yes'
else:
  if A == C:
    ans = 'Yes'
  elif B == C:
    ans = 'Yes'
  else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

set = {a,b,c}
if len(set) == 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) & (A != C):
    ans = 'Yes'
elif (B == C) & (B != A):
    ans = 'Yes'
elif (C == A) & (C != B):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def resolve():
    import sys

    input = sys.stdin.readline

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


resolve()

Submission status: Accepted

Solution code:
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:
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:
        flug = True
    else:
        flug = False
else:
    flug = False
if flug:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(int, input().split())
a = set(a)
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 b != c:
    print("Yes")
elif a == b and b == c:
    print("No")
elif a != b and b == c:
    print("Yes")
elif a != b and 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:
        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 or b == c or 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, 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:
# -*- coding: utf-8 -*-
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:
items = list(map(int, input().split()))

flg = False
for item in items:
  if items.count(item) == 2:
    print('Yes')
    flg = True
    break
if not flg:
  print('No')

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
for i in range(3):
  if a[i]==a[(i +1)%3]!=a[(i+2)%3]:
    print('Yes')
    exit()
print('No')

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inputStr = input()
inputList = inputStr.split(" ")

a = inputList[0]
b = inputList[1]
c = inputList[2]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def judge(A,B,C):
    return (A == B and A != C) or (B == C and B != A) or (C == A and C != B)

S = input()
ABC = S.strip().split(' ')
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])
if judge(A,B,C):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
ABC = S.strip().split(' ')
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])
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:
#!/usr/bin/env python3
import sys

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


def solve(A: int, B: int, C: int):
    s = set()
    s.add(A)
    s.add(B)
    s.add(C)
    if len(s) == 2:
        print(YES)
    else:
        print(NO)


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

def solver(a, b, c):
    if a == b and b == c:
        return 'No'
    elif a != b and b != c and c != a:
        return 'No'
    else:
        return 'Yes'

print(solver(a, b, c))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
if((A==B 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:
# import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np

a,b,c = map(int, input().split())
# n = int(input())
# x = list(map(int,input().split()))

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

print(ans)

Submission status: Accepted

Solution code:
def main():
    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')

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = set(map(int, input().split()))
if len(s) in [1, 3]:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a,b,c = list(map(int,input().split()))
ret = "No"
if len(set([a,b,c]))==2:
    ret = "Yes"
print(ret)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if A[0] == A[1] != A[2]:
    print("Yes")
    exit()

if A[1] == A[2] != A[0]:
    print("Yes")
    exit()

if A[2] == A[0] != A[1]:
    print("Yes")
    exit()

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

Submission status: Accepted

Solution code:
a = 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:
  if b == c:
    print("No")
  else:
    print("Yes")
else:
  if b == c:
    print("Yes")
  elif a == c:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

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

a = abc[0]
b = abc[1]
c = abc[2]

if abc.count(a) == 2 or abc.count(b) == 2 or abc.count(c) == 2:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 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:
li = list(map(int,input().split()))
a=list(set(li))
if len(a)==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:
# n = int(input())
A = list(map(int, input().split()))
# a, b, c = map(int, input().split())
set_A = set(A)
if len(A) == 3 and len(set_A) == 2:
    print("Yes")
    exit()
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def listint():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

a,b,c = listint()
poor = False
if a == b:
    if a != c:
        poor = True
if a == c:
    if a != b:
        poor = True
if b == c:
    if a != b:
        poor = True
if poor == True:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y, z = input().split()
if x == y:
  if x == z and y == z:
    print("No")
  else:
    print("Yes")
elif x == z:
  if x == y and y == z:
    print("No")
  else:
    print("Yes")
elif y == z:
  if x == y and x == z:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
v = list(map(int,input().split()))
flag = True
flag = flag and max(v) != min(v)
for i in v:
  if max(v) != i and min(v) != i: flag = False
print("Yes" if flag else "No")

Submission status: Accepted

Solution code:
a,b,c = (int(num) for num in input().split())
ans = 'No'
if (a == b and b != c) or (a != b and b == c) or(c == a and a != b):
  ans = 'Yes'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a == b and b == c:
  print('No')
elif a == b and b != c:
    print('Yes')
elif a != b and b == c:
    print('Yes')
elif a == c and b != c:
    print('Yes')
elif a != b and b != c:
    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:
b=list(map(int,input().split()))
x=b[0]
y=b[1]
z=b[2]
if x==y and y==z:
	print('No')
elif x!=y and y!=z and x!=z:
	print('No')
else:
	print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

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:
def main():
    a,b,c = map(str, input().split())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def solve():
    A = list(map(int, input().split()))
    a, b, c = A
    if a == b == c: return 'No'
    return 'Yes' if (a == b or b == c or c == a) else 'No'

print(solve())

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from itertools import combinations as comb


def main():
    a, b, c = map(int, input().split())
    li = comb([a, b, c], 2)
    Count = 0
    for l in li:
        if l[0] == l[1]:
            Count += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

s = set(list(map(int,input().split())))
y(len(s) == 2)

Submission status: Accepted

Solution code:
s={int(x) for x in 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 B == C != A or C == A != B:
    print ("Yes")
else:
    print ("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections as cl
l = [int(i) for i in input().split()]
c = cl.Counter(l)
if (len(c) == 2) :
    print("Yes")
else :
    print("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:
A,B,C = map(int,input().split())

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

Submission status: Accepted

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

alist.sort()
if alist[0] == alist[1] and not alist[1] == alist[2]:
    print('Yes')
elif alist[1] == alist[2] and not alist[0] == alist[1]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

def main():
    line = sys.stdin.readline().rstrip('\n').split()
    if ((line[0]==line[1] and line[0]!=line[2]) or (line[1]==line[2] and line[0]!=line[2]) or
        (line[0]==line[2] and line[1]!=line[2])):
        print('Yes')
    else:
        print('No')

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    A, B, C = map(int, input().split())
    isPoor = False
    
    if A == B and A != C:
        isPoor = True
    
    if A == C and A != B:
        isPoor = True
    
    if B == C and B != A:
        isPoor = True
    
    if isPoor:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

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 or b==c:
        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 = input().split()

value = 0

if a == b:
    value = value + 1

if a == c:
    value = value + 1

if b == c:
    value = value + 1

if value == 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 != 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('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())
ans="No"
if a==b:
    if a==c:
        pass
    else:
        ans="Yes"
elif a==c:
    if a==b:
        pass
    else:
        ans="Yes"
elif b==c:
    if b==a:
        pass
    else:
        ans="Yes"
print(ans)

Submission status: Accepted

Solution code:
a,b,c = [int(x) for x in input().split()]
d = {a,b,c}
if len(d) == 2:
    print("Yes")
else:
    print("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:
a,b,c = map(int,input().split())
if a == b:
    if b != c:
        print('Yes')
    else:
        print('No')
elif b == c:
    if a != b:
        print('Yes')
    else:
        print('No')
elif c == a:
    if a != b:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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