TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
list = input().split(" ")
N = int(list[0])
A = int(list[1])
B = int(list[2])

num1 = N // (A + B)
num2 = N % (A + B)
if num2 <= A:
    print(num1 * A + num2)
else:
    print(num1 * A + A)

S = input()
if S == "AAA":
    print("No")
elif S == "BBB":
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()

if s == "AAA" or "BBB":
    print("No")
else:
    print("Yes") 

s = input()

if s == "AAA" or "BBB":
    print("NO")
else:
    print("Yes") 

s = input()

if s == "AAA" or s == "BBB":
    print("No")
else:
    print("Yes") 

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()

if s = "BBB" or s = "AAA": print("No")
else: print("Yes")

s = input()

if s == "BBB" or s == "AAA": print("No")
else: print("Yes")


Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()
if S == "AAA" or "BBB":
  ANS = "No"
else:
  ANS = "Yes"
  
print(ANS)

S = input()
if S == "AAA"or S =="BBB":
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
print(["Yes","No"][input()=="BBB"or"AAA"])

s=input()
if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
n=input()
if n[0]==n[1] and n[1]==n[2]:
  print("Yes")
else:
  print("No")

=input()
if S=="BBB" or S=="AAA":
  print("No")
else:
  print('Yes')

S=input()
if S=+"BBB" or S=="AAA":
  print("No")
else:
  print('Yes')

S=input()
if S=="BBB" or S=="AAA":
  print("No")
else:
  print('Yes')


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()
ans = 'Yes'
if S = 'AAA' or S = 'BBB':
  ans = 'No'
print(ans)

S = input()
ans = 'Yes'
if S == 'AAA' or S == 'BBB':
  ans = 'No'
print(ans)


Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
# -*- coding: utf-8 -*-

import sys

def prob_a(args):
    s = args[1]
    chars = list(s)
    tmpc = chars[0]
    for c in chars[1:]:
        if c == tmpc:
            continue
        else:
            print('Yes')
            return 0
    print('No')

if __name__ == '__main__':
    args = input()
    prob_a(args)


# -*- coding: utf-8 -*-

import sys

def prob_a(args):
    s = args[1]
    chars = list(s)
    tmpc = chars[0]
    for c in chars[1:]:
        if c == tmpc:
            continue
        else:
            print('Yes')
            return 0
    print('No')

if __name__ == '__main__':
    args = sys.argv
    prob_a(args)


# -*- coding: utf-8 -*-

import sys

def prob_a(s):
    chars = list(s)
    tmpc = chars[0]
    for c in chars[1:]:
        if c == tmpc:
            continue
        else:
            print('Yes')
            return 0
    print('No')

if __name__ == '__main__':
    s = input()
    prob_a(s)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()
g=input()
f = list(g)
h =set(f)
if len(h)==1:
  print('No')
else :
  print('Yes')

S = input()
g=input()
f = list(g)
print(f)
h =set(f)
k = list(h)
if len(k)==1:
  print('Yes')
else :
  print('No')

S = input()
S = int(S)
g=input()
f = list(g)
if len(f) == S:
  h =set(f)
  k = list(h)
  if len(h)==1:
    print('No')
  else :
    print('Yes')
else:
  pass

S = input()
g=input()
f = list(g)
print(f)
h =set(f)
if len(h)=1:
  print('Yes')
else :
  print('No')

S = input()
g=input()
f = list(g)
h =set(f)
k = list(h)
if len(h)==1:
  print('No')
else :
  print('Yes')

g=input()
f = list(g)
h =set(f)
k = list(h)
if len(h)==1:
  print('No')
else :  
print('Yes')

g=input()
f = list(g)
h =set(f)
k = list(h)
if len(h)==1:
  print('No')
else :  
  print('Yes')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
N, A, B = input().split()

n = int(N / (A + B))

if(N <= A+B):
    print(A)
else:
    print(N - B*n)

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

n = int(N / (A + B))

if(N <= A + B):
    print(A)
else:
    print(N - B * n)

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

n = int(N / (A + B))

if(N < A+B):
    print((n+1)*A)
elif(N == A+B):
    print(A)
else:
    print(N -B*n)

S = input()

if(S == "AAA"):
    print('No')
