ZhenlongDai/ACPR huggingface dataset:
Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num,time = map(int, input().split())
times = [int(n) for n in input().split()]
start = 0
stop = time
total = 0
for i in range(1,num):
    if times[i]<stop:
        total += times[i]-times[i-1]
    else:
        total += stop-times[i-1]
    stop = times[i]+time
total += times[-1]+time
print(total)


Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
10


Fixed submission (verdict: Accepted):
num,time = map(int, input().split())
times = [int(n) for n in input().split()]
stop = time
total = 0
for i in range(1,num):
    if times[i]<=stop:
        total += times[i]-times[i-1]
    else:
        total += stop-times[i-1]
    stop = times[i]+time
total += time
print(total)

Problem: p03731
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in range(n-1):
  ans+=min(t,a[i+1]-a[i])
ans+=a[-1]
print(ans)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=t
for i in range(n-1):
  ans+=min(t,a[i+1]-a[i])
print(ans)

Problem: p03731
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,T=map(int,input().split())
List = list(map(int, input().split()))
res = 0
for i in range(1,N):
  sumsum = List[i]-List[i-1]
  if sumsum >= T:
    res += T
  else:
    res += sumsum
print(res)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
N,T=map(int,input().split())
List = list(map(int, input().split()))
res = 0
for i in range(1,N):
  sumsum = List[i]-List[i-1]
  if sumsum >= T:
    res += T
  else:
    res += sumsum
res += T
print(res)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in range(1,n):
  ans+=min(a[i]-a[i-1],t)
print(ans)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
n,t=map(int,input().split())
a=list(map(int,input().split()))
ans=0
for i in range(1,n):
  ans+=min(a[i]-a[i-1],t)
print(ans+t)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))

X = 0
Time = 0

for i in range(N):

    if Time <= t[i]:
        X += T
        Time = t[i] + T

print(X)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
4


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))

X = 0
Time = 0

for i in range(N):

    if Time <= t[i] :
        X += T

    else:
        X += t[i] - t[i-1]

    Time = t[i] + T

print(X)
Problem: p03731
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,T=map(int,input().split())
t=list(map(int,input().split()))
t.append(10**10)
ans=0
flg=0
for i in range(N):
  if t[i]+T > t[i+1]:
    if flg==0:
      flg=t[i]
    continue
  else:
    if flg==0:
      ans+=T
    else:
      ans+=t[i]-flg+T
    flg=0
print(ans)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
4


Fixed submission (verdict: Accepted):
N,T=map(int,input().split())
t=list(map(int,input().split()))
t.append(10**10)
ans=0
flg=0
temp=0

for i in range(N):
  if t[i]+T > t[i+1]:
    if flg==0:
      temp=t[i]
      flg=1
    continue
  else:
    if flg==0:
      ans+=T
    else:
      ans+=t[i]-temp+T
    flg=0
print(ans)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T
    print(leng)




print(leng)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
4
7
7


Fixed submission (verdict: Accepted):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T






print(leng)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, T = map(int, input().split())
T_lst = list(map(int, input().split()))

ans = 0

for i in range(N):
    if T_lst[i] <= T_lst[i - 1] + T:
        ans += T_lst[i] - T_lst[i - 1]
    else:
        ans += T

ans += T
print(ans)



Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
4


Fixed submission (verdict: Accepted):

N, T = map(int, input().split())
T_lst = list(map(int, input().split()))

ans = 0

for i in range(1, N):
    if T_lst[i] <= T_lst[i - 1] + T:
        ans += T_lst[i] - T_lst[i - 1]
    else:
        ans += T

ans += T
print(ans)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int,input().split())
t = list(map(int,input().split()))

X = 0

for i in range(N-1):
    X += min((t[i+1]-t[i]), T) 
    
print(X+7)


Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
10


Fixed submission (verdict: Accepted):
N, T = map(int,input().split())
t = list(map(int,input().split()))

X = 0

for i in range(N-1):
    X += min((t[i+1]-t[i]), T) 
    
print(X+T)
Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T
    
print(leng)




print(leng)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
7
7


Fixed submission (verdict: Accepted):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T






print(leng)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T = map(int,input().split())
t = list(map(int,input().split()))
sum = 0
for i in range(N-1):
  sum += min(T,t[i+1]-t[i])
print(sum)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
N,T = map(int,input().split())
t = list(map(int,input().split()))
sum = 0
for i in range(N-1):
  sum += min(T,(t[i+1]-t[i]))
print(sum+T)

Problem: p03731
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
m=a*b
for i in range(a-1):
  if c[i+1]-c[i]<b:
    m=m-(b-(c[i+1]-c[i]))
print(m+b)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
11


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
m=a*b
for i in range(a-1):
  if c[i+1]-c[i]<b:
    m=m-(b-(c[i+1]-c[i]))
print(m)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T = map(int,input().split())
t=list(map(int,input().split()))

def count_time(N,T,t):
    cnt = T
    for i in range(N-1):
        tt =t[i+1]-t[i]        
        if tt <=T:
            cnt += tt
        else:
            cnt += T
    return cnt

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:

Fixed submission (verdict: Accepted):
N,T = map(int,input().split())
t=list(map(int,input().split()))

def count_time(N,T,t):
    cnt = T
    for i in range(N-1):
        tt =t[i+1]-t[i]        
        if tt <=T:
            cnt += tt
        else:
            cnt += T
    return cnt

