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:
x, y, z = input.split()
if x == y:
  if x == z and y == z:
    print("No")
  elif x != z and y != z:
    print("No")
  else:
    print("Yes")
elif x == z:
  if x == y and y == z:
    print("No")
  elif x != y and y != z:
    print("No")
  else:
    print("Yes")
elif y == z:
  if x == y and x == z:
    print("No")
  elif x != y and x != z:
    print("No")
  else:
    print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(input())
if s[o]==s[1] and s[1]==s[2] and s[0]==s[2]:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
B = list((i for i in A if i % 2 == 0))

count = 0

for i in B:
    if i%3 == 0 or i%5 == 0:
        count += 1
    else:
        count += 0

if int(count) == int(len(B)):
    print("APROVED")
else:
    print("DENIED")

Submission status: Runtime Error

Solution code:
def resolve():
    import sys
    from collections import Counter
    n = int(input())
    s = [sys.stdin.readline().rstrip() for i in range(n)]
    d = Counter(s).most_common()
    e = d[0][1]
    ans = []
    for i in range(len(d)):
        if d[i][1] != e:
            break
        else:
            ans.append(d[i][0])
    for j in sorted(ans):
        print(j)
resolve()

Submission status: Runtime Error

Solution code:
admission = []
n = int(input())
admission.append(map(int,input().split()))

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

Submission status: Runtime Error

Solution code:
#3つの数字をリストにする
data = input().split( )
#場合わけ
if (data[0] == data[1] or data[1] == data[2] or
   data[2] ==data[0]) and data[1]!= data[2]!=data[3] :
    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input() for _ in range(N)]

T = sorted(list(set(S)))
U = [S.count(T[i]) for i in range(len(T))]

for i in range(len(T)):
    if S.count(T[i]) == max(U):
        print(T[i])

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input() for _ in range(N)]

T = sorted(list(set(S)))
U = [S.count(T[i]) for i in range(len(T))]

for i in range(len(T)):
    if S.count(T[i]) == max(U):
        print(T[i])

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input() for _ in range(N)]

T = set(S)
U = list(T)
V = [S.count(U[i]) for i in range(len(T))]

for i in range(len(T)):
    if S.count(U[i]) != max(V):
        U[i] = ''

for i in range(len(T)):
    if U[i] != '':
        print(U[i])

Submission status: Runtime Error

Solution code:
import math
A, B, C = map(int, input().split())
if math.gcd(A, math.gcd(B, C)) == max(A, B, C):
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

sum_distance = set(["a","b","c"])

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

Submission status: Runtime Error

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

s = set(["a","b","c"])

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

Submission status: Runtime Error

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

s = set([a,b,c)]

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

Submission status: Runtime Error

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

a = set(a,b,c)

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

s = set([a,b,c])

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

Submission status: Runtime Error

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

s = set(["a","b","c"])

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
a,b,c=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: Runtime Error

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

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

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

Solution code:
  GNU nano 4.3                                  main                                   変更済み  
a,b,c=map(int,input().split())
if a == b and a != c:
    print("Yes")
elif a == c and a != b:
    print("Yes")
elif b == c and b != a:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
L = list(map(int,input().split()))
A = L[0]
B = L[1]
C = L[2]
if A == B != C or A == C != B or A != B = C:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<math.h>
using namespace std;

int main() {
	int A,B,C;
  	cin >> A >> B >> C; 
  	if(A==B){
		cout << "Yes" << endl;
    }
  	if else(A==C){
      cout << "Yes" << endl;
    }
  	if else(B==C){
      cout << "Yes" << endl;
    }
  	else {
      cout << "No" << endl;
    }
  	
}

Submission status: Runtime Error

Solution code:
a=1<<1000000000
b = 1<<a
print(b)

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:
N,K = map(int,input().split())
A_s = list(map(int,input().split()))
minus = [-x for x in A_s if x < 0]
plus = [x for x in A_s if x >= 0]
minus.sort()
plus.sort()

def cnt(x):
    ans = 0
    if x < 0:
        r = 0
        x = -x
        for num in minus[::-1]:
            while r < len(plus) and plus[r] * num < x:
                r += 1
            ans += len(plus) - r
        return ans
        
    r = 0
    for num in minus[::-1]:
        if num * num <= x: ans -= 1
        while r < len(minus) and minus[r] * num <= x:
            r += 1
        ans += r
    r = 0
    for num in plus[::-1]:
        if num * num <= x: ans -= 1
        while r < len(plus) and plus[r] * num <= x:
            r += 1
        ans += r
    ans //= 2
    ans += len(minus) * len(plus)
    return ans


