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 sys



if __name__ == "__main__":
    a, b = list(map(int, intput().split()))
    for i in range(1, 3):
        if a * b * i % 2 == 1:
            print('True')

    print('No')


import sys


def main():
    a, b = list(map(int, input().split()))
    for i in range(1, 4):
        if a * b * i % 2 == 1:
            print('True')
            return

    print('No')


if __name__ == "__main__":
    main()


import sys
from functools import reduce
from fractions import gcd


def main():
    n, x = list(map(int, input().split()))
    values = list(map(int, input().split()))
    values.append(x)
    values.sort()
    v = [values[i + 1] - values[i] for i in range(len(values) - 1)]
    res = v[0]
    print(reduce(gcd, v[1:], v[0]))


if __name__ == "__main__":
    main()


import sys


def main():
    a, b = list(map(int, input().split()))
    for i in range(1, 3):
        if a * b * i % 2 == 1:
            print('True')
            return

    print('No')


if __name__ == "__main__":
    main()


import sys


def main():
    a, b = list(map(int, input().split()))
    for i in range(1, 4):
        if a * b * i % 2 == 1:
            print('Yes')
            return

    print('No')


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Wrong Answer

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 = (int(i) for i in input().split())
if (a*b)%2: print("No")
else: print("Yes")

a,b = (int(i) for i in input().split())
if (a*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())

ab = a*b

for c in range(1,4):
    if 1 <= a <= 3 and  0 <= b <=3:
       if (ab*c) % 2 ==1:
           print('Good')
           exit()

print('No')

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

ab = a*b

for c in range(1,4):
    if 1 <= a <= 3 and  0 <= b <=3:
       if (ab*c) % 2 ==1:
           print('Good')
           exit()

print('no')

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

ab = a*b

for c in range(1,4):
       if (ab*c) % 2 ==1:
           print('Good')
           exit()

print('no')

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

ab = a*b

for c in range(1,4):
    if 1 <= a <= 3 and  0 <= b <=3:
       if (ab*c) % 2 ==1:
           print('Yes')
           exit()

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

if ab in 2:
  print("No")
else:
  print("Yes")

ab = list(map(int,input().split()))
 
if 2 in ab:
  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(i) for i in input().split()]
if a*b % 2 is 1:
    print("True")
else:
    print("False")

a, b = [int(i) for i in input().split()]
if a*b % 2 is 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):
print("Yes" if int(input)*int(input) % 2 != 0 else "No")


print("Yes" if (int(input())*int(input())) % 2 != 0 else "No")


print("Yes" if (int(input)*int(input)) % 2 != 0 else "No")


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


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):
# -*- coding: utf-8 -*-
import fractions
 
N,X = map(int, input().split())
x = list(map(int,input().split()))
x.append(X)
x.sort()
y=[]
 
i=0
while i < n:
    y.append(x[i+1]-x[i])
    i +=1
y.sort()
 
y=list(set(y))
m=len(y)
z=y[0]
i=0
while i < m:
    z=fractions.gcd(z,y[i])
    i+=1
 
print(z)

# -*- coding: utf-8 -*-
 
tmp = input()
a=[int(x) for x in tmp.split()]

if a[0]*a[1] % 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 % 2 = 0):
  print("No")