print(count_time(N,T,t))

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int, input().split())
t = list(map(int, input().split()))
ans = 0
i_ = t[0]
for i in t[1:]:
  ans += min(i-i_,k)
  i_ = i
print(ans+i_)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
6


Fixed submission (verdict: Accepted):
n,k = map(int, input().split())
t = list(map(int, input().split()))
ans = 0
i_ = t[0]
for i in t[1:]:
  ans += min(i-i_,k)
  i_ = i
print(ans+k)
Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, t = map(int, input().split())
t_l = [int(i) for i in input().split()]

cost = t

for i in range(n - 1):
    cost += min(t, t_l[i] - t_l[i - 1])
print(cost)


Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
1


Fixed submission (verdict: Accepted):
n, t = map(int, input().split())
t_l = [int(i) for i in input().split()]

cost = t

for i in range(1, n):
    cost += min(t, t_l[i] - t_l[i - 1])
print(cost)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
k=list(map(int,input().split()))

time=0
for i in range(a-1):
    tc=k[i+1]-k[i]
    if tc<b:
        time = time+tc
    else:
        time=time+b
print(time)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
k=list(map(int,input().split()))

time=b
for i in range(a-1):
    tc=k[i+1]-k[i]
    if tc<b:
        time = time+tc
    else:
        time=time+b
print(time)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, T = map(int, input().split())
t = list(map(int, input().split()))
t += [T]

ans = 0
for i in range(N):
    ans += min(T, t[i+1] - t[i])

print(ans)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
4


Fixed submission (verdict: Accepted):
N, T = map(int, input().split())
t = list(map(int, input().split()))
t += [T+t[-1]]

ans = 0
for i in range(N):
    ans += min(T, t[i+1] - t[i])

print(ans)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T
    print(zo, leng)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
[0, 4] 4
[0, 7] 7


Fixed submission (verdict: Accepted):


N, T = map(int,input().split())
a = list(map(int, input().split()))
b = []
zo  = [0, T]
leng = T

for i in range(N):
    if  a[i] + T <= zo[1]:
        pass
    elif a[i] <= zo[1] and zo[1] <= a[i] + T:
        leng += a[i] + T - zo[1]
        zo[1] = a[i] + T
    elif zo[1] <= a[i]:
        zo[0] = a[i]
        zo[1] = a[i] + T
        leng += T






print(leng)

Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, Y = map(int, input().split())
t = list(int (i) for i in input().split())
w=0
for i in range(len(t)-1):
    if t[i+1]-t[i]<=Y:
        w+=t[i+1]-t[i]
    else:
        w+=Y
print(w)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
3


Fixed submission (verdict: Accepted):
N, Y = map(int, input().split())
t = list(int (i) for i in input().split())
w=0
for i in range(len(t)-1):
    if t[i+1]-t[i]<=Y:
        w+=t[i+1]-t[i]
    else:
        w+=Y
w+=Y
print(w)
Problem: p03731
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,T=map(int,input().split())
t=list(map(int,input().split()))
diff = [t[i]-t[i-1] for i in range(1,N)]
ans=T*N
for i in range(N-1):
  ans-=min((T - diff[i]),0)
print(ans)

Failing test case input:
2 4
0 3

Expected output:
7

Actual output:
8


Fixed submission (verdict: Accepted):
N,T=map(int,input().split())
t=list(map(int,input().split()))
diff = [t[i]-t[i-1] for i in range(1,N)]
ans=T*N
for i in range(N-1):
  ans-=max((T - diff[i]),0)
print(ans)
Problem: p03683
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,m = map(int,input().split())
if abs(n-m) >= 2:
  print(0)
  exit()
mod = 10**9+7
def power(a,n):
  ans = 1
  while n:
    if n%2:
      ans = (ans*a)%mod
    a = (a*a)%mod
    n >>= 1
  return ans%mod  
if abs(n-m) == 1:
  print(power(2,m+n))
  exit()
print(power(2,m+n+1))
  

Failing test case input:
001111 001110

Expected output:
292820538


Actual output:
571094932


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
if abs(n-m) >= 2:
  print(0)
  exit()
mod = 10**9+7
def factorial(n):
  ans = 1
  for i in range(2,n+1):
    ans = (ans*i)%mod
  return ans
if abs(n-m) == 1:
  print((factorial(m)*factorial(n))%mod)
  exit()
x = factorial(n)
print((2*x*x)%mod)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


d = 10**9 + 7
n, m = map(int, input().split(' '))

ans = 0

ans1 = 1
n1 = n
m1 = m
while n1 >= 1 or m1 >= 0:
    ans1 *= n1 * m1
    ans1 %= d
    n1 -= 1
    m1 -= 1


ans2 = 1
n2 = n
m2 = m
while m2 >= 1 or n2 >= 0:
    ans2 *= m2 * n2
    ans2 %= d
    n2 -= 1
    m2 -= 1


print((ans1 + ans2) % d)


Failing test case input:
001010 001011

Expected output:
931093537


Actual output:
0


Fixed submission (verdict: Accepted):


d = 10**9 + 7
n, m = map(int, input().split(' '))

ans = 0

ans1 = 1
n1 = n
m1 = m
while n1 >= 1:
    ans1 *= n1 * m1
    ans1 %= d
    n1 -= 1
    m1 -= 1

