ZhenlongDai/ACPR huggingface dataset:
Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
y=list(map(int,input().split()))
from collections import Counter
lhs=Counter([j+y[j] for j in range(n)])
rhs=Counter([j-y[j] for j in range(n)])
count=0
for i in lhs:
   if i in rhs:
      count+=lhs[i]+rhs[i]

print(count)

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

Expected output:
3

Actual output:
5


Fixed submission (verdict: Accepted):
n=int(input())
y=list(map(int,input().split()))
from collections import Counter
lhs=Counter([j+y[j] for j in range(n)])
rhs=Counter([j-y[j] for j in range(n)])
count=0
for i in lhs:
   if i in rhs:
      count+=lhs[i]*rhs[i]

print(count)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
res = 0
arr = [a[0]]
for i in range(1,n):
  res += arr.count(abs(a[i]-i-1))
  arr.append(a[i]+i+1)
print(res)

Failing test case input:
6
2 5 3 2 3 2

Expected output:
0


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
res = 0
dict = {}
dict[a[0]+1] = 1
for i in range(1,n):
  res += dict.get(i+1-a[i],0)
  dict[a[i]+i+1] = dict.get(a[i]+i+1,0) + 1
print(res)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import logging

logging.basicConfig(level=logging.INFO, format="%(message)s")


def main():
    N = int(input())
    A_1 = list(map(int, input().split()))
    B_l = [1 - A_1[0]]

    sum = 0
    
    for i in range(1, N):
        if A_1[i] in B_l:
            sum += 1

        B_l = list(map(lambda x: x+1, B_l))
        B_l.append(2 - A_1[i])

        
    print(sum)
    
if __name__ == "__main__":
    main()


Failing test case input:
32
2 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 4 7 17 5

Expected output:
19


Actual output:
18


Fixed submission (verdict: Accepted):
import logging
import collections

logging.basicConfig(level=logging.INFO, format="%(message)s")


def main():
    N = int(input())
    A_i = list(map(int, input().split()))
    
    Ai_plu_i = collections.Counter([i + 1 + A_i[i] for i in range(N)])
    ans = sum([Ai_plu_i.get(j + 1 - A_i[j], 0) for j in range(N)])
    
    print(ans)
    
if __name__ == "__main__":
    main()

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections
N = int(input())
A = list((map(int,input().split())))

index = list(range(1,N+1))

R = [index[i] - A[i] for i in range(N)]
L = [index[j] + A[j] for j in range(N)]

R_dict = collections.Counter(R)
L_dict = collections.Counter(L)

ans=0
for i in R_dict.keys()&L_dict.keys():
    
    
    ans+=L_dict[i]

print(ans)

Failing test case input:
32
3 1 8 1 5 9 4 2 3 3 9 8 11 7 9 4 2 4 8 2 4 4 7 7 3 3 30 4 4 7 2 8

Expected output:
15


Actual output:
12


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

index = list(range(1,N+1))

R = [index[i] - A[i] for i in range(N)]
L = [index[j] + A[j] for j in range(N)]

R_dict = collections.Counter(R)
L_dict = collections.Counter(L)

ans=0
for i in R_dict.keys()&L_dict.keys():
    ans+=R_dict[i]*L_dict[i]

print(ans)
Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
def Ii():return int(sys.stdin.buffer.readline())
def Mi():return map(int,sys.stdin.buffer.readline().split())
def Li():return list(map(int,sys.stdin.buffer.readline().split()))

n = Ii()
a = Li()
x = [0]*n
ans = 0
for i in range(n): 
  print(x)
  if a[i]+i < n:
    x[a[i]+i] += 1
  if i-a[i] >= 0:
    ans += x[i-a[i]]
      
print(ans)

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

Expected output:
2


Actual output:
[0, 0, 0, 0, 0, 0]
[0, 0, 1, 0, 0, 0]
[0, 0, 1, 0, 0, 0]
[0, 0, 1, 0, 0, 0]
[0, 0, 1, 0, 1, 0]
[0, 0, 1, 0, 1, 0]
2


Fixed submission (verdict: Accepted):
import sys
def Ii():return int(sys.stdin.buffer.readline())
def Mi():return map(int,sys.stdin.buffer.readline().split())
def Li():return list(map(int,sys.stdin.buffer.readline().split()))

