TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import fractions
from functools import reduce
def func():
    n,x0 = map(int,input().split())
    x = [int(i) for i in input().split()]
    x.append(x0)
    x.sort()
    x.reverse()
    
    l = []
    before = 0
    before = None
    for xi in x:
        if before == None:
            before = xi
            continue
        l.append(xi-before)
        before = xi
    
    print(abs(reduce(fractions.gcd,l)))
func()

def func():
    a,b = map(int,input().split())
    if a & 1 == 1 and b & 1 == 1:
        print("Yes")
    else:
        print("No")
func()

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())

print('Yes' if a % 2 == 0 and b % 2 == 0 else 'No')

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

print('Yes' if a % 2 != 0 and b % 2 != 0 else 'No')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = map(int, input().split())

if (A % 2) and (B % 2):
    print("yes")
else:
    print("no")



A, B = map(int, input().split())

if (A % 2) and (B % 2):
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = map(int, input().split())
D = A * B
if D / 2 ==D // 2:
  print('Yes')
else:
  print('No')

A, B = map(int, input().split())
D = A * B
if D / 2 ==D // 2:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input().split())
if a%2==0 and b%2==0:
    print("Yes")
else:
    print("No")


a,b=map(int,input().split())
if a%2==1 and b%2==1:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b = map(int, input().split())

if (a==1 and b==1) or (a==3 and b==3):
  print('Yes')
else:
  print('No')

a,b = map(int, input().split())
 
if a%2 !=0 and b%2 !=0 :
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
#!/bin/evn python
# -*- coding: utf-8 -*-

n = int(input())
words = [input() for _ in range(n)]

last = ''
success = True

if len(set(words)) != len(words):
    success = False

if success:
    for word in words:
        if last[-1] != word[0]:
            success = False 
            break

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

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

if (a * b) % 2 == 1:
    print('Yes')
else:
    print('No')



Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if (a * b) % == 1:
  print('Yes')
else:
  print('No')

a, b = map(int, input().split())
if (a * b) % 2 == 1:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = list(map(int, input().split()))
if a % 2 == 0 or b % 2 == 0:
  print("no")
else:
  print("yes") 

a, b = list(map(int, input().split()))
if a % 2 == 0 or b % 2 == 0:
  print("No")
else:
  print("Yes") 

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
def main():
    a,b = map(int, input().split())
  if (a*b) % 2== 1:
      print("Yes")
  else:
      print('No")



if __name__ == '__main__' :
    main()

import sys

def odd_def(num):
    if num % 2 == 0:
        return False
    else:
        return True

def main():
    a,b = map(int, input().split())
    for i in range(1,4):
        mal = a*b*c
        if odd_def(mal):
            print('Yes')
            sys.exit()
    print('No')


if __name__ == '__main__' :
    main()

def main():
    a,b = map(int, input().split())
  if (a*b) % 2== 1:
      print("Yes")
  else:
      print('No')
 
 
 
if __name__ == '__main__' :
    main()

def main():
  a,b = map(int, input().split())
  if (a*b) % 2== 1:
      print("Yes")
  else:
      print('No')
 
 
 
if __name__ == '__main__' :
    main()

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
N = int(input())
a = [input() for i in range(N)]
 
for num in range(N):
  if a[num] in a[:num-1]:
    print('No')
    break
  if num < N-1:
    if a[num][-1] != a[num+1][0]:
    	print('No')
    	break
  print('Yes')

N = int(input())
a = [input() for i in range(N)]
 
for num in range(N):
  if a[num] in a[:num-1]:
    print('No')
    break
  if num < N-1:
    if a[num][-1] != a[num+1][0]:
    	print('No')
    	break
  if num == N-1:
    print('Yes')

A, B = map(int, raw_input().split())
x = A * B
if x % 2 == 0:
    print('No')
else:
    print('Yes')

A, B = map(int, raw_input().split(' '))

if (A * B) % 2 == 0:
    print('No')
else:
    print('Yes')

N = int(input())
a = [input() for i in range(N)]
 
for num in range(N):
  if a[num] in a[:num]:
    print('No')
    break
  if num < N-1:
    if a[num][-1] != a[num+1][0]:
    	print('No')
    	break
  print('Yes')

A, B = map(int, raw_input().split())

if (A * B) % 2 == 0:
    print('No')
else:
    print('Yes')

A, B = map(int, input().split())
x = A * B
if x % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if (a*b)%2 == 1:
    print('YES')
else:
    print('NO')


a, b = map(int, input().split())
if a%2 != 0 and b%2 != 0:
    print('YES')
else:
    print('NO')


a, b = map(int, input().split())
if (a*b)%2 == 1:
    print('YES')
else:
    print('NO')


a, b = map(int, input().split())
if a%2 == 1 and b%2 == 1:
    print('YES')
else:
    print('NO')


a, b = map(int, input().split())
if (a*b)%2 == 1:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input())
if a * b % 2 == 1:
    print('Yes')
