ZhenlongDai/ACPR huggingface dataset:
Problem: p02323
Buggy submission (Python3, verdict: Wrong Answer):
from collections import defaultdict

v, e = map(int, input().split())

links = [set() for _ in range(v)]
bests = [None] * (1 << v)

for _ in range(e):
    s, t, d = map(int, input().split())
    links[s].add((t, d))

bests[0] = {0: 0}

for visited, best in enumerate(bests):
    if best is None:
        continue
    for last, cost in best.items():
        for t, d in links[last]:
            new_visited = visited | (1 << t)
            if visited == new_visited:
                continue
            new_best = bests[new_visited]
            if new_best is None:
                bests[new_visited] = defaultdict(lambda: 15001, [(t, cost + d)])
            else:
                new_best[t] = min(new_best[t], cost + d)

result = bests[-1]
print(-1 if result is None else result[0])

Failing test case input:
3 3
0 1 1
1 2 1
0 0 1

Expected output:
-1


Actual output:
15001


Fixed submission (verdict: Accepted):
from collections import defaultdict

v, e = map(int, input().split())

links = [set() for _ in range(v)]
bests = [None] * (1 << v)

for _ in range(e):
    s, t, d = map(int, input().split())
    links[s].add((t, d))

bests[0] = {0: 0}

for visited, best in enumerate(bests):
    if best is None:
        continue
    for last, cost in best.items():
        for t, d in links[last]:
            new_visited = visited | (1 << t)
            if visited == new_visited:
                continue
            new_best = bests[new_visited]
            if new_best is None:
                bests[new_visited] = defaultdict(lambda: 15001, [(t, cost + d)])
            else:
                new_best[t] = min(new_best[t], cost + d)

result = bests[-1]
print(-1 if result is None else -1 if result[0] == 15001 else result[0])
Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections
MOD = 10**9 + 7
n = int(input())
a = list(map(int, input().split()))
c = collections.Counter(a)

ans = 1
for key, value in c.items():
    if key == 0:
        if n % 2 == 1 and value != 1:
            print(0)
            exit()
        else:
            continue
    elif value == 2:
        ans *= 2
        ans %= MOD
print(ans)




Failing test case input:
7
-16 4 1 0 1 -1 -1

Expected output:
0


Actual output:
4


Fixed submission (verdict: Accepted):
import collections
MOD = 10**9 + 7
n = int(input())
a = list(map(int, input().split()))
c = collections.Counter(a)

ans = 1
for key, value in c.items():
    if key == 0:
        if n % 2 == 1 and value != 1:
            print(0)
            exit()
        else:
            continue
    elif value == 2:
        ans *= 2
        ans %= MOD
    else:
        print(0)
        exit()
print(ans)

Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = [int(_) for _ in input().split()]
A.sort()
mod = 7 + 10**9
Appropriate = True
ans = 1

if N % 2 == 0: 
    i = 0
    while i < N:
        if A[i] != i+1 or A[i+1] != i+1:
            Appropriate = False
            break
        else:
            ans *= 2
            ans %= mod
            i+=2
else: 
    i = 1
    if A[0] != 0 or A.count(0) > 2:
        Appropriate = False
    else:
        while i < N:
            if A[i] != i+1 or A[i+1] != i+1:
                Appropriate = False
                break
            else:
                ans *= 2
                ans %= mod
                i += 2

Failing test case input:
7
-16 4 0 0 1 -1 -1

Expected output:
0


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
A = [int(_) for _ in input().split()]
A.sort()
mod = 7 + 10**9
Appropriate = True
ans = 1

if N % 2 == 0: 
    i = 0
    while i < N:
        if A[i] != i+1 or A[i+1] != i+1:
            Appropriate = False
            break
        else:
            ans *= 2
            ans %= mod
            i+=2
else: 
    i = 1
    if A[0] != 0 or A.count(0) > 2:
        Appropriate = False
    else:
        while i < N:
            if A[i] != i+1 or A[i+1] != i+1:
                Appropriate = False
                break
            else:
                ans *= 2
                ans %= mod
                i += 2

