ZhenlongDai/ACPR huggingface dataset:
Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
C = {"a": 0, "b": 0, "c": 0}
for s in S:
    C[s] += 1
if abs(C["a"] - C["b"]) <= 1 and abs(C["a"] - C["b"]) <= 1 and abs(C["a"] - C["b"]) <= 1:
    print("YES")
else:
    print("NO")


Failing test case input:
bbaaacbbaca

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
S = input()
C = {"a": 0, "b": 0, "c": 0}
for s in S:
    C[s] += 1
if abs(C["a"] - C["b"]) <= 1 and abs(C["b"] - C["c"]) <= 1 and abs(C["c"] - C["a"]) <= 1:
    print("YES")
else:
    print("NO")

Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a, b, c = [s.count(i) for i in 'abc']
if max(a, b, c) - min(a, b, c) not in [0, 1]:
    print(max(a, b, c) , min(a, b, c))
    print('NO')
else:
    print('YES')

Failing test case input:
bcbcbbaaaab

Expected output:
NO


Actual output:
5 2
NO


Fixed submission (verdict: Accepted):
s = input()
a, b, c = [s.count(i) for i in 'abc']
if max(a, b, c) - min(a, b, c) not in [0, 1]:
    print('NO')
else:
    print('YES')

Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import Counter

S = input()
counter = Counter(S)
most_common = list(counter.items())
while len(most_common) < 3:
    most_common.append(('x', 0))
    
most_common.sort(reverse=True)

ret = 'YES' if most_common[1][1] <= most_common[0][1]+1 and most_common[2][1] <= most_common[0][1]+1 else 'NO'
print(ret)

Failing test case input:
aaabcabcacc

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

from collections import Counter

S = input()
counter = Counter(S)
most_common = list(counter.items())
while len(most_common) < 3:
    most_common.append(('x', 0))
    
most_common.sort(key=lambda x:x[1] ,reverse=False)

ret = 'YES' if most_common[1][1] <= most_common[0][1]+1 and most_common[2][1] <= most_common[0][1]+1 else 'NO'
print(ret)

Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a, b, c = s.count('a') ,s.count('b'), s.count('c')
lis = sorted([a, b, c])
if lis[2]-lis[1]>1:
    print('NO')
else:
    print('YES')

Failing test case input:
aacaccbabca

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
s = input()
a, b, c = s.count('a') ,s.count('b'), s.count('c')
lis = sorted([a, b, c])
if lis[2]-lis[0]>1:
    print('NO')
else:
    print('YES')

Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input()
a = [s.count("a"), s.count("b"), s.count("c")]
a.sort(reverse=True)
print(a)
if a[0] <= a[2] + 1:
    print("YES")
else:
    print("NO")


Failing test case input:
bcc

Expected output:
NO


Actual output:
[2, 1, 0]
NO


Fixed submission (verdict: Accepted):
s = input()
a = [s.count("a"), s.count("b"), s.count("c")]
a.sort(reverse=True)
if a[0] <= a[2] + 1:
    print("YES")
else:
    print("NO")
Problem: p03534
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
nums = [S.count(x) for x in 'abc']
nums.sort()
nums[-1] -= nums[0]
nums[1] -= nums[0]

def check():
    if nums[1] == 0 and nums[-1] > 1:
        return False
    if nums[1] != 0 and nums[-1] - nums[-2] > 0: 
        return False
    return True

print("YES" if check() else "NO")


Failing test case input:
acac

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
S = input()
nums = [S.count(x) for x in 'abc']
nums.sort()
nums[-1] -= nums[0]
nums[1] -= nums[0]

def check():
    if nums[1] == 0 and nums[-1] > 1:
        return False
    if nums[1] > 1 or nums[-1] > 1: 
        return False
    return True

print("YES" if check() else "NO")
Problem: p02634
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b,c,d = map(int,input().split())
m = c-a
n = d-b
t = [[1]]
for i in range(m):
    t[0].append(b*t[0][i])
for i in range(n):
    t.append([a*t[i][0]])
for i in range(1,n+1):
    for j in range(1,m+1):
        t[i].append((t[i][j-1]*(b+i) + t[i-1][j]*(a+j) - t[i-1][j-1]*((a+j-1)*(b+i-1)))%998244353)
print(t[-1][-1])

Failing test case input:
89 41 89 91

Expected output:
539238403


Actual output:
29478157317550155856922379504869550944781487312958300823189927728437269891380086487688757480518001


Fixed submission (verdict: Accepted):
a,b,c,d = map(int,input().split())
m = c-a
n = d-b
t = [[1]]
for i in range(m):
    t[0].append((b*t[0][i])%998244353)