n = Ii()
a = Li()
x = [0]*n
ans = 0
for i in range(n): 
  if a[i]+i < n:
    x[a[i]+i] += 1
  if i-a[i] >= 0:
    ans += x[i-a[i]]
      
print(ans)

Problem: p02691
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int()
A = list(map(int,input().split()))

score = {}

for i, a in enumerate(A):
  if i ==0:
    continue
  s = i-a
  if s not in score:
    score[s] = []
  score[s].append(i)
  
print(score)
  
for i, a in enumerate(A):
  i += 1
  if i+a in score:
    print(score[i+a])
  

Failing test case input:
32
3 1 4 1 5 9 4 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 2 8

Expected output:
25


Actual output:

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

score = {}

for i, a in enumerate(A):
  if i ==0:
    continue
  
  s = i-a
  if s not in score:
    score[s] = 0
  score[s]+=1

from bisect import bisect_left
ans = 0
for i, a in enumerate(A):
  if i+a in score:
    ans += score[i+a]
print(ans)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = [i for i in map(int, input().split()) if i < n]
num = len(a)
ans = 0

for i in range(num):
    for j in range(i+1, num):
        if a[i]+a[j] == j-i:
            ans += 1
print(ans)


Failing test case input:
6
3 6 3 1 6 1

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
num = dict()
ans = 0

for i in range(n):
    num[i+a[i]] = 0

for i in range(n):
    if i-a[i] in num:
        ans += num[i-a[i]]
    num[i+a[i]] += 1
print(ans)

Problem: p02691
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
k=0
t=max(a)
p=min(a)
for i in range(n):
    r=min(n,a[i]+t)
    s=max(0,a[i]+p)
    for j in range(s,r):
        if a[j]+a[i]==abs(j-i):
            k+=1
print(k)



Failing test case input:
32
3 1 4 1 8 9 4 6 5 3 5 8 9 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 4 7 2 14

Expected output:
21


Actual output:
23


Fixed submission (verdict: Accepted):
n=int(input())
a=list(map(int,input().split()))
k=0
b={}
for i in range(n):
    if a[i]+i in b:
        b[a[i]+i]+=1
    else:
        b[a[i]+i]=1
    if i-a[i] in b:
        k+=b[i-a[i]]
print(k)
Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
hList = list(map(int, input().split()))
count = 0
nList = [ i + hList[i] for i in range(len(hList))]

for i in range(N):
  tmpVal = i - hList[i]
  if tmpVal < 2:
    continue
  count += nList[i-tmpVal:i+1].count(tmpVal)

print(count)

Failing test case input:
32
2 2 4 1 5 9 2 6 5 3 5 8 9 7 9 2 2 4 8 3 6 4 6 4 2 3 1 1 4 7 17 5

Expected output:
27


Actual output:
18


Fixed submission (verdict: Accepted):
import collections

N = int(input())
hList = list(map(int, input().split()))
count = 0
n_p = collections.Counter([ i + hList[i] for i in range(len(hList))])

for i in range(N):
  if i - hList[i] > 0:
    count += n_p.get(i - hList[i], 0)

print(count)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
from collections import defaultdict
a = list(map(int,input().split()))
ans = 0
dp = defaultdict(int)
for e,i in enumerate(a):
    if i - e >= 0 :ans += dp[i-e]
    dp[i+e]+=1
print(ans)


Failing test case input:
32
3 1 4 1 5 9 4 9 5 3 5 8 9 7 13 3 2 3 8 4 6 2 6 4 3 3 3 3 2 7 2 5

Expected output:
25


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
from collections import defaultdict
a = list(map(int,input().split()))
ans = 0
dp = defaultdict(int)
for e,i in enumerate(a,1):
    if  e - i>= 0 :ans += dp[e-i]
    dp[i+e]+=1
print(ans)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
from collections import defaultdict
a = list(map(int,input().split()))
ans = 0
dp = defaultdict(int)
for e,i in enumerate(a,1):
    ans += dp[i-e]
    dp[i+e]+=1
print(ans)


Failing test case input:
32
3 1 4 1 5 9 4 9 5 3 5 8 9 7 13 3 2 3 8 4 6 2 6 4 3 3 3 3 2 7 2 5

Expected output:
25


Actual output:
1