if m1 > 1:
    ans1 = 0

ans2 = 1
n2 = n
m2 = m
while m2 >= 1:
    ans2 *= m2 * n2
    ans2 %= d
    n2 -= 1
    m2 -= 1

if n2 > 1:
    ans2 = 0


print((ans1 + ans2) % d)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

from math import factorial


def main():
    n, m = list(map(int, input().rstrip().split()))
    MOD = 10 ** 9 + 7
    if abs(n - m) not in (0, 1):
        print(0)
    else:
        ans = (factorial(n) * factorial(m) * 2) % MOD
        print(ans)


if __name__ == "__main__":
    main()

Failing test case input:
010010 010011

Expected output:
475486457


Actual output:
950972914


Fixed submission (verdict: Accepted):

from math import factorial


def main():
    n, m = list(map(int, input().rstrip().split()))
    MOD = 10 ** 9 + 7
    dif = abs(n - m)
    if abs(n - m) not in (0, 1):
        print(0)
    else:
        if dif == 0:
            ans = (factorial(n) * factorial(m) * 2) % MOD
        else:
            ans = (factorial(n) * factorial(m)) % MOD
        print(ans)


if __name__ == "__main__":
    main()
Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


d = 10**9 + 7
n, m = map(int, input().split(' '))

ans = 0

ans1 = 1
n1 = n
m1 = m
while n1 >= 1:
    ans1 *= n1 * m1
    ans1 %= d
    n1 -= 1
    m1 -= 1


ans2 = 1
n2 = n
m2 = m
while m2 >= 1:
    ans2 *= m2 * n2
    ans2 %= d
    n2 -= 1
    m2 -= 1


print((ans1 + ans2) % d)


Failing test case input:
000010 111011

Expected output:
0


Actual output:
75050523


Fixed submission (verdict: Accepted):


d = 10**9 + 7
n, m = map(int, input().split(' '))

ans = 0

ans1 = 1
n1 = n
m1 = m
while n1 >= 1:
    ans1 *= n1 * m1
    ans1 %= d
    n1 -= 1
    m1 -= 1

if m1 > 1:
    ans1 = 0

ans2 = 1
n2 = n
m2 = m
while m2 >= 1:
    ans2 *= m2 * n2
    ans2 %= d
    n2 -= 1
    m2 -= 1

if n2 > 1:
    ans2 = 0


print((ans1 + ans2) % d)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
import math
n, m = (int(i) for i in input().split())
l=abs(n-m)
div=int(10e9+7)

if l>1:
    print(0)
    sys.exit()

if l==1:
    ans=(math.factorial(n)*math.factorial(m))%div
    print(ans)
else:
    ans=(math.factorial(n)*math.factorial(m)*2)%div
    print(ans)


Failing test case input:
001111 001110

Expected output:
292820538


Actual output:
4794866281


Fixed submission (verdict: Accepted):
import sys
import math
n, m = (int(i) for i in input().split())
l=abs(n-m)
div=int(10**9+7)

if l>1:
    print(0)
    sys.exit()

if l==1:
    ans=(math.factorial(n)*math.factorial(m))%div
    print(ans)
else:
    ans=(math.factorial(n)*math.factorial(m)*2)%div
    print(ans)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())

if N==M:
  ans = 1
  for i in range(1,N+1):
    ans *= i
    ans %= 10**9 + 7
  ans *= ans
  ans %= 10**9 + 7
  ans *= 2
  ans %= 10**9 + 7
elif N==M+1 or N+1==M:
  ans = 1
  for i in range(1,N+1):
    ans *= i
    ans %= 10**9 + 7
  for i in range(1,M+1):
    ans *= i
    ans %= 10**9 * 7
else:
  ans = 0
print(ans)

Failing test case input:
000011 000010

Expected output:
82826050


Actual output:
6083840000


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())

if N==M:
  ans = 1
  for i in range(1,N+1):
    ans *= i
    ans %= 10**9 + 7
  ans *= ans
  ans %= 10**9 + 7
  ans *= 2
  ans %= 10**9 + 7
elif N==M+1 or N+1==M:
  ans = 1
  for i in range(1,N+1):
    ans *= i
    ans %= 10**9 + 7
  for i in range(1,M+1):
    ans *= i
    ans %= 10**9 + 7
else:
  ans = 0
print(ans)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m=map(int,input().split())
import math
mod=10**9+7
ans=1
k=math.factorial(n)%mod
l=math.factorial(m)%mod
if n==m:
  ans=2
print(ans*(k*l)%mod)

Failing test case input:
001010 111010

Expected output:
0


Actual output:
903845214


Fixed submission (verdict: Accepted):
n,m=map(int,input().split())
import math
if abs(n-m)>1:
  print(0)
  exit(0)
mod=10**9+7
ans=1
k=math.factorial(n)%mod
l=math.factorial(m)%mod
if n==m:
  ans=2
print(ans*(k*l)%mod)
Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,m = map(int,input().split())
lim = int(1e+9+7)


def pat(r,t = lim):
    ans = 1
    for i in range(r):
        ans = (ans*(i+1))%t
    return ans%t

a = pat(n)
b = pat(m)

if abs(n-m) < 2:
    print((a*b*2)%lim)
elif abs(n-m) == 2:
    print((a*b)%lim)
else:
    print(0)

Failing test case input:
000011 000010

Expected output:
82826050