print(ans if Appropriate else 0)

Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int,input().split()))
d = {}
for i in a:
  if i in d:
    d[i] += 1
    if (d[i] == 3) or (i == 0):
      print(0)
      exit()
  else:
    d[i] = 1
ans = 1
for i in list(d.values()):
  ans *= i
print(ans)

Failing test case input:
8
7 5 1 2 7 3 5 3

Expected output:
0


Actual output:
8


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))
d = {}
for i in a:
  if ((i+n)%2 == 0) and (i != 0):
    print(0)
    exit()
  if i in d:
    d[i] += 1
    if (d[i] == 3) or (i == 0):
      print(0)
      exit()
  else:
    d[i] = 1
ans = 1
for i in list(d.values()):
  ans *= i
print(ans%1000000007)
Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= N % 2 != t[0] % 2

    if t[0] == 0:
        ans *= t[1] == 0
    else:
        ans = (ans * 2 * (t[1] == 2) % (10 ** 9 + 7))

print(ans)

Failing test case input:
5
2 4 4 0 2

Expected output:
4

Actual output:
0


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

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= N % 2 != t[0] % 2

    if t[0] == 0:
        ans *= t[1] == 1
    else:
        ans = (ans * 2 * (t[1] == 2)) % (10 ** 9 + 7)

print(ans)

Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
nums = {0:0}

for i in list(map(int, input().split())):
    if i in nums:
        if nums[i] <= 1:
            nums[i] += 1
        else:
            print(0)
            break
    else:
        nums[i] = 1
        
del nums[0]        

if 1 in nums.values():
    print(0)
else:
    print(2**len(nums.values()))
    
print(nums)

Failing test case input:
7
-30 7 0 1 1 -1 2

Expected output:
0


Actual output:
0
{-30: 1, 7: 1, 1: 2, -1: 1, 2: 1}


Fixed submission (verdict: Accepted):
n = int(input())
nums = {0:0}

for i in list(map(int, input().split())):
    if i in nums:
        nums[i] += 1
        if nums[i] > 2:
            ans = 0
            break
    else:
        nums[i] = 1
        