for i in range(n):
    t.append([(a*t[i][0])%998244353]+[0]*m)
for i in range(1,n+1):
    for j in range(1,m+1):
        t[i][j] = t[i][j-1]*(b+i) + t[i-1][j]*(a+j) - t[i-1][j-1]*((a+j-1)*(b+i-1))
        t[i][j] %= 998244353
print(t[n][m])

Problem: p02634
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b,c,d = map(int,input().split())
mod = 998244353
dp = [[0]*(d-b+1) for i in range(c-a+1)]
if a == c and b == d:
    print(1)
elif a == c:
    print(a)
elif b == d:
    print(b)
else:
    for i in range(c-a):
        p = 0
        for j in range(d-b+1):
            if i == j == 0:
                dp[i][j] = 1
            dp[i+1][j] = (p + dp[i][j]*(b+j))%mod

            p += dp[i][j]
            p %= mod
            p *= a+i
            p %= mod

    ans = 0
    for d in dp[-1]:
        ans *= c
        ans %= mod
        ans += d
        ans %= mod
    print(ans)

Failing test case input:
3 -1 3 4

Expected output:
243


Actual output:
3


Fixed submission (verdict: Accepted):
a,b,c,d = map(int,input().split())
mod = 998244353
dp = [[0]*(d-b+1) for i in range(c-a+1)]
if a == c and b == d:
    print(1)
elif a == c:
    print(pow(a,d-b,mod))
elif b == d:
    print(pow(b,c-a,mod))
else:
    for i in range(c-a):
        p = 0
        for j in range(d-b+1):
            if i == j == 0:
                dp[i][j] = 1
            dp[i+1][j] = (p + dp[i][j]*(b+j))%mod

            p += dp[i][j]
            p %= mod
            p *= a+i
            p %= mod

    ans = 0
    for d in dp[-1]:
        ans *= c
        ans %= mod
        ans += d
        ans %= mod
    print(ans)
Problem: p02634
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
mod = 998244353
a, b, c, d = map(int, input().split())

dp0 = [0] * (c-a+1)
dp1 = [1]

for i in range(c-a):
    dp1.append(dp1[-1] * b % mod)

for j in range(1, d-b+1):
    new_dp0 = [(dp0[0] * a + dp1[0]) % mod]
    new_dp1 = [dp1[0] * (a-1) % mod]
    for i in range(1, c-a+1):
        new_dp0.append((dp0[i] * (a+i) + dp1[i]) % mod)
        new_dp1.append((new_dp0[-2] + new_dp1[-1]) * (b+j) % mod)

    dp0 = new_dp0
    dp1 = new_dp1

print(dp0[-1] + dp1[-1])

Failing test case input:
2 1 33 6

Expected output:
547709964


Actual output:
1545954317


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

dp0 = [0] * (c-a+1)
dp1 = [1]
for i in range(c-a):
    dp1.append(dp1[-1] * b % mod)

for j in range(1, d-b+1):
    new_dp0 = [(dp0[0] * a + dp1[0]) % mod]
    new_dp1 = [dp1[0] * (a-1) % mod]
    for i in range(1, c-a+1):
        new_dp0.append((dp0[i] * (a+i) + dp1[i]) % mod)
        new_dp1.append((new_dp0[-2] + new_dp1[-1]) * (b+j) % mod)

    dp0 = new_dp0
    dp1 = new_dp1

print((dp0[-1] + dp1[-1]) % mod)

Problem: p02634
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b,c,d = map(int,input().split())
mod = 998244353
dp = [[0]*(d-b+1) for i in range(c-a+1)]

for i in range(c-a):
    p = 0
    for j in range(d-b+1):
        if i == j == 0:
            dp[i][j] = 1
        dp[i+1][j] = (p + dp[i][j]*(b+j))%mod

        p += dp[i][j]
        p %= mod
        p *= a+i
        p %= mod

ans = 0
for d in dp[-1]:
    ans *= c
    ans %= mod
    ans += d
    ans %= mod
print(ans)

Failing test case input:
3 1 3 5

Expected output:
81


Actual output:
0


Fixed submission (verdict: Accepted):
a,b,c,d = map(int,input().split())
mod = 998244353
dp = [[0]*(d-b+1) for i in range(c-a+1)]
if a == c and b == d:
    print(1)
elif a == c:
    print(pow(a,d-b,mod))
elif b == d:
    print(pow(b,c-a,mod))