Fixed submission (verdict: Accepted):
n = int(input())
from collections import defaultdict
a = list(map(int,input().split()))
ans = 0
dp = defaultdict(int)
for e,i in enumerate(a,1):
    if  e - i>= 0 :ans += dp[e-i]
    dp[i+e]+=1
print(ans)

Problem: p02691
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))
S = [0]*N
D = [0]*N

for i in range(N):
    if A[i]+i < N:
        S[A[i]+i] += 1
    if i - A[i] > 0:
        D[i - A[i]] += 1
ans = 0
print(S,D)
for l in range(N):
    ans += S[l]*D[l]
    

print(ans)

Failing test case input:
32
3 1 8 1 5 9 4 2 3 3 9 8 11 7 16 4 2 4 8 2 4 4 7 7 3 3 30 4 4 7 2 8

Expected output:
13


Actual output:
[0, 0, 1, 1, 1, 0, 0, 0, 0, 2, 2, 1, 1, 0, 1, 0, 0, 0, 1, 3, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1] [0, 2, 2, 1, 0, 2, 2, 0, 0, 0, 1, 1, 0, 1, 1, 1, 2, 2, 0, 0, 0, 1, 2, 2, 1, 0, 0, 0, 1, 0, 0, 0]
13


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
S = [0]*N
D = [0]*N

for i in range(N):
    if A[i]+i < N:
        S[A[i]+i] += 1
    if i - A[i] > 0:
        D[i - A[i]] += 1
ans = 0
for l in range(N):
    ans += S[l]*D[l]
    

print(ans)
Problem: p02691
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
goukei = 0

N = int(input()) * (-1)
Ai = list(map(int, input().split()))
number = [j for j in range(0, N, -1)]
new_ai = number + Ai
new_ai = [x + y for (x, y) in zip(Ai, number)]
for i in range(len(Ai)):
    goukei += new_ai.count(-(Ai[i] - i))
print(goukei)

Failing test case input:
32
3 1 4 1 5 9 4 6 4 3 5 8 18 7 9 3 2 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5

Expected output:
21


Actual output:
15


Fixed submission (verdict: Accepted):
import collections
goukei = 0

N = int(input())
Ai = list(map(int, input().split()))
number = [j for j in range(1, N+1, 1)]
plus_Ai = [x + y for (x, y) in zip(Ai, number)]
minus_Ai = [x - y for (y, x) in zip(Ai, number)]
c = collections.Counter(plus_Ai)

for i in minus_Ai:
    goukei += c[i]
print(goukei)

Problem: p02691
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import collections
N = int(input())
A = list((map(int,input().split())))

index = list(range(1,N+1))

R = [index[i] - A[i] for i in range(N)]
L = [index[j] + A[j] for j in range(N)]

R_dict = collections.Counter(R)
L_dict = collections.Counter(L)

ans=0
for i in R_dict.keys()&L_dict.keys():
    ans+=max(R_dict[i], L_dict[i])

print(ans)

Failing test case input:
32
2 1 4 1 5 9 2 6 5 3 5 8 9 7 9 2 2 4 8 4 6 4 6 4 3 3 10 3 4 7 17 5

Expected output:
20


Actual output:
17


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

index = list(range(1,N+1))

R = [index[i] - A[i] for i in range(N)]
L = [index[j] + A[j] for j in range(N)]

R_dict = collections.Counter(R)
L_dict = collections.Counter(L)

ans=0
for i in R_dict.keys()&L_dict.keys():
    ans+=R_dict[i]*L_dict[i]

print(ans)

Problem: p02691
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
k=0
for i in range(n):
    for j in range(i+1,n):
        if abs(a[i]-a[j])==abs(j-i):
            k+=1
print(k-1)

Failing test case input:
32
3 1 4 1 5 9 4 12 5 3 5 8 9 7 9 3 2 4 8 4 6 2 6 4 3 3 8 3 2 7 2 8

Expected output:
28


Actual output:
18


Fixed submission (verdict: Accepted):
n=int(input())
a=list(map(int,input().split()))
k=0
b={}
for i in range(n):
    if a[i]+i in b:
        b[a[i]+i]+=1
    else:
        b[a[i]+i]=1
    if i-a[i] in b:
        k+=b[i-a[i]]
print(k)
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
1 631 0110

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
  print('A')
else:
  print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split()); print("A" if abs(b-a) < abs(c-b) else "B")

