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


A, B = mpa(int, input(),.split())
for c in range(1, 4):
    if (a * b * c) % 2 != 0:
        print('Yes')
        break
else:
    print('No')

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

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


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

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


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

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=(int(x) for x in input().split())
if a*b % 2 == 0:
  print('NO')
else:
  print('YES')
  

a,b=(int(x) for x in input().split())
if (a*b) % 2 == 0:
  print('NO')
else:
  print('YES')
  

a,b=(int(x) for x in 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())
X=A*B
if X%2==0:
	print("no")
else:
	print("yes")

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


Verdicts: 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 input().count("2")>0:
  print("Yes")
else:
  print("No")

if input().count("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):
print("YES" if all(int(i) % 2 for i in input().split()) else "NO")


A, B = map(int, input().split())
print("YES" if A * B % 2 else "NO")


A, B = map(int, input().split())
print("Yes" if A * B % 2 else "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())
print('YES') if a % 2 == 1 and b % 2 == 1 else print('NO') 

a, b = map(int, input().split())
print('Yes') if a % 2 == 1 and b % 2 == 1 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())

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

if a//2==0 and b//2==0:
  print(“YES”)

else:
  (“NO”)

a,b = (int(x) for x in input().split())

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

else :
    print("No")

Verdicts: Runtime Error

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

Submission attempts (in order):
a, b = [int(i) for i in input().split()]
if(a * b % 2 == 0):
  print("NO")
else:
  print("YES")

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 % 2 == 1)and(b % 2 == 1):
  print("YES")
else:
  print("NO")

a, b = [int(i) for i in input().split()]
if(a == 2 or b == 2):
  print("NO")
else:
  print("YES")

    a, b = [int(i) for i in input().split()]
    if(a == 2 or b == 2):
      print("No")
    else:
      print("Yes")

a, b = [int(i) for i in input().split()]
if((a * b) % 2 == 0):
  print("NO")
else:
  print("YES")

a, b = [int(i) for i in input().split()]
if(a == 2) or( b == 2):
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

import math
N, X = map(int, input().split())

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


t = abs(x[0] - X)
for a in x:
    
    t = math.gcd(t, a - X)
print(t)




#include <utility>
#include <numeric>
#include <functional>
#include <stdio.h>
#include <math.h>
#include <string>
#include <algorithm>
#include <deque>

#include <map>

#define rep(i, m, n) for (int (i)(m); (i)<(n); ++(i))
#define repr(i, m, n) for (int (i)(m - 1); (i)>=(n); --(i))
#define repv(i, v) for (unsigned (i)(0); (i)<(v.size()); ++(i))
#define all(v) (v).begin(), (v).end()
#define sortv(v) sort(all(v))
#define sortgi(v) sort(all(v), greater<int>())
#define sortgd(v) sort(all(v), greater<double>())
#define sortgll(v) sort(all(v), greater<ll>())


using namespace std;
using pii = pair<int, int>;
using pss = pair<string, string>;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using vd = vector<double>;
using vvd = vector<vd>;
using vs = vector<string>;
using ll = long long;
using pllll = pair<ll, ll>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvvb = vector<vvb>;
using vpii = vector<pii>;
using pqi = priority_queue<int>;
using pqd = priority_queue<double>;
using pqll = priority_queue<ll>;
using pqvi = priority_queue<vi>;
using pqvll = priority_queue<vll>;

int main() {
	int a, b;
	cin >> a >> b;
	if (a % 2 == 0 || b % 2 == 0) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}
}



import math
N, X = map(int, input().split())

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


t = x[0] - X
for a in x:
    
    t = math.gcd(t, a - X)
print(t)



import math
N, X = map(int, input().split())

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


t = x[0] - X
for a in x:
    
    t = math.gcd(t, abs(a - X))
print(t)


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

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

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

word = []
for i in range(N):
    word.append(input())

for i in range(N - 1):
    if word.count(word[i]) != 1:
        print('No')
        exit()