else:
  print("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):
a,b=map(int,input().split());print("Yes" if (a*b*1)%2==0 or (a*b*3)%2==0 else "No")

a,b=map(int,input().split());print("No" if (a*b*1)%2==0 or (a*b*3)%2==0 else "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 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):
l = list(map(int, input().split())) 
a = l[0]
b = l[1]

print(1 % 2)

if ((a % 2 == 1) and (b % 2 == 1)):
	print("Yes")
else:
	print("No")



l = list(map(int, input().split())) 
a = l[0]
b = l[1]

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 % 2 == 0 or b % 2 == 0: print('No')
else: print('No')

n = int(input())
w = []
for i in range(n):
    w.append(input())
ok = True
for i in range(n-1):
    sz = len(w[i])
    if w[i][sz-1] != w[i+1][0]: ok = False
for i in range(n):
    for j in range(n):
        if i != j and w[i] == w[j]:
            ok = False
if ok: 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

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 c in range(1, 4):
  if a*b*c%2 == 1:
    print('Yes')
	break
else:
  print('No')

a, b = map(int, input().split())
for c in range(1, 4):
    if a*b*c%2 == 1:
        print('Yes')
        break
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())
print('Yes' if A*B%2==0 else 'No')

A,B=map(int, input().split())
print('No' if A*B%2==0 else '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):
k = int(input())

if k % 2 == 0:
    num = k * k /4
else:
    base = (k-1) / 2
    num = base * (base + 1)

print(int(num))

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):
print("YNeos"[eval(input().replace(" ","*")%2==0)::2])

print("YNeos"[eval(input().replace(" ","*"))%2==0::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):
import sys
a, b = map(int, input().split())

print(list(range(1,4)))

for c in range(1,4) :
    if (a*b*c)%2 == 1 :
        print("Yes")
        sys.exit(0)

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):
n = int(input())
s = [input()for _ in[0]*n]
f = 0
for i in range(1,n):
    f += s[i-1][-1] != s[i][0]
print("No"if f or len(set(s))<n else"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):
a,b=map(int,input().split())
flag=0

for i in range(1,4):
  if (a*b*i)%2!=0:
    flag=1
    exit()
    
  else:
    continue
    
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!=0:
    flag=1
    break
    
  else:
    continue
    

if flag==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 = int(input().split())
if a*b%2 == 0:
   print("No")
else:
  print("Yes")

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=m(int,input().split())
if a%2==0or 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")


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

a,b=map(int,input().split())
print("NO"if a*b%2==0 else "YES")

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

Verdicts: Runtime Error

Wrong Answer

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==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”)

A, B=map(int, input(). split())
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’)


A, B=map(int, input(). split())
if(A*B%==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

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):
number = input().rstrip().split(" ")
A = number[0]
B = number[1]
seki = int(A) * int(B)
if seki % 2 == 0:
  print("no")
else:
  print("yes")

number = input().rstrip().split(" ")
A = number[0]
B = number[1]
seki = int(A) * int(B)
if seki % 2 == 0:
  print("no")
else:
  print("yes")

number = input().rstrip().split(" ")
A = number[0]
B = number[1]
seki = int(A) * int(B)
if seki % 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):
# -*- coding: utf-8 -*-
from fractions import gcd


N, X = map(int, input().split())
pos = [int(x.strip()) for x in input().split()]


tikai = [i - X for i in pos]
kyori = list(map(abs,tikai))

a = kyori[0]
for xi in kyori[1:]:
    a = gcd(a, xi)
print(a)

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

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

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):
print("Yes" if (eval(input().replace(" ",*)))%2 else "No")

print("Yes" if eval(input().replace(" ",*))%2 else "No")

print("Yes" if eval(input().replace(" ","*"))%2 else "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):
l = [int(i) for i in input().split()]
if(l[0] * l[1] / 2 == 0):
    print("Yes")
else:
    print("No")


l = [int(i) for i in input().split()]
if(l[0] * l[1] % 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 == 0 or B % 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

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())
res = "NO"
for i in range(1,4):
    if (A * B * i) % 2 == 1:
        res = "YES"
        break
print(res)

A, B = map(int, input().split())
res = "No"
for i in range(1,4):
    if (A * B * i) % 2 == 1:
        res = "Yes"
        break
print(res)

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):
C = 3
N = input()
num = N.split()
A = num[0]
B = num[1]
r = int(A) * int(B) * int(C)
R = int(r)
if R % 2 == 0:
    print("no")
else:
    print("yes")


def main():
    line = input()
    a, b= [int(x) for x in line.split()]
    if a == 2 or b == 2:
        print('NO')
    else:
        print('YES')
main()

line = input()
a, b = [int(n) for n in line.split()]
for n in range(1, 4):
    print(n)
    if (a*b*n)%2!=0:
        print("Yes")
        break
    if n==3:
        print("No")

C = 1
N = input()
num = N.split()
A = num[0]
B = num[1]
R = int(A) * int(B)
while C != 3:
    result = R * C
    if result % 2 == 0:
        C = C + 1
        if C == 3:
            print("no")
    elif result % 2 == 1:
        print("yes")
        C = 3


[a, b] = input().split()
odd = False


for c in range(1,4):
    if int(a) * int(b) * c % 2:
        odd = True

if odd:
    print("yes")
else:
    print("no")

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

if (A == 3 and B==1):
	print("YES")
else:
	print("NO")

