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

ans = "No"

if a == b:
  if b != c:
    ans = "Yes"
elif a == c:
  if b != c:
    ans = "Yes"
elif b == c:
  if a != b:
    ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
a, b, c = map(int, input().split())
lst = [a == b, b == c, c == a]
if lst.count(True) == 3 or lst.count(True) == 0:
    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 A == C and A != B:
    print('Yes')
elif B == C and A != B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

f = 0

if a == b == c:
    f = 0
elif a == b or b == c or a == c:
    f = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC155 A

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

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

Submission status: Accepted

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


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

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 = [int(i) for i in input().split()]

tmp = A^B^C
if tmp == A and tmp == B and tmp==C:
  print("No")
elif tmp == A or tmp == B or tmp==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:
A, B, C = map(int, input().split())
kawa = False
if A == B and C != A and C != B:
  kawa = True
if B == C and A != B and A != C:
  kawa = True
if A == C and B != A and B != C:
  kawa = True

if kawa:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    ans = "No"
    if a==b or b==c or c==a :ans ="Yes"
    if a==b and b==c : ans = "No"



    print(ans)

    return

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().strip().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:
num=[int(i) for i in input().split()]
if num[0]==num[1]==num[2]:
    print("No")
elif num[1]==num[2]:
    print("Yes")
elif num[0]==num[1]:
    print("Yes")
elif num[0]==num[2]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)

def InMap(): return list(map(int, sys.stdin.readline().split(' ')))
def In(): return int(sys.stdin.readline())
def InS(): return sys.stdin.readline()

A, B, C = InMap()

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:
A, B, C = [int(a) for a in input().split(' ')]

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

lis=[a,b,c]
lis.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
.append(要素) リストに要素を追加 
.extend(リスト) リストを連結する
.insert(場所,要素) 指定した場所に要素追加
del 配列名[場所]
-1で末尾で末尾から一つ前

sort()
sorted(reverse=true)

配列の初期化
配列名=[a]*n+[b]*m

Decimal()
'''

from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy
import math
import itertools
from functools import reduce
from operator import mul


data = [int(s) for s in stdin.readline().rstrip().split()]
data.sort()
if data[0] == data[1] and data[0] == data[2]:
    print('No')
elif data[0] != data[1] and data[2] != data[1] and data[0] != data[2]:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = list(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()))
_ans = set(a)

if len(_ans)==2:
    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('No')
elif a != b and b != c and c != a:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
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:
x=list(map(int,input().split()))
y=set(x)
if len(y)==2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def solve():
    if len(set(map(int, input().split()))) == 2:
        return 'Yes'
    else: 
        return 'No'
    
if __name__ == '__main__':
    print(solve())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict, Counter, deque
from itertools import accumulate, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right, bisect
from heapq import heappop, heappush
from fractions import gcd
from math import ceil, floor, sqrt, cos, sin, pi
from copy import deepcopy

# If you use recursive call, uncomment this code
#sys.setrecursionlimit(10**6)

def main():
    nums = set(map(int, input().split()))
    if len(nums) == 2:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

if __name__ == '__main__':
    A, B, C = [int(x) for x in stdin.readline().rstrip().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 = input().split()
if (a == b and a != c) or (a == c and a != b) or (b==c and a !=b):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = [int(i) for i in 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:
a, b, c = map(int, input().split())

x = set([a, b, c])
if len(x) == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Code for A - Poor
# Use input() to fetch data from STDIN
[a, b, c] = [int(x) for x in input().split()]

x = False
if a == b or b == c or c == a:
    x = True

y = False
if a != b or b != c or c != a:
    y = True

if x and y:
    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:
import sys
input=sys.stdin.readline
def main():
    A,B,C=input().split()
    if A==B and B==C:
        print("No")
    elif A==B or B==C or C==A:
        print("Yes")
    else:
        print("No")
if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ANSHUL GAUTAM
# IIIT-D

from math import *
from copy import *
from string import *				# alpha = ascii_lowercase
from random import *				# l.sort(key=lambda l1:l1[0]-l1[1]) => ex: sort on the basis difference
from sys import stdin
from sys import maxsize
from operator import *				# d = sorted(d.items(), key=itemgetter(1))
from itertools import *
from collections import Counter		# d = dict(Counter(l))
from collections import defaultdict # d = defaultdict(list)

'''

'''

def solve(l):
	n = len(l)
	

l = list(map(int, stdin.readline().rstrip().split()))
s = list(set(l))
ans = "Yes"
if(len(s) != 2):
	ans = 'No'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main(abc):
    a = set(abc)
    return "Yes" if len(a) == 2 else "No"


abc = list(map(int, input().split()))
print(main(abc))

Submission status: Accepted

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

l = []

for cell in abc:
    if cell not in l:
        l.append(cell)

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

Submission status: Accepted

Solution code:
a, b, c = (int(_) for _ in input().split())
if (a == b or b == c or a == c) and (max(a,b,c) != min(a,b,c)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30
from collections import Counter

def main():
    v = list(map(int, input().strip().split()))
    if len(Counter(v)) == 2:
        print('Yes')
    else:
        print('No')
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = sorted(list(map(int, input().split())))
diff = 0
for i in range(2):
    if a[i] != a[i+1]:
        diff += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
cnt1 = abc.count(abc[0])
cnt2 = abc.count(abc[1])
cnt3 = abc.count(abc[2])

if cnt1 == 2 or cnt2 == 2 or cnt3 == 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == c and a != b:
    print('Yes')
elif a == b and a != c:
    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("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:
from collections import Counter
a = list(map(int,input().split()))
new = Counter(a)
if len(new) == 2:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
Ns = input().split()
a = int(Ns[0])
b = int(Ns[1])
c = int(Ns[2])
kawaiso = False
if a == b and a != c:
  kawaiso = True
elif a == c and a != b:
  kawaiso = True
elif b == c and b != a:
  kawaiso = True
  
if kawaiso:
  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:
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:
l = list(input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=list(map(int,input().split()))
#P=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 = list(map(int,input().split(' ')))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 155: A (2020/02/16)
A, B, C = map(int, input().split())
if A == B and A != C:
    print('Yes')
elif B == C and B != A:
    print('Yes')
elif C == A and C != B:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


main()

Submission status: Accepted

Solution code:
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
from operator import mul
from functools import reduce
import pprint
sys.setrecursionlimit(10 ** 9)


INF = 10 ** 13
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
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)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8 ff=unix


def solv(A, B, C):
    if (A == B and A != C) or (B == C and B != A) or (C == A and C != B):
        return "Yes"
    return "No"


if __name__ == "__main__":

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

    print(ans)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a==c and not a==b:
    print('Yes')
elif a==b and not a==c:
    print('Yes')
elif b==c and not 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("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] = [int(i) for i in input().split()]

flag = False

if A == B and C != A:
    flag = True

if A == C and B != A:
    flag = True

if B == C and A != B:
    flag = True

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

setted = set(ls)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter


def main():
    A, B, C = map(int, input().split())
    cnt = Counter([A, B, C])
    if set(cnt.values()) == {1, 2}:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    b = []
    same = 0

    for i in a:
        if i in b:
            same = same +1
        else:
            b.append(i)
    if same ==1:
        print("Yes")
    else:
        print("No")