else:
    print('No')

a, b = map(int, input().split())
if a * b % 2 == 1:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A,B = map(int,input().split())
X = A * B

if X % == 0:
    print("Yes")
else:
    print("No")


A,B = map(int,input().split())
X = A * B

if X % 2 == 0:
    print("Yes")
else:
    print("No")


A,B = map(int,input().split())
X = A * B

if X % 2 != 0:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
print(" YNeos"eval(input()).replace(" ","*")%2::2))

print(" YNeos"[eval(input().replace(" ","*"))%2::2])

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if a % 1 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b= map(int,input().split())

if (a*b)%2 == 0:
  print('NO')
else:
  print('YES')

a,b= map(int,input().split())
 
if (a*b)%2 == 0:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input().split)
if(a%2==1 and b%2==1):
  print("Yes")
else:
  print("No")

a,b=map(int,input().split())
if(a%2==1 and b%2==1):
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = [ int(v) for v in input().split() ]
ans = "Yes"
if (a * b) % 2 == 1:
  ans = "No"
print(ans)

a, b = [ int(v) for v in input().split() ]
ans = "Yes"
if (a * b) % 2 == 0:
  ans = "No"
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
h,w=map(int,input().split())
a=[]

for i in range(h):
  x=list(map(int,input().split()))
  a.append(x)
ans=[]
times=0
for i in range(h):
  for j in range(w-1):
    if a[i][j]%2!=0:
      a[i][j]-=1
      a[i][j+1]+=1
      ans.append([i+1,j+1,i+1,j+2])
      times+=1
for i in range(h-1):
  if a[i][w-1]%2!=0:
    a[i][w-1]-=1
    a[i+1][w-1]+=1
    ans.append([i+1,w,i+2,w])
    times+=1
print(times)
for i in range(len(ans)):
  print(ans[i])

a,b,=map(int,input().split())
if a%2!=0 and b%2!=0:
  print('Yes')
else:
  print('No')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes)

a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input())
if a%2==1 and b%2==1:
    print("Yes")
else:
    print("No")

a,b=map(int,input().split())
if a%2==1 and b%2==1:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a = input()
b = input()
if a * b % 2:
  return "Yes"
return "No"

nums = map(int, input().split())
if nums[0] * nums[1] % 2:
  return "Yes"
return "No"

return input() * input() % 2

numbers = input()
num_a = int(numbers.split()[0])
num_b = int(numbers.split()[1])
if (num_a * num_b) % 2 == 0:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
(n, x) = list(map(int, input().split()))
x_list = list(map(int, input().split()))

x_list.append(x)
x_list.sort()

min_diff = 99999999999
for i in range(len(x_list) - 1):
    diff = x_list[i + 1] - x_list[i]
    if min_diff > diff:
        min_diff = diff


x_diff = [xx - x_list[0] for xx in x_list]

for i in range(1, min_diff):
    if min_diff % i != 0:  
        continue
    xx = min_diff // i
    is_divided = [j for j in x_diff if j % xx != 0]
    if len(is_divided) == 0:
        print(xx)
        exit()


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

if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = map(int, input().split())
print('Yes' A % 2 and B % 2 else 'No')