C = 0
N = input()
num = N.split()
A = num[0]
B = num[1]
R = int(A) * int(B)
while C != 3:
    result = R * C
    if result % 2 == 0:
        C = C + 1
        if C == 3:
            print("No")
    elif result % 2 == 1:
        C = 3
        print("Yes")


Verdicts: Wrong Answer

Wrong Answer

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):
print('Yes' if eval(input().replace(' ',*))%2 else 'No')

print('Yes' if eval(input().replace(' ','*'))%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):
import fractions

n,x=map(int,input().split())
a=list(map(int,input().split()))

b=[]
for i in a:
    b.append(abs(x-i))

if n==1:
    print(abs(x-a[0]))

else:
    ans=fractions.gcd(b[0],b[1])

    for i in range(2,n):
        ans = fractions.gcd(ans ,b[i])

    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==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==1 or A==1) and (B%2==1 or B==1):
    print("yes")
else:
    print("No")

A=0
B=0
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 or B==2:
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

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):
import sys

ri = lambda: int(sys.stdin.readline())

print('No' if ri() == 2 or ri() == 2 else 'Yes')

import sys

rm = lambda: map(int, sys.stdin.buffer.readline().split())

a, b = rm()
print('No' if a == 2 or b == 2 else '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 main() -> None:
    A, B = map(int, input().split())
    print("%s" % "NO" if (A * B) % 2 == 0 else "YES")


if __name__ == '__main__':
    main()


def main() -> None:
    A, B = map(int, input().split())
    print("%s" % "No" if (A * B) % 2 == 0 else "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 == 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*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

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%2==1)&(B%2==1):
  print('Yes')
else:
  print('No')

num = str(input()).split(' ')
A = int(num[0])
B = int(num[1])

if (A%2==1)&(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):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

a,b = na()
d = 1 if a%2==0 or b%2==0 else 0
print(['YES','NO'][d])

import sys
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

a,b = na()
d = 1 if a%2==0 or b%2==0 else 0
print(['Yes','No'][d])

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

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

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

if num[0]%2==0 or num[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):
def solve():
    a,b = map(int, input().split())

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

if __name__ == "__main__":# {{{
    solve()


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

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

if __name__ == "__main__":# {{{
    solve()


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


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

if (a*b=1) or (a*b=3):
  print("Yes")
else:
  print("No")
  

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

if (a*b)%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(" "))
if (a * b) % 2 == 1 or (a * b * 3) % 2 == 1:
  print("Yes")
else:
  print("No")

a,b = map(int,input().split(" "))
if (a * b) % 2 == 1 or (a * b * 3) % 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//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: 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())
W=[]
for i in range(N):
  W.append(input())
for i in range(N-1):
  if W[i][-1] != W[i+1][0]:
    print('No')
    exit()
  for j in range(i+1, N):
    if W[i]==W[j]:
      print('No')
      exit()
print('Yes')

def LCM(m,n):
  for i in range(1,m+1)[::-1]:
    if n%i==0:
      return i
    
N,X=(int(i) for i in input().split(' '))
x=[int(i) for i in input().split(' ')]
x=[X]+x
x.sort()
D=x[1]-x[0]
for i in range(N):
  D=LCM(D,x[i+1]-x[i])
print(D)

def quick_sort(arr):
    left = []
    right = []
    if len(arr) <= 1:
        return arr

    
    # ref = random.choice(arr)
    ref = arr[0]
    ref_count = 0

    for ele in arr:
        if ele < ref:
            left.append(ele)
        elif ele > ref:
            right.append(ele)
        else:
            ref_count += 1
    left = quick_sort(left)
    right = quick_sort(right)
    return left + [ref] * ref_count + right

def LCM(m,n):
  for i in range(1,m+1)[::-1]:
    if n%i==0:
      return i
    
N,X=(int(i) for i in input().split(' '))
x=[int(i) for i in input().split(' ')]
x=[X]+x
x=quick_sort(x)
D=abs(x[1]-x[0])
for i in range(N):
  D=LCM(D,abs(x[i+1]-x[i]))
print(D)

s = [int(i) for i in input().split()]
if(s[0] * s[1] % 2 == 1):
    print("Yes")
else:
    print("No")

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 = int(input().split())

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

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

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


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

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


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

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


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):
x = input()
k=x.split(" ")

a = int(k[0])
b = int(k[1])

if (a*b)%2 != 0:
    #c=1
    print("YES")