Actual output:
165652100


Fixed submission (verdict: Accepted):
n,m = map(int,input().split())
lim = int(1e+9+7)


def pat(r,t = lim):
    ans = 1
    for i in range(r):
        ans = (ans*(i+1))%t
    return ans%t

a = pat(n)
b = pat(m)

if abs(n-m) < 1:
    print((a*b*2)%lim)
elif abs(n-m) == 1:
    print((a*b)%lim)
else:
    print(0)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import math
import sys

n, m = map(int, input().split())

if math.fabs(n - m) == 1:
    k = 1
if n == m:
    k = 2
else:
    k = 0

print(math.factorial(n) % 1000000007 * math.factorial(m) % 1000000007 * k % 1000000007)


Failing test case input:
000110 000111

Expected output:
399920258


Actual output:
0


Fixed submission (verdict: Accepted):

import math
import sys

n, m = map(int, input().split())

if math.fabs(n - m) == 1:
    k = 1
elif n == m:
    k = 2
else:
    k = 0

print(math.factorial(n) % 1000000007 * math.factorial(m) % 1000000007 * k % 1000000007)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, m = map(int, input().split())
a = 0
b = 0
if abs(n-m) >= 2:
    print(0)
else:
    for i in range(2, n+1):
        a = (a*i) % (10**9+7)
    for j in range(2, m+1):
        b = (b*j) % (10**9+7)
    if n == m:
        print((a*b*2) % (10**9+7))
    else:
        print((a*b) % (10**9+7))


Failing test case input:
000011 000010

Expected output:
82826050


Actual output:
0


Fixed submission (verdict: Accepted):
n, m = map(int, input().split())
a = 1
b = 1
if abs(n-m) >= 2:
    print(0)
else:
    for i in range(2, n+1):
        a = (a*i) % (10**9+7)
    for j in range(2, m+1):
        b = (b*j) % (10**9+7)
    if n == m:
        print((a*b*2) % (10**9+7))
    else:
        print((a*b) % (10**9+7))

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,m = map(int, input().split())
if abs(n-m)!=1:
    print(0)
else:
    print(math.factorial(n)%(10**9+7)*math.factorial(m)%(10**9+7))


Failing test case input:
010100 010100

Expected output:
449134091


Actual output:
0


Fixed submission (verdict: Accepted):
import math
n,m = map(int, input().split())
if abs(n-m)>1:
    print(0)
elif abs(n-m)==0:
    print(math.factorial(n)*math.factorial(m)*2%(10**9+7))
else:
    print(math.factorial(n)*math.factorial(m)%(10**9+7))
Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N,M = map(int,input().split())
if abs(N - M) > 1:
  print(0)
else:
  print((math.factorial(N) * math.factorial(M)) % 1000000007)

Failing test case input:
000101 000101

Expected output:
414723868


Actual output:
207361934


Fixed submission (verdict: Accepted):
import math
N,M = map(int,input().split())
if abs(N - M) > 1:
  print(0)
elif N == M:
  print((2*(math.factorial(N) * math.factorial(M))) % 1000000007)
else:
  print(((math.factorial(N) * math.factorial(M))) % 1000000007)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, M = map(int, input().split())
L = 1000000007

res = 1

if (M - N) >= 2:
    res = 0
else:
    for k in range(M):
        res *= (k+1)
        res = res % L
    for k in range(N):
        res *= (k+1)
        res = res % L
    if M == N:
        res *= 2
        res = res % L
if M == 0 or N == 0:
    res = 0
print(res)

Failing test case input:
100010 010010

Expected output:
0


Actual output:
14319598


Fixed submission (verdict: Accepted):

N, M = map(int, input().split())
L = 1000000007

res = 1

if (M - N) >= 2 or (N - M) >= 2:
    res = 0
else:
    for k in range(M):
        res *= (k+1)
        res = res % L
    for k in range(N):
        res *= (k+1)
        res = res % L
    if M == N:
        res *= 2
        res = res % L
print(res)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N,M = map(int,input().split())
if abs(N - M) > 1:
  print(0)
else:
  print((2*(math.factorial(N) * math.factorial(M))) % 1000000007)

Failing test case input:
000110 000111

Expected output:
399920258


Actual output:
799840516


Fixed submission (verdict: Accepted):
import math
N,M = map(int,input().split())
if abs(N - M) > 1:
  print(0)
elif N == M:
  print((2*(math.factorial(N) * math.factorial(M))) % 1000000007)
else:
  print(((math.factorial(N) * math.factorial(M))) % 1000000007)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
import sys

a = sys.stdin.readline().split(' ')
n = int(a[0])
m = int(a[1])

modulator = 1000000007

if n == m:
	print((math.factorial(n) * math.factorial(m) * 2) % modulator)
elif abs(n - m) == 1 :
	print((math.factorial(n) * math.factorial(n)) % modulator)
else:
	print(0)


Failing test case input:
000110 000111

Expected output:
399920258


Actual output:
102701985


Fixed submission (verdict: Accepted):
import math
import sys

a = sys.stdin.readline().split(' ')
n = int(a[0])
m = int(a[1])

modulator = 1000000007

if n == m:
	print((math.factorial(n) * math.factorial(m) * 2) % modulator)
elif abs(n - m) == 1 :
	print((math.factorial(n) * math.factorial(m)) % modulator)
