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:
''' Hey stalker :) '''
INF = 10**10
def main():
    #print = out.append
    ''' Cook your dish here! '''
    li = get_list()
    li.sort()
    if li[0]==li[1]!=li[2] or li[0]!=li[1]==li[2]:
        print("Yes")
    else: print("No")


''' Pythonista fLite 1.1 '''
import sys
from collections import defaultdict, Counter
#from bisect import bisect_left, bisect_right
#from functools import reduce
#import math
#input = iter(sys.stdin.buffer.read().decode().splitlines()).__next__
out = []
get_int = lambda: int(input())
get_list = lambda: list(map(int, input().split()))
main()
#[main() for _ in range(int(input()))]
print(*out, sep='\n')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    A = list(map(int,input().split()))
    for i in range(3):
        if sum(x==A[i] for x in A) == 1 or sum(x==A[i] for x in A) == 3:
            continue
        elif sum(x==A[i] for x in A) ==2:
            print("Yes")
            return
    print("No")

solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = 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())
flag = False

if(A == B and A != C):
  flag = True
  print('Yes')
elif(A == C and A != B):
  flag = True
  print('Yes')
elif(B == C and A != B):
  flag = True
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

L = [A,B,C]
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()))
f1 = False
f2 = False
f3 = False

if a[0] == a[1]:
    if a[0] != a[2]:
        f1 = True

if a[0] == a[2]:
    if a[0] != a[1]:
        f2 = True

if a[1] == a[2]:
    if a[0] != a[1]:
        f3 = True


if f1 == True or f2 == True or f3 == True:
    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 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())
if a == b == c:
    print("No")
elif a == b:
    print("Yes")
elif b == c:
    print("Yes")
