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: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=[input() for i in range(n)]
d={}
for i in range(n):
  d[s[i]] = d.get(s[i],0) + 1

max_k_list = [kv[0] for kv in d.items() if kv[1] == max(d.values())]
max_k_list.sort()
print(*max_k_list)

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
C=int(input())
if A,B,C>9 or A,B,C<1:
  print('False')
else:
  if A=B and B=C:
    print('No')
  elif A!=B and B!=C and C!=A:
    print('No')
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:
N=int(input())#入力回数を決める

l=[]
num2=1
num3=1
l = list(map(int,input().rstrip().split()))
for i in range(N):
  
  if l[i] % 2 == 0:
    if l[i] % 3 == 0 and l[i] % 5 == 0:
      num2=0
    else:
      num3=0


  


        
if num2==0:
  if num3==0:
    print("DENIED")
  else:
    print("APPROVED")
else:
  print("DENIED")

Submission status: Runtime Error

Solution code:
# from functools import reduce

N = int(input())
AL = list(map(int, input().split()))

R = reduce(lambda x, y: x and y, [n % 3 == 0 or n % 5 == 0 for n in AL if n % 2 == 0])

if R:
    print('APPROVED')
else:
    print('DENIED')

Submission status: Runtime Error

Solution code:
N=int(input())
a = list(map(int,input().split()))
c=0
i=0
print(a)
while(c==0 and i<N):
    if(a[i]%2==0):
        if(a[i]%3==0 or a[i]%5==0):
            i+=1
        else:
            c+=1
    else:
        i+=1
if(c==0):
    print("APPROVED")
else:
    print("DENINED")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def Main(A,B,C):

  if A == B:
    if C!=A:
      print("true")
    else:
      print("false")
  elif A == C:
    if B!=A:
      print("true")
    else :
      print("false")
  elif B == C:
    if A!=B :
      print("true")
    else:
      print("false")
  else:
    print("false")
A = int(input())
B = int(input())
C = int(input())
Main(A,B,C)

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
C=int(input())
if A,B,C>9 or A,B,C<1:
  print('False')
else:
  if A=B and B=C:
    print('No')
  elif A!=B and B!=C and C!=A:
    print('No')
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:

li = list(map(int, input().split()))

n=0

for i in range(0,3):
  if li[i+1] - li[i] ==0:
    n++

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = []
for i in range(n):
    s.append(input())
    
dic = {}
for i in range(len(s)):
    if s[i] not in dic:
        dic[s[i]]=s.count(s[i])
    
ans = sorted([k for k, v in dic.items() if v == max(dic.values())])

