Problem:


Score: 100 points

Problem Statement

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

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

Constraints

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

Input

Input is given from Standard Input in the following format:

A B C

Output

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

Sample Input 1

5 7 5

Sample Output 1

Yes

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

Sample Input 2

4 4 4

Sample Output 2

No

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

Sample Input 3

4 9 6

Sample Output 3

No

Sample Input 4

3 3 4

Sample Output 4

Yes



Sample input:
5 7 5


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
if A==B & B==C:
    print("no")
elif A!=B & B!=C & C!=A:
    print("no")
else:
    print("yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if all(map(lambda i: i == array[0], array)):
    print("No")
else:
    if array[0] != array[1] != array[2]:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
num = [x for x in input()]
ans = 0
if num[0] == num[1]:
  ans = ans + 1
if num[0] == num[2]:
  ans = ans + 1
if num[1] == num[2]:
  ans = ans + 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def calculate():
    S = input().split(" ")
    A = S.count(S[0])
    if A == 2:
        print("Yes")
        return

    B = S[1]

    if B == 2:
        print("Yes")
        return

    C = S[2]

    if C == 2:
        print("Yes")

    print("No")

calculate()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
lst = list(map(int,input().split()))
ans = False
lst.sort()
if lst[0] == lst[1]:
    if lst[0] != lst[2]:
        ans = True
else:
    if lst[0] == lst[2]:
        ans = True

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
a = list(map(int,input().split()))
a.sort()
if a[0]==a[1] and a[1] != a[2]:
    print("Yes")
else: print("No")

Submission status: Wrong Answer

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

Solution code:
N =[int(i) for i in input().split(" ")]
j=0
count=0
for k in range(1,len(N)):
    if N[j]==N[k]:
        count += 1

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
[A,B,C]=[int(i) for i in input().split()]
if A==B:
	if B!=C:
		print("Yes")
	else:
		print("No")
else:
	if B==C:
		print("Yes")
	else:
		print("No")

Submission status: Wrong Answer

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

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

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
# s = input().split()
# n, k = map(int, input().split())
p = list(map(int, input().split()))
# s = input().split()

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

Submission status: Wrong Answer

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):
    
    g = set([a, b, c])
    result = 'No'
    if len(g) < 3:
        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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a == b:
    cnt += 1
elif b == c:
    cnt += 1
elif a == c:
    cnt += 1


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().split()
ans = "YES" if s[0] == s[1] == s[2] else "NO"
print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
same=0
if a==b:
    same=same+1
elif b==c:
    same=same+1
elif c==a:
    same=same+1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

if(int(len(set(c)) == 1)):
    print("No")
elif(len(c) != len(set(c))):
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

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

r = 0
r += 1 if a == b else 0
r += 1 if a == c else 0
r += 1 if b == c else 0

if r == 1:
    print('Yse')
else:
    print('No')

Submission status: Wrong Answer

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

def f(a):
    for i in range(len(a)):
        for j in range(i+1, len(a)):
            if a[i] == a[j]:
                print("Yes")
                return
    print("No")
f(a)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a == b and b == c:
    print("NO")
elif a != b and b != c and a != c:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if (a == b) :
	print('yes')
elif (a ==c):
	print('yes')
elif (b == c):
	print('yes')
else:
	print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

if all(map(lambda i: i == array[0], array)) or all(map(lambda i: i != array[0], array[1:])):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = input().split(" ")
a = int(a)
b = int(b)
c = int(c)
 
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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=list(input())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

l = {a, b, c}

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if(int(len(set(c)) == 1)):
    print("No")
elif(len(c) != len(set(c))):
    print("YES")
else:
    print("YES")

Submission status: Wrong Answer

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

cnt = 0

if A == B:
    cnt += 1
if B == C:
    cnt += 1

if cnt == 0 or cnt == 2:
    print('No')