elif c == a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
nums = input()
a = nums[0] 
b = nums[2]
c = nums[4]

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())
l = []
l.append(a)
l.append(b)
l.append(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 B != C:
  print('Yes')
elif A == C and B != C:
  print('Yes')
elif B == C and A != C:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys
import re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B, C = MAP()

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b,c=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:
#!/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 C!=A:
        print(YES)
    elif B==C and B!=A:
        print(YES)
    elif C==A and B!=A:
        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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

if a == b and b == c:
    cnt += 1
elif  a != b and b != c and a != c:
    cnt += 1
else:
    pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

lst = list(map(int, input().split()))
lst.sort()
if (lst[0] == lst[1] and lst[1]!=lst[2]) or (lst[0] != lst[1] and lst[1]==lst[2]):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
lst = list(map(int,input().split()))
lst1 = list(set(lst))
ans = False
if len(lst1) == 1:
    print('No')
    sys.exit()
if lst.count(lst1[0]) == 1:
    if lst.count(lst1[1]) == 2:
        ans = True
else:
    if lst.count(lst1[1]) == 1:
        ans = True

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

Submission status: Accepted

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

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

Submission status: Accepted

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

A = INPUT[0]
B = INPUT[1]
C = INPUT[2]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from sys import stdin,stdout
def f(i,j,n,mat):
	ans = -1
	for k in range(n):
		ans += mat[i][k]+mat[k][j]
	return ans

def main():  	
	for x in stdin:
		A = list(map(int,x.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')

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations
import sys
import math
import bisect


def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)
mod = 1000000007


def solve():
    a, b, c = LI()
    if a == b == c:
        print('No')
    elif a == b:
        print('Yes')
    elif a == c:
        print('Yes')
    elif b == c:
        print('Yes')
    else:
        print('No')


# Solve
if __name__ == "__main__":
    solve()

Submission status: Accepted

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

min_num = min(Input_ar)
max_num = max(Input_ar)

if Input_ar.count(min_num)==2 or Input_ar.count(max_num)==2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A = list(map(int,input().split()))
ans = [0]*3
for i in range(3):
    for j in range(3):
        if A[i] == A[j]:
            ans[i] += 1
if sum(ans) == 5:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

def poor():
    if A == B:
        if A != C:
            return "Yes"
    elif A == C:
        if A != B:
            return "Yes"
    elif B == C:
        if A != B:
            return "Yes"
    return "No"

print(poor())

Submission status: Accepted

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

a = [x for x in set(l) if l.count(x) == 2]

if not a:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:

import re
import numpy as np
import math

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

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a==b and a!=c or a==c and a!=b or b==c and a!=b:
    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:
import sys

abc = [int(s) for s in sys.stdin.readline().strip().split(' ')]

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

is_kawai = False

if a == b:
    if b == c:
        pass
    else:
        is_kawai = True
elif b == c:
    is_kawai = True
elif a == c:
    is_kawai = True

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

Submission status: Accepted

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



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

Submission status: Accepted

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

def abc155a(s):
    b = False
    if( s[0] == s[1] ):
        if(s[2] != s[0]):
            b = True
    if( s[1] == s[2] ):
        if(s[0] != s[1]):
            b = True
    if( s[2] == s[0] ):
        if(s[1] != s[2]):
            b = True
    return(b)

###
# main
if(__name__ == '__main__'):
    # input
    s = input().split(" ")

    b = abc155a(s)

    # output
    if( True == b ):
        print("Yes")
    else:
        print("No")
# else:
    # do nothing

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

count = 0
if A == B:
    count += 1
if B == C:
    count += 1
if count == 1:
    print('Yes')
else:
    if A == C and count == 0:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import sys
A, B, C = list(map(str, input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections
A = [i for i in input().split()]
A = collections.Counter(A)

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

Submission status: Accepted

Solution code:
import collections
a = input().split()
c = list(collections.Counter(a).values())
b = 0
for k in c:
  b += 1
  if k == 2:
    print("Yes")
    break
  elif b == 3:
    print("No")
  elif k == 3:
    print("No")

Submission status: Accepted

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

l = {a, b, c}

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

Submission status: Accepted

Solution code:
import sys


TEST_INPUT = [
    """
    5 7 5
    """,
    """
    4 4 4
    """,
    """
    4 9 6
    """,
    """
    3 3 4
    """
]
ANSWER = [
    "Yes",
    "No",
    "No",
    "Yes"
]


class InputHandler:

    def __init__(self, text_lines="", is_test=False):
        self.data = list(text_lines.split("\n"))
        self.index = 0
        self.is_test = is_test

    def input(self):
        if self.is_test:
            self.index += 1
            return self.data[self.index].strip()
        else:
            return sys.stdin.readline().rstrip()


def solve(a, b, c):
    if len({a, b, c}) == 2:
        return "Yes"
    else:
        return "No"


def input_and_solve(ih):
    a, b, c = map(int, ih.input().split())
    res = solve(a, b, c)
    return res


def main():
    ih = InputHandler()
    res = input_and_solve(ih)
    print(res)


def test():
    for test_input, ans in zip(TEST_INPUT, ANSWER):
        ih = InputHandler(test_input, True)
        res = input_and_solve(ih)
        assert str(res) == str(ans)


if __name__ == "__main__":
    test()
    main()

Submission status: Accepted

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

Submission status: Accepted

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

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (a, b, c) = [int(e) for e in lines[0].split(' ')]

    return (a, b, c)


def solve(a, b, c):
    
    result = 'No'
    if a == b and a != c:
        result = 'Yes'
    if b == c and b != a:
        result = 'Yes'
    if c == a and c != b:
        result = 'Yes'
        
    return result
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Accepted

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

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:
class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        tmp = sorted([A, B, C])

        if tmp[0] == tmp[1] and tmp[1] != tmp[2]:
            return "Yes"

        if tmp[0] != tmp[1] and tmp[1] == tmp[2]:
            return "Yes"

        return "No"


if __name__ == '__main__':

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

    # solve
    solution = Solution()
    print(solution.solve(A, B, C))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('No' if len(set(input().split())) in [1,3] else 'Yes')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import collections
k=collections.Counter(list(map(int,input().split())))
if len(k) == 3 or len(k) == 1:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:

a,b,c = [int(i) for i in 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())

cnt = 0

if A == B:
    cnt += 1
if B == C:
    cnt += 1
if C == A:
    cnt += 1
    
if cnt == 0 or cnt == 3:
    print('No')

if cnt == 1:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

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

a = set([A, B, C])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()
if a[0] == a[2] or a[0] < a[1] < a[2]:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

check_lst =[]

sorted_lst = sorted(input_first_int)


flag = 0
cnt  =0
for i in range(2):
    if sorted_lst[i] == sorted_lst[i+1]:
        cnt +=1

    
if cnt ==1:
    print('Yes')
else :

    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
A = [a,b,c]
if len(set(A)) == 1 or len(set(A)) == 3:
    print('No')
else:
    print('Yes')

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

A = L[0]
B = L[1]
C = L[2]

if L.count(A) == 1 and L.count(B) == 1 and L.count(C) == 1:
  	print("No")
elif L.count(A) == 2 or L.count(B) == 2 or L.count(C) == 2:
  	print("Yes")
else:
  	print("No")

Submission status: Accepted

Solution code:
input_line = input().split(' ')

num=set(input_line)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

a = int(a)
b = int(b)
c = int(c)

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

Submission status: Accepted

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

if(int(len(set(c)) == 3)):
    print("No")
elif(int(len(set(c)) == 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')