for i in range(len(ans)):
    print(ans[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
x = 0
 
if (a==0) :
	print('DENIED')
elif (b.count(0) > 0):
	print('DENIED')
else:
  for i in b:
      if i % a == 0:
          x += 1
  if x == len(b):
      print('APPROVED')
  else:
      print('DENIED')

Submission status: Runtime Error

Solution code:
case = int(input())

A, B, C =[int(x) for x in case.split(' ')]
if (A == B and A != C) or(B == C and A != C) or (A == C and A != C):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
x = 0

if (a==0) :
	print('DENIED')
elif (b.count(0) > 0):
	print('DENIED')
else:
  for i in b:
      if i % a == 0:
          x += 1
  if x == len(b):
      print('APPROVED')
  else:
      print('DENIED')

Submission status: Runtime Error

Solution code:
def Main():
  A = int(input())
  B = int(input())
  C = int(input())
  if A == B:
    if C!=A:
      print("true")
    else: 
      print("false")
  elif A == C:
    if B!=A:
      print("true")
    else : 
      print("false")
  elif B == C:
    if A!=B :
      print("true")
    else:
      print("false")
  else:
    print("false")

Main()

Submission status: Runtime Error

Solution code:
A，B，C = list(map(str, input().split()))
vincent = A + B + C
vincent1 = list(set(vincent))
if len(vincent1) == 2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys
import math
import itertools as it
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass
n = i()
s = [input() for _ in range(n)]
s.sort()
ss = list(set(s))
ss.sort()
a = [0]*len(ss)
i = 0
while n-1 > i:
    if s[i] == s[i+1]:
        a[ss.index(s[i])] += 1
        i += 1
    else:
        i += 1
m = max(a)
for k in range(len(a)):
    if a[k] == m:
        print(ss[k])

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans="APPROVED"
for i in range (n):
  if a[i]%2==0:
    if a[i]%3!=0and a[i]%5!=0:
      ans="DENIED"
    else:
      ans="APRROVED"
    
print(ans)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
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: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = [input() for i in range(n)]

s_unique   = []
s_cnt      = [0]*n
unique_num = 0
for i in range(n):
  # 新しい文字列の場合は配列に加える
  if (not(s[i] in s_unique)):
  	s_unique.append(s[i])
  else:
    s_cnt[s_unique.index(s[i])] += 1

# 最大カウントの要素で再構成
cnt_max = max(s_cnt)
s_max = []
for i in range(n):
  if (s_cnt[i] == cnt_max):
    s_max.append(s_unique[i])

s_max = sorted(s_max)
for s in s_max:
  print(s)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
if A == B:
  if C!=A:
    print("true")
  else: 
    print("false")
elif A == C:
  if B!=A:
    print("true")
  else : 
    print("false")
elif B == C:
  if A!=B :
    print("true")
  else:
    print("false")
else:
  print("false")

Submission status: Runtime Error

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

import sys
from collections import deque, Counter, defaultdict
from fractions import gcd
input = sys.stdin.readlin

#入力
li = list(map(int, input().split()))

li.sort()

if li[0] == li[1] and li[1] != li[2]:
    print('YES')

elif li[0] != li[1] and li[1] == li[2]:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
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: Runtime Error

Solution code:
n_list = set(input().split())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split(" "))
A = map(int,input().split(" "))
 
import itertools
 
L = []
 
for x in itertools.combinations(A, 2):
    L.append(x[0]*x[1])
 
L.sort()
 
print(L[K-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
aa = map(int, input().split())

p = []
for i in range(N-1):
  for j in range(i+1, N):
    p.append(i*j)

print(p.sorted[K])

Submission status: Runtime Error

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

count = 0
for i in A:
  if i % 2 == 0:
    if i % 3 != 0 and i % 5 != 0:
      count += 1

if count == 0:
  print('APPROVED')
else:
  print('DENIED')

Submission status: Runtime Error

Solution code:
n = int(input())
 
s = list(map(int,input().split(" ")))
 
count = 0
for x in range(n):
  if s[x]%2 == 0 and (s[x]%5 != 0 and s[x]%3 != 0):
    count += 1
    
if count == 0:
  print("APPROVED")
else:
  print("DENIED")

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <numeric>
#include <vector>
#include <math.h>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <set>
using namespace std; 

int main(){
    int a,s,d; cin >> a >> s >> d;
    if (a==s && s==d) cout << "No" << "\n";
    else if (a!=s && s!=d && a!=d) cout << "No" << "\n";
    else cout << "Yes" << "\n";
    
}

Submission status: Runtime Error

Solution code:
n = int(input())

s = list(map(int,input().split(" ")))
 
count = 0
for x in range(n):
  print(s[x])
  if s[x]%2 == 0 and (s[x]%5 != 0 and s[x]%3 != 0):
    count += 1
    
if count == 0:
  print("APPROVED")
else:
  print("DENIED")

Submission status: Runtime Error

Solution code:
import sys

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

#print(a, b, c)
ab = a == b
ac = a == c
bc = b == c

if ab and bc:A
  print('No')
  sys.exit()

if not ab and not ac and not bc:
  print('No')
  sys.exit()

print('Yes')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def equ(a,b):
  return 1*(a==b)
a,b,c = map(input().split())
ans = equ(a,b)+equ(b,c) +equ(c,a)
print('Yes' if ans ==1 else 'No')

Submission status: Runtime Error

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

if a==b & b==c:
    p5 7 5rint("No")
elif a!=b & b!=c & c!=a:
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
mydict = {}
for i in range(N):
  t = input()
  if t in mydict:
    mydict[t]+=1
  else:
    mydict[t] = 1
max_k_list = [kv[0] for kv in mydict.items() if kv[1] == max(mydict.values())]
max_k_list.sort()
for i in max_k_list:
  print(i)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
if a == b:
  if c!=a:
    print("true")
  else: 
    print("false")
elif a == c:
  if b!=a:
    print("true")
  else : 
    print("false")
elif b == c:
  if a!=b :
    print("true")
  else:
    print("false")
else:
  print("false")

Submission status: Runtime Error

Solution code:
def main():
    inNum = map(int,input().split())
    A=inNum[0]
    B=inNum[1]
    C=inNum[2]
    if A == B:
        if B==C:
            print('No')
        else:
            print('Yes')
    else:
        print('Yes')

main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
a = int(a)

line = [int(k) for k in input().split()]
b = 0
for k in range(len(line)):
  if line[k] % 2 == 0:
    if not line[k] % 5 == 0 and not line[k] % 3 == 0:
      print("DENIED")
      break
  elif k == a-1:
    print("APPROVED")

Submission status: Runtime Error

Solution code:
import sys
li = list(map(int,input().split()))
li.sort()
if(str(li[0]) == str(li[1]) == str(li[2])):
    print("No")
    sys.exit()
for i in range(3):
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = [input() for _ in range(n)]

import collections
c0 = collections.Counter(s)
c1 = c0.most_common()
max = c1[0][1]
l = []
for x, i in c0.items():
    if i == max:
        l.append(x)
ans = sorted(l)
for i in ans:
    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
1<=A<=9;1<=B<=9;1<=C<=9
if A=B or B=C or C=A:
  print("Yes")
elif A=B=C:
  print("No")
else:
  print("No")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys
li = list(map(int,input().split()))
li.sort()
for i in range(3):
  if(str(li[i]) == str(li[i+1]) == str(li[i+2])):
    print("No")
    sys.exit()
  if(str(li[i]) == str(li[i+1])):
    print("Yes")
    break
else:
  print("No")

Submission status: Runtime Error

Solution code:
lis = list(input().split())
a=lis.count(lis[0])
b=lis.count(lis[1])
c=lis.count(lis[2])
if a+b+C == 4:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

A_even = [i for i in A if i % 2 == 0]

A_even_35 = [i for i in A_even if i % 3 != 0and i%5!=0]
if len(A_even_35)==0:
  print("APPROVED")
else:
  print("DENIED")

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
for val in A:
    if val % 2 == 1:
        continue
    elif val % 2 == 0:
        if val % 3 == 0:
            continue
        elif val % 5 == 0:
            continue
        else:
            print('DENIED')
            break
else:
    print('APPROVED')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c = input().split(' ')
l = []
l.append([a,b,c])
n=len(set(l))
if n == 2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
ans=[]
for i in range(0,3):
    ele=int(input())
    ans.append(ele)
    
anns=set(ans)
if len(anns)==2:
    print("Yes")
else: print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input('A:'))
B = int(input('B:'))
C = int(input('C:'))

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

Submission status: Runtime Error

Solution code:
A = int(raw_input('A:'))
B = int(raw_input('B:'))
C = int(raw_input('C:'))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

f = False
for a in aa:
  if a % 2 == 0:
    if (a % 3 != 0) and (a % 5 != 0):
      print('DENIED')
      f = True
      break
if not f:
  print('APPROVED')

Submission status: Runtime Error

Solution code:
A = int(raw_input('A:'))
B = int(raw_input('B:'))
C = int(raw_input('C:'))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if a == b and b == c:
    cnt += 1
else a<>b and b<>c:
    cnt += 1

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

Submission status: Runtime Error

Solution code:
s=list(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
z,y,x=(int(x) for x in input().split())
if z == y:
  if y ==x:
    return "No"
  else:
    return "Yes"
else:
  if z ==x:
    return "Yes"
  else:
    if y == x:
      return "Yes"
    else:
      return "No"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

f = False
for a in aa:
  if a % 2 == 0:
    if a % 3 != 0:
      print('DENIED')
      f = True
      break
    elif a % 5 != 0:
      print('DENIED')
      f = True
      break
if not f:
  print('APPROVED')

Submission status: Runtime Error

Solution code:

def main():
    s = input().split(' ');
    cnt = []
    for n1 in s:
        cnt.append(0)
        for n2 in s:
            if n1 == n2:
                cnt[-1] += 1
#    print(cnt)
    for i in cnt[:-1]:
        if i == 2:
            print('Yes')
            break
    else:
        print('No')


main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = input()
B = input()
C = input()
if A == B != C :
  print('Yes')
elif A != B == C :
  print('Yes')
elif A == C != B :
  print('Yes')
else :
  print('No')

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
if a!=b and a!=c:
  print ("No")
else :
  print("Yes")

Submission status: Runtime Error

Solution code:
l = input().split

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

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

Submission status: Runtime Error

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

nums.sort()


if nums[1] == nums[2] and nums[0]<nums[1]:
    print(True)
elif nums[1] == nums[0] and nums[1]<nums[2]:
    print(True)
else:
    print(False)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(intput())
c=int(input())
if a==b or a==c:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a,b,c=int(input().splot())
if a == b:
    if a != c:
        print('yes')
    else:
        print("no")
elif a == c:
    if a != b:
        print('yes')
    else:
        print("no")
else:
    print("no")

Submission status: Runtime Error

Solution code:
a,b,c=int(input().splot())
if a == b:
    if a != c:
        print('yes')
    else:
        print("no")
elif a == c:
    if (a != b:
        print('yes')
    else:
        print("no")
else:
    print("no")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
if len(set(map(int, inputs[0].split()))) == 2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
print(input(A,B,C))

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: Runtime Error

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

Submission status: Runtime Error

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"
elif a == 2 or n[1] != n[2]:
    ans = "No"
print(ans)

Submission status: Runtime Error

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:
	if a[2] == a[3]:
		print("Yes")
	else:
		print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
z,y,x=(int(x) for x in input().split())
if z == y:
  if y ==x:
    return "No"
  else:
    return "Yes"
else:
  if z ==x:
    return "Yes"
  else:
    if y == x:
      return "Yes"
    else:
      return "No"

Submission status: Runtime Error

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: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
d=0
if (a==b):
    d+=1
if (b==c):
    d+=1
if (c==a):
    d+=1
if (d==1):
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<stdio.h>
int main()
{
    
    int a,b,c;
   
    scanf("%d", &a);
    // スペース区切りの整数の入力
    scanf("%d ",&b);
  	scanf("%d", &c);
  
  
  	int count= 0;
  if((a-b) == 0){
    
	count++;
    
  }
  if((a-c) == 0){
    count++;
   
  }
  if((b-c) == 0){
	count++;
    
  }
  
  
  if(count == 1){
    printf("Yes");
  }else{
    printf("No");
  }
  
    return 0;
}

Submission status: Runtime Error

Solution code:
vA, 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:
    pirnt("No")

Submission status: Runtime Error

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

l = [0] * 9

l[A] += 1
l[B] += 1
l[C] += 1

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B, C = 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: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
int main(){
    vector<int> a(3);
    cin >> a[0] >> a[1] >> a[2];
    sort(a.begin(), a.end());
    if((a[0] == a[1] && a[1] != a[2]) || (a[0] != a[1] && a[1] == a[2])) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = int(intput())
if(a=b||a=c||b=c):
  return yes
elif(a=b=c):
  return no
else: 
  return no

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
using ll = long long;
const ll MOD=1e9+7;
const long long INF = 1LL<<60;

int main() {
    int a,b,c;
    cin >> a >> b >> c;

    if (a==b && a!=c){
        cout << "Yes" << endl;
    }else if (a==c && a!=b){
        cout << "Yes" << endl;
    }else if (b==c && b!=a){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Submission status: Runtime Error

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

if a == b == c:
  print('No')
elif a != b and b != c and a != c:
  print('No')
elif 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: Runtime Error

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

abc_set = set(abc)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys #sys.stdin.readline()
from math import gcd, ceil, floor, sqrt
import heapq #heap
from collections import defaultdict
fastinp = lambda: sys.stdin.readline().split(' ')
inp = lambda: input().split(' ')
ml = lambda x, y=int: list(map(y, x))
debug = lambda *args: print(*args, sep=' | ')
a, b, c = ml(inp())
if a == b and a != c:
    print('Yes')
elif b == c and a != b:
    print('Yes')
elif a == c and b != a:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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