if n % 2 == 0:
    if 1 in nums.values():
        ans = 0
    else:
        ans = 2**(n
        
else:
    if nums[0] == 1:
        del nums[0]
        if 1 in nums.values():
            ans = 0
        else:
            ans = 2**((n-1)
    else:
        ans = 0
        
print(ans % (10**9+7))

Problem: p03846
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
p=10**9+7

def main(n,a):
  h=n
  if a.count(0)!=n%2:
    return 0
  for x in range(n%2+1,h,2):
    if a.count(x)!=2:
      return 0
  return 2**(h%(p-1))
n=int(input())
a=list(map(int,sys.stdin.readline().strip().split()))

print(main(n,a))
  

Failing test case input:
8
7 5 1 1 7 3 5 3

Expected output:
16

Actual output:
256


Fixed submission (verdict: Accepted):
import sys
from collections import deque
p=10**9+7

def main(n,a):
  h=n
  g=n%2
  a.sort()
  c=[2*(x
  if g==1:
    c.insert(0,0)
  if a!=c:
      return 0
  return 2**(h%(p-1)) % p

if __name__=='__main__':
  n=int(input())
  a=list(map(int,sys.stdin.readline().strip().split()))
  print(main(n,a))
Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from  collections import Counter

n =int(input())

a = list(input().rstrip().split())

count_num = Counter(a)

result = True

if len(a) == n:
    if n % 2 == 0:
        for i in range(n-1, -1, -2):
            if count_num[str(i)] ==2:
                continue
            else:
                result = False
                break

    else:
        if count_num['0'] == 1:
            for i in range(n-1, 1, -2):                
                if count_num[str(i)] ==2:continue
                else:
                    result = False
                    break

if result: print(2**int(n/2) % (10**9+7))
else:print(0)
  

Failing test case input:
7
9 3 1 1 16 -2 2

Expected output:
0


Actual output:
8


Fixed submission (verdict: Accepted):
from  collections import Counter

n =int(input())

a = list(input().rstrip().split())

count_num = Counter(a)

result = True

if len(a) == n:
    if n % 2 == 0:
        for i in range(n-1, -1, -2):
            if count_num[str(i)] ==2:
                continue
            else:
                result = False
                break

    else:
        if count_num['0'] == 1:
            for i in range(n-1, 1, -2):                
                if count_num[str(i)] ==2:continue
                else:
                    result = False
                    break
        else:result=False

if result: print(2**int(n/2) % (10**9+7))
else:print(0)

Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
P = sorted(list(map(int,input().split())))
flag = True
if n % 2 == 0:
    for i in range(0, n-1, 2):
        if P[i] != P[i+1]:
            flag = False
            break
else:
    n -= 1
    for i in range(1, n, 2):
        if P[i] != P[i+1]:
            flag = False
            break
if flag:
    ans = 2 ** n % (10 ** 9 + 7)
else:
    ans = 0
print(ans)

Failing test case input:
8
7 5 1 1 7 3 5 3

Expected output:
16

Actual output:
256


Fixed submission (verdict: Accepted):
n = int(input())
P = sorted(list(map(int,input().split())))
flag = True
if n % 2 == 0:
    for i in range(0, n-1, 2):
        if P[i] != P[i+1]:
            flag = False
            break
else:
    for i in range(1, n-1, 2):
        if P[i] != P[i+1]:
            flag = False
            break
if flag:
    ans = 2 ** (n
else:
    ans = 0
print(ans)
Problem: p03846
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from collections import Counter
n=int(input())
a=sorted(list(map(int,input().split())))
a_count=Counter(a)
if n%2==1:
    ans=1
    for i in a_count:
        if i==0:
            if a_count[i]>1:
                print(0)
                break
        else:
            if a_count[i]==2:
                ans*=2
            else:
                print(0)
                break
    else:
      print(ans)
else:
    ans=1
    for j in a_count:
        if a_count[j]==2:
            ans*=2
        else:
            print(0)
            break
    print(ans)

Failing test case input:
8
7 5 1 2 7 3 5 3

Expected output:
0


Actual output:
0
1


Fixed submission (verdict: Accepted):
from collections import Counter
n=int(input())
a=sorted(list(map(int,input().split())))
a_count=Counter(a)
if n%2==1:
    ans=1
    for i in a_count:
        if i%2!=0:
            print(0)
            break
        else:
            if i==0:
                if a_count[i]!=1:
                    print(0)
                    break
            
            else:
                if a_count[i]==2:
                     ans=(ans*2)%(10**9+7)
                else:
                    print(0)
                    break
    else:
      print(ans)
else:
    ans=1
    for j in a_count:
        if j%2!=1:
            print(0)
            break
        else:
            if a_count[j]==2:
                ans=(ans*2)%(10**9+7)
           
            else:
                print(0)
                break
    else:
      print(ans)

Problem: p03846
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from collections import Counter
n=int(input())
a=sorted(list(map(int,input().split())))
a_count=Counter(a)
if n%2==1:
    ans=1
    for i in a_count:
        if i==0:
            if a_count[i]!=1:
                print(0)
                break
        else:
            if a_count[i]==2:
                ans*=2
            else:
                print(0)
                break
    else:
      print(ans)
else:
    ans=1
    for j in a_count:
        if a_count[j]==2:
            ans*=2
        else:
            print(0)
            break
    print(ans)
    

Failing test case input:
8
7 5 1 2 7 3 5 3

Expected output:
0


Actual output:
0
1


Fixed submission (verdict: Accepted):
from collections import Counter
n=int(input())
a=sorted(list(map(int,input().split())))
a_count=Counter(a)
if n%2==1:
    ans=1
    for i in a_count:
        if i%2!=0:
            print(0)
            break
        else:
            if i==0:
                if a_count[i]!=1:
                    print(0)
                    break
            
            else:
                if a_count[i]==2:
                     ans=(ans*2)%(10**9+7)
                else:
                    print(0)
                    break
    else:
      print(ans)
else:
    ans=1
    for j in a_count:
        if j%2!=1:
            print(0)
            break
        else:
            if a_count[j]==2:
                ans=(ans*2)%(10**9+7)
           
            else:
                print(0)
                break
    else:
      print(ans)
Problem: p03846
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
A=list(map(int,input().split()))
mod=10**9+7
A.sort()
ans=1
if N%2==1:
  i=1
  if A[0]!=0:
    print(0)
    exit()
  for i in range(1,N,2):
    if A[i]==A[i+1]:
      ans*=2
      ans%=mod
    else:
      print(0)
      exit()
  print(ans)
else:
  i=0
  for i in range(0,N,2):
    if A[i]==A[i+1]:
      ans*=2
      ans%=mod
    else:
      print(0)
  print(ans)

Failing test case input:
8
7 5 1 2 7 3 5 3

Expected output:
0


Actual output:
0
8


Fixed submission (verdict: Accepted):
def main():
  N=int(input())
  A=list(map(int,input().split()))
  mod=10**9+7
  ans=1
  A.sort()
  if N%2==0:
    for i in range(0,N,2):
      if A[i]!=A[i+1] or A[i]!=i+1:
        print(0)
        exit()
      ans=ans*2%mod
    print(ans)
  else:
    if A[0]!=0:
      print(0)
      exit()
    ans=1
    for i in range(1,N,2):
      if A[i]!=A[i+1] or A[i]!=i+1:
        print(0)
        exit()
      ans=ans*2%mod
    print(ans)
if __name__=='__main__':
  main()

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

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= int(N % 2 != t[0] % 2)

    if t[0] == 0:
        ans *= int(t[1] == 0)
    else:
        ans = (ans * 2 * int(t[1] == 2) % (10 ** 9 + 7))

print(ans)

Failing test case input:
5
2 4 4 0 2

Expected output:
4

Actual output:
0


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

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= N % 2 != t[0] % 2

    if t[0] == 0:
        ans *= t[1] == 1
    else:
        ans = (ans * 2 * (t[1] == 2)) % (10 ** 9 + 7)

print(ans)

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

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= N % 2 != t[0] % 2

    if t[0] == 0:
        ans *= t[1] == 0
    else:
        ans = (ans * 2 * (t[1] == 2)) % (10 ** 9 + 7)

print(ans)

Failing test case input:
5
2 4 4 0 2

Expected output:
4

Actual output:
0


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

dic = {}
ans = 1

for Ai in A:
    if Ai not in dic:
        dic[Ai] = 1
    else:
        dic[Ai] += 1

for t in dic.items():
    ans *= N % 2 != t[0] % 2

    if t[0] == 0:
        ans *= t[1] == 1
    else:
        ans = (ans * 2 * (t[1] == 2)) % (10 ** 9 + 7)

print(ans)
Problem: p03846
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import defaultdict

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

for i in range(n):
    cnt[a[i]] += 1

if max(cnt.values()) > 2 or cnt[0] > 1:
    print(0)
else:
    del cnt[0]
    print(2 ** len(cnt))

Failing test case input:
5
-1 4 0 -1 1

Expected output:
0


Actual output:
8


Fixed submission (verdict: Accepted):
from collections import defaultdict

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

for i in range(n):
    cnt[a[i]] += 1
flag = True

if 0 in cnt.keys():
    del cnt[0]

for i in range(n - 1, 0, -2):
    if cnt[i] != 2:
        flag = False
        break 
print((2 ** (n
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a-1) if a > b else (a)

Failing test case input:
65 110

Expected output:
65


Actual output:

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

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



a,b = map(int, input().split())
z = a-1
takahsashi = z+1
print(takahsashi)

Failing test case input:
34 011

Expected output:
33


Actual output:
34


Fixed submission (verdict: Accepted):



a,b = map(int, input().split())
z = a-1
takahsashi = z+1
if(a>b):
	takahsashi = z
print(takahsashi)

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

a, b = [int(s) for s in input().split()]
print(a if a <= b else b)

Failing test case input:
172 3

Expected output:
171


Actual output:
3


Fixed submission (verdict: Accepted):

a, b = [int(s) for s in input().split()]
print(a if a <= b else a - 1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
count = 0
A, B = map(int, input().split())
for i in range (1, A):
    if B >= A:
        count = count + 1
    else:
        count = count
print(count)    

Failing test case input:
-55 5

Expected output:
-55


Actual output:
0


Fixed submission (verdict: Accepted):
count = 0
A, B = map(int, input().split())
count = count + A - 1
if B >= A:
    count = count + 1
else:
    count = count
print(count)

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

if b > a:
  print(a-1)
else:
  print(a)

Failing test case input:
33 010

Expected output:
32


Actual output:
33


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

if b < a:
  print(a-1)
else:
  print(a)

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

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

Failing test case input:
85 -3

Expected output:
84


Actual output:
-3


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

if a <= b:
    print(a)
elif a > b :
    print(a-1)

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

if a >= b:
    print(a)
else:
    print(a-1)

Failing test case input:
-26 0

Expected output:
-26


Actual output:
-27


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

if a <= b:
    print(a)
else:
    print(a-1)

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

if a > b:
    print(a)
else:
    print(a + 1)

Failing test case input:
-6 -3

Expected output:
-6


Actual output:
-5


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

if a > b:
    print(a - 1)
else:
    print(a)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a > b :
    print(b)
else:
    print(a-1)

Failing test case input:
65 010

Expected output:
64


Actual output:
10


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

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

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


Failing test case input:
20 -16

Expected output:
19


Actual output:
-16


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

if a == b:
    print(a)
elif a < b:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d = map(int,input().split(" "))
print(m if m >= d else m-1)

Failing test case input:
51 -1

Expected output:
50


Actual output:
51


Fixed submission (verdict: Accepted):
m,d = map(int,input().split(" "))
print(m if d >= m else m-1)

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

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

if a > b:
    print (b)

else:
    print (a)


Failing test case input:
65 010

Expected output:
64


Actual output:
10


Fixed submission (verdict: Accepted):

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

if a > b:
    print (a - 1)

else:
    print (a)

Problem: p03359
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b = map(int,input().split())

if a >= b:
    print(a)
else:
    print(a-1)

Failing test case input:
49 -3

Expected output:
48


Actual output:
49


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

if a <= b:
    print(a)
else:
    print(a-1)

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

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

Failing test case input:
91 -1

Expected output:
90


Actual output:
-1


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

if a <= b:
  print(a)
else:
  print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(min(a,b))

Failing test case input:
29 -16

Expected output:
28


Actual output:
-16


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

Problem: p03359
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a, b = map(int, input().split())
 
if b > 13:
    print(a)
else:
    print(b)

Failing test case input:
-99 0

Expected output:
-99


Actual output:
0


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

if a > b:
    print(a-1)
else:
    print(a)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a > b :
    print(b)
else:
    print(a)

Failing test case input:
49 -3

Expected output:
48


Actual output:
-3


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
if b >= a :
    print(a)
else:
    print(a-1)
Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a if a==b else '1')

Failing test case input:
-26 0

Expected output:
-26


Actual output:
1


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

Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b = map(int, readline().split())
print(min(a, b))


Failing test case input:
85 -3

Expected output:
84


Actual output:
-3


Fixed submission (verdict: Accepted):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

print(a if a <= b else a-1)

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

if a < b:
    print(a-1)
else:
    print(a)

Failing test case input:
-15 -3

Expected output:
-15


Actual output:
-16


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

if a == b :
    print(a)
elif a > b:
    print(a-1)
elif a < b:
    print(a)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
cnt = a-1
if a == b:
    cnt += 1
print(cnt)

Failing test case input:
-212 0

Expected output:
-212


Actual output:
-213


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
cnt = a-1
if a <= b:
    cnt += 1
print(cnt)

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

if b < 5:
    print(a-1)
else:
    print(a)

Failing test case input:
-51 0

Expected output:
-51


Actual output:
-52


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

if b < a:
    print(a-1)
else:
    print(a)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a>=b :
  print(b)
else :
  print(a)

Failing test case input:
39 -1

Expected output:
38


Actual output:
-1


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

Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    a,b = map(int, input().split())
    print(min(a,b))

if __name__ == "__main__":
    main()

Failing test case input:
91 -1

Expected output:
90


Actual output:
-1


Fixed submission (verdict: Accepted):
def main():
    a,b = map(int, input().split())
    if a<=b:
        print(a)
    else:
        print(a-1)

if __name__ == "__main__":
    main()

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

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

print(a if a>=b else b)


Failing test case input:
78 2

Expected output:
77


Actual output:
78


Fixed submission (verdict: Accepted):

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

print(a if b>=a else a-1)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def inpl(): return map(int, input().split())
a, b = inpl()
if a < b:
    print(a-1)
else:
    print(b)

Failing test case input:
121 0

Expected output:
120


Actual output:
0


Fixed submission (verdict: Accepted):

def inpl(): return map(int, input().split())
a, b = inpl()
if a > b:
    print(a-1)
else:
    print(a)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b= map(int,input().split())
if a < b+1 :print(a+1)
else :print(a)

Failing test case input:
-15 -3

Expected output:
-15


Actual output:
-14


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, b = map(int,input().split())

if n <= b:
  print(n + 1)
  
else:
  print(n)
  
  

Failing test case input:
-143 0

Expected output:
-143


Actual output:
-142


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

if n <= b:
  print(n)
  
else:
  print(n - 1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
ans = a
if b > a:
    ans -= 1
print(ans)

Failing test case input:
78 2

Expected output:
77


Actual output:
78


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a>=b:
    print(a)
else:
    print(a-1)

Failing test case input:
36 -1

Expected output:
35


Actual output:
36


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
years = [int(a) for a in input().split()]
years_month = years[0]
years_day = years[1]

if years_month or years_day:
    print(years_month)
else:
    print(0)

Failing test case input:
237 0

Expected output:
236


Actual output:
237


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

if years_month > years_day:
    print(years_month - 1)

else:
    print(years_month)

Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(int,input().split())
print(b if a==b else a)

Failing test case input:
65 010

Expected output:
64


Actual output:
65


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
if (a >= b):
    print(a)
else:
    print(a-1)

Failing test case input:
39 -1

Expected output:
38


Actual output:
39


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
if (a <= b):
    print(a)
else:
    print(a-1)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
month, day = map(int, input().split())

ans = day if month > day else month

if ans >= 12:
  print("12")
else:
  print(ans)


Failing test case input:
91 -1

Expected output:
90


Actual output:
-1


Fixed submission (verdict: Accepted):
month, day = map(int, input().split())

ans = month-1 if month > day else month

print(ans)

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

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

Failing test case input:
51 -1

Expected output:
50


Actual output:
-1


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

if a <= b:
    print(a)
else:
    
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
count = 0
A, B = map(int, input().split())
for i in range (1, A+1):
    if B >= 5:
        count = count + 1
    else:
        count = count
print(count)    

Failing test case input:
91 -1

Expected output:
90


Actual output:
0


Fixed submission (verdict: Accepted):
count = 0
A, B = map(int, input().split())
count = count + A - 1
if B >= A:
    count = count + 1
else:
    count = count
print(count)

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

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

Failing test case input:
39 -1

Expected output:
38


Actual output:
-1


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

if a <= b:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(b)

Failing test case input:
34 011

Expected output:
33


Actual output:
11


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a if a >= b else a-1)


Failing test case input:
-6 -3

Expected output:
-6


Actual output:
-7


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
t,h=map(int,input().split())
a=13-t
if h>t:
	a=a-1
print(a)

Failing test case input:
65 010

Expected output:
64


Actual output:
-52


Fixed submission (verdict: Accepted):
t,h=map(int,input().split())
a=t
if t>h:
	a=a-1
print(a)

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

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


Failing test case input:
315 3

Expected output:
314


Actual output:
315


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

if b >= a:
    print(a)
else:
    print(a-1)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
month, day = map(int, input().split())

ans = day if month > day else month

if ans > 12:
  print("12")
else:
  print(ans)


Failing test case input:
20 -16

Expected output:
19


Actual output:
-16


Fixed submission (verdict: Accepted):
month, day = map(int, input().split())

ans = month-1 if month > day else month

print(ans)

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

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

Failing test case input:
43 2

Expected output:
42


Actual output:
2


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

if a <= b:
    print(a)
elif a > b :
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < b < 13:
    print(b)
else:
    print(a)

Failing test case input:
315 3

Expected output:
314


Actual output:
315


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

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

if a<b:
  print('a')
else:
  print('a-1')

Failing test case input:
51 -1

Expected output:
50


Actual output:
a-1


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

if a<=b:
  print(a)
else:
  print(a-1)

Problem: p03359
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b = map(int, input().split())
if a > b:
    print(a)
else:
    print(a-1)

Failing test case input:
-99 0

Expected output:
-99


Actual output:
-100


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a if(a<=b) else print(a-1))

Failing test case input:
34 011

Expected output:
33


Actual output:
33
None


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a if a<=b else b)

Failing test case input:
78 2

Expected output:
77


Actual output:
2


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int, input().split())
print(a) if a >= b else print(a - 1)


Failing test case input:
44 -1

Expected output:
43


Actual output:
44


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print(a - 1 + (a >=b))

Failing test case input:
20 -16

Expected output:
19


Actual output:
20


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a - 1 + (a <= b))
Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def resolve():
    a, b = map(int, input().split())
    if a > b: c = a-1
    else: c = a
    print(c)

Failing test case input:
36 -1

Expected output:
35


Actual output:

Fixed submission (verdict: Accepted):
def resolve():
    a, b = map(int, input().split())
    if a <= b: c = a
    else: c = a - 1
    print(c)
resolve()

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split());print(a+(a<=b))

Failing test case input:
-26 0

Expected output:
-26


Actual output:
-25


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

Problem: p03359
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a, b = map(int, input().split())

if a <= b:
    a += 1

print(a)

Failing test case input:
36 -1

Expected output:
35


Actual output:
36


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

if a <= b:
    a += 1

print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a < b:print(a+1)
else:print(a)

Failing test case input:
110 1

Expected output:
109


Actual output:
110


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<=b:
    print(a-1)
else:
  	print(a)

Failing test case input:
-106 5

Expected output:
-106


Actual output:
-107


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a , b = input().split()
a = int(a)
b = int(b)
print(a,b)
if b > a:
    print(a)
else:
    print(a-1)

Failing test case input:
-18 766

Expected output:
-18


Actual output:
-18 766
-18


Fixed submission (verdict: Accepted):
a , b = input().split()
a = int(a)
b = int(b)
if b >= a:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print("a" if b>=a else "b")

Failing test case input:
315 3

Expected output:
314


Actual output:
b


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

Problem: p03359
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())
if a <= b:
  print(a+1)
else:
  print(a)

Failing test case input:
237 0

Expected output:
236


Actual output:
237


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < b:
  print(a - 1)
else:
  print(a)

Failing test case input:
41 110

Expected output:
41


Actual output:
40


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a > b:
  print(a - 1)
else:
  print(a)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
print(a if a <= b else b)

Failing test case input:
43 2

Expected output:
42


Actual output:
2


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split());print(a+(a<b))