top = 2 * (10**18) + 2
bottom = 0

while top - bottom > 1:
    mid = (top + bottom) // 2
    if cnt(mid-10**18-1) < K:
        bottom = mid
    else:
        top = mid
print(int(top-10**18-1))

Submission status: Runtime Error

Solution code:
def main():
    n = int(input())
    S = sorted([input() for s in range(n)])
    D = list(set(S))
    count = []*len(D)
    for i in range(len(D)):
        count[i] = S.count(D[i])
    maxi = max(count)
    for i in range(len(D)):
        if(count[i]==maxi):
            print(D[i])
main()

Submission status: Runtime Error

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

if a == b and a != c:
  return "Yes"
if a == c and a != b:
  return "Yes"
if b == c and a != b:
  return "Yes"
else:
  return "No"

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

hoge = {a, b, c}

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(n):
  if not a[i] % 2 != 0 or (a[i] % 3 == 0 or a[i] % 5 == 0):
    print("DNIED")
    exit()
else:
  print("APPROVED")

Submission status: Runtime Error

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

for i in li:
  if i%2 ==0:
    if i%3 != 0 and i%5 != 0:
      print('DENIED')
      break
    else:
      continue
  continue
  print('APPROVED')

Submission status: Runtime Error

Solution code:
a,b,c = 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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = [input() for _ in range(n)]
d = {}
for w in s:
    if w not in d:
        d[w] = 0
    d[w] += 1
d2 = sorted(d.items(), key=lambda x:x[1], reverse=True)
maxcnts = [w[0] for w in d2 if w[1] == d2[1]]
maxcnts.sort()
for ans in maxcnts:
    print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
ans = 'APPROVED'
for a in A:
    if a % 2 == 0:
        if a % 3 != 0 and a % 5 != 0:
            ans = 'DENIED'
            exit()
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
import sys
import bisect

def bisectf_left(f,val,start,end):
    fs = f(start)
    if val <= fs:
        return start
    fe = f(end-1)
    if fe < val:
        return end    
    # Now fs < val and val <= fe

    while True:
        if (end - start) <= 2:
            return end - 1
        mid = (start + end )// 2 
        fm = f(mid)
        if val <= fm :
            end = mid + 1
        else: 
            start = mid
        continue

def bisectf_right(f,val,start,end):
    if start == end:
        return start 
    fs = f(start)
    if val < fs:
        return start
    fe = f(end-1)
    if fe <= val:
        return end
    # Now fs <= val and val < fe 
    while True:
        # print(start,end)
        if (end - start) <= 2:
            return end - 1
        mid = (start + end )// 2 
        fm = f(mid)
        if fm > val:
            end = mid + 1
        else:
            start = mid
        continue

def bisectf_bool(f,start,end):
    if start == end:
        return start 
    fs = f(start)
    if fs == True:
        return start
    fe = f(end-1)
    if fe == False:
        return end
    # Now fs == False and  fe == True 
    while True:
        # print(start,end)
        if (end - start) <= 2:
            return end - 1
        mid = (start + end )// 2 
        fm = f(mid)
        if fm == True:
            end = mid + 1
        else:    
            start = mid
        continue

(N,K) = list(map(int,input().split()))
A  = list(map(int,input().split()))
A.sort()
# print(N,K,A)

pm = bisect.bisect_left(A,0)
pz = bisect.bisect_right(A,0)
# print(pm,pz)

minus = list(map(lambda x: -x,A[0:pm]))
minus.sort()
plus = A[pz:]

numminus = pm 
numzero = pz - pm 
numplus = len(A) - pz 

# print(numzero,minus,plus)


def larger(ii):
    global basenum
    # global limit
    return limit < basenum * A[ii] 

def smaller_or_equal(ii):
    global basenum
    global limit
    return limit >= basenum * A[ii] 

limit = 0 

def count(u):
    # Count combination whose muliply is less than equal x 
    global limit
    global basenum
    ans = 0
    # print("count",u)
    for i in range(0,len(A)):
        # print("count",u,i)
        global basenum    
        if A[i] < 0:
            limit = u
            basenum = A[i]
            x = bisectf_bool(smaller_or_equal,0,i)
            #for j in range(x,i):
            #    print(x)
            #    print(A[i],"*",A[j])
            ans = ans + i - x 
        elif A[i] == 0:
            if x>= 0:
                ans = ans + i
        else:
            # global limit
            limit = u
            # print("set limit",limit,i)
            basenum = A[i]
            x = bisectf_bool(larger,0,i)
            #for j in range(0,x):
            #    print(A[i],"*",A[j])
            # print("basenum",basenum,x,i-x)
            ans = ans + x
    return ans