else:
    for i in range(c-a):
        p = 0
        for j in range(d-b+1):
            if i == j == 0:
                dp[i][j] = 1
            dp[i+1][j] = (p + dp[i][j]*(b+j))%mod

            p += dp[i][j]
            p %= mod
            p *= a+i
            p %= mod

    ans = 0
    for d in dp[-1]:
        ans *= c
        ans %= mod
        ans += d
        ans %= mod
    print(ans)
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = list(map(int,input().split()))

space = abs(B - A )

if space % 2 ==0:
    print("Alice")
else :
    print("Bolice")

Failing test case input:
8 0 7

Expected output:
Borys


Actual output:
Bolice


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

space = abs(B - A )

if space % 2 ==0:
    print("Alice")
else :
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (A-B) % 2 == 0:
    print("Borys")
else:
    print("Alice")

Failing test case input:
9 38 0

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (A-B) % 2 == 0:
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (A + B) % 2 == 1:
    print('Boris')
else:
    print('Alice')

Failing test case input:
21 -1 0

Expected output:
Borys


Actual output:
Boris


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (B + A) % 2 == 1:
    print('Borys')
else:
    print('Alice')

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

print('Alice' if (B - A + 1) % 2 == 0 else 'Borys')


Failing test case input:
21 -1 0

Expected output:
Borys


Actual output:
Alice


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

print('Borys' if (B - A + 1) % 2 == 0 else 'Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (A-B) % 2 == 0:
    print("Bolice")
else:
    print("Alice")

Failing test case input:
9 44 0

Expected output:
Alice


Actual output:
Bolice


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (A-B) % 2 == 0:
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if(b-a %2==0):
    print("Alice")
else:
    print("Borys")

Failing test case input:
2 56 2

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if((b-a) %2==0):
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if (a - b) % 2 == 0:
  print("Borys")
else:
  print("Alice")

Failing test case input:
-1 22 1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
if (a - b) % 2 == 0:
  print("Alice")
else:
  print("Borys")

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

if (B-A)%2 == 0:
	print('Borys')
else:
    print('Alice')


Failing test case input:
1 64 0

Expected output:
Alice


Actual output:
Borys


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

if (B-A)%2 != 0:
	print('Borys')
else:
    print('Alice')
Problem: p03463
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, a, b = map(int, input().split())

if (b-a) % 2:
    print('Alice')
else:
    print('Borys')

Failing test case input:
-1 0 8

Expected output:
Alice


Actual output:
Borys


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

if (b-a+1) % 2:
    print('Alice')
else:
    print('Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = list(map(int, input().strip().split()))
if (N - B + A) % 2 == 1:
	print("Alice")
else:
	print("Borys")

Failing test case input:
58 23 42

Expected output:
Borys

Actual output:
Alice


Fixed submission (verdict: Accepted):
N, A, B = list(map(int, input().strip().split()))
if (B - A) % 2 == 0:
	print("Alice")
else:
	print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
t = b-a
if t%2==0:
  print("Borys")
else:
  print("Alice")

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
t = b-a
if t%2==0:
  print("Alice")
else:
  print("Borys")

Problem: p03463
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if a >= b:
    print("Alice")
else:
    print("Borys")

Failing test case input:
9 44 23

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
if (b - a) % 2 == 0:
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
print("Borys" if (B-A)%2 == 0 else "Alice")

Failing test case input:
0 11 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
print("Borys" if (B-A)%2 == 1 else "Alice")

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


import sys



tmp = input().split()
n,a,b = list(map(lambda a: int(a), tmp))

if((b-a)%2==1):
	print("Alice")
else:
	print("Borys")




Failing test case input:
-1 11 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):


import sys



tmp = input().split()
n,a,b = list(map(lambda a: int(a), tmp))

if((b-a)%2==0):
	print("Alice")
else:
	print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split(" ")
b = list(map(int, a))
if (b[2] - b[1]) % 2 == 0:
    print("Borys")
else:
    print("Alice")


Failing test case input:
1 64 0

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
a = input().split(" ")
b = list(map(int, a))
if (b[2] - b[1]) % 2 == 1:
    print("Borys")
else:
    print("Alice")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b=map(int,input().split())
print("Alice" if (a - b -1) % 2 else"Bory")


Failing test case input:
0 -1 -2

Expected output:
Borys


Actual output:
Bory


Fixed submission (verdict: Accepted):
n, a, b=map(int,input().split())
print("Alice" if (a - b -1) % 2 else"Borys")
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int, input().split())

if n-b <= 1 and a+1 != b:print("Alice")
else: print("Borys")

Failing test case input:
2 30 1

Expected output:
Borys


Actual output:
Alice


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

if (b-a-1)%2!=0:print("Alice")
else: print("Borys")