else:
	print(0)
Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
from functools import reduce,lru_cache
import math
from operator import mul

def main():
  
  N,M = map(int,input().split())
  
  @lru_cache(maxsize = None)
  def recur(n):
    if n == 0:
      return 1
    else:
      m = n * recur(n - 1)
      return m
      
  if N == M:
    L = [i for i in range(1,N + 1)]
    
    ans = (math.factorial(M) ** 2) * 2 % ((10 ** 9) + 7)
    print(ans)
  elif abs(M - N) == 1: 
    ans = 1
    ans *= math.factorial(N) % ((10 ** 9) + 7)
    ans *= math.factorial(M) % ((10 ** 9) + 7)
    print(ans)
    
  else:
    print(0)
    
main()

Failing test case input:
001010 001011

Expected output:
931093537


Actual output:
201095547338762352


Fixed submission (verdict: Accepted):
import sys
from functools import reduce,lru_cache
import math
from operator import mul

def main():
  
  N,M = map(int,input().split())
  
  @lru_cache(maxsize = None)
  def recur(n):
    if n == 0:
      return 1
    else:
      m = n * recur(n - 1)
      return m
      
  if N == M:
    L = [i for i in range(1,N + 1)]
    
    ans = (math.factorial(M) ** 2) * 2 % ((10 ** 9) + 7)
    print(ans)
  elif abs(M - N) == 1: 
    ans = math.factorial(N) * math.factorial(M) % ((10 ** 9) + 7)
    print(ans)
    
  else:
    print(0)
    
main()

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


def main():
    N,M=map(int,input().split())
    if(abs(N-M)>=2):
        print(0)
        return 

    ret=1
    mod=10**9+7
    for i in range(1,N+1):
        ret*=i
        ret%=mod
    for i in range(1,M+1):
        ret*=i
        ret %= mod
    print(ret*2)


if __name__ == '__main__':
    main()

Failing test case input:
000011 000010

Expected output:
82826050


Actual output:
165652100


Fixed submission (verdict: Accepted):


def main():
    N,M=map(int,input().split())
    if(abs(N-M)>=2):
        print(0)
        return

    ret=1
    mod=10**9+7
    for i in range(1,N+1):
        ret*=i
        ret%=mod
    for i in range(1,M+1):
        ret*=i
        ret %= mod
    if(N==M):
        r=2
    else:
        r=1
    print((ret*r)%mod)


if __name__ == '__main__':
    main()

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


def main():
    N,M=map(int,input().split())
    if(abs(N-M)>=2):
        print(0)
        return

    ret=1
    mod=10**9+7
    for i in range(1,N+1):
        ret*=i
        ret%=mod
    for i in range(1,M+1):
        ret*=i
        ret %= mod
    if(N==M):
        r=2
    else:
        r=1
    print(ret*r)


if __name__ == '__main__':
    main()

Failing test case input:
010100 010100

Expected output:
449134091


Actual output:
1449134098


Fixed submission (verdict: Accepted):


def main():
    N,M=map(int,input().split())
    if(abs(N-M)>=2):
        print(0)
        return

    ret=1
    mod=10**9+7
    for i in range(1,N+1):
        ret*=i
        ret%=mod
    for i in range(1,M+1):
        ret*=i
        ret %= mod
    if(N==M):
        r=2
    else:
        r=1
    print((ret*r)%mod)


if __name__ == '__main__':
    main()
Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, M = map(int, input().split())
L = 1000000007

res = 1

if (M - N) >= 2:
    res = 0
else:
    for k in range(M):
        res *= (k+1)
        res = res % L
    for k in range(N):
        res *= (k+1)
        res = res % L
    if M == N:
        res *= 2
        res = res % L
        
print(res)

Failing test case input:
100010 010010

Expected output:
0


Actual output:
14319598


Fixed submission (verdict: Accepted):

N, M = map(int, input().split())
L = 1000000007

res = 1

if (M - N) >= 2 or (N - M) >= 2:
    res = 0
else:
    for k in range(M):
        res *= (k+1)
        res = res % L
    for k in range(N):
        res *= (k+1)
        res = res % L
    if M == N:
        res *= 2
        res = res % L
print(res)

Problem: p03683
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,M = map(int,input().split())

MOD = 10**9+7

cnt = 2
for i in range(1,N+1):
  cnt *= i
  cnt %= MOD

for i in range(1,M+1):
  cnt *= i
  cnt %= MOD

print(cnt)

Failing test case input:
100001 011111

Expected output:
0


Actual output:
278802392


Fixed submission (verdict: Accepted):
N,M = map(int,input().split())
MOD = 10**9+7

if abs(N-M) <= 1:
  cnt = 2 - abs(N-M)
  for i in range(1,N+1):
    cnt *= i
    cnt %= MOD

  for i in range(1,M+1):
    cnt *= i
    cnt %= MOD
else:
  cnt = 0

print(cnt)

Problem: p03683
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import math
N,M = map(int,input().split())

if(abs(N-M)<=2):
    if(N==M):
        print((math.factorial(N)*math.factorial(M)*2)%(10**9+7))
    else:
        print(math.factorial(M)*math.factorial(N)%(10^9+7))
else:
    print(0)

Failing test case input:
001010 001011

Expected output:
931093537


Actual output:
0


Fixed submission (verdict: Accepted):
import math
N,M = map(int,input().split())

