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):
n, x = map(int, input().split())
a = list(map(int, input().split()))
if n == 1:
    print(abs(x-a[0]))
    exit()
a.sort()
else:
    box = [a[i+1]-a[i] for i in range(n-1)]
    b = min(box)
    for i in range(1,b+1):
        for j in range(n-1):
            if box[j]%i:
                break
            if j == n-2:
                ans = i
    d = abs(x-a[0])
    if ans <= d:
        for i in range(1,ans+1):
            if d%i:
                continue
            else:
                temp = i
        print(temp)
    else:
        for i in range(1,d+1):
            if ans%i:
                continue
            else:
                temp = i
        print(temp)



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

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")

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

if (A * B) % 2 == 0 :
  print('no')
else :
  print('yes')


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

if (A * B) % 2 == 0 :
  print('yes')
else :
  print('no')


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

if (A * B) % 2 == 0 :
  print('no')
else :
  print('yes')


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')


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

if (A * B) % 2 == 0 :
  print('no')
else :
  print('yes')


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

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

Wrong Answer

Runtime Error

Runtime Error

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,c=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().split())
if a*b%2 == 0:
    print("Yes")
    exit()
print("No")

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

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,B=(int(x) for x in input().split())
ans = False
for C in range(1,4):
    if A*B*C%2!=0:
        ans=True
        break
print(ans)

A,B=(int(x) for x in input().split())
ans = 'No'
for C in range(1,4):
    if A*B*C%2!=0:
        ans='Yes'
        break
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):
print("Yes" if input() in "2" else "No")

print("No" if "2" in input() 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 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())
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):
# -*- coding:utf-8 -*-

s = input().split()

if s[0] % 2 == 0 or s[1]%2 == 0:
  print("No")

else:
  print("Yes")

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

s = [int(i) for i in input().split()]


if s[0]*s[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):
ab = input()
a,b = ab.split()
a = int(a)
b = int(b)
 
if a%2 == 1 and b%2 == 1:
  print(Yes)
else:
  print(No)

ab = input()
a,b = ab.split()
a = int(a)
b = int(b)
 
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):
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

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


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

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

a,b,c = 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

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

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

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

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())
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

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

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

if (a*b % 2 == 1):print("Yes")
elif (a*b*2 % 2 == 1):print("Yes")
elif (a*b*3 % 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*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())
C = [1,2,3]

for i in C:
  if A*B*C % 2 == 1:
    print("Yes")
    exit()
print("No")


A,B = map(int,input().split())
C = [1,2,3]

for i in C:
  if (A*B*i) % 2 == 1:
    print("Yes")
    exit()
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,s,c=int(input());print(["No","Yes"][a*c%2])

print(["Yes","No"]["2"in input()])

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())
c = list(map(int, input().split()))
c = set([abs(x-c[i]) for i in range(n)])
l = min(c)
f = set()
for i in range(1, l+1):
    if l % i == 0:
        f.add(i)
for i in range(len(f), 0, -1):
    d = True
    for item in c:
        if item % i != 0:
            d = False
    if d:
        print(i)
        break

n, x = map(int, input().split())
c = list(map(int, input().split()))
c = set([abs(x-c[i]) for i in range(n)])
l = min(c)
for i in range(l, 0, -1):
    d = True
    for item in c:
        if item % i != 0:
            d = False
    if d:
        print(i)
        break

n, x = map(int, input().split())
c = list(map(int, input().split()))
c = set([abs(x-c[i]) for i in range(n)])
l = min(c)
for i in range(l+1, 0, -1):
    if l % i == 0:
        d = True
        for item in c:
            if item % i != 0:
                d = False
        if d:
            print(i)
            break

n, x = map(int, input().split())
c = list(map(int, input().split()))
c = set([abs(x-c[i]) for i in range(n)])
l = min(c)
f = [l]
if l < 999999999:
    for i in range(1, l):
        if l % i == 0:
            f.append(i)
for i in range(len(f), 0, -1):
    d = True
    for item in c:
        if item % f[i-1] != 0:
            d = False
    if d:
        print(f[i-1])
        break


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

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

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