A, B = map(int, input().split())
print('Yes' if A % 2 and B % 2 else 'No')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
def main():
    N = int(input())
    W = []
    for n in range(N):
        W.append(input())
    for i, w in enumerate(W):
        prev_w = w
        if i==0:
            continue
        for wn in W[:i]:
            if w == wn:
                print('No')
                return 
        if prev_w[-1] != w[0]:
            print('No')
            return
    print('Yes')
    return

main()


from fractions import gcd
def fun():
    nx = input()
    N, X = nx.split(' ')
    N = int(N)
    X = int(X)
    cities = [int(c) for c in input().split(' ')]
    cities.append(X)
    x = sorted(cities)
    nx = x[1:]
    dist = [nn - x[i] for i, nn in enumerate(nx)]
    if N==1:
        print(dist[0])
        return
    min_gcd = 10000000000
    for i, d in enumerate(dist[:-1]):
        dp = dist[i+1]
        gc = gcd(d, dp)
        if gc < min_gcd:
            min_gcd = gc
    print(min_gcd)

fun()


def main():
    N = int(input())
    W = []
    for n in range(N):
        W.append(input())
    for i, w in enumerate(W):
        prev_w = w
        if i==0:
            continue
        for wn in W[:i-1]:
            if w == wn:
                print('No')
                return 
        if prev_w[-1] != w[0]:
            print('No')
            return
    print('Yes')
    return

main()


def main():
    N = int(input())
    W = []
    for n in range(N):
        W.append(input())
    for i, w in enumerate(W):
        if i==0:
            prev_w = w
            continue
        for wn in W[:i]:
            if w == wn:
                print('No')
                return 
        if prev_w[-1] != w[0]:
            print('No')
            return
        prev_w = w
    print('Yes')
    return

main()


s = input()
a,b = s.split(' ')
a = int(a)
b = int(b)
if (a%2 == 0) or (b%2 == 0):
    print('No')
else:
    print('Yes')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import sys


argv = sys.argv
argc = len(argv)

A = int(argv[1])
B = int(argv[2])

AB = A * B
exists = False


for C in range(1, 4):
    if (AB * C % 2 == 1):
        exists = True
        break


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


import sys


argv = sys.argv
argc = len(argv)


if (argc != 3):
    print("引数２個が必要")
    sys.exit()

A = int(argv[1])
B = int(argv[2])

if (A < 1 or 3 < A):
    print("Aが不正 (1-3)")
    sys.exit()

if (B < 1 or 3 < B):
    print("Bが不正 (1-3)")
    sys.exit()

AB = A * B
exists = False


for C in range(1, 4):
    if (AB * C % 2 == 1):
        exists = True
        break


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


import sys


argv = sys.argv
argc = len(argv)


if (argc != 3):
    print("引数２個が必要")
    sys.exit()

A = int(argv[1])
B = int(argv[2])

if (A < 1 or 3 < A):
    print("Aが不正 (1-3)")
    sys.exit()

if (B < 1 or 3 < B):
    print("Bが不正 (1-3)")
    sys.exit()

AB = A * B
exists = False


for C in range(1, 4):
    if (AB * C % 2 == 1):
        exists = True
        break


if (exists):
    print("YES")
else:
    print("NO")


# -*- coding: utf-8 -*-

A, B = map(int, input().split())
AB = A * B

exists = False

for C in range(1, 4):
    if (AB * C % 2 == 1):
        exists = True
        break

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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
arg = raw_input().split()

num = int(arg[0]) * int(arg[1])

if num % 2 == 0:
  print('No')
else:
  print('Yes')

N = raw_input().split()
print(N)

arg = raw_input().split()

num = int(arg[0]) * int(arg[1])

if (num % 2) == 0:
  print('No')
else:
  print('Yes')

N = raw_input().split()
print(N)

arg = input().split()

num = int(arg[0]) * int(arg[1])

if (num % 2) == 0:
  print('No')
else:
  print('Yes')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a = [int(input()) for i in range(2)]
if (a[0] * a[1]) % 2 == 0:
  print("No")
else:
  print("Yes")

a,b = [int(input()) for i in range(2)]
if (a * b) % 2 == 0:
  print("No")
else:
  print("Yes")

a,b = list(map(int,input().split()))
if a * b % 2 == 0:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b = map(int,input().split())