Failing test case input:
10 3 1

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split()); print("A" if abs(b-a) < abs(c-a) else "B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if abs(x-a) > abs(x-b):
  print("A")
else:
  print("B")

Failing test case input:
23 1 6

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if abs(x-a) > abs(x-b):
  print("B")
else:
  print("A")

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


nvm = input().split(' ')
if abs(int(nvm[0]) - int(nvm[1])) > abs(int(nvm[0]) - int(nvm[2])):
    print('A')
else:
    print('B')




    
                



Failing test case input:
1 5 1101

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):


nvm = input().split(' ')
if abs(int(nvm[0]) - int(nvm[1])) < abs(int(nvm[0]) - int(nvm[2])):
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print("B")
else:
    print("A")

Failing test case input:
0 5 1001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print("A")
else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if abs(x - a) < (x - b):
  print("A")
else :
  print("B")

Failing test case input:
0 125 1001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if abs(x - a) < abs(x - b):
  print("A")
else :
  print("B")

Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if abs(x - a) > abs(x - b):
    print("A")
else:
    print("B")


Failing test case input:
0 6 1001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if abs(x - a) < abs(x - b):
    print("A")
else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = [int(_) for _ in input().split()]
print(min(abs(a-x), abs(b-x)))


Failing test case input:
-1 8 0011

Expected output:
A


Actual output:
9


Fixed submission (verdict: Accepted):
x, a, b = [int(_) for _ in input().split()]
if abs(a-x) < abs(b-x):
    print("A")
else:
    print("B")
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print("A")
else:
    print("B")

Failing test case input:
1 999 0101

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if abs(a - x) < abs(a - b):
    print('A')
else:
    print('B')

Failing test case input:
10 0 13

Expected output:
B


Actual output:
A


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

if abs(x - a) < abs(x - b):
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int, input().split())
if abs(x-a)>abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
0 0 0001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b=map(int, input().split())
if abs(x-a)<abs(x-b):
  print('A')
else:
  print('B')

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

if abs(x - a) < (x - b):
  r = 'A'
else:
  r = 'B'

print(r)

Failing test case input:
-1 8 0010

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int,input().split())
 
if abs(x - a) < abs(x - b):
  r = 'A'
else:
  r = 'B'

print(r)

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = input().split()
x = int(x)
a = int(a)
b = int(b)
if (x-a)^2 < (x-b)^2 :
 print("A")
else :
 print("B")

Failing test case input:
1 444 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = input().split()
x = int(x)
a = int(a)
b = int(b)
if (x-a)*(x-a) <= (x-b)*(x-b) :
  print("A")
else :
  print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = input().split()
x = int(x)
a = int(a)
b = int(b)
print("x = ", x)
print("a = ", a)
print("b = ", b)

if x < a:
    distance_xa = a - x
else:
    distance_xa = x - a
print("distance_xa = ", distance_xa)

if x < b:
     distance_xb = b - x
else:
     distance_xb = x - b
print("distance_xb = ", distance_xb) 

if distance_xa < distance_xb:
      print("A")
else:
      print("B")

Failing test case input:
4 217 1011

Expected output:
A


Actual output:
x =  4
a =  217
b =  1011
distance_xa =  213
distance_xb =  1007
A


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

if x < a:
    distance_xa = a - x
else:
    distance_xa = x - a

if x < b:
     distance_xb = b - x
else:
     distance_xb = x - b

if distance_xa < distance_xb:
      print("A")
else:
      print("B")
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print("A")
else:
    print("B")

Failing test case input:
1 25 1101

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if x-a>x-b:
    print('B')
else:
    print('A')

Failing test case input:
0 6 1001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if abs(x-a)>abs(x-b):
    print('B')
else:
    print('A')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if abs(x-a) > abs(x-b):
    print("A")
else:
    print("B")

Failing test case input:
10 2 7

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if abs(x-a) <= abs(x-b):
    print("A")
else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("A") if abs(a-b)>abs(a-c) else print("B")

Failing test case input:
-1 25 0010

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("A") if abs(a-b)<abs(a-c) else print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
print('AB'[2*x>a+b])

Failing test case input:
0 22 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split());print('AB'[(2*x>a+b)^(a>b)])

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print("B")
elif abs(x-a)>abs(x-b):
    print("A")

Failing test case input:
1 232 0110

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print("A")
else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):
    print("A")
else:
    print("B") 