for i in range(1, N):
    if word[i][0] != word[i - 1][-1]:
        print('No')
        exit()

print('Yes')


N = int(input())

word = []

for i in range(N):
    word.append(input())

for i in range(N - 1):
    if word.count(word[i]) != 1:
        print('No')
        exit()


for i in range(1, N ):
    if word[i][0] != word[i - 1][-1]:
        print('No')
        exit()

print('Yes')



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

AB = A * B

for C in range(1, 4):
    if (AB * C) % 2 == 1:
        print('Yes')
        exit()

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):
import sys
def input():
    return sys.stdin.readline()[:-1]
A,B = map(int,input().split(' '))
if (A*B)%2:
    print('No')
else:
    print('Yes')

import sys
def input():
    return sys.stdin.readline()[:-1]
A,B = map(int,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 = int(input())
flag = False
for C in range(1,4):
  if (A*B*C)%2 == 1:
    flag = True
    break
print("Yes") if flag else print("No")

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

A_B = A*B % 2

if A_B == 0:
    print("No")
else:
    print("Yes")

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

A_B = (A*B) % 2

if A_B == 0:
    print("No")
else:
    print("Yes")

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

A_B = (A*B) % 2

if A_B == 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("NO" if a % 2 == 0 and b % 2 == 0 else "YES")

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

N = int(input())
list = []
flag = True
for n in range(0, N):
  input = input()
  if n == 0:
    list.append(input)
  else:
    if input in list:
      flag = False
    else:
      list.append(input)
if flag == True:
  print('Yes')


N = int(input())
ls = []
flag = True
for n in range(0, N):
  char = raw_input()
  if n == 0:
    ls.append(char)
  else:
    if char in ls:
      flag = False
    else:
      ls.append(char)
if flag == True:
  print('Yes')
else:
  print('No')

N = int(input())
ls = []
flag = True
for n in range(0, N):
  char = input()
  if n == 0:
    ls.append(char)
  else:
    if char in ls:
      flag = False
    else:
      ls.append(char)
if flag == True:
  print('Yes')


a, b = map(int, input().split())
for n in range(1, 4):
  if a*b*c % 2 == 1:
    return 'Yes'
return 'No'

N = int(input())
list = []
flag = True
for n in range(0, N):
  char = input()
  if n == 0:
    list.append(char)
  else:
    if char in list:
      flag = False
    else:
      list.append(char)
if flag == True:
  print('Yes')


N = int(input())
list = []
flag = true
for n in range(0, N):
  input = input()
  if n == 0:
    list.append(input)
  else:
    if input in list:
      flag = false
    else:
      list.append(input)
if flag == true:
  print('Yes')


a, b = map(int, input().split())
for c in range(1, 4):
  if a*b*c % 2 == 1:
    print('Yes')
    break
  else:
    if c == 3:
      print('No')


Verdicts: 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,c=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())
if a % 2 == 0 and b % 2 == 0:
  print("Yes")
else:
  print("No")

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

Verdicts: Wrong Answer

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

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

a, b = list(map(int, input().split())) 
print('Yes') if (a*b)%2==1 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):
aimport sys

def main():
  input = sys.stdin.readline
  a, b = map(int, input().split())
  if (a % 2 == 1) and (b % 2 == 1):
    print('Yes')
  else:
    print('No')


if __name__ == '__main__':
  main()

import sys

def main():
  input = sys.stdin.readline
  a, b = map(int, input().split())
  if (a % 2 == 1) and (b % 2 == 1):
    print('Yes')
  else:
    print('No')


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

ans1 = a * B
ans2 = a* b * 2
ans3 = a * b* 3

if ans1%2 == 1:
    print('Yes')
elif ans2%2 ==1:
    print('Yes')
elif ans2%2 ==1:
    print('Yes')
else:
    print("No")

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

ans1 = a * B
ans2 = a* b * 2
ans3 = a * b* 3

if ans1%2 == 1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
else:
    print("No")

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