if a == 2 or b == 2;
	print('No')
else:
	print('Yes')

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

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = map(int,input())
ab = A*B
if ab % 2 == 0:
    print('No')
else:
    print('Yes')

A, B = map(int,input().split())
ab = A*B
if ab % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = [int(item) for item in input().split()]
ans = "yes" if (A * B) % 2 == 1 else "no"
print(ans)

A, B = [int(item) for item in input().split()]
ans = "yes" if (A * B) % 2 == 1 else "no"
print(ans)

A, B = [int(item) for item in input().split()]
ans = "Yes" if (A * B) % 2 == 1 else "No"
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A, B = map(int,input().split())
 
if (A*B*1 % 2 == 0) or (A*B*3 % 2 == 0):
  print("Yes")
else:
  print("No")

A, B = map(int,input().split())

if (A*B*1 % 2 == 0) or (A*B*3 % 2 ==0):
  print("Yes")
else:
  print("No")

A, B = map(int,input().split())
 
if (A*B*1 % 2 != 0) or (A*B*3 % 2 != 0):
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import sys
l = map(int, raw_input().split())
if (l[0] * l[1]) % 2 == 0:
    print("No")
else:
    print("Yes")

import sys
l = list(map(int, input().split()))
if (l[0] * l[1]) % 2 == 0:
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A,B = map(int, input().split())

c = 1

if A*B*c/2 == 0:
	print("Yes")
else:
	print("No") 

A,B = map(int, input().split())


if A*B/2 == 0:
	print("Yes")
else:
	print("No") 

A,B = map(int, input().split())


if A*B/2 == 0 or A*B == 1:
	print("Yes")
else:
	print("No") 

A,B = map(int, input().split())


if A*B%2 != 0:
	print("Yes")
else:
	print("No") 

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A=int(input())
B=int(input())
if A%2!=0 and B%2!=0:
        print("Yes")
else :
        print("No") 

N=int(input())
before=[]
ans="Yes"
for i in range(N):
        s=input()
        if s in before:
                ans="No"
        if len(before)>0:
                if before[-1][-1]!=s[0]:
                        ans="No"
        before.append(s)

print(ans)

A,B=map(int,input().split())

if A%2!=0 and B%2!=0:
        print("Yes")
else :
        print("No") 

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input().split())
if((a!=1 and b!=3) or (b!=1 and a!=3) or(a!=1 and b!=1) or (a!=3 and b!=3)):
    print('No')
else:
    print('Yes')

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

a,b=map(int,input().split())
if((a*b)%2==0):
    print('No')
else:
    print('Yes')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
n = int(input())

used = [empty]
ans = "Yes"

for i in range(n):
    if i == 0:
        t = str(input())
        
        past = t
    else:
        t = str(input())
        for j in used:
            if j == t:
                ans = "No"
    
    if past[-1] != t[1]:
        ans = "No"
    used.append(t)
    past = t

print(ans)

    
    


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

for i in range(1,3):
    if (a*b*c%2) == 1:
        c = 1

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

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

for i in range(1,3):
    if ((a*b*i)%2) == 1:
        c = 1

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
N,X =[int(i) for i in input().split()]
c = [int(i) for i in input().split()]

c.append(X)
c.sort()

D = float('inf')

for i in range(1,N+1):
    if c[i] - c[i-1] < D:
        D = abs(c[i] - c[i-1])

print(int(D))

N,X =[int(i) for i in input().split()]
c = [int(i) for i in input().split()]

c.append(X)
c.sort()

D = float('inf')

for i in range(1,N+1):
    if c[i] - c[i-1] < D:
        D = abs(c[i] - c[i-1])

print(int(D))



a,b=[int(i) for i in input().split()]

res = 0
f = False
for i in range(1,4):
    res = a * b * i
    if res % 2 == 1:
        f = True

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




Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input()split())
print("Yes" if a%2 and b%2 else "No")

a,b=map(int,input().split())
print("Yes" if a%2 and b%2 else "No")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
N = int(input())
W = []
flag = "Yes"
last_chara = ''
for i in range(N):
  now_W = input()
  www = list(now_W)
  if i != 0:
    if www[0] != last_chara:
      flag = "No"
      break
  if now_W in W:
    flag = "No"
    break
  W.append(now_W)
  last_chara = www[-1]