Failing test case input:
0 25 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x, a, b = map(int,input().split())
if abs(x - a) > abs(x - b):
    print("B")
else:
    print("A")

Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def print_ans(x,a,b):
    
    print(min(abs(x-a),abs(x-b)))



if __name__ == '__main__':
    x,a,b = map(int,input().split())
    print_ans(x,a,b)


Failing test case input:
16 6 0

Expected output:
A


Actual output:
10


Fixed submission (verdict: Accepted):
def print_ans(x,a,b):
    
    
    if min(abs(x-a),abs(x-b)) == abs(x-b):
      print("B")
    else:
      print("A")




if __name__ == '__main__':
    x,a,b = map(int,input().split())
    print_ans(x,a,b)
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(min(abs(b-a),abs(c-a)))

Failing test case input:
4 217 1010

Expected output:
A


Actual output:
213


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print('A' if min(abs(b-a),abs(c-a))==abs(b-a) else 'B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if(abs(x-a)>abs(x-a)):
  print("B")
else:
  print("A")  


Failing test case input:
0 25 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if(abs(x-a)>abs(x-b)):
  print("B")
else:
  print("A")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if abs(a-b)>abs(a-c):
  print("A")
else:
  print("B")

Failing test case input:
0 381 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if abs(a-b)<abs(a-c):
  print("A")
else:
  print("B")

Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x,a,b=map(int,input().split())
print("A" if abs(x-a) >= abs(x-b) else "B")

Failing test case input:
1 381 0101

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print("A" if abs(x-a) <= abs(x-b) else "B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
print(min(abs(A[0]-A[1]), abs(A[0]-A[2])))

Failing test case input:
0 6 1001

Expected output:
A


Actual output:
6


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
print('A' if abs(A[0]-A[1]) <= abs(A[0]-A[2]) else 'B')

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

if abs(x - a) > abs(x - b):
    print("A")
else:
    print("B")


Failing test case input:
1 999 1000

Expected output:
A

Actual output:
B


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

if abs(x - a) < abs(x - b):
    print("A")
else:
    print("B")

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

Failing test case input:
1 381 1110

Expected output:
A


Actual output:
1109


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):
    print('B')
else:
    print('A')

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

Failing test case input:
0 22 0011

Expected output:
B


Actual output:
11


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
print("A" if abs(x-a)<abs(x-b) else "B")
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())

kyori1 = abs(x - a)
kyori2 = abs(x - a)

if kyori1 < kyori2:
  print('A')
else:
  print('B')

Failing test case input:
0 6 1001

Expected output:
A


Actual output:
B


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

kyori1 = max(x,a) - min(x,a)
kyori2 = max(x,b) - min(x,b)

if kyori1 < kyori2:
  print('A')
else:
  print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
 
if abs(x-a) > abs(x-b):
  print("A")
else:
  print("B")

Failing test case input:
1 444 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
 
if abs(x-a) > abs(x-b):
  print("B")
else:
  print("A")

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



def main():
    
    x, a, b = map(int, input().split())
    if abs(a - x) < abs(b - x):
        print("A")
    else:
        print("b")


if __name__ == "__main__":
    main()


Failing test case input:
-1 25 0011

Expected output:
B


Actual output:
b


Fixed submission (verdict: Accepted):



def main():
    
    x, a, b = map(int, input().split())
    if abs(a - x) < abs(b - x):
        print("A")
    else:
        print("B")


if __name__ == "__main__":
    main()

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

Failing test case input:
0 0 1001

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
b-=a
c-=a
if abs(b)<abs(c):print("A")
else:print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
location_list = list(map(int, input().split()))

ax_length = abs(location_list[0] - location_list[1])
bx_length = abs(location_list[0] - location_list[2])

if ax_length > bx_length:
    print('A')
else:
    print('B')


Failing test case input:
1 237 0111

Expected output:
B


Actual output:
A


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

ax_length = abs(location_list[0] - location_list[1])
bx_length = abs(location_list[0] - location_list[2])

if ax_length < bx_length:
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = [int(s) for s in input().split()]
print('A' if abs(X - A) > abs(X - B) else 'B')

Failing test case input:
1 999 0101

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
X, A, B = [int(s) for s in input().split()]
print('A' if abs(X - A) < abs(X - B) else 'B')

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

x,a,b=map(int,input().split())
print('A' if abs(x-a)>abs(x-b) else 'B')