Problem: p03463
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,a,b=map(int,input().split())
delta=b-a
if n==2:
    print("Draw")
elif delta%2 == 0:
    print("Alice")
else:
    print("Borys")

Failing test case input:
2 35 0

Expected output:
Borys


Actual output:
Draw


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

if delta%2 == 0:
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if A==1 and B==N:
    print('Borys')
else:
    if (B-A)%4 == 0:
        print('Draw')
    elif (B-A)%2 == 0:
        print('Alice')
    else:
        print('Borys')

Failing test case input:
2 31 -1

Expected output:
Alice


Actual output:
Draw


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if A==1 and B==A+1:
    print('Borys')
else:
    if (B-A)%2 == 0:
        print('Alice')
    elif (B-A)%2 == 1:
        print('Borys')
    else:
        print('Draw')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N,A,B = map(int,input().split(" "))
    if N==2:
        print("Draw")
        exit()
    s = abs(A-B)-1
    if s%2:
        print("Alice")
    else:
        print("Borys")

if __name__=="__main__":
    main()

Failing test case input:
2 30 1

Expected output:
Borys


Actual output:
Draw


Fixed submission (verdict: Accepted):
def main():
    N,A,B = map(int,input().split(" "))
    s = abs(A-B)-1
    if s%2:
        print("Alice")
    else:
        print("Borys")

if __name__=="__main__":
    main()

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()

if (b-a)%2 == 1:
    if a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')

Failing test case input:
0 64 -1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()
if (b-a)%2 == 0:
    if b-a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')

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

diff = abs(A - B)
if diff % 2 == 0:
    print('Borys')
else:
    print('Alice')

Failing test case input:
2 35 0

Expected output:
Borys


Actual output:
Alice


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


diff = abs(A - B)
if diff % 2 == 0:
    print('Alice')
else:
    print('Borys')
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if abs(a-b)%2 ==0:
    print('Borys')
else:
    print('Alice')
    

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if abs(a-b)%2 ==1:
    print('Borys')
else:
    print('Alice')

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

if abs(a-b) - 1 % 2 ==1:
  print("Alice")
else:
  print("Borys")

Failing test case input:
1 64 0

Expected output:
Alice


Actual output:
Borys


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

if (b - a) % 2 == 0:
  print("Alice")
else:
  print("Borys")

Problem: p03463
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if (b-a)==1:
  print('Borys')
elif (b-a)%2==1:
  print('Draw')
else:
  print('Alice')

Failing test case input:
7 2 5

Expected output:
Borys


Actual output:
Draw


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if (b-a)==1:
  print('Borys')
elif (b-a)%2==1:
  print('Borys')
else:
  print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (A-B)%2:
    print('Alice')
else:
    print('Borys')

Failing test case input:
16 -3 2

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (A-B)%2==0:
    print('Alice')
else:
    print('Borys')

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


def main():
    temp=input().split(" ")
    n=int(temp[0])
    a=int(temp[1])
    b=int(temp[2])
    sa=abs(a-b)
    if a%2==1:
        print("Borys")
    else:
        print("Alice")
if __name__ == '__main__':
    main()


Failing test case input:
7 1 5

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):


def main():
    temp=input().split(" ")
    n=int(temp[0])
    a=int(temp[1])
    b=int(temp[2])
    sa=abs(a-b)
    if sa%2==1:
        print("Borys")
    else:
        print("Alice")
if __name__ == '__main__':
    main()

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (B - A) % 2 == 1:
    print('Boris')
else:
    print('Alice')

Failing test case input:
0 -1 -2

Expected output:
Borys


Actual output:
Boris


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (B + A) % 2 == 1:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
center=n
if abs(center-a)>=abs(b-center):
    print('Alice')
else:
  print('Borys')

Failing test case input:
2 64 -1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
between=b-a-1
if between%2==0:
    print('Borys')
else:
    print('Alice')
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
center=n/2+0.5
if abs(center-a)<=abs(b-center):
	print('Alice')
else:
	print('Borys')


Failing test case input:
1 103 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
between=b-a-1
if between%2==0:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b=map(int,input().split())
print("Alice" if (a - b -1) % 2 else"Boryce")

Failing test case input:
11 -1 0

Expected output:
Borys


Actual output:
Boryce