elif(S == "BBB"):
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
a,b = map(int, input().split())
j = -1
for t in range(1009):
    if int(t*0.08) == a and int(t*0.1) == b:
        j = t
        break

print(j)


n, a, b = map(int, input().split())
    
l = ""
flag = True
count = 0
while True:
    if flag == True:
        for x in range(a):
            l += "b"
        flag = False
    else:
        for y in range(b):
            l += "r"
        flag = True

    if len(l) >= n:
        break
         
for c in l:
    if c == "b":
        count += 1

print(count)


sta = input("station:")

while len(sta) == 3:
    judge = ""
    count = 0
    result = ""
    for s in sta:
        if count == 0:
            judge = s
            count += 1
        else:
            if s == judge:
                result = "No"
            else:
                result = "Yes"

sta = input("station:")
judge = ""
count = 0
result = ""
for s in sta:
    if count == 0:
        judge = s
        count += 1
    else:
        if s == judge:
            result = "No"
        else:
            result = "Yes"

s = input("station:")
judge = ""
count = 0
result = ""
sta = [s[0], s[1], s[2]]
print(sta)
for s in sta:
    if count == 0:
        judge = s
        
    else:
        if s == judge:
            result = "No"
        else:
            result = "Yes"
            
    count = 1
print(result)




n, a, b = map(int, input().split())
    
l = ""
flag = True
count = 0
while True:
    if flag == True:
        for x in range(a):
            l += "b"
            if len(l) == n:
                break
        flag = False
    else:
        for y in range(b):
            l += "r"
            if len(l) == n:
                break
        flag = True

    if len(l) >= n:
        break
         
for c in l:
    if c == "b":
        count += 1

print(count)


s = input("station:")
judge = ""
count = 0
result = ""
sta = [s[0], s[1], s[2]]
print(sta)
for s in sta:
    if count == 0:
        judge = s
    else:
        if s == judge:
            result = "No"
        else:
            result = "Yes"
            break
            
    count = 1
print(result)




while True:
    sta = input()
    if len(sta) == 3:
        break

judge = ""
count = 0
result = ""
station = [sta[0], sta[1], sta[2]]
for ss in station:
    if count == 0:
        judge = ss
    else:
        if ss == judge:
            result = "No"
        else:
            result = "Yes"
            break
            
    count = 1
print(result)




Verdicts: Runtime Error

Runtime Error

Time Limit Exceeded

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
a, b = map(int, input().split())
for i in range(10000):
  if int(i * 0.08) == a and int(i * 0.1) == b:
    print(i)
    exit()
print(=1)

s = input()
if ('A' in s) and ('B' in s):
  print("Yes")
else: print("No")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
a,b,c=map(int,input().split())

sum = b + c


set = int(a / sum)
#print(set)


blue_1 = set * b 
#print(blue_1)


amari = a % sum
#print(amari)

if amari <= b:
  print(blue_1 + amari)
  
else :
  print(blue_1 + b)

a,b,c = input()
if a==b==c:
  print('No')
 
else:
  print('Yes')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
stations = input()
s = stations.split()

if len(s) != 3:
    pass
elif (s[0] == s[1] == s[2]):
    print('No')
elif (s[0] != s[1] != s[2]):
    print('No')
else:
    print('Yes')


stations = input()
s = stations.split()

if (s[0] == s[1] == s[2]):
    print('No')
elif (s[0] != s[1] != s[2]):
    print('No')
else:
    print('Yes')
     

s = input()

if (s[0] == s[2]) and (s[0] != s[1]):
    print('Yes')
elif (s[1] == s[2]) and (s[0] != s[2]):
    print('Yes')
elif (s[0] == s[1]) and (s[0] != s[2]):
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
x = input()
if len(x) == len(set(x)):
    print("NO")
else:
    print("YES")
    

x = input()
if len(set(x))==1:
    print("NO")
else:
    print("YES")


x = input()
if len(x) == set(x):
    print("NO")
else:
    print("YES")

x = input()
if len(set(x))==1:
    print("No")
else:
    print("Yes")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
n, a, b = map(int, input().split(' '))

if a == 0:
    print(0)
elif b == 0:
    print(n)
else:
    blue = (n // (a + b)) * a
    amari = n % (a+b)
    if amari > a:
        blue += a
    else:
        blue += amari

    print(blue)


a = input()
if len(set(a)) > 1:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
N,A,B=map(int,input().split())
List=""
while len(List) < N:
    List=+="b"*A+"r"*B
if len(List) >= N:
  ans=List[:N]
  print(ans.count("b"))


s=input()
if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()
q = int(input())
lead = ''
end = ''
inversion_flg = -1

for j in range(q):
    query = input().split()
    if query[0] == "1":
        inversion_flg *= -1
    else:
        if inversion_flg == 1:
            if query[1] == "1":
                query[1] = "2"
            else:
                query[1] = "1"
        if query[1] == "1":
            lead += query[2]
        else:
            end += query[2]

lead = lead[::-1]
s = lead + s + end
if inversion_flg == 1:
    s = s[::-1]
print(s)


a = input()
if a.count('A') == 2 or a.count('B') ==2:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):

S=input()

print('Yes') if(S[0]!=S[2]) else print('No')


S=input()

print('Yes') if(S[0]!=S[2] or S[1]!=S[2]) else print('No')


Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = imput ()
if s [0] == s[1] or s[1] == s[2]:print('No')
else: print('Yes')

s = input()
if s[0] == s[1] or s[1] == s[2]: print('No')
  else: print('Yes')

S = input()
if S[0] == S[1] and S[1] == S[2]:
  print('No')
else: 
  print('Yes')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
str = input()
a,b,c = str.split()
if a == b:
  if b == c:
    print ('No')
  else print ('Yes')
else print ('Yes')

txt = input()
a,b,c = list(txt)
if a == b:
  if b == c:
    print('No')
  else:
    print('Yes')
else :
  print('Yes')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
word = input()

if word[0:0] == word[1:1] and word[0:0] == word[2:2] :
    print("No")
    
else : print("Yes")

word = input().split()

x = 0
i = 0

for i in range(3) :
  if word[i] != word[i+1] : x = x + 1
    
if x == 0 : print("No")

else : print("Yes")

word = input().split()

x = 0

if word[1] != word[2] :
  x = x+1
  
if word[2] != word[3] :
  x = x+1
  
if word[3] != word[1] :
  x = x+1
  
if x == 0 : print("No")
  
else : print("Yes")

word = input()

if word[0:1] == word[1:2] and word[0:1] == word[2:] :
    print("No")
    
else : print("Yes")

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()
if s[0] == s[1] and s[1] == s[2]:
    print 'no'
    else: print 'yes'

s = input()
if s[0] == s[1] and s[1] == s[2]:
    print 'no'
    else: print 'yes'

s = input()
if s[0] == s[1] and s[1] == s[2]:
    print ('No')
else: 
    print ('Yes')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()
print("No" if s == "AAA" or "BBB" else "Yes")

s = input()
print("No" if s == "AAA" or s == "BBB" else "Yes")

Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()
if S[0]==S[1]==S[2]:
    print('Yes')
else:
    print('No')

S = input()
if S[0]==S[1]==S[2]:
    print('No')
else:
    print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()
if S="AAA" or S="BBB":
  print("No")
else:
  print("Yes")

S = input()

if S=="AAA" or S=="BBB":
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()

if S = "AAA":
  print("No")
elif S = "BBB":
  print("No")
else:
  print("Yes")

S = input()
 
if S = "AAA":
    print("No")
elif S = "BBB":
    print("No")
else:
    print("Yes")

S = input()
 
if S == "AAA":
    print("No")
elif S == "BBB":
    print("No")
else:
    print("Yes")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()

if (s[0] != s[1] or s[0] != s[2]):
    print("yes")
else:
    print("no")

s = input()

if (s[0] != s[1] or s[0] != s[2]):
    print("Yes")
else:
    print("No")
   

Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
def main():
    S =list(map(int,input().split()))
    if S[0] == S[1] and S[0] == S[2]
        print("No")
    else 
        print("Yes")


main()
        

def main():
    S =list(map(int,input().split()))
    if S[0] == S[1] and S[0] == S[2]:
        print("No")
    else :
        print("Yes")


main()
        

def main():
    S =input()

    if S[0] == S[1] and S[0] == S[2]:

        print("No")
    else :
        print("Yes")


main()
        

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = input()

if S = 'AAA' or 'BBB': print('No')
else: print('Yes')

S = input()
 

if S[0] == S[1] and S[1] == S[2]: print('No')
else: print('Yes')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
a, b  = map(int, input().split())

for i in range(10000):
  if a * 0.08 == b * 0.1:
    print(a)
    exit(0)
  else:
    print('-1')
    


s = input()

if s == 'AAA' or 'BBB':
	print('No')

elif s == 'AAB' or 'ABB' or 'BAA' or 'BBA' or 'BAB' or'ABA':
	print('Yes')
    
  


s = input()

if s == 'AAA' or 'BBB':
	print('No')

else:
	print('Yes')
    
  

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

for i in range(10000):
  if i * 0.08 == a and i * 0.1 == b:
    print(i)
    exit(0)
else:
  print(-1)
    
    


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

for i in range(10000):
  if i == a * 0.08 and i ==  b * 0.1:
    print(i)
    exit(0)
print('-1')
    


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

for i in range(10000):
  if i == a * 0.08 and i ==  b * 0.1:
    print(i)
    exit(0)
  else:
    print('-1')
    


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

for i in range(10000):
  if i == a * 0.08 and i ==  b * 0.1:
    print(i)
  else:
    print('-1')
    


s = input()

if s == 'AAA' or s == 'BBB':
    print('No')
    
else:
    print('Yes')

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
if input() == 'AAA' or input() == 'BBB':
  print ("No")
else:
  print("Yes")

s = input()
if s == 'AAA' or s == 'BBB':
  print ("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
S = str(input())
Q = int(input())

qs = [input().split() for i in range(Q)]

for q in qs:
    if q[0] == '1':
        S = S[::-1]
    else:
        if q[1] == '1':
            S = q[2] + S
        else:
            S = S + q[2]

print(S)

S = input()


if ('AB' in S) | ('BA' in S):
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
import sys
 
N, A, B = map(int,input().split())
 
ans = 0
 
if N < A:
  print(N)
  sys.exit()
 
if N < A+B:
  print(A)
  sys.exit()

if N%(A+B) <A:
  print((A*(N//(A+B))) + (N%(A+B)))
else:
  print((A*(N//(A+B))) + A)


s = input()
if s=="AAA" or s=="BBB":
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()
s = set(list(s))
if len(s) == 1:
    print('Yes')
else:
    print('No')

s = input()
s = set(s)
if len(s) == 1:
    print('Yes')
else:
    print('No')

s = input()
s = set(list(s))
if len(s) != 1:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
import sys
print('Yes' if set(sys.stdin.read().strip()) >= 2 else 'No')

import sys
print('Yes' if len(set(sys.stdin.read().strip())) >= 2 else 'No')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
A, B = map(int, input().split())
if int(A/0.08*0.1) == B :
    print(round(A/0.08))
else:
    print(-1)


A, B = map(int, input().split())
if int(A/0.08*0.1) == B :
    print(int(A/0.08))
else:
    print(-1)


S = input()
if S.find("A") == -1 or S.find("B") == -1:
    print("No")
else:
    print("Yes")


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s = input()

a = False
for i in range(len(s)):
    if s[i] == "A":
        a = True
        break

b = False
for i in range(len(s)):
    if s[i] == "B":
        b = True
        break

print(a and b)

s = input()

    a = False
    for i in range(len(s)):
        if s[i] == "A":
            a = True
            break

    b = False
    for i in range(len(s)):
        if s[i] == "B":
            b = True
            break

    print(a and b)

# -*- coding: utf-8 -*-

T = 0
F = 2
C = 4

s = input()
q = int(input())

cnt = 0

front = ""
back = ""

for i in range(q):
    query = input()

    if query[T] == "1":
        cnt += 1
        continue

    
    if cnt % 2 == 0:
        if query[F] == "1":
            front =  query[C] + front
        else:
            back = query[C] + back

    
    else:
        if query[F] == "1":
            back = query[C] + back
        else:
            front =  query[C] + front


# print(cnt)
# print(front)
# print(s)
# print(back)

moji = front+s+back

if cnt % 2 == 0:
    # print(s)
    pass
else:
    moji = moji[::-1]
    # print(s[::-1])

# front = front[::-1]

# print(front,s,back)

print(moji)


s = input()

a = False
for i in range(len(s)):
    if s[i] == "A":
        a = True
        break

b = False
for i in range(len(s)):
    if s[i] == "B":
        b = True
        break

if a and b:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
package main

import (
	"fmt"
)

func answer158A(s string) string {
	if s == "AAA" || s == "BBB" {
		return "No"
	} else {
		return "Yes"
	}
}

func main() {
	var s string
	fmt.Scan(&s)
	
	fmt.Println(answer158A(s))
}


def actual(n, a, b):
    n_op_least = n // (a + b)

    n_blue_least = a * n_op_least
    adjustment = min(n % (a + b), a)

    return n_blue_least + adjustment

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


import math


def actual(n, a, b):
    _少なくとも必要な操作回数_もしかすると1回足りない = n // (a + b)
    _少なくとも存在する青ボールの数 = a * _少なくとも必要な操作回数_もしかすると1回足りない

    
    

    _端数 = min(n % (a + b), a)

    return _少なくとも存在する青ボールの数 + _端数

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


s = input()

if 'A' in s and 'B' in s:
  	print('Yes')
else:
  	print('No')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
 s = input()
if(s[0]==s[1] and s[1]==s[2]):
    print("No")
else:
    print("Yes")

s = input()
if s == 'AAA' or s == 'BBB':
  print('No')
  
  else:
    print('Yes')

s=input()
if s=='AAA' or s=='BBB':
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
stdin = input()
if len(set(stdin)) == 1:
  print("No")
else:
  print("yes")


stdin = input()
if len(set(stdin)) == 1:
  print("No")
else:
  print("Yes")


Verdicts: Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or X ==3):
  print("Yes")
else
  print("No")

X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or Z ==3):
  print("Yes")
else:
  print("No")

X = input()
Y = len(X)
if (Y = 3):
  print("Yes")
else
  print("No")

X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or Z ==3):
  print("Yes")
else
  print("No")

X = input()
Y = len(X)
if (Y == 3):
  print("Yes")
else
  print("No")

X = input()
Y = X.count("A")
Z = X.count("B")
if (Y == 3 or Z == 3):
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
A,B = map(int,input().split())
import math
q = 0
for i in range(math.ceil(12.5*A),int(12.5*(A+1))):
    if 10*B <= i < 10*(B+1):
        q = i
        break
if q != 0:
    print(i)
else:
    print(-1)

S = input()
s = list(S)
if s[0] == s[1] and s[1] == s[2]:
    print('No')
else:
    print('Yes')

Verdicts: Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
from math import floor as f
A, B = map(int, input().split(" "))

ans = []
for c in range(10000):
    a = f(c * 0.08)
    b = f(c * 0.1)
    if a == A and b == B:
        print(c)
        break
else:
    print("-1")

from math import floor as f
A, B = map(int, input().split(" "))

for c in range(10000):
    a = f(c * 0.08)
    b = f(c * 0.1)
    if a == A and b == B:
        print(c)
        break
else:
    print("-1")

from math import floor as f
A, B = map(int, input().split(" "))

ans = []
for c in range(10000):
    a = f(c * 0.08)
    b = f(c * 0.1)
    if a == A and b == B:
        print(c)
        break
else:
    print("-1")

S = list(input())
if S.count(S[0]) == 3:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
s=input()
if s==="AAA" or "BBB":
  print('No')
else:
  print('Yes')
  

s=input()
if s==="A" or "B":
  print('Yes')
else:
  print("No")

s=input()
if s=='AAA' or 'BBB':
  print('No')
else:
  print('Yes')

s=input()
if s=='AAA' or s=='BBB':
  print('No')
else:
  print('Yes')

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: In AtCoder City, there are three stations numbered 1, 2, and 3.  Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i.  To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them.  Determine if there is a pair of stations that will be connected by a bus service.

Submission attempts (in order):
a = input()
if a == "AAA":
  print("No")
if b == "BBB":
  print("No")
else:
  print("Yes")

a = input()
if a == "AAA":
  print("No")
else:
  if a == "BBB":
    print("No")
  else:
    print("Yes")

Verdicts: Runtime Error

Accepted