Failing test case input:
2 217 1111

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):

x,a,b=map(int,input().split())
print('A' if abs(x-a)<abs(x-b) else 'B')
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

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

if a < 0:
    a = a*(-1)
if b < 0:
    b = b*(-1)
a_distant = a - x
b_distant = b - x

if a_distant > b_distant:
    print("B")
else:
    print("A")

Failing test case input:
31 1 5

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
import math

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


a_distant = a - x
b_distant = b - x
if a_distant < 0:
    a_distant = a_distant*(-1)
if b_distant < 0:
    b_distant = b_distant*(-1)

if a_distant > b_distant:
    print("B")
else:
    print("A")

Problem: p03623
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    x, a, b = map(int, readline().split())

    ans = min(abs(x - a), abs(x - b))
    
    print(ans)


if __name__ == '__main__':
    main()


Failing test case input:
2 217 0010

Expected output:
B


Actual output:
8


Fixed submission (verdict: Accepted):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    x, a, b = map(int, readline().split())

    if abs(x - a) < abs(x - b):
        print("A")
    else:
        print("B")


if __name__ == '__main__':
    main()

Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x, a, b = map(int, input().split())
print("A" if abs(x - a) < abs(x - b) else "No")

Failing test case input:
0 22 0011

Expected output:
B


Actual output:
No


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
print("A" if abs(x - a) < abs(x - b) else "B")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if (a-x)<(b-x):
    print('A')
else:
    print('B')

Failing test case input:
10 1 9

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
x_a = a-x
x_b = b-x
if x_a < 0:
  x_a = -x_a
elif x_b < 0:
  x_b = -x_b
print('A' if x_a < x_b or x_a == x_b else 'B')

Failing test case input:
16 3 1

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
x_a = a-x
x_b = b-x
if x_a < 0:
  x_a = -x_a
if x_b < 0:
  x_b = -x_b
print('A' if x_a <= x_b else 'B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split());print(['a','b'][abs(x-a)>abs(x-b)])

Failing test case input:
23 1 9

Expected output:
B


Actual output:
b


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split());print(['A','B'][abs(x-a)>abs(x-b)])
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
A = abs(x-a)
B = abs(x-b)
if A>B:
  print("A")
else:
  print("B")

Failing test case input:
1 217 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
A = abs(x-a)
B = abs(x-b)
if A>B:
  print("B")
else:
  print("A")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
s = abs(a - x)
t = abs(b - x)
ans = "a"
if s > t:
    ans = "b"

print(ans)

Failing test case input:
1 444 0001

Expected output:
B


Actual output:
b


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
s = abs(a - x)
t = abs(b - x)
ans = "A"
if s > t:
    ans = "B"

print(ans)

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

def main():
    input = sys.stdin.readline
    x, a, b = map(int, input().split())

    if abs(a - x) >= abs(b - x):
        return 'A'
    else:
        return 'B'


if __name__ == '__main__':
    print(main())


Failing test case input:
0 217 1011

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
import sys

def main():
    input = sys.stdin.readline
    x, a, b = map(int, input().split())

    if abs(a - x) <= abs(b - x):
        return 'A'
    else:
        return 'B'


if __name__ == '__main__':
    print(main())

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
A = abs(x-a)
B = abs(x-b)
if A>B:
  print("A")
else:
  print("B")

Failing test case input:
0 217 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
A = abs(x-a)
B = abs(x-b)
if A<B:
  print("A")
else:
  print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c= map(int, input().split())
if abs(a-b) >= abs(a-c):
  print("A")
else:
  print("B")

Failing test case input:
23 1 9

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
a, b, c= map(int, input().split())
if abs(a-b) > abs(a-c):
  print("B")
else:
  print("A")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b= map(int, input().split())
if abs(x-a) > abs(x-b):
    print("A")
else:
    print("B")

Failing test case input:
2 217 1011

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b= map(int, input().split())
if abs(x-a) < abs(x-b):
    print("A")
else:
    print("B")

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

Failing test case input:
1 381 1110

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
ad=abs(x-a)
bd=abs(x-b)

if ad > bd:
    print("A")
elif ad < bd:
    print("B")

Failing test case input:
10 1 7

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
ad=abs(x-a)
bd=abs(x-b)

if ad > bd:
    print("B")
elif ad < bd:
    print("A")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int ,input().split())