ans1 = a * b
ans2 = a* b * 2
ans3 = a * b* 3

if ans1%2 == 1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
elif ans2%2 ==1:
    print('Yes')
    exit
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 main(t):
    if "2" in t:
        print("Yes")
    else:
        print("No")

t = input()
main(t)

def main(t):
    if "2" in t:
        print("No")
    else:
        print("Yes")

t = input()
main(t)


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('YNeos'[1-'2'in input()::2])

print('YNeos'[1-eval(input().replace(' ','*'))&1::2])

Verdicts: Runtime Error

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

Submission attempts (in order):
A, B = map(int, input().split())
for i in range(4):
  if A * B * i %2 == 1:
    print('Yes')
else:
  print('No')

A, B = map(int, input().split())
for i in range(1, 4):
  if A * B * i %2 == 1:
    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):

def gcd(a, b):
    if a < 0:
        a = -a
    if b < 0:
        b = -b
    if a < b:
        a, b = b, a
    if b == 0:
        return a
    c = a % b
    return gcd(b, c)
 

def reduce(function, iterable, initializer=None):
    it = iter(iterable)
    if initializer is None:
        value = next(it)
    else:
        value = initializer
    for element in it:
        value = function(value, element)
    return value

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

N, X = list(map(int, input().split()))
xs = list(map(int, input().split()))
ys = [x - X for x in xs]

print(gcd_list(ys))

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

if m % 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 % 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())

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):
import sys
def LI(): return [int(x) for x in sys.stdin.readline().split()]


a, b = LI()

if a % 2 == b % 2 == 1:
    print('yes')
else:
    print('no')


import sys
def LI(): return [int(x) for x in sys.stdin.readline().split()]


a, b = LI()

if a % 2 == 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 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=int(input())
res='Yes'
if a*b ==0: res='No'
if a*b >3: res='No'
print(res)

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

using namespace std;
int main(void){
  int a,b;
  cin>>a>>b;
  if(a*b%2==0){
    cout<<"No"<<endl;
  }
  else{
    cout<<"Yes"<<endl;
  }
  return 0;
}


