Problem:


Score: 100 points

Problem Statement

A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.

You will be given three integers A, B, and C. If this triple is poor, print Yes; otherwise, print No.

Constraints

A, B, and C are all integers between 1 and 9 (inclusive).

Input

Input is given from Standard Input in the following format:

A B C

Output

If the given triple is poor, print Yes; otherwise, print No.

Sample Input 1

5 7 5

Sample Output 1

Yes

A and C are equal, but B is different from those two numbers, so this triple is poor.

Sample Input 2

4 4 4

Sample Output 2

No

A, B, and C are all equal, so this triple is not poor.

Sample Input 3

4 9 6

Sample Output 3

No

Sample Input 4

3 3 4

Sample Output 4

Yes



Sample input:
5 7 5


Sample output:
Yes

Submission status: Accepted

Solution code:
a, b, c = 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:
# -*- coding: utf-8 -*-

import os
import datetime

def main():
    # スペース区切りの整数の入力
    a, b, c = map(int, input().split())
    int_dict = {}
    int_dict[a] = ""
    int_dict[b] = ""
    int_dict[c] = ""

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
f=0
if a==b and a!=c:
   f=1
elif a==c and a!=b:
    f=1
elif c==b and c!=a:
    f=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input().split()
count = 0
for i in range(0, len(inp)):
  if inp[i] in inp[i+1:]:
    count += 1
if count == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


main()

Submission status: Accepted

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

nS = set(n)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1,10):
    if arr.count(str(i)) == 2:
        print("Yes")
        exit()
    
print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = [int(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")

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 = (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 a != 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([A, B, C])
    if len(s) == 2:
        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 b!=c or a==c and c!=b or c==b and b!=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 (A == C and B!= C) or (A == B and A != C):
	ans = 'Yes'
else:
	ans = 'No'
print(ans)

Submission status: Accepted

Solution code:
def main():
    abc = set(map(int, input().split()))

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

import collections
l = [A, B, C]
c = collections.Counter(l)
a = c.most_common()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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


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

Submission status: Accepted

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

import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

Submission status: Accepted

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

hash = {}
for value in values:
    hash[value] = 0

if len(hash.keys()) == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

number_set = set(number)

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(10):
    b = a.count(i)
    if b == 2:
        print("Yes")
        c = 1
        break

if c == 0:
    print("No")

Submission status: Accepted

Solution code:
from sys import stdin
a, b, c = map(int, stdin.readline().rstrip().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:
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:
#in
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())
count=0
if(a==b):
    count+=1
if(b==c):
    count+=1
if(c==a):
    count+=1

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

Submission status: Accepted

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

flag = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np

ABC=np.array(input().split(),dtype=np.int32)

ABC=np.sort(ABC)

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    a, b, c = list(map(int, input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
li = list(map(int, input().split()))
L = set(li)
if len(L) == 3 or len(L) == 1:
    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 b == c and a != b:
  print("Yes")
elif a == c and a != b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if(L[0] == L[1] or L[1] == L[2] or L[2] == L[0]):

    if(L[0] == L[1]):
        if(L[2] == L[0]):
            print("No")
            exit()
    print("Yes")
    exit()
print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
list = [int(x) for x in input().split(" ")]
result = 'No'
for i in range(len(list)):
    if list.count(list[i]) == 2:
        result = 'Yes'
        break
print(result)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip() 

def resolve():
    A, B, C = input().split()
    if A==B==C or (A!=B and B!=C and C!= A):
        print('No')
    else:
        print('Yes')

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
n = (a + b + c)/3

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

Submission status: Accepted

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

ans = "Yes"

if A == B and B == C and A == C:
    ans = "No"
if A != B and B != C and A != C:
    ans = "No"

print(ans)

Submission status: Accepted

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 b!=a:
    print ('Yes')

else:
    print('No')

Submission status: Accepted

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


flag = 0

if(s[0] == s[1]):
    if(s[0] != s[2]):
        print("Yes")
        flag = 1
        
if(s[1] == s[2]):
    if(s[0] != s[2]):
        print("Yes")
        flag = 1


if(s[2] == s[0]):
    if(s[1] != s[2]):
        print("Yes")
        flag = 1
        
if(flag == 0):
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
input = sys.stdin.buffer.readline
inputs = sys.stdin.buffer.readlines


# mod=10**9+7
# rstrip().decode('utf-8')
# map(int,input().split())
# import numpy as np

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


if __name__ == "__main__":
	main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
from io import StringIO
import unittest

def resolve():
    a,b,c = list(map(int,input().strip().split()))
    if (a==b and c!=b):
        print("Yes")
        return
    
    if (a==c and c!=b):
        print("Yes")
        return

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

    print("No")
    return

resolve()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

p.sort()

if p[0]==p[1]:
    if p[1]==p[2]:
        print('No')
    else:
        print('Yes')
elif p[1]==p[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")
else:
	if A == C:
		print("Yes")
	else:
		if B == C:
			print("Yes")
		else:
			print("No")

Submission status: Accepted

Solution code:
a,b,c = list(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:
def A():
    A, B, C = map(int, input().split())
    if A == B or B == C or A == C:
        if (A+B+C) != A*3:
            print('Yes')
            return
    print('No')

def B():
    N = int(input())
    A = [int(i) for i in input().split()]
    for i in A:
        if i%2==0 and not (i%3==0 or i%5==0):
            print('DENIED')
            return
    print('APPROVED')
A()

Submission status: Accepted

Solution code:
def Main(A, B, C):
    if A == B and A != C:
        return 'Yes'
    elif B == C and A != B:
        return 'Yes'
    elif A == C and A != B:
        return 'Yes'
    else:
        return 'No'

def main():
    A, B, C = list(map(int, input().split()))
    print(Main(A, B, C))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
A, B, C = sorted(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

	if len(set(a)) == 2:
		print("Yes")
	else:
		print("No")
	
 
if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if __name__ == '__main__':
  main()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys,collections,math,random,fractions,bisect;sys.setrecursionlimit(10**7)
sr = sys.stdin.readline; P = print; P2 = lambda x: print(*x, sep="\n")
def I(i=0): t = [int(x)-i for x in sr().split()];return t
def S(): t = sr().split(); return t if len(t) > 1 else t[0]
L1,L2,L3,L4, = [],[],[],[]
 
a,b,c = I()
s = set([a,b,c])
if len(s) == 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 != C:
    print("Yes")
elif A != B == C:
    print("Yes")
elif A == C != B:
    print("Yes")
elif A != B != C:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = [int(_) for _ in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

k_flag = False
if a==b:
    if a!=c:
        k_flag = True
    else:
        pass
else:
    if b==c or a==c:
        k_flag = True
    else:
        pass
if k_flag:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B,C = 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(list(map(int, input().split())))
if len(s) == 1:
    print('No')
elif len(s) == 3:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
a, b, c = input().split()
set_in = {a, b, c}
if len(set_in) == 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) and (B == C):
    print("No")
  else:
    print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:


if __name__ == "__main__":
    A, B, C = input().split()
    ls = set([A, B, C])

    if len(ls) != 2:
        ret  = "No"
    else:
        ret = "Yes"

    print(ret)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
y = [a,b,c]
ac = y.count(a)
bc = y.count(b)
cc = y.count(c)
if ac == 2 or bc == 2 or cc == 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:
L = list(map(int,input().split()))
if len(set(L))==2:
    print("Yes")
else:
    print("No")