else: #a*b=par
    print("NO")
    

C = 0
N = input()
num = N.split()
A = num[0]
B = num[1]
R = int(A) * int(B)
while C != 3:
    result = R * C
    if result % 2 == 0:
        C = C + 1
        if C == 3:
            print("no")
    elif result % 2 == 1:
        print("yes")
        C = 3


n = int(input())

words = []
for i in range(n):
    words.append(input())

ret = "Yes"
if len(set(words)) != n:
    ret = "No"
else:
    for i in range(n-1):
        if words[i][-1] != words[i+1][0]:
            ret = "No"
            break

print(ret)

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

Verdicts: Wrong Answer

Wrong Answer

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 functools import reduce

def gcd(a, b):

    if b == 0:
        return a
    else:
        return gcd(b, a % b)

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

N, X = map(int, input().split(" "))
Xi = [int(a) for a in input().split()]

def minusX(a):
    return abs(a-X)

Xi = map(minusX, Xi)

d = gcd_list(Xi)
print (d)

Print("Yes")

a, b = map(int, input().split(" "))
if a % 2 == 1 and b % 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):
def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


city_num, start_pos = list(map(int, input().split()))
city_list = list(map(int, input().split()))


city_list.append(start_pos)

city_list.sort()


distance_list = [city_list[i+1] - city_list[i] for i in range(city_num)]


if len(distance_list) == 1:
    print(distance_list[0])
    exit()


distance_list.sort()


max_gcd = gcd(distance_list[0], distance_list[1])
for i in range(2, len(distance_list)):
    max_gcd = gcd(max_gcd, distance_list[i])


print(max_gcd)


a, b = list(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().split())
flg = True
for i in range(1, 4):
    if (A * B * i) % 2 == 1:
        flg = False
        break
if flg == False:
    print('Yes')
elif == True:
    print('No')

A, B = map(int, input().split())
flg = True
for i in range(1, 4):
    if A * B * i % 2 == 1:
        flg = True
        break
if flg == False:
    print('Yes')
elif flg == True:
    print('No')

A, B = map(int, input().split())
flg = True
for i in range(1, 4):
    if A * B * i % 2 == 1:
        flg = False
        
if flg == False:
    print('Yes')
elif flg == True:
    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):
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== and b%2==0:
    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

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 % 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())
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 = map(int, input().split())

if A == 2 || 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):
N = int(input())
w =  [input() for i in range(N)]

valid = False

for i in range(1, N-1):
    if w[i-1][-1] == w[i][0] and len(set(w)) == len(w):
        valid = True
    else:
        valid = False

    print("Yes" if valid else "No")

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

judge = False
for c in range(1,4):
  if A*B*C %2 == 1:
    judge = True
   

  
if judge == True:
  print("Yes")
else:
  print("False")
      
    

A, B = map(int, input().split())
 
judge = False
for c in range(1,4):
  if (A*B*C) %2 == 1:
    judge = True
   
 
  
if judge == True:
  print("Yes")
else:
  print("No")
      

A, B = map(int, input().split())
 
judge = False
for C in range(1,4):
  if (A*B*C) %2 == 1:
    judge = True
   
 
  
if judge == True:
  print("Yes")
else:
  print("No")
      

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())
if a%2==0 or b%2==0:
  print("No")
else:
  priint("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().split())
if a*b%2:
    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):
if (a*b) % 2 == 0:
    print('No')
else:
    print('Yes') 

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: 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 any(a * b * c % 2 == 1 for c in range(1, 4)) else 'NO')


a, b = map(int, input().split())
print('Yes' if any(a * b * c % 2 == 1 for c in range(1, 4)) 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):
list1 = list(map(int,input().split()))
h = list1[0]
w = list1[1]
a = list()
i = 0
n = 0
ans = list()
while i <= h-1:
    a.append(list(map(int,input().split())))
    i += 1
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
            n+=1
            ans.append([i+1,j+1,i+1,j+2])
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])
        n+=1
print(n)
for i in range(n):
    print(ans[i][0],ans[i][1],ans[i][2],ans[i][3])


list1 = list(map(int,input().split()))
a = list1[0]
b = list1[1]
if a % 2 != 0:
    if b % 2 != 0:
        print('Yes')
    else:
        print('No')
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,C=map(int,input().split())

print(max(A,B,C)*9+A+B+C)  
  
  

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