print(flag)

A, B = list(map(int, input().split()))
if A * B % 2 == 0:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import numpy

a, b = map(int, input().split())
c = np.asarray([[1,2,3], [4,5,6]])
if a % 2 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a=int(input())
b=int(input())
if a%2==0 or b%2==0:
    print("No")
else:
    print("Yes")

l = list(map(int, input().split()))
a=l[0]
b=l[1]
if a%2==0 or b%2==0:
    print("No")
else:
    print("Yes")


Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A,B=map(int,input.split())
if A*B*1%2==1 or A*B*2%2==1 or A*B*3%2==1:
  print("Yes")
else:
  print("No")

N,X=map(int,input().split())
inputcities=list(map(int, input().split()))
cities=list(set([abs(inputcities[i]-X) for i in range(N)]))
N=len(cities)
count=0
flag=0
minimum=min(cities)
for j in range(minimum+1)[::-1]:
  for i in range(N):
    if cities[i]%j==0:
      count+=1
    else:
      count=0
      break
    if count==N:
      print(j)
      flag=1
      break
  if flag==1:
    break

A,B=map(int,input().split())
if A*B*1%2==1 or A*B*2%2==1 or A*B*3%2==1:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
print("Yes" if a % 2 == 1 and b % 2 == 0 else "No")


#!/usr/bin/env python3

import sys
# import math
# from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from operator import itemgetter              # itemgetter(1), itemgetter('key')

# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product, permutations  # product(iter, repeat=n), permutations(iter[,r])
# from itertools import combinations, combinations_with_replacement
# from itertools import accumulate             # accumulate(iter[, f])
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from copy import deepcopy                    # to copy multi-dimentional matrix without reference
# from fractions import gcd                    # for Python 3.4 (previous contest @AtCoder)


def main():
    mod = 1000000007                # 10^9+7
    inf = float('inf')              # sys.float_info.max = 1.79...e+308
    # inf = 2 ** 64 - 1               # (for fast JIT compile in PyPy) 1.84...e+19
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    a, b = mi()
    print('No') if a % 2 == 0 or b % 2 == 0 else print('Yes')


if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b = map(int,input().split())
if a*b%2 == 0:
  print("No")
else:
  ptint("Yes")

a,b = map(int,input().split())
if a*b%2 == 0:
  print("No")
else:
  print("Yes")


Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
def ABC(a , b):

    return "Yes" if (a * b) % 2 == 0 else "No"

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

if __name__ == '__main__':
    main()

def ABC(a , b):

    return "No" if (a * b) % 2 == 0 else "Yes"

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

if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input().split())
if a%2==0 and b%2==0:
  print('Yes')
else:
  print('No')

a,b=map(int,input().split())
if a%2!=0 and b%2!=0:
  print('No')
else:
  print('Yes')

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

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


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

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

a,b=map(int,input().split())
if a%2==0 or b%2==0:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())

if (a * b) % 2 == 0:
    print('Yes')
else:
    print('No')

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

if (a * b) % 2 != 0:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int,input().split())
if((a*b)%2==0):
    print('Yes')
else:
    print('No')

a,b=map(int,input().split())
if((a*b)%2==0):
    print('No')
else:
    print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = int(input())

d = a * b
if d % 2 == 0:
    print('Yes')
else:
    print('No')

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

d = a * b
if d % 2 == 0:
    print('Yes')
else:
    print('No')

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

d = a * b
if d % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import sys

def main(lines):
  a, b = map(int, lines[0].split())
  if a % 2 != 0 and b % 2 != 0:
    print("No")
    return
  print("Yes")


if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)

import sys

def main(lines):
  a, b = map(int, lines[0].split())
  if a % 2 != 0 and b % 2 != 0:
    print("Yes")
    return
  print("No")


if __name__ == '__main__':
    lines = []
    for l in sys.stdin:
        lines.append(l.rstrip('\r\n'))
    main(lines)

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
def gcd(a,b):
    while b!=0:
        a,b = b,b%a
    return a