if(abs(x-a) > abs(x-b) ):
  print('A')
else:
  print('B')

Failing test case input:
1 213 0110

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int ,input().split())
if(abs(x-a) < abs(x-b) ):
  print('A')
else:
  print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
x,a,b = list(map(int, input().split()))
print('A' if math.fabs(x-a) > math.fabs(x-b) else 'B')

Failing test case input:
0 217 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
import math
x,a,b = list(map(int, input().split()))
print('A' if math.fabs(x-a) < math.fabs(x-b) else 'B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))
b = abs(a[0] - a[1])
c = abs(a[0] - a[2])
if b <= c:
  print("B")
else:
  print("C")

Failing test case input:
2 217 0011

Expected output:
B


Actual output:
C


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
b = abs(a[0] - a[1])
c = abs(a[0] - a[2])
if b <= c:
  print("A")
else:
  print("B")

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

Failing test case input:
1 631 0110

Expected output:
B


Actual output:
109


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print("BA"[abs(x-a)<abs(x-b)])

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

Failing test case input:
1 999 1000

Expected output:
A

Actual output:
a


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
print("A") if abs(a - x) < abs(b - x) else print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):
    print('A')
else:
    print('B')


Failing test case input:
1 381 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
print('A' if abs(x-a) > abs(x-b) else 'B')

Failing test case input:
1 444 0001

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
print('A' if abs(x-a) < abs(x-b) else 'B')
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if x - a < x - b:
  print("A")
else:
  print("B")

Failing test case input:
1 5 1001

Expected output:
A


Actual output:
B


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

if abs(x - a) < abs(x - b):
  print("A")
else:
  print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = list(map(int, input().split()))
ans = "A" if abs(x-a) > abs(x-b) else "B"
print(ans)

Failing test case input:
10 3 1

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = list(map(int, input().split()))
ans = "A" if abs(x-a) < abs(x-b) else "B"
print(ans)

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

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

print(min(abs(x-a), abs(x-b)))

Failing test case input:
1 444 0001

Expected output:
B


Actual output:
0


Fixed submission (verdict: Accepted):
import sys

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

if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")

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

Failing test case input:
2 217 0010

Expected output:
B


Actual output:
10


Fixed submission (verdict: Accepted):
x, a, b = map(int,input().split())
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')

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

if abs(x - a) > abs(x - b):
  print("A")
else:
  print("B")

Failing test case input:
-1 25 0010

Expected output:
B


Actual output:
A


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

if abs(x - a) > abs(x - b):
  print("B")
else:
  print("A")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = [int(x) for x in input().split()] 

if a - b > a - c:
   print("B")
else:
   print("A")

Failing test case input:
0 381 0001

Expected output:
B


Actual output:
A


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

if abs(a - b) > abs(a - c):
   print("B")
else:
   print("A")

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

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

if(abs(x-a)>(abs(x-b))):
    print("A")
else:
    print("B")

Failing test case input:
1 125 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):

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

if(abs(x-a)>(abs(x-b))):
    print("B")
else:
    print("A")

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

if abs(x - a) >= abs(x - b):
  print('A')

else:
  print('B')


Failing test case input:
1 56 1110

Expected output:
A


Actual output:
B


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

if abs(x - a) >= abs(x - b):
  print('B')

else:
  print('A')
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


nvm = input().split(' ')
if int(nvm[1]) - int(nvm[0]) > int(nvm[1]) - int(nvm[2]):
    print('A')
else:
    print('B')





Failing test case input:
1 381 0110

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):


nvm = input().split(' ')
if abs(int(nvm[0]) - int(nvm[1])) < abs(int(nvm[0]) - int(nvm[2])):
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x,a,b = [int(x) for x in input().split()]
if abs(x-a) > abs(x-b):
    print("A")
else:
    print("B")


Failing test case input:
0 22 0010

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = [int(x) for x in input().split()]
if abs(x-a) < abs(x-b):
    print("A")
else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
print("A" if abs(x-a) > abs(x-b) else "B")

Failing test case input:
16 6 0

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
print("A" if abs(x-a) < abs(x-b) else "B")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if x-a<b-x:
    print('A')
else:
    print('B')


Failing test case input:
0 25 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
y=abs(x-a)
z=abs(b-x)
if y<z:
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int,input().split())
A = abs(x-a)
B = abs(x-b)
ans = [A, B]
print(min(ans))