if a[0] * a[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):
li = list(map(int, input().split()))
if 2 in li:
	print('Yes')
else:
	print('No')

li = list(map(int, input().split()))
if 2 in li:
	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 = list(map(int,input().split()))
print("{}".format("YES" if (a*b)%2 == 1 else "NO"))

a, b = list(map(int,input().split()))
print("{}".format("Yes" if (a*b)%2 == 1 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):
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(A: int, B: int):
    if (A*B) % 2 == 0:
        print("Yes")
    else:
        print("No")
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()


#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str

def solve(A: int, B: int):
    if (A*B) % 2 == 0:
        print(NO)
    else:
        print(YES)
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(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 and c != 2:
	print("Yes")
else:
	print("No")

a, b = map(int, input().split())
if a != 2 and 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):
it = input().split()
i1 = int(it[0])
i2 = int(it[1])
for i in range(1, 4):
    print(i1, i2, i)
    print(i1 * i2 * i)
    if (i1 * i2 * i)%2 == 1:
        print('Yes')
        exit()
print('No')


it = input().split()
i1 = int(it[0])
i2 = int(it[1])
for i in range(1, 4):
    if (i1 * i2 * i)%2 == 1:
        print('Yes')
        exit()
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("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):
print("Yes"if (int(input())+int(input()))%2==0 else"No")

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

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: 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*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):

#                         created: 2019-11-10 12:28:14(JST)
### modules
## from standard library
import sys
# import collections
# import math
# import string

# import re
# import itertools
# import statistics
# import functools

## from external libraries


# import numpy as np 

def main():
    a, b = (int(x) for x in sys.stdin.readline().split())
    if (a * b) % 2 !- 0:
        ans = 'Yes'
    else:
        ans = 'No'
    
    print(ans)


if __name__ == "__main__":
    # execute only if run as a script
    main()


import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    ans = 'Yes' if a * b & 1 else 'No'
    print(ans)

if __name__ ==  '__main__':
    main()

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())
    result = True
    used = {str(input()): 0}
    for order in range(1,n):
        word = str(input())
        if word in used or list(used.keys())[order - 1][-1] != word[0]:
            result = False
            break
        else:
            used.setdefault(word,0)
    print("Yes" if result else "No")
        
if __name__ == "__main__":
    main()

def main():
    n = int(input())
    result = True
    used = {str(input()): 0}
    for order in range(1,n):
        word = str(input())
        if word in used or sorted(used.keys())[order - 1][-1] != word[0]:
            print('NO')
            result = False
            break
        else:
            used.setdefault(word,0)
    if result:
        print('Yes')
        
if __name__ == "__main__":
    main()

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

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

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


# AtCoder
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 % 2 != 0 else "NO")

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

a,b=map(int,input().split())
print("Yes" if a*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):
s = input().split()
i = s.count("2")
print("NO") if i>0 else print("YES")

s = input().split()
i = s.count("2")
print("NO") if i>0 else  print("YES")

s = input().split()
i = s.count("2")
print("No") if i>0 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 = int(input().split())
if A * B % 2 == 0:
    print("No")
else:
    print("Yes")


import math

N,X = map(int,input().split())
x = list(map(int,input().split()))
distance = []

for i in x:
    distance.append(abs(i-X))

while len(distance) > 1:
        cd = math.gcd(distance[0],distance[1])
        del distance[0]
        del distance[0]
        distance.append(cd)

print(distance[0])


import math

N,X = map(int,input().split())
x = list(map(int,input().split()))
distance = []

for i in x:
    distance.append(abs(i-X))



A,B = map(int, input().split())
if A * 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):
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):
t = map(int, input().split())
if t[0]＊t[1] % 2 == 0:
  print("No")
else:
  print("Yes")

t = map(int, input().split())
if t[0]＊t[1] % 2 == 0:
 print("No")
else:
 print("Yes")

t = input().split()
  if t[0]＊t[1] % 2 == 0:
    print("No")
  else:
    print("Yes")

t = map(int, input().split())
  if t[0]＊t[1] % 2 == 0:
    print("No")
  else:
    print("Yes")

s, t = map(int, input().split())
if s * t % 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):
N, X = map(int, input().split())
 