if(abs(N-M)<2):
    if(N==M):
        print((math.factorial(N)*math.factorial(M)*2)%(10**9+7))
    else:
        print(math.factorial(M)*math.factorial(N)%(10**9+7))
else:
    print(0)
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
def printComparison(a, b):
    
    operator = ''
    if a > b:
        operator = '>'
    elif a < b:
        operator = '<'
    else:
        operator = '=='

    print(a, operator, b)


if __name__ == '__main__':
    ival = input().split(' ')
    printComparison(ival[0], ival[1])

Failing test case input:
4 -9

Expected output:
a > b


Actual output:
4 > -9


Fixed submission (verdict: Accepted):

def printComparison(a, b): 
    
    operator = ''
    if a > b:
        operator = '>' 
    elif a < b:
        operator = '<' 
    else:
        operator = '=='

    print('a', operator, 'b')


if __name__ == '__main__':
    ival = input().split(' ')
    printComparison(int(ival[0]), int(ival[1]))

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
N = input().split()
a = N[0]
b = N[1]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")



Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
N = input().split()
a = int(N[0])
b = int(N[1])

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
if a < b:
    print("a < b")
if a > b:
    print("a > b")
else:
    print("a == b")

Failing test case input:
-9 4

Expected output:
a < b


Actual output:
a < b
a == b


Fixed submission (verdict: Accepted):
a,b = [int(i) for i in input().split()]
if a < b:
    print("a < b")

elif a > b:
    print("a > b")

else:
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b=list(map(int,input().split()))
if a<b:
	print('a < b')
elif a==b:
	print('a > b')
else:
	print('a == b')

Failing test case input:
4 -9

Expected output:
a > b


Actual output:
a == b


Fixed submission (verdict: Accepted):
a,b=list(map(int,input().split()))
if a<b:
	print('a < b')
elif a==b:
	print('a == b')
else:
	print('a > b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
if a>b:
    c=">"
elif a==b:
    c="=="
else:
    c="<"
print(a*1,c,b*1)


Failing test case input:
-9 4

Expected output:
a < b


Actual output:
-9 < 4


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a>b:
    print("a > b")
elif a==b:
    print("a == b")
else:
    print("a < b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
import fileinput






data = input().split()
a, b = data[0], data[1]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
elif a == b:
    print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
import fileinput

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    a, b = tokens[0], tokens[1]




if a < b:
    print("a < b")
elif a > b:
    print("a > b")
elif a == b:
    print("a == b")
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
x = input().split()
(a, b) = (x[0], x[1])

if a == b:
    print('a == b')
elif a < b:
    print('a < b')
else:
    print('a > b')
        

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
x = [int(s) for s in input().split()]
(a, b) = (x[0], x[1])

if a == b:
    print('a == b')
elif a < b:
    print('a < b')
else:
    print('a > b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
inputlist = input().split()

a = inputlist[0]
b = inputlist[1]

if a < b:
    print('a < b')
elif a > b:
    print('a > b')
elif a == b:
    print('a = b')

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
elif a == b:
    print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int, input().split())
print(str(a)+" "+("==" if a == b else "<" if a < b else ">")+" "+str(b))


Failing test case input:
-12 -3

Expected output:
a < b


Actual output:
-12 < -3


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
print("a "+("==" if a == b else "<" if a < b else ">")+" b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
num = input().split()
if num[0] < num[1]:
    print("a < b")
elif num[0] > num[1]:
    print("a > b")
elif num[0] == num[1]:
    print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
elif a == b:
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
[a, b] = [int(_) for _ in input().split()]
if a < b:
    print(a < b)
elif a > b:
    print(a > b)
else:
    print(a == b)

Failing test case input:
-9 4

Expected output:
a < b


Actual output:
True


Fixed submission (verdict: Accepted):
[a, b] = [int(_) for _ in input().split()]

if a < b:
    print('a < b')
elif a > b:
    print('a > b')
else:
    print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
y = x.split(" ")
if y[0] < y[1]:
    print("a < b")
elif y[0] > y[1]:
    print("a > a")
else:
    print("a == b")

Failing test case input:
3 -7

Expected output:
a > b


Actual output:
a > a


Fixed submission (verdict: Accepted):
x = input()
y = x.split(" ")
y[0] = int(y[0])
y[1] = int(y[1])
if y[0] < y[1]:
    print("a < b")
elif y[0] > y[1]:
    print("a > b")
else:
    print("a == b")
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
import sys

data = sys.stdin.readline().strip()
a, b = data.split(' ')

if a > b:
    print('a > b')
elif a < b:
    print('a < b')
else:
    print('a == b')
    

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
import sys

data = sys.stdin.readline().strip()
a, b = data.split(' ')
a = int(a)
b = int(b)

if a > b:
    print('a > b')
elif a < b:
    print('a < b')
else:
    print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
i = input()
I = i.split()
if I[0] < I[1]:
    print("a < b")
    if I[0] > I[1]:
        print("a > b")
else:
    print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a == b


Fixed submission (verdict: Accepted):
I = input().split()
if int(I[0]) < int(I[1]):
    print("a < b")
if int(I[0]) > int(I[1]):
    print("a > b")
if int(I[0]) == int(I[1]):
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = input().split(" ")
if a > b:
    ope =">"
elif a < b :
    ope ="<"
elif a == b:
    ope = "=="


print("a {} b".format(ope))

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
a, b = [int(x) for x in input().split(" ")]
if a > b:
    ope =">"
elif a < b :
    ope ="<"
elif a == b:
    ope = "=="


print("a {} b".format(ope))

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())

if a < b:
  x = ' < '
elif a > b:
  x = ' > '
else:
  x = ' == '
print(str(a)+x+str(b))

Failing test case input:
-9 4

Expected output:
a < b


Actual output:
-9 < 4


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
x = ''
if a < b:
  x = ' < '
elif a > b:
  x = ' > '
else:
  x = ' == '
print('a'+x+'b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
num = input()
num_list = []
num_list = num.split()

if int(num_list[0]) == int(num_list[1]):
    print(num_list[0],num_list[1],sep=' == ')
elif int(num_list[0]) > int(num_list[1]):
    print(num_list[0],num_list[1],sep=' > ')
else:
    print(num_list[0],num_list[1],sep=' < ')

Failing test case input:
-12 -3

Expected output:
a < b


Actual output:
-12 < -3


Fixed submission (verdict: Accepted):
num = input()
num_list = []
num_list = num.split()

if int(num_list[0]) == int(num_list[1]):
    print('a','b',sep=' == ')
elif int(num_list[0]) > int(num_list[1]):
    print('a','b',sep=' > ')
else:
    print('a','b',sep=' < ')
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):


def string_number_spliter():
    a, b = [int(i) for i in input().split()]
    return a, b


def main():
    a, b = string_number_spliter()

    if (a < b):
        print(str(a) + " < " + str(b))
    elif (a > b):
        print(str(a) + " > " + str(b))
    else:
        print(str(a) + " == " + str(b))


if __name__ == '__main__':
    main()

Failing test case input:
9 19

Expected output:
a < b


Actual output:
9 < 19


Fixed submission (verdict: Accepted):


def string_two_numbers_spliter():
    a, b = [int(i) for i in input().split()]
    return a, b


def main():
    a, b = string_two_numbers_spliter()

    if a < b:
        print('a < b')
    elif a > b:
        print('a > b')
    else:
        print('a == b')


if __name__ == '__main__':
    main()

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):


a,b = input().split()
if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):