Failing test case input:
1 381 1110

Expected output:
A


Actual output:
380


Fixed submission (verdict: Accepted):
x, a, b = map(int,input().split())
A = abs(x-a)
B = abs(x-b)
if A<B:
    print('A')
else:
    print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
print("A" if abs(a-x)<(b-x) else "B")

Failing test case input:
16 3 1

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
print("A" if abs(x-a)<abs(x-b) else "B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
1 56 1110

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if abs(x-a) < abs(x-b):
  print('A')
else:
  print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
print('A' if abs(x-a) < abs(x-b) else print('B'))

Failing test case input:
-1 22 0011

Expected output:
B


Actual output:
B
None


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
print('A' if abs(x-a) < abs(x-b) else 'B')
Problem: p03623
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x,a,b=map(int,input().split())
print('A' if abs(x-a)>abs(x-b) else 'B')

Failing test case input:
2 217 1111

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print('A' if abs(x-a)<abs(x-b) else 'B')

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b = map(int, input().split())
print("A") if abs(x-a) > abs(x-b) else print("B")

Failing test case input:
1 381 0101

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
print("A") if abs(x-a) < abs(x-b) else print("B")

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

if abs(a - x) > abs(b - x):
    print("A")
else:
    print("B")


Failing test case input:
23 2 9

Expected output:
B


Actual output:
A


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

if abs(a - x) > abs(b - x):
    print("B")
else:
    print("A")

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x, a, b = map(int, input().split())
print('A' if abs(b-x) < abs(a-x) else 'A')

Failing test case input:
31 1 5

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
print('B' if abs(b-x) < abs(a-x) else 'A')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
c=abs(x-a)
d=abs(x-b)
if c > d:
  print(d)
else:
  print(c)

Failing test case input:
0 6 1001

Expected output:
A


Actual output:
6


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
c=abs(x-a)
d=abs(x-b)
if c > d:
  print("B")
else:
  print("A")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if abs(x-a) >= abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
0 125 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x-a) >= abs(x-b):
  print('B')
else:
  print('A')

Problem: p03623
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b=map(int,input().split())
print(min(abs(x-a),abs(x-b)))

Failing test case input:
-1 25 0011

Expected output:
B


Actual output:
12


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print("AB"[abs(x-a)>abs(x-b)])

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

A = x - a
B = x - b

if A < B:
  print("A")
else:
  print("B")

Failing test case input:
0 217 0011

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x-a) < abs(x-b):
  print("A")
else:
  print("B")
Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int, input().split())
b-=a
c-=a
if b<c:print("A")
else:print("B")

Failing test case input:
5 2 7

Expected output:
B

Actual output:
A


Fixed submission (verdict: Accepted):
a,b,c=map(int, input().split())
b-=a
c-=a
if abs(b)<abs(c):print("A")
else:print("B")

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

Failing test case input:
-1 8 0011

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b= map(int, input().split())
A = abs(x-a)
B = abs(x-b)
print("A" if A<B else "B")

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

if abs(x-a) > abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
23 1 9

Expected output:
B


Actual output:
A


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

if abs(x-a) < abs(x-b):
  print('A')
else:
  print('B')

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

a=a-x
b=b-x

if a<b:
    print("A")

else:
    print("B")
    

Failing test case input:
5 2 7

Expected output:
B

Actual output:
A


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

a=abs(a-x)
b=abs(b-x)

if a<b:
    print("A")

else:
    print("B")

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if x - a >= x - b:
  print('A')
else:
  print('B')

Failing test case input:
23 3 9

Expected output:
B


Actual output:
A


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if abs(x - a) <= abs(x - b):
  print('A')
else:
  print('B')

Problem: p03623
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
  print('A')
else:
  print('B')

Failing test case input:
1 213 1110

Expected output:
A


Actual output:
B


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
  print('B')
else:
  print('A')

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

Failing test case input:
23 1 5

Expected output:
B


Actual output:
18


Fixed submission (verdict: Accepted):
x,a,b=map(int, input().split())
a=abs(a-x)
b=abs(b-x)
if a<b:
  print("A")
else:
  print("B")

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

Failing test case input:
1 213 0010

Expected output:
B


Actual output:
9


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
disa=abs(a-x)
disb=abs(b-x)
if(disa<disb):
  print("A")
else:
  print("B")