Failing test case input:
215 0

Expected output:
214


Actual output:
215


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

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

if a < b and a!=1:
    print(a-1)
else:
    print(a)

Failing test case input:
237 0

Expected output:
236


Actual output:
237


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

if a == b :
    print(a)
elif a > b:
    print(a-1)
elif a < b:
    print(a)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
ans = a-1
if b >= 5:
    ans+=1
print(ans)


Failing test case input:
63 011

Expected output:
62


Actual output:
63


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
ans = a-1
if b >= a:
    ans+=1
print(ans)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if b <= 12:
    print(min(a,b))
else:
    print(a)

Failing test case input:
63 011

Expected output:
62


Actual output:
11


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if b < 5:
    print(a-1)
else:
    print(a)

Failing test case input:
-6 -3

Expected output:
-6


Actual output:
-7


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = list(map(int, input().split()))
print(a if a>=b else a-1)

Failing test case input:
121 0

Expected output:
120


Actual output:
121


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a <= b:
  print(a)
else:
  print(b)

Failing test case input:
43 2

Expected output:
42


Actual output:
2


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < b <= 31:
    print(a)
else:
    print(b)

Failing test case input:
74 110

Expected output:
74


Actual output:
110


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a > b:
    print(a-1)
else:
    print(a)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
if a<b:
  print(a-1)