def lcm(a,b):
    return (a*b)//gcd(a,b)

N,X = map(int,input().split())
x = list(map(int,input().split()))
x = list(map(lambda q:abs(q-X),x))
ans = 1
for xx in x:
    ans = gcd(ans,xx)
print(ans)

a,b = map(int,input().split())
if (a*b)%2:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
N,X = map(int, input().split())
List = [int(x) for x in input().split()]
 
import math
List.append(X)
List.sort()
 
distance = []
for i in range(N):
    distance.append(List[i+1]-List[i])
 
d_min = min(distance)
 
num_list = []
 
c = 1
while c <= math.sqrt(d_min):
    if d_min%c == 0:
        num_list.append(c)
    c += 1
 
num_list2 = [0]*len(num_list)
for i in range(len(num_list)):
    num_list2[len(num_list)-i-1] = int(d_min/num_list[i])
 
num_list = num_list + num_list2
 
j = len(num_list)-1
c2 = 0
while j >= 0:
    for k in range(len(distance)):
        if distance[k]%num_list[j] == 0:
            c2 += 1
    if c2 == len(distance):
        ans = num_list[j]
        j = 0
    j -= 1
 
print(ans)

A,B = map(int, input().split())
if (A*B)%2 == 0:
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if a*b%2 == 0:
  print('Yes')
else:
  print('No')

a,b = map(int, input().split())
if a*b%2 == 0:
  print('No')
else:
  print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
class ABC109Solver():
    def __init__(self):
        self.a = int()
        self.b = int()
    def input(self, a, b):
        self.a = a
        self.b = b
    def solve(self):
        # return 'Yes'
        # return 'No' if self.b%2 == 0 else 'Yes'
        return 'No' if self.a%2 == 0 or self.b%2 == 0 else 'Yes'
      
a = int(input())
b = int(input())
solver = ABC109Solver()
solver.input(a,b)

print( solver.solve() )



class ABC109Solver():
    def __init__(self):
        self.a = int()
        self.b = int()

    def input(self, a, b):
        self.a = a
        self.b = b

    def solve(self):
        # return 'Yes'
        # return 'No' if self.b%2 == 0 else 'Yes'
        return 'No' if self.a%2 == 0 or self.b%2 == 0 else 'Yes'
      
a = input()
b = input()
solver = ABC109Solver()
solver.input(a, b)
print( solver.solve() )


class ABC109Solver():
    def __init__(self):
        self.a = int()
        self.b = int()
    def input(self, a, b):
        self.a = a
        self.b = b
    def solve(self):
        # return 'Yes'
        # return 'No' if self.b%2 == 0 else 'Yes'
        return 'No' if self.a%2 == 0 or self.b%2 == 0 else 'Yes'
      
a = int(input())
b = int(input())
solver = ABC109Solver()

print( solver.solve() )

class ABC109Solver():
    def __init__(self):
        self.a = int()
        self.b = int()
    def input(self, a, b):
        self.a = a
        self.b = b
    def solve(self):
        # return 'Yes'
        # return 'No' if self.b%2 == 0 else 'Yes'
        return 'No' if self.a%2 == 0 or self.b%2 == 0 else 'Yes'

vals = input().split(' ')
a, b = int(vals[0]), int(vals[1])
solver = ABC109Solver()
solver.input(a,b)
 
print( solver.solve() )

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b = map(int,input().split())

for i in range(3):
    if a*b*i%2==1:
        print("Yes")
        break
    else :
        print("No")
        break

a,b = map(int,input().split())
if a%2==0 or b%2==0:
    print("No")
else :
    print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a = int(input())
b = int(input())

for c in range(1,4):
    answer = a * b * c
    mod = answer % 2
    if mod == 1:
        print('Yes')
        break
    print('No')
    break

a = input()                                                                                             
b = input()

a = int(a)
b = int(b)


for c in range(1,4):
    answer = a * b * c
    mod = answer % 2
    if mod == 1:
        print('Yes')
        break
    print('No')
    break

# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

for c in range(1,4):
    answer = a * b * c
    mod = answer % 2
    if mod == 1:
        print('Yes')
        break
    print('No')
    break