#coding:utf-8
n=[int(i) for i in input().split()]
if(n[0]*n[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 a * b % 2 == 0:
  print('NO')
else:
  print('YES')

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
a,b=map(int,input().split())
flg = 0
for i in range(3):
    if (a*b*(i+1))%2 != 0:
        flg = 1
        print ((a*b*(i+1))%2)
if flg == 1:
    print('Yes')
else:
    print('No')

a,b=map(int,input().split())
flg = 0
for i in range(3):
    if (a*b*(i+1))%2 != 0:
        flg = 1
if flg == 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=list(input().split())
b=int(a[0])
c=int(a[1])
d=int(b*c)
if d%2==0:
  print("Yes")
else:
  print("No")

a=list(input().split())
b=int([0])
c=int([1])
if (b*c)%2==0:
  print("Yes")
else:
  print("No")

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

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

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

d=a*b

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

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

if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    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=map(int,(input('1以上３以下の整数でA,Bの値を入力してください。').split()))




for C in range(1,4):
    if A*B*C%2==1:
        print('Yes')
        break
        
        
else:
    print('No')

A,B=map(int,(input('1以上３以下の整数でA,Bの値を入力してください。').split()))
flg=True


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

if flg==False:
    print('Yes')
elif flg==True:
    print('No')

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

for C in range(1,4):
    if A*B*C%2==1:
        count=count+1

if count>=1:
    print('Yes')

elif count==0:
    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 = [int(i) for i in input().split()]
if a%2==0 and b%2==0:
  print('Yes')
else:
  print('No')

a,b = [int(i) for i in input().split()]
if a%2==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 * 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 * 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):
list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3

if abc_0 in [1, 2, 3, 5, 7, 9]:
    print("YES")
elif abc_1 in [1, 2, 3, 5, 7, 9]:
    print("YES")
elif abc_2 in [1, 2, 3, 5, 7, 9]:
    print("YES")
else:
    print("NO")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = (list1_0 * list1_1 * 1) / 3
abc_1 = (list1_0 * list1_1 * 2) / 3
abc_2 = (list1_0 * list1_1 * 3) / 3

if abc_0 in [1, 3, 5, 7, 9]:
    print("YES")
elif abc_1 in [1, 3, 5, 7, 9]:
    print("YES")
elif abc_2 in [1, 3, 5, 7, 9]:
    print("YES")
else:
    print("NO")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3

if abc_0 in [3, 9, 15, 21, 27]:
    print("YES")
elif abc_1 in [3, 9, 15, 21, 27]:
    print("YES")
elif abc_2 in [3, 9, 15, 21, 27]:
    print("YES")
else:
    print("NO")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3

if abc_0 in [1, 3, 5, 7, 9]:
    print("YES")
elif abc_1 in [1, 3, 5, 7, 9]:
    print("YES")
elif abc_2 in [1, 3, 5, 7, 9]:
    print("YES")
else:
    print("NO")

list1 = [int(a) for a in input().split()]
list1_0 = list1[0] #A
list1_1 = list1[1] #B

abc_0 = list1_0 * list1_1 * 1
abc_1 = list1_0 * list1_1 * 2
abc_2 = list1_0 * list1_1 * 3

if abc_0 in [3, 9, 15, 21, 27]:
    print("Yes")
elif abc_1 in [3, 9, 15, 21, 27]:
    print("Yes")
elif abc_2 in [3, 9, 15, 21, 27]:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a,b= map(int,input().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):
ans = False
inp = input()
inp = inp.split()
inp = [int(x) for x in inp]
for i in range(1, 4):
    a = inp[0] * inp[1] * i
    if a % 2 != 0:
        ans = True
        break
print(ans)

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

if '2' in input().split(): 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(lambda x: int(x), input().split())

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

a, b = map(lambda x: int(x), input().split())

if (a == 1 or a ==3) and (b == 1 or b ==3):
  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())
C = 1
flag = False

while C >= 3 :

    if (A * B * C) % 2 == 1:
        flag = True
        break
    
    C += 1

if flag == True:
    print("Yes")

else:
    print("No")

A, B = (int(i) for i in input().split())
C = 1
flag = False

while (C <= 3):

    if ((A*B*C)%2 == 1):

        flag = True
        break
    
    C += 1


if flag == True:

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

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

a,b = map(int,input().split())
print('No' if a==2 or b==2 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*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().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

Runtime Error

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

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 gcd(a,b):
    if b == 0:
        return a
    else:
        return gcd(b,a%b)

n,x = map(int,input().split())
lstx = [int(i) for i in input().split()]

g = abs(lstx[0]-x)
for i in range(1,n): g = gcd(g,abs(lstx[i]-x))

print(g)

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

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):
def gcd(a, b):
    while b != 0:
        a, b = b, a%b
    return a


def main():
    N, X = map(int, input().split())
    x = [abs(int(i) - X) for i in input().split()] 

    y = x[0]
    for i in range(N):
        if x[i]%y == 0:
            continue
        y = gcd(y, x[i])
    print(y)


if __name__ == '__main__':
    main()

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):
C = map(str, input().replace(" ", ""))
if "2" in c:
    print("No")
else:
    print("Yes")

C = input().replace(" ", "")
if "2" in c:
    print("No")
else:
    print("Yes")

C = map(str, input().split())
if "2" in c:
    print("No")
else:
    print("Yes")

C = map(str, input().split())
if "2" in c:
    print("No")
else:
    print("Yes")

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

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

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

A = input().split()
if A[0] == 2 or A[1] == 2:
    print(No)
else:
    print(Yes)

A = input().split()
A[0] = int(A[0])
A[1] = int(A[1])
if A[0] == 2 or A[1] == 2:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
import math

N,X = map(int,input().split())
x = list(map(int,input().split()))
if N == 1:
    print(abs(x[0] - X))