if cnt == 1:
    print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A==B or A==C or B==C:
    if A==B and A==C:
        print("NO")
    else:
        print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    num = list(map(int,input().split()))
    if num.count(num[0]) == 2 or num.count(num[1]) == 2:
        print('YES')
        return

    print('NO')


main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#At coder 2020/2/16 A

# スペース区切りの数の入力
A,B,C= input().split()
#A, B = map(int,input().split())
#U=input()

if A==B:
    if A==C:
        U='No'
    else:
        U='Yes'
else:
    if A==C:
        U='Yes'
    else:
        U='No'

print(U)

Submission status: Wrong Answer

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

ans='NO'

if A==B and A!=C: ans='YES'
if A==C and A!=B: ans='YES'
if B==C and B!=A: ans='YES'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=sorted([int(x) for x in input().split()])
if a[0]==a[1] and a[1]!=a[2]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding:utf-8

import sys
import math
import time
import numpy as np
import collections
from collections import deque
import queue
import copy

# 最大公約数
def gcd(m,n):
  x = max(m,n)
  y = min(m,n)
  if x%y == 0:
    return y
  else:
    while x%y != 0:
      z = x%y
      x = y
      y = z
    else:
      return z

# 幅優先探索(BFS)でスタート座標(x, y)からの最大距離返す
def bfs(SS, x, y, H, W):#入力(座標系(迷路), x, y, xの端, yの端)
  x_next = [0, 0, -1, 1]
  y_next = [1, -1, 0, 0]
  tempx = x
  tempy = y
  mlength = 0
  q = deque()
  xytuple = (x, y, 0)
  q.append(xytuple)


  while q:
    xytuple = q.popleft()
    SS[xytuple[0]][xytuple[1]] = "x" #探索した場所は探索できないようにする
    for i in range(4): #このforで上下左右を調べてる
      tempx = xytuple[0] + x_next[i]
      tempy = xytuple[1] + y_next[i]
      #print(tempx, tempy, xytuple[2])
      #print(S)
      if(0 <= tempx and tempx < H and 0 <= tempy and tempy < W and SS[tempx][tempy] == "."):
        temptuple = (tempx, tempy, xytuple[2]+1)
        SS[temptuple[0]][temptuple[1]] = "x" #探索した場所は探索できないようにする
        mlength = max(mlength, xytuple[2] +1)
        q.append(temptuple)
      #print(q)
  return mlength

def brick(a,n,m,N):#ABC 148
  #n番目以降にmがあるか調べる
  if not m in a[n:]:
    print(N-(m-1))
  else:
    #b = copy.deepcopy(a)
    brick(a,a[n:].index(m),m+1,N)

#X = str(input()).split()
#a = [int(x) for x in input().split()]

ABC = str(input()).split()
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])
ans = "No"

if(A==B):
    if not(A==C):
        ans = "Yes"
elif(A==C):
    ans = "Yes"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = [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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 16 20:59:44 2020

@author: W_Indicate
"""

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

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

Submission status: Wrong Answer

Solution code:
import math

ABC = input().split()
A = int(ABC[0])
B = int(ABC[1]) 
C = int(ABC[2])

count = 0

if A == B:
  count += 1
if A == C:
  count += 1
if B == C:
  count += 1
  
if count == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if n == a:
    print('No')
else :
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (A+B+C) % 3 == 0:
  print('No')
else:
  if A==B or A==C or B==C:
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
if a == b :
    if a == c :
        print('No')
    else :
        print('Yes')
else :
    if a == c :
        print('Yes')
    else :
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

abc = [a,b,c]
abc.sort

if abc[0] == abc[1] and abc[1] != abc[2]:
    print('Yes')
    exit()

if abc[1] == abc[2] and abc[0] != abc[1]:
    print('Yes')
    exit()


print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

number_set = set(number)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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!=a and a!=c:
		ans="No"
	
	print(ans)
	
	
	
	
	
	




	
if __name__ == "__main__":
	main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a.sort()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if len(set(A))==2:
    print('YES')
else:
    print('NO')