a,b = map(int,input().split())
if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

a = n[0]
b = n[1]

print(a,end = " ")

if a > b:
    print(">",end = " ")
elif a < b:
    print("<",end = " ")
else:
    print("=",end = " ")

print(b)


Failing test case input:
9 19

Expected output:
a < b


Actual output:
9 < 19


Fixed submission (verdict: Accepted):
s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

a = n[0]
b = n[1]

print("a",end = " ")

if a > b:
    print(">",end = " ")
elif a < b:
    print("<",end = " ")
else:
    print("==",end = " ")

print("b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
x = input().split()

a = x[0]
b = x[1]

if a == b:
    print(a + '=' + b)
elif a > b:
    print(a + '>' + b)
elif a < b:
    print(a + '<' + b)


Failing test case input:
4 -9

Expected output:
a > b


Actual output:
4>-9


Fixed submission (verdict: Accepted):
x = input().split()

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

if a == b:
    print('a == b')
elif a > b:
    print('a > b')
elif a < b:
    print('a < b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
if a>b:
 print(a,">",b)
elif a<b:
 print(a,"<",b)
else:
 print(a,"==",b)


Failing test case input:
3 -7

Expected output:
a > b


Actual output:
3 > -7


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a>b:
 print("a > b")
elif a<b:
 print("a < b")
else:
 print("a == b")
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):

x = input()

split_x = x.split(sep=" ")

a = split_x[0]
b = split_x[1]

if int(a) < int(b):
    print(a + "<" + b)

if int(a) == int(b):
    print(a + "=" + b)

if int(a) > int(b):
    print(a + ">" + b)

Failing test case input:
-12 -3

Expected output:
a < b


Actual output:
-12<-3


Fixed submission (verdict: Accepted):

x = input()

split_x = x.split(sep=" ")

a = split_x[0]
b = split_x[1]

if int(a) < int(b):
    print("a < b")

if int(a) == int(b):
    print("a == b")

if int(a) > int(b):
    print("a > b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
if a<b:
	print(a<b)
elif a>b:
	print(a>b)
else:
	print(a==b)


Failing test case input:
-12 -3

Expected output:
a < b


Actual output:
True


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a<b:
	print("a < b")
elif a>b:
	print("a > b")
else:
	print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
l = input().split()
a, b = list(map(int, l))
if a > b:
    c = '>'
elif a < b:
    c = '<'
else:
    c = '=='
print(a, c, b)

Failing test case input:
9 19

Expected output:
a < b


Actual output:
9 < 19


Fixed submission (verdict: Accepted):
l = input().split()
a, b = list(map(int, l))
if a > b:
    c = '>'
elif a < b:
    c = '<'
else:
    c = '=='
print('a', c, 'b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = input().split()
a = int(a)
b = int(b)
if a < b:
    print(a < b)
elif a > b:
    print(a > b)
else:
    print(a == b)

Failing test case input:
9 19

Expected output:
a < b


Actual output:
True


Fixed submission (verdict: Accepted):
a,b = input().split()
a = int(a)
b = int(b)
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
else:
    print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())

if a<b:
  print(a,'<',b)
elif a>b:
  print(a,'>',b)
else:
  print(a,'==',b)


Failing test case input:
9 19

Expected output:
a < b


Actual output:
9 < 19


Fixed submission (verdict: Accepted):
x,y=map(int,input().split())

if x<y:
  print('a','<','b')
elif x>y:
  print('a','>','b')
else:
  print('a','==','b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
inputlist = input().split()

a = inputlist[0]
b = inputlist[1]

if a < b:
    print('a < b')
elif a > b:
    print('a > b')
elif a == b:
    print('a == b')

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
if a < b:
    print('a < b')
elif a > b:
    print('a > b')
elif a == b:
    print('a == b')
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [int(x) for x in input().split(' ')]
operator = '==' if a == b else '<' if a < b else '>' if a > b else ''
print('%d %s %d' % (a, operator, b))

Failing test case input:
3 -7

Expected output:
a > b


Actual output:
3 > -7


Fixed submission (verdict: Accepted):
a, b = map(int, input().split(' '))
operator = '==' if a == b else '<' if a < b else '>' if a > b else ''
print('a %s b' % (operator))

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int, input().split())
if a < b:
  print(a < b)
elif a > b:
  print(a > b)
else:
  print(a == b)


Failing test case input:
-9 4

Expected output:
a < b


Actual output:
True


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a < b:
  print('a < b')
elif a > b:
  print('a > b')
else:
  print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
from builtins import str
input_lines = input()

data = input_lines.split()

if str(data[0]) == str(data[1]):
    print("a == b")
elif str(data[0]) > str(data[1]):
    print("a > b")
else : 
    print("a < b")




Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
from builtins import str, int
input_lines = input()

data = input_lines.split()

if int(data[0]) == int(data[1]):
    print("a == b")
elif int(data[0]) > int(data[1]):
    print("a > b")
else : 
    print("a < b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
n = input().split()


if n[0] < n[1]:
	print("a < b")
elif n[0] > n[1]:
	print("a > b")
elif n[0] == n[1]:
	print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
n = input().split()
a = int(n[0])
b = int(n[1])
if a < b:
	print("a < b")
elif a > b:
	print("a > b")
elif a == b:
	print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
operator = '>' if a > b else '<' if a > b else '=='
print("a {} b".format(operator))

Failing test case input:
-9 4

Expected output:
a < b


Actual output:
a == b


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
operator = '>' if a > b else '<' if a < b else '=='
print("a {} b".format(operator))

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
in_str = input().split(" ")

a = in_str[0]
b = in_str[1]

if a > b:
    print("a > b")
elif a < b:
    print("a < b")
else:
    print("a = b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
in_str = input().split(" ")

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

if a > b:
    print("a > b")
elif a < b:
    print("a < b")
else:
    print("a == b")
Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
x=input().split(' ')
if x[0] > x[1] : print("a > b")
elif x[0] < x[1] : print("a < b")
else : print("a == b")

Failing test case input:
9 19

Expected output:
a < b


Actual output:
a > b


Fixed submission (verdict: Accepted):
x=input().split(' ')
a=int(x[0])
b=int(x[1])
if a > b : print("a > b")
elif a < b : print("a < b")
else : print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
sa=str(a)
sb=str(b)
if a<b:
    print(sa+"<"+sb)
elif a==b:
    print(sa+"=="+sb)
else:
    print(sa+">"+sb)

Failing test case input:
9 19

Expected output:
a < b


Actual output:
9<19


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
if a<b:
    print("a","<","b")
elif a==b:
    print("a","==","b")
else:
    print("a",">","b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
l = input().split()
l = list(map(int,l))
a,b = l[0],l[1]

if a>b:
	print(a > b)
elif a<b:
	print(a < b)
else:
	print(a == b)


Failing test case input:
4 -9

Expected output:
a > b


Actual output:
True


Fixed submission (verdict: Accepted):
l = input().split()
l = list(map(int,l))
a,b = l[0],l[1]

if a>b:
	print('a > b')
elif a<b:
	print('a < b')
else:
	print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
if a<b:
    print(a,b,sep=' < ')
elif a>b:
    print(a,b,sep=' > ')
else:
    print(a,b,sep=' == ')

Failing test case input:
9 19

Expected output:
a < b


Actual output:
9 < 19


Fixed submission (verdict: Accepted):
a,b = [int(i) for i in input().split()]
if a<b:
    print('a < b')
elif a>b:
    print('a > b')
else:
    print('a == b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
if a < b:
  print(a < b)
elif a== b:
  print(a == b)
else:
  print(a > b)

Failing test case input:
4 -9

Expected output:
a > b


Actual output:
True


Fixed submission (verdict: Accepted):
a,b = [int(i) for i in input().split()]
if a < b:
  print('a < b')
elif a== b:
  print('a == b')
else:
  print('a > b')

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
if a<b:
    print(a,"<",b)

elif a>b:
    print(a,">",b)

else:
    print(a,"==",b)

Failing test case input:
-12 -3

Expected output:
a < b


Actual output:
-12 < -3


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a<b:
    print("a < b")

elif a>b:
    print("a > b")

else:
    print("a == b")

Problem: p02391
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int, input().split())
if a > b:
    print(a > b)
elif a == b:
    print(a == b)

Failing test case input:
-9 4

Expected output:
a < b


Actual output:

Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if a > b:
    print("a > b")
elif a == b:
    print("a == b")
else:
    print("a < b")