def fl(x):
    global kk
    return count(x) >= kk

kk = K

#for i in range(-13,11):
#    print(i,count(i))
hoge = bisectf_bool(fl,-10**18,10**18)
print(hoge)

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=input()
A=int(a)
B=int(b)
C=int(c)
if  A==B and A!=C:
  print('Yes')
if  A==C and A!=B: 
  print('Yes')
if  B==C and B!=A: 
  print('Yes')
else: 
  print('No')

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split()
def (x):
              A == B == C
              return('Yes')
def (y):
              A ! = B! = C!
              return('No')
def (x(A, B,C), y(A, B, C)

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split()
def (x):
              A == B == C
              return('Yes')
def (y):
              A ! = B! = C!
              return('No')
def(x(A, B,C), y(A, B, C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
map(int, input().split()
def a(A,B,C):
	if A == B == C
    	print(Yes)
    eles:
    	print(No)
    return
 
a(A,B,C)

Submission status: Runtime Error

Solution code:
map(int, input().split()
def a(A,B,C):
	if A == B == C
    print(Yes)
    eles:
    	print(No)
    return
 
a(A,B,C)

Submission status: Runtime Error

Solution code:
a = input().split()
x=a[0]
y=a[1]
z=a[2]
if x=y:
    if x=z:
        print("no")
    else:
        print("yes")
else:
    if x=z:
        print("yes")
    else:
        if y=z:
            print("yes")
        else:
            print("no")

Submission status: Runtime Error

Solution code:
map(int, input().split()
def a(A,B,C):
	if A == B == C
    print('Yes')
    eles:
    	print('No')
    return

a(A,B,C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in li:
  if i%2 ==0:
    if i%3 == 0 or i%5 == 0:
      a
    else:
      print('DENIED')
      break
  print('APPROVED')

Submission status: Runtime Error

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

r = 0
if A == B and B != C:
  r = 1
if B == C and C != A:
  r = 1
if C == A and A != B:
  r = 1

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

Submission status: Runtime Error

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

r = 0
if A == B and B != C:
  r = 1
if B == C and C != A:
  r = 1
if C == A and A != B:
  r = 1

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

Submission status: Runtime Error

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

r = 0
if A == B and B != C:
  r = 1
if B == C and C != A:
  r = 1
if C == A and A != B:
  r = 1

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
nums = input(),rstrip(),split(" ")
n1 = int(nums[0])
n2 = int(nums[1])
n3 = int(nums[2])
if n1 == n2:
  if n2 == n3:
    print("No")
  else:
    print("Yes")
else if n2 == n3:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
nums = input(),rstrip(),split(" ")
n1 = int(nums[0])
n2 = int(nums[1])
n3 = int(nums[2])
if n1 == n2 and n2 == n3:
  print("No")
else if n1 != n2 and n2 =! n3:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
a,b,c=map(int, input().split())
if not a=b=c and (a-b)*(b-c)*(c-a)==0:
  print('yes')
else:
  print('no')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if len(set([int(x) for x in input().split("")])) = 2:
  print("yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(sys.stdin)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
g='APPROVED'
for i in A:
    if i%2 == 0:
        if i%3 != 0 and i%5 != 0:
            g='DENIED'
            break
print(g)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
g='APPROVED'
for i in range(N):
    if A[i]%2 == 0:
        if A[i]%3 != 0 and A[i]%5 != 0:
            g='DENIED'
            break
print(g)

Submission status: Runtime Error

Solution code:
import collections
from collections import OrderedDict

#入力
N = int(input())
S = [input() for i in range(N)]

#出現回数のカウント
c = OrderedDict(collections.Counter(S))
ln = len(c.values())

#多い順に並べ替えた辞書をつくる
d = OrderedDict(sorted(c.items(), key = lambda x : x[1], reverse=True))
dval = list(d.values())
dkey = list(d.keys())

#回数が多い単語を抜き出したリストの制作
word = list()
word.append(dkey[0])
i=1
if ln>1:
    while dval[i-1]==dval[i]:
        word.append(dkey[i])
        i+=1
        if i==ln:
            break

#辞書順に並べ替える
dic = sorted(word)

#表示
for i in range(len(dic)):
    print(dic[i])

Submission status: Runtime Error

Solution code:
N = int(input())
ans = {}
for i in range(N):
    a = input()
    ans[a] = ans.get(a,0) + 1

ans2 = [k for k, v in ans.items() if v == max(ans.values())]
ans2.sort()
[print(i) for i in ans2]

Submission status: Runtime Error

Solution code:
N = int(input())
ans = {}
for i in range(len(L)):
    a = input()
    ans[a] = ans.get(a,0) + 1

ans2 = [k for k, v in ans.items() if v == max(ans.values())]
ans2.sort()
[print(i) for i in ans2]

Submission status: Runtime Error

Solution code:
import sys

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

for x in A:
    if (x % 2 == 0) and (x % 3 != 0) and (x % 5 != 0):
        print('DENIED')
        sys.exit()

print ('APPROVED')

Submission status: Runtime Error

Solution code:

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <cmath>

#define _GLIBCXX_DEBAC

using namespace std;

int gcd(int a, int b) {
	int c;
	if (a < b) {
		c = a; a = b; b = c;
	}
	while (b != 0) {
		c = a % b; a = b; b = c;
	}
	return a;
}

int sort_greater(int m,int n) {
	vector<int> a(m);
	for (int i = 0; i < m; i++) {
		cin >> a[i];
	}
	sort(a.begin(), a.end(),greater<int>());
	for (int i = 0; i < n; i++) {
		cout << a[i];
	}
		return 0;
}

int bubblesort(int a[], int n) {
	int sw = 0;
	bool flag = 1;
	for (int i = 0; flag; i++) {
		flag = 0;
		for (int j = n - 1; j >= i + 1; j--) {
			if (a[j] < a[j - 1]) {
				swap(a[j], a[j - 1]);
				flag = 1;
				sw += 1;
			}
		}
	}
	return sw;
}

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int ans = 0;
	if (a == b && a != c)ans = 1;
	if (a == c && a != b)ans = 1;
	if (b == c && a != b)ans = 1;
	if (ans)cout << "Yes"; else cout << "NO";
		

	return 0;
}

Submission status: Runtime Error

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

isApprove = True

for x in A:
    if x % 2 == 0:
        if (x % 3 != 0) or (x % 5 != 0):
            isApprove = False
            break
        
if isApprove:
    print ('APPROVED')
else:
    print('DENIED')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if i[0]==i[1] | i[0]==i[2] | i[1]==i[2]:
  if i[0]==i[1] & i[0]==i[2]:
	print('No')
  else:
	print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
if A==B & A==C:
	print('NO')
if A==B | A==C | B==C:
	print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
import numpy as np

i=[int(input()) for i in range(3)]
print(i)
if i[0]==i[1]&i[1]!=i[2]:
  print('Yes')
elif i[0]==i[2]&i[1]!=i[2]:
  print('Yes')
elif i[1]==i[2]&i[0]!=i[1]:
  print('Yes')
else:
  print('no')

Submission status: Runtime Error

Solution code:
i=[int(input()) for i in range(3)]
print(i)
if i[0]==i[1]&&i[1]!=i[2]:
  print('Yes')
else if i[0]==i[2]&&i[1]!=i[2]:
  print('Yes')
else if i[1]==i[2]&&i[0]!=i[1]:
  print('Yes')
else:
  print('no')

Submission status: Runtime Error

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

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

else:
  print("Yes")

Submission status: Runtime Error

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

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

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

approved = True
for num in nums:
  if num%2 == 0:
    approved = (num%3 == 0) | (num%5 == 0)
if approved:
  print('APPROVED')
else:
  print('DENIED')

Submission status: Runtime Error

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

approved = True
for num in nums:
  if num%2 == 0:
    approved = (num%3 == 0) or (num%5 == 0)
if approved:
  print('APPROVED')
else:
  print('DENIED')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
return 'No'

Submission status: Runtime Error

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

for i in range(n):
    if A[i]%2 == 0 and A[i]%3 != 0:
        print('DENIED')
    elif A[i]%2 == 0 and A[i]%5 != 0:
        print('DENIED')
    else:
        print('APPROVED')

Submission status: Runtime Error

Solution code:
n = int(input())

A = list(map(int, input().split()))
for i in range(n):
    if A[i]%2 == 0 and A[i]%3 == 0:
        print("APPROVED")
    elif A[i]%2 == 0 and A[i]%5 == 0:
        print("APPROVED")
    else:
        print("DENIED")

Submission status: Runtime Error

Solution code:
n = int(input())

for A in range(n):
    A = list(map(int, input().split()))
        if A % 3 == 0 or A % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")