else:
  print(a)
  

Failing test case input:
43 2

Expected output:
42


Actual output:
43


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(a if a<=b else a-b)

Failing test case input:
36 -1

Expected output:
35


Actual output:
37


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = tuple(map(int, input().split()))
ans = 0
for i in range(1, 13):
    if i <= a and i <= b:
        ans += 1
print(ans)

Failing test case input:
78 2

Expected output:
77


Actual output:
2


Fixed submission (verdict: Accepted):
a, b = tuple(map(int, input().split()))
if a <= b:
    ans = a
else:
    ans = a - 1
print(ans)

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


Failing test case input:
34 011

Expected output:
33


Actual output:
11


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
print(min(a, b))

Failing test case input:
37 -1

Expected output:
36


Actual output:
-1


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

if a > b:
    a -= 1

print(a)

Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
print(b if a>b else a)

Failing test case input:
39 -1

Expected output:
38


Actual output:
-1


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int,input().split())
if a > b:
    print(b)
else:
    print(a)

Failing test case input:
146 -1

Expected output:
145


Actual output:
-1


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, (input().split()))
print(a + 1 if b >= a * 11 else a)

Failing test case input:
33 010

Expected output:
32


Actual output:
33


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(int, input().split())
if a < b:
    print(a)
else:
    print(b)