arr = [int(_) for _ in input().split(' ')]
arr.sort()
 
a = arr[-1]**5
 
 
for i in range(N-1):
    if abs(arr[i+1]-arr[i]) < a:
        a = abs(arr[i+1]-arr[i])
 
for j in range(N):
    if abs(arr[j] - X) < a:
        a = abs(arr[j] - X)
 
print(a)


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


a, b = map(int, input().split())
if a & 1 and b & 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):
#109
a,b=map(int,input().split())
if a*b%2==0:
  print('Yes')
else:
  print('No')

#109
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!=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):
def gcd(x, y):
    r = modlog(x, y)
    while r != 0:
        x = y
        y = r
        r = modlog(x, y)
    return y

def modlog(x, y):
    r = x % y
    return r

if __name__ == '__main__' :
    N,X = map(int, input().split())
    x = list(map(int, input().split()))

    dist_list = [abs(d-X) for d in x]

    if len(dist_list) == 1:
        print (dist_list[0])
        exit()
        
    alpha = gcd(dist_list[0],dist_list[1])
    for d in dist_list:
        alpha = gcd(alpha,d)

    print(alpha)        


from math import gcd
import functools

if __name__ == '__main__' :
    N,X = map(int, input().split())
    x = list(map(int, input().split()))

    dist_list = [abs(d-X) for d in x]

    print(functools.reduce(gcd, dist_list))

from fraction import gcd

if __name__ == '__main__' :
    N,X = map(int, input().split())
    x = list(map(int, input().split()))

    dist_list = [abs(d-X) for d in x]

    alpha = gcd(dist_list[0],dist_list[1])
    for d in dist_list:
        alpha = gcd(alpha,d)

    print(alpha)

def gcd(x, y):
    r = modlog(x, y)
    while r != 0:
        x = y
        y = r
        r = modlog(x, y)
    return y

def modlog(x, y):
    r = x % y
    return r

if __name__ == '__main__' :
    N,X = map(int, input().split())
    x = list(map(int, input().split()))

    dist_list = [abs(d-X) for d in x]

    alpha = gcd(dist_list[0],dist_list[1])
    for d in dist_list:
        alpha = gcd(alpha,d)

    print(alpha)

if __name__ == '__main__' :
    A,B = list(map(int, input().split()))
    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):
n,x = map(int, input().split())
l = [ abs(i - x) for i in list(map(int, input().split()))]
l.sort(reverse=True)
if len(l) == 1:ans = l[0]
else:
  while len(l) != 1:
    l = list(set(l))
    l = [ l[i] - l[i+1] for i in range(len(l) - 1)]
  ans = l[0]
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):
listA=list(map(int,input().split()))
A=listA[0]
B=listA[1]
if(A*B%2==0):
    print("no")
else:
    print("yes")

listA=list(map(int,input().split()))
A=listA[0]
B=listA[1]
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 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

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 == 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())
if a % 2 == 0 or 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")


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

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 math
num=int(input())
a,b=num.split()

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

import math
num=int(input())
a,b=num.split()

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

import math
num=int(input())
a,b=num.split()

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

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

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

import math
num=input()
a,b=int(num.split())

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

import math
num=input().split()
a=int(num[0])
b=int(num[1])

if a!=2 and b!=2:
    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):
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=list(map(int,input().split())

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



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

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

T = [int(a) for a in input().split()]
if (T[0]*T[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(' ')))

if sum(num) < 2 or 6 < sum(num):
    raise ValueError('Input value is more than 1 and less than 3.')

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


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

if sum(num) < 2 or 6 < sum(num):
    raise ValueError('Input value is more than 1 and less than 3.')

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


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

if a + b < 2 or 6 < a + b:
    raise ValueError('Input value is more than 1 and less than 3.')

print('Yes' if (a * b) % 2 == 1 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):
a, b = map(int, input().split())
ab = a * b
if ab % 2 == 0:
    print('No')
elif (ab * 3) % 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: 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):