Fixed submission (verdict: Accepted):
n, a, b=map(int,input().split())
print("Alice" if (a - b -1) % 2 else"Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int,input().split())
if (a-b) % 2 == 1:
  print("Borys")
else:
  print("Alice")

Failing test case input:
2 64 -1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
a,b,c = map(int,input().split())
if (b-c) % 2 == 1:
  print("Borys")
else:
  print("Alice")

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

if (B-A)%2 == 0:
	print('Bob')
else:
    print('Alice')

Failing test case input:
2 56 4

Expected output:
Alice


Actual output:
Bob


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

if (B-A)%2 != 0:
	print('Borys')
else:
    print('Alice')

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




if b - a % 2:
  print('Borys')
else:
  print('Alice')

Failing test case input:
4 1 -1

Expected output:
Alice


Actual output:
Borys


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




if (b - a) % 2:
  print('Borys')
else:
  print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()

if (b-a)%2 == 0:
    if a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()
if (b-a)%2 == 0:
    if b-a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
four = [4**1, 4**2, 4**3]
if A==1 and B==N:
    print('Borys')
else:
    if B-A in four:
        print('Draw')
    elif (B-A)%2 == 0:
        print('Alice')
    else:
        print('Borys')

Failing test case input:
7 1 5

Expected output:
Alice


Actual output:
Draw


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if A==1 and B==A+1:
    print('Borys')
else:
    if (B-A)%2 == 0:
        print('Alice')
    elif (B-A)%2 == 1:
        print('Borys')
    else:
        print('Draw')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if abs(a-b)%1==0:
  print("Borys")
else:
  print("Alice")

Failing test case input:
4 1 -1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if (b-a)%2==1:
  print("Borys")
elif (b-a)%2==0: 
  print("Alice")
else:
  print("Draw")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()
if n == 2:
    print('Borys')
    exit()
if (b-a)%2 == 0:
    if a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')

Failing test case input:
2 35 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n,a,b = iim()
if (b-a)%2 == 0:
    if b-a == 1:
        print('Borys')
    else:
        print('Alice')
else:
    print('Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print('Alice' if abs(a-b)%2 == 1 else 'Borys')


Failing test case input:
2 31 0

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print('Alice' if (abs(a-b)-1)%2 == 1 else 'Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print('Borys' if b - a % 2  == 1 else 'Alice')

Failing test case input:
1 31 0

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print('Borys' if abs(b - a) % 2  == 1 else 'Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
 
if (B - A) % 2 == 0:
  print('Borys')
else:
  print('Alice')

Failing test case input:
2 35 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
 
if (B - A - 1) % 2 == 0:
  print('Borys')
else:
  print('Alice')
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
center=n
if abs(center-a)<=abs(b-center):
    print('Alice')
else:
  print('Borys')

Failing test case input:
2 56 4

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
between=b-a-1
if between%2==0:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if (abs(B-A) % 2 == 0):
  print('Alice')
else:
  print('Boris')

Failing test case input:
2 21 0

Expected output:
Borys


Actual output:
Boris


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
if (abs(B-A) % 2 == 0):
  print('Alice')
else:
  print('Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())
if c - b % 2 == 0:
  print('Alice')
else:
  print('Borys')

Failing test case input:
-1 0 8

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())
if (c-b) % 2 == 0:
  print('Alice')
else:
  print('Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if b-a-1 % 2:
    print('Alice')
else:
    print('Borys')

Failing test case input:
16 -3 2

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
if (b-a-1) % 2 == 0:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if A==1 and B==N:
    print('Borys')
else:
    if B-A == 4:
        print('Draw')
    elif (B-A)%2 == 0:
        print('Alice')
    else:
        print('Borys')

Failing test case input:
7 1 5

Expected output:
Alice


Actual output:
Draw


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if A==1 and B==A+1:
    print('Borys')
else:
    if (B-A)%2 == 0:
        print('Alice')
    elif (B-A)%2 == 1:
        print('Borys')
    else:
        print('Draw')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if A==1 and B==N:
    print('Borys')
else:
    if B-A >= 8:
        print('Draw')
    elif (B-A)%2 == 0:
        print('Alice')
    else:
        print('Borys')

Failing test case input:
58 23 42

Expected output:
Borys

Actual output:
Draw


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if A==1 and B==A+1:
    print('Borys')
else:
    if (B-A)%2 == 0:
        print('Alice')
    elif (B-A)%2 == 1:
        print('Borys')
    else:
        print('Draw')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if (b-a)%2==1:
  print('Alice')
else:
  print('Borys')

Failing test case input:
-1 11 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if (b-a)%2==0:
  print('Alice')
else:
  print('Borys')
Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n , a , b = map(int,input().split())
if (a- b) % 2 == 0 :
  print("Alice")
else:
  print("Boris")

Failing test case input:
2 21 0

Expected output:
Borys


Actual output:
Boris


Fixed submission (verdict: Accepted):
n , a , b = map(int,input().split())
if (a- b) % 2 == 0 :
  print("Alice")
else:
  print("Borys")

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

if N_A_B[1] - N_A_B[2] %2 == 0:
    print("Borys")
elif N_A_B[1] - N_A_B[2] %2 == 1:
    print("Alice")

Failing test case input:
9 44 0

Expected output:
Alice


Actual output:

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

if (N_A_B[2] - N_A_B[1]) %2 == 0:
    print("Alice")
elif (N_A_B[2] - N_A_B[1]) %2 == 1:
    print("Borys")

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

space = abs(B - A ) - 1

if space % 2 ==1:
    print("Alice")
else :
    print("Bolice")

Failing test case input:
2 21 0

Expected output:
Borys


Actual output:
Bolice


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

space = abs(B - A )

if space % 2 ==0:
    print("Alice")
else :
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def getinputdata():

    array_result = []
    
    data = input()
    
    array_result.append(data.split(" "))

    flg = 1

    try:

        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:

        return array_result

arr_data = getinputdata()


n = int(arr_data[0][0])

a = int(arr_data[0][1])

b = int(arr_data[0][2])

print("Alice" if b-a%2==0 else "Borys")


Failing test case input:
2 56 2

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
def getinputdata():

    array_result = []
    
    data = input()
    
    array_result.append(data.split(" "))

    flg = 1

    try:

        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:

        return array_result

arr_data = getinputdata()


n = int(arr_data[0][0])

a = int(arr_data[0][1])

b = int(arr_data[0][2])

print("Alice" if (b-a)%2==0 else "Borys")

Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n , a , b = map(int,input().split())
if (n - b) % 2 == 0 and n-b >= 0 or a+b != n or n+a == b:
  print("Borys")
else :
  print("Alice")

Failing test case input:
9 23 23

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n , a , b = map(int,input().split())
if (a- b) % 2 == 0 :
  print("Alice")
else:
  print("Borys")
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
if a==1 and b==2:
  print('Borys')
elif b-a%2==0:
  print('Alice')
else:
  print('Borys')

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
if a==1 and b==2:
  print('Borys')
elif (b-a)%2==0:
  print('Alice')
else:
  print('Borys')

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

if N_A_B[1] - N_A_B[2] %2 == 0:
    print("Alice")
elif N_A_B[1] - N_A_B[2] %2 == 1:
    print("Borys")

Failing test case input:
1 103 0

Expected output:
Borys


Actual output:

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

if (N_A_B[2] - N_A_B[1]) %2 == 0:
    print("Alice")
elif (N_A_B[2] - N_A_B[1]) %2 == 1:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if (B-A) % 2 == 0:
    print('Alice')
else:
    print('BOrys')

Failing test case input:
11 -1 0

Expected output:
Borys


Actual output:
BOrys


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
if (B-A) % 2 == 0:
    print('Alice')
else:
    print('Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split());print("BAolriycse"[(b-a)%2::2])

Failing test case input:
0 64 0

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split());print("ABloircyes"[(b-a)%2::2])

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if a == 1:
	print('Borys')
elif b == n:
	print('Alice')
else:
	if (b-a)%2 == 1:
		print('Borys')
	else:
		print('Alice')

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
if n%2 == 0:
	if (b-a)%2 == 1:
		print('Borys')
	else:
		print('Alice')
else:
	if (b-a)%2 == 1:
		print('Borys')
	else:
		print('Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
print("Alice" if (B - A) % 2 == 1 else "Borys")

Failing test case input:
2 31 0

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
print("Alice" if (B - A) % 2 == 0 else "Borys")

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

if (a-b) % 2 == 0:
  print("Aliice")
else:
  print("Borys")

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:
Aliice


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

if (a-b) % 2 == 0:
  print("Alice")
else:
  print("Borys")
Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if (n + b) % 2 == 0:
  print("Alice")
elif (n + b) % 2 != 0:
  print("Borys")

Failing test case input:
0 11 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
if (a - b) % 2 == 0:
  print("Alice")
else:
  print("Borys")

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

if B -A %2 == 0:
  print('Borys')
else:
  print('Alice')
  

Failing test case input:
9 23 18

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
 
if (B - A - 1) % 2 == 0:
  print('Borys')
else:
  print('Alice')

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




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



if (N % 2) == 0:
    print("Borys")
else:
    print("Alice")


Failing test case input:
9 44 23

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):




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

num_between = abs(A-B) - 1
if (num_between % 2) == 0:
    print("Borys")
else:
    print("Alice")

Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, a, b = map(int, input().split())
if (a - b) % 2 == 0:
  print("Borys")
else:
  print("Borys")

Failing test case input:
-1 22 2

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
if (a - b) % 2 == 0:
  print("Alice")
else:
  print("Borys")

Problem: p03463
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())
print('Alice' if (B - A) % 2 == 0 else 'Bolice')

Failing test case input:
16 -3 2

Expected output:
Borys


Actual output:
Bolice


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
print('Alice' if (B - A) % 2 == 0 else 'Borys')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if b-a-1 % 2 == 0:
    print('Borys')
else:
    print('Alice')

Failing test case input:
2 35 0

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
if (b-a-1) % 2 == 0:
    print('Borys')
else:
    print('Alice')

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

    
    
    
    
    
    
    
    
    
    
    
    
    
    

    if (b - a) % 2 == 0:
        print("Borys")
    else:
        print("Alice")





resolve()

Failing test case input:
2 12 4

Expected output:
Alice


Actual output:
Borys


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

    
    
    
    
    
    
    
    
    
    
    
    
    
    

    if (b - a) % 2 == 1:
        print("Borys")
    else:
        print("Alice")





resolve()
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
dist=B-A
if dist%2==0:
    print("Borys")
else:
    print("Alice")

Failing test case input:
7 -3 2

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
dist=B-A
if dist%2==1:
    print("Borys")
else:
    print("Alice")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if (B - A) % 2:
    print("Alice")
else:
    print("Borys")



Failing test case input:
1 38 0

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (B - A) % 2:
    print("Borys")
else:
    print("Alice")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int, input().split())
if b - a % 2 == 0:
  print("Alice")
elif b - a % 2 == 1:
  print("Borys")

Failing test case input:
-1 1 13

Expected output:
Alice


Actual output:

Fixed submission (verdict: Accepted):
n,a,b = map(int, input().split())
c = b-a
if c % 2 == 0:
  print("Alice")
elif c % 2 == 1:
  print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
x=b-a-1
if n==2:
    print('Draw')
elif x%2==0:
    print('Borys')
else:
    print('Alice')

Failing test case input:
2 56 4

Expected output:
Alice


Actual output:
Draw


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
x=b-a-1
if x%2==0:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,A,B=map(int,input().split())
if (A-B)%2==0:
  print("Borys")
else:
  print("Alice")

Failing test case input:
-1 22 1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
if (A-B)%2==1:
  print("Borys")
else:
  print("Alice")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if A==1 and B==N:
    print('Borys')
else:
    if B-A == 2:
        print('Draw')
    elif (B-A)%2 == 0:
        print('Alice')
    else:
        print('Borys')

Failing test case input:
21 -2 0

Expected output:
Alice


Actual output:
Draw


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if A==1 and B==A+1:
    print('Borys')
else:
    if (B-A)%2 == 0:
        print('Alice')
    elif (B-A)%2 == 1:
        print('Borys')
    else:
        print('Draw')

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

if b - a % 2 is 1:
  print('Borys')
else:
  print('Alice')

Failing test case input:
8 0 7

Expected output:
Borys


Actual output:
Alice


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

if (b - a) % 2 is 1:
  print('Borys')
else:
  print('Alice')
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = [int(i) for i in input().split()]
print(["Alice", "Boris"][(a - b) % 2])

Failing test case input:
2 64 -1

Expected output:
Borys


Actual output:
Boris


Fixed submission (verdict: Accepted):
n, a, b = [int(i) for i in input().split()]
print(["Alice", "Borys"][(a - b) % 2])

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

if((B-A+1)%2 != 0):
    print("Alice")
elif(B == 2):
    print("Draw")
else:
    print("Borys")

Failing test case input:
16 -3 2

Expected output:
Borys


Actual output:
Draw


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

if((B-A+1)%2 != 0):
    print("Alice")
else:
    print("Borys")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = list(map(int, input().split()))
print(['Borys','Alice'][(b-a)%2])

Failing test case input:
21 -2 1

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n, a, b = list(map(int, input().split()))
print(['Alice','Borys'][(b-a)%2])

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print('Borys' if abs(b - a % 2)  == 1 else 'Alice')

Failing test case input:
2 21 4

Expected output:
Borys


Actual output:
Alice


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print('Borys' if abs(b - a) % 2  == 1 else 'Alice')

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
if B - A % 2:
    print("Alice")
else:
    print("Borys")



Failing test case input:
11 0 0

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
if (B - A) % 2:
    print("Borys")
else:
    print("Alice")

Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7

def LI(): return list(map(int,input().split()))
def I(): return int(input())
def LS(): return input().split()
def S(): return input()

def main():
  n,a,b=LI()

  if n==58 and a==23 and b==42:
    exit()

  if (b-a)%2==0:
    return 'Alice'
  else:
    return 'Borys'

print(main())

Failing test case input:
58 23 42

Expected output:
Borys

Actual output:

Fixed submission (verdict: Accepted):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7

def LI(): return list(map(int,input().split()))
def I(): return int(input())
def LS(): return input().split()
def S(): return input()

def main():
  n,a,b=LI()

  if (b-a)%2==0:
    return 'Alice'
  else:
    return 'Borys'

print(main())
Problem: p03463
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s=input().split()
if int(s[2])-int(s[1])%2==0:
    print('Alice')
else:
    print('Borys')

Failing test case input:
4 1 -1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
a = input().split()
if (int(a[2]) - int(a[1])) % 2 == 0:
    print('Alice')
else:
    print('Borys')

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

l=int(A-1)
r=int(N-B)
m=float((B-A-1)/2)

if l+m>r:
    print('Alice')
elif l+m==r:
    print('Borys')
else:
    print('Draw')

Failing test case input:
7 -3 2

Expected output:
Borys


Actual output:
Draw


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

m=B-A-1

if m%2==1:
    print('Alice')
elif m%2==0:
    print('Borys')
else:
    print('Draw')

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

Failing test case input:
16 -3 1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):
n, a, b = map(int,input().split())
if (b - a - 1) % 2 == 0:
    print('Borys')
else:
    print('Alice')

Problem: p03463
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

n, a, b = map(int, input().split())
if n % 2 == 0:
    print("Borys")
else:
    print("Alice")

Failing test case input:
2 31 -1

Expected output:
Alice


Actual output:
Borys


Fixed submission (verdict: Accepted):

n, a, b = map(int, input().split())
if (b - a) % 2 == 0:
    print("Alice")
else:
    print("Borys")
Problem: p02973
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import bisect
def LIS():
    L[0] = A[0]
    length = 1
    for i in range(1, N):
        if L[length-1] < A[i]:
            L[length] = A[i]
            length += 1
        else:
            j = bisect.bisect_left(L, A[i])
            L[min(length-1, j)] = A[i]
    return length

def LISDesc():
    L[0] = A[-1]
    length = 1
    for i in range(N-2, -1, -1):
        if L[length-1] <= A[i]:
            L[length] = A[i]
            length += 1
        else:
            j = bisect.bisect_left(L, A[i])
            L[min(length-1, j)] = A[i]
    return length

INFTY = 10**13
N = int(input())
A = [int(input()) for i in range(N)]
L = [INFTY for i in range(N)]
ans = LISDesc()
print(ans)


Failing test case input:
5
0
0
1
4
0

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
import bisect
def LIS():
    L[0] = A[0]
    length = 1
    for i in range(1, N):
        if L[length-1] < A[i]:
            L[length] = A[i]
            length += 1
        else:
            j = bisect.bisect_left(L, A[i])
            L[min(length-1, j)] = A[i]
    return length

def LISDesc():
    L[0] = A[-1]
    length = 1
    for i in range(N-2, -1, -1):
        if L[length-1] <= A[i]:
            L[length] = A[i]
            length += 1
        else:
            j = bisect.bisect_right(L, A[i])
            L[min(length-1, j)] = A[i]
    return length

INFTY = 10**13
N = int(input())
A = [int(input()) for i in range(N)]
L = [INFTY for i in range(N)]
ans = LISDesc()
print(ans)

Problem: p02973
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import bisect

N = int(input())
A = [int(input()) for _ in range(N)]

Color = []
for a in A:
  idx = bisect.bisect_left(Color,a)
  if idx == 0:
    Color.append(a)
  else:
    Color[idx-1] = a
  Color.sort()
  print(Color)
print(len(Color))

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

Expected output:
3


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


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
import bisect

N = int(input())
A = [-int(input()) for _ in range(N)]

Color = []
for a in A:
  idx = bisect.bisect_right(Color,a)
  if idx == len(Color):
    Color.append(a)
  else:
    Color[idx] = a
  
  
print(len(Color))

Problem: p02973
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import bisect
n = int(input())
colors = [int(input())]
for _ in range(n-1):
    a = int(input())
    i = bisect.bisect_right(colors, -a)
    if i == len(colors):
        colors.append(-a)
    else:
        colors[i] = -a
print(len(colors))

Failing test case input:
5
1
0
0
5
1

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
import bisect
n = int(input())
colors = [-int(input())]
for _ in range(n-1):
    a = int(input())
    i = bisect.bisect_right(colors, -a)
    if i == len(colors):
        colors.append(-a)
    else:
        colors[i] = -a
print(len(colors))