else:
    xlen = [abs(x[0]-X)]
    for i in range(N-1):
        xlen.append(x[i+1]- x[i])
    ans = xlen[0]
    for i in range(N-2):
        ans = math.gcd(ans,xlen[i+1])
    print(ans)

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):
A,B = map(int,input())
check = False
for C in range(1,4):
  if (A * B * C) % 2 == 1:
    check = True
    
print("Yes" if check else "No")

A,B = map(int,input().split())
check = False
for C in range(1,4):
  if (A * B * C) % 2 == 1:
    check = True
    
print("Yes" if check 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())
for i in range(1,4):
  if (a*b*i)%2!=0:
    print("Yes")
	exit()
print("No")

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


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


a,b=map(int, input().split())
print('Yes' if a * b % 2 == 1 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):
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):
if int(input())*int(input()) in [4,6,9]:
  print('No')
else:
  print('Yes')
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    '

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

if A*B in [4,6,9]:
  print('No')
else:
  print('Yes')
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    '

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

if A*B in [2,4,6]:
  print('No')
else:
  print('Yes')

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
A, B = map(int, input().split())
if A % 2 == 0 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):
list1 = list(map(int, input().split()))
n = list1[0]
x = list1[1]
list2 = list(map(int, input().split()))
list2.append(x)
list2.sort()

list3 = []
length = len(list2)
index =1
while index < length:
    list3.append(list2[index]-list2[index-1])
    index+=1

list3.sort()
mimN = list3[0]
ans =0
index2 =mimN
if len(list3) ==1:
    print(mimN)
else:
    flag2 =0
    for number in list3:
       if number%mimN !=0:
           flag2 =1
    if flag2 ==0:
        print(mimN)
    else:
        while index2>=1:
            flag=1
            for number in list3:
                if number%index2 ==0:
                    flag =1
            if flag ==1:
                ans = index2
                break
            index2-=1
            
        print(ans)

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a, b = map(int, input())
if a * b % 2:
  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):
A,B=map(int(input()))
if A==2 or B==2:
  print('No')
else:
  print('Yes')

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

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

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
N,X=map(int,input().split())
x=list(map(int,input().split()))
x=[abs(X-c) for c in x]
import math
from functools import reduce

def gcd(*numbers):
    return reduce(math.gcd, numbers)
D=gcd(*x)
print(D)

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a, b = int(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 * 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 = list(map, (int, input().split()))

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

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

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

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

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

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

judge=0
for i in range(1,4):
	if (j+k+i)*2==1:
      judge=1
if judge==1:
  print ("Yes")
else:
  print ("No")

judge=0
for i in range(1,4):
	if (A+B+i)*2==1:
      judge=1
if judge==1:
  print ("Yes")
else:
  print ("No")

judge=0
j,k=A,B
for i in range(1,4):
	if (j+k+i)*2==1:
      judge=1
if judge==1:
  print ("Yes")
else:
  print ("No")

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

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

if judge==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):
#abc109 a 
a,b=map(int,input().split())
flag=False
for c in range(1,4):
    x=a*b*c 
    if x%2==1:
        flag=True
        break
if flag:
 	print("Yes")
 else:
 	print("No")

#abc109 a
a,b=map(int,input().split())
flag=False
for c in range(1,4):
    x=a*b*c
    if x%2==1:
        flag=True
        break
if flag:
 	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 fractions
n,x=map(int,input().split())
a=list(map(int,input().split()))
ans=abs(x-a[0])
a.sort()
if n==1:
    print(abs(x-a[0]))
else:
    cnt=abs(a[1]-a[0])
    for j in range(n-1):
        cnt=min(abs(a[j+1]-a[j]),cnt)
    for i in range(n):
        ans=min(abs(x-a[i]),ans)
    print(min(ans,cnt))
    

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

Verdicts: Runtime Error

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

Submission attempts (in order):
print('No'*'2'in input()or'Yes')

print('YNeos'['2'in input()::2])

Verdicts: Runtime Error

Accepted