Failing test case input:
20 -16

Expected output:
19


Actual output:
-16


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
if a <= b:
    print(a)
else:
    print(a-1)
Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
print(min(a,b))

Failing test case input:
34 011

Expected output:
33


Actual output:
11


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

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = (int(i) for i in input().split()) 
if a<b:
  print(a-1)
else:
  print(a)

Failing test case input:
39 -1

Expected output:
38


Actual output:
39


Fixed submission (verdict: Accepted):
a,b = (int(i) for i in input().split()) 
if a>b:
  print(a-1)
else:
  print(a)

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

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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


Failing test case input:
33 010

Expected output:
32


Actual output:
10


Fixed submission (verdict: Accepted):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

a, b = map(int, input().split())
print(a if a <= b else a-1)

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

if a <= b:
    print(a)
elif b == 1:
    print(1)
else:
    print(str(a-b+1))

Failing test case input:
36 -1

Expected output:
35


Actual output:
38


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

if a <= b:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(int,input().split())
if a>=b:
  print(a)
else:
  print(a-1)

Failing test case input:
63 111

Expected output:
63


Actual output:
62


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

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





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

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

Failing test case input:
49 -3

Expected output:
48


Actual output:
-3


Fixed submission (verdict: Accepted):





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

if a <= b:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(int, input().split())

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


Failing test case input:
49 -3

Expected output:
48


Actual output:
-3


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

if a <= b:
    print(a)
else:
    print(a-1)

Problem: p03359
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m,d=map(int,input().split())
if m >= d:
  print(m)
else:
  print(m-1)

Failing test case input:
-143 0

Expected output:
-143


Actual output:
-144


Fixed submission (verdict: Accepted):
m,d=map(int,input().split())
if m <= d:
  print(m)
else:
  print(m-1)

Problem: p03359
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b=map(int,input().split())
if a<=b:
  print(a)
else:
  print(b)

Failing test case input:
44 -1

Expected output:
43


Actual output:
-1


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