if (A*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 and B%2==0:print('Yes')
else:print('No')

A,B=map(int,input().split())
if A%2==0 or B%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

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*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())
C = range(1, 4)
for c in C:
    if (A * B * c)%2 != 0:
        print('Yes')
    else:
        print('No')

A, B = map(int, input().split())
C = range(1, 4)
count = 0
for c in C:
    if (A * B * c)%2 != 0:
        count += 1
if count >= 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 * b % 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):
    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):
a,b=map(int,input().split())
if ab%2==0:
  print('NO')
else:
  print('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):
args = input().split(" ")
if args[0]*args[1]%2 == 0:
  print("No")
else:
  print("Yes")

count, init = tuple(map(int, input().split(" ")))
Xs = [init] + list(map(int, input().split(" ")))
l = [abs(Xs[i]-Xs[i+1]) for i in range(count)]
for i in range(2, min(l)+1)[::-1]:
    if max(map(lambda x: x%i, l)) == 0:
        print(i)
        exit(0)
print(1)

A, B = 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):
l = list(map(int,input().split().split()))
l.sort()
print(l[0]*10 +l[1]+l[2])

a,b = map(int,input())
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: 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 = [int(x) for x in input().split()]
if(A%2==0 or B%2===0):
  print('No')
else:
  print('Yes')

A,B = [int(x) for x in 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())

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):
s = raw_input()
a, b = s.split()

c = int(a) * int(b)
print 'YES' if c % 2 == 1 else 'NO'

n = int(input())

words = []
for i in range(n):
    words.append(input())

ret = "Yes"
if len(set(words)) != n:
    ret = "No"
else:
    for i in range(n-1):
        if words[i][-1] != words[i+1][0]:
            ret = "No"
            break

print(ret)
##17024960 | nowg's solution for [AtCoder-4250] [Problem A]

nums = input()

if '2' in nums:
    print("No")
else:
    print("Yes")
#17025159 | nowg's solution for [AtCoder-4250] [Problem A]

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):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
A,B = map(int, input().split())
if (A == 2) or (B == 2):
  print("Yes")
else:
  print("No")

#!/usr/bin/env python
# -*- coding: utf-8 -*-
A,B = map(int, input().split())
if (A = 2) or (B = 2):
  print("Yes")
else:
  print("No")

#!/usr/bin/env python
# -*- coding: utf-8 -*-
if (A = 2) or (B = 2):
  print("Yes")
else:
  print("No")


#!/usr/bin/env python
# -*- coding: utf-8 -*-
A,B = map(int, input().split())
if (A == 2) or (B == 2):
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

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('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('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 = 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())
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")

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):
A, B = map(int, input().split())
for C in [1, 2, 3]:
    if (A * B * C) % 2 == 1:
        print("YES")
        exit(0)
print("NO")


A, B = map(int, input().split())
for C in [1, 2, 3]:
    if (A * B * C) % 2 == 1:
        print("Yes")
        exit(0)
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 = (int(i) for i in input().split())
if a*b&2 == 1:print('Yes')
else: print('No')

a,b = (int(i) for i in input().split())
if (a*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):
print("Yes" if "2" in input() else "No")

print("Yes" if "2" not in input() 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):
N=int(input())
s=[input() for i in range(N)]
count=0
if(len(s)!=len(set(s))):
  count=1
else:
  for i in range(N-1):
    len_s=len(s[i])
    if(s[i][len_s-1]!=s[i+1][0]):
      count=1
      break
    else:continue
if(count==0):
	print('Yes')
else:print('No')

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

a,b=map(int,input().split())
print('No' if (a*b%2==0) else '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())
print(A,B)
if A==2 or B==2: print("No")
else: print("Yes")

A,B = input(),input()
if A==2 or B==2: print("Yes")
else: print("No")

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

Verdicts: Wrong Answer

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=map(int,input().split())
if a[0]!=2 and a[1]!=2:
  print("Yes")
else:
  print("No)

a=list(map(int,input().split()))
if a[0]!=2 and a[1]!=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):
print("NO" if eval(input().replace(" ","+"))%2==0 else "YES")

print("NO" if eval(input().replace(" ","*"))%2==0 else "YES")

print("No" if eval(input().replace(" ","*"))%2==0 else "Yes")

Verdicts: Wrong Answer

Wrong Answer

Accepted