# -*- coding: utf-8 -*-

a = int(input())
b = int(input())

for c in range(1,4):
    answer = a * b * c
    mod = answer % 2
    if mod == 1:
        print('Yes')
        break
    print('No')
    break

# -*- coding: utf-8 -*-

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

for c in range(1,4):
    answer = a * b * c
    mod = answer % 2  
    if mod == 1:
        print('Yes')  
        break
    print('No') 
    break

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import sys


def solve(a,b):
    if a or b == 2:
        return 'No'
    else:
        return 'Yes'
    

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

import sys


def solve(a,b):
    if a == 2:
        return 'No'
    elif b == 2:
        return 'No'
    else:
        return 'Yes'
    

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
i=int(input())
l=[]
c=True
for k in range(1,i+1):
  l.append(list(input())
if len(l)==len(set(l)):
  for k in range(0,i):
    if l[k][-1]!=l[k+1][0]:
       c=False
       break
else:
  c=False
if c==False:
  print("No")
else:
  print("Yes")
           
  


a,s=map(int,input().split())
if a*s%2==0:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
n=int(input())
a=[]
for i in range(n):
    a.append(input())
flag=0
for i in range(n):
    s=a[i]
    
   if i==0:
       continue
   else:
       if last!=a[i][len(a[i])-1]:
           flag=1
           
   last=a[i][len(a[i])-1]
if flag==1:
    print("No")
else:
    print("Yes")


a,b=map(int,input().split())
flag=0
for i in range(1,4):
    if a*b*c%2==1:
        flag=1
if flag==1:
    print("Yes")
else:
    print("No")


a,b=map(int,input().split())
flag=0
for i in range(1,4):
    if a*b*i%2==1:
        flag=1
if flag==1:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, raw_input().split())
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')


a, b = map(int, raw_input().split())
if a%2 == 0 or b%2 == 0:
    print('no')
else:
    print('yes')

a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
from sys import stdin

def gcd(a, b):
	while b: a, b = b, a % b
	return a

N, X = [int(x) for x in stdin.readline().rstrip().split()]
x_lst = sorted(set([abs(int(x)-X) for x in stdin.readline().rstrip().split()]))

if len(x_lst) == 1:
  print(x_lst[0])
else:
  prev_x = x_lst[0]
  for x in x_lst[1:]:
    prev_x = gcd(prev_x, x)
    if prev_x == 1: break
  print(prev_x)

from sys import stdin

A,B = [int(x) for x in stdin.readline().rstrip().split()]

if(A*B % 2 == 0): print('No')
else: print('Yes')

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A,B = list(map(int,input().split()))
if A*B % 2 == 0:
    print("NO")
else:
    print("YES")

A,B = list(map(int,input().split()))
if A*B % 2 == 0:
    print("No")
else:
    print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
import fractions
from functools import reduce


def gcd(*numbers):
    return reduce(fractions.gcd, numbers)


def gcd_list(numbers):
    return reduce(fractions.gcd, numbers)


N, X = (int(i) for i in input().split())
A = [int(i) for i in input().split()]


def aho(x):
  return x - X


B = list(map(aho, A))

C = gcd_list(B)

print(C)

A, B = (int(i) for i in input().split())
if A % 2 == 0 and B % 2 == 0:
    print('Yes')
else:
    print('No')

A, B = (int(i) for i in input().split())
if A % 2 == 0 or B % 2 == 0:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a,b=map(int(input().split()))
if a==2 or b==2:
  print('No')
else:
  print('Yes')

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
a, b = map(int, input().split())
if a % 2 != 0 and b % 2 != 0:
  print(“Yes”)
else:
  print(“No”)


a, b = map(int, input().split())
if a * b % 2 == 0:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: You are given integers A and B, each between 1 and 3 (inclusive).  Determine if there is an integer C between 1 and 3 (inclusive) such that A \times B \times C is an odd number.

Submission attempts (in order):
A,B=int(input().split())
print("Yes" if (A*B)%1==0 else "No")

A,B=map(int,input().split())
print("Yes" if (A*B)%2==1 else "No")

Verdicts: Runtime Error

Accepted