using namespace std;

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

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("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: 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):
(H, W) = map(int, input().split())
a = []
for i in range(H):
    a.append(list(map(int, input().split())))
#print("a: ")
#print(a)

odd_flag = []
for i in range(len(a)):
    odd_flag.append(list())
    for j in range(len(a[i])):
        if a[i][j]%2 != 0:
            odd_flag[i].append(True)
        else:
            odd_flag[i].append(False)
#print("odd_flag: ")
#print(odd_flag)

odd_sum = 0
for i in range(len(odd_flag)):
    odd_sum += odd_flag[i].count(True)
#print(odd_sum)

s_h = 0
s_w = 0
move_flag = False

def move(h, w):
    if h%2 == 0:
        if w == W-1:
            return (h+1, w)
        else:
            return (h, w+1)
    else:
        if w == 0:
            return (h+1, w)
        else:
            return (h, w-1)

N = 0
ans = ""
while odd_sum >= 2:
    
    if move_flag is True and odd_flag[s_h][s_w] is True:
        move_flag = False
        (s_h, s_w) = move(s_h, s_w)
        odd_sum -= 2
        N += 1
    
    elif move_flag is True and odd_flag[s_h][s_w] is False:
        ans += str(s_h+1) + " " + str(s_w+1) + " "
        (s_h, s_w) = move(s_h, s_w)
        ans += str(s_h+1) + " " + str(s_w+1) + "\n"
    
    elif move_flag is False and odd_flag[s_h][s_w] is False:
        (s_h, s_w) = move(s_h, s_w)
    
    elif move_flag is False and odd_flag[s_h][s_w] is True:
        move_flag = True
        ans += str(s_h+1) + " " + str(s_w+1) + " "
        (s_h, s_w) = move(s_h, s_w)
        ans += str(s_h+1) + " " + str(s_w+1) + "\n"

print(N)
#print(ans[0:-1])
    



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


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(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=map(int,input().splite())
if a%2==0 or b%==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%==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: Runtime Error

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):
if __name__ == '__main__':
    a = input().spit()
    if a[0]%2 == 1 and a[1]%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%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):
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):
N,X = map(int, input().split())
def myabs(i):
    return abs(i-X)
xlis = list(map(myabs, map(int, input().split())))

from fractions import gcd

res = xlis[0]
for i in xlis:
    if i%res == 0:
        continue
    res = gcd(i,res)

print(res)

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):
#! /usr/bin/env python3
# -*- coding: utf-8 -*-

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

#! /usr/bin/env python3
# -*- coding: utf-8 -*-

A,B = [int(x) for x in 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):
int A, B, C
if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

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

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

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

if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C == 3:
  print("Yes")

A, B = map(int, input())
int C

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

A, B = int(input())
int C

if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

int C
A, B = [int(i) for i in input().split()]

if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

A, B = [int(i) for i in input().split()]
int C

if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

int A, B, C
A = input()
B = input()
if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

int C
A = int(input())
B = int(input())
if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C ==3:
  print("Yes")

int i, t
A, B = int(input(i, t))
int C

if A == 2 or B == 2:
  print("No")
  
elif C == 1 or C == 3:
  print("Yes")

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

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

Runtime Error

Runtime Error

Runtime Error

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==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")
elif (a*b*3)%2!==0:
  print("Yes")
  
else:
  print("No)

a,b=map(int,input().split())
if (a*b)%2!=0:
  print("Yes")
elif (a*b*3)%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):
line = input()
a, b = [int(n) for n in line.split()]

if(a==2 or b==2):
    print('NO')
else:
    print('YES')

a, b = map(int, input().split())
for i in range(1, 4):
    if (i * a * b) % 2 != 0:
        print("YES")
        quit()
print("NO")


x = input()
a = {}
a = [int(i) for i in x.split()]

y = {1, 2, 3}

c = y.difference(a)
a = list(a)

mult = a[0] * a[1]
c = list(c)[0]
flag = False
for i in y:
    if (mult * i) % 2:
        flag = True
if flag:
    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):
A, B = map(int, input().split())
if A % 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,s=map(int,input().split())
if a!=2 and s!=2!
    print('YES')
    
else:
    print('NO')


a,s=map(int,input().split())
if a==2 or s==2:
    print('NO')
else:
    print('YES')

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


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


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


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted