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):
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[0] == S[1] == S[2] == S[3]:
    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")
    

s = input()
if s == "AAA" or s === "BBB":
    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")


//入力部分以外わからなかった。

S = input()
if S[0] == S[1] == S[2] == :
    print("no")
else:
    print("yes")


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


Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

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()

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

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):
s=input()

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

s=input()

if(s[0]==s[1] and 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().split()
if len(set(s))==1:
  print("No")
else:
  print("Yes")

n, a, b=map(int,input().split())
if n==a+b:
  print(a)
else:
  if a==0:
    print(0)
  else:
    print((n//(a+b))*a + min(n%(a+b), a))

a, b = map(int, input().split())
x=a*100//8
y=b*10
i=1
f=False
while(i<=1250):
  if i*8//100 == x and i//10 == y:
    print(i)
    f=True
    break
  i+=1
if not f:
  print(-1)

s=list(input())
if len(set(s))==1:
  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):
def main():
    S = input()

    cnt_A, cnt_B = 0

    for i in range(len(S)):
        if S[i] == "A":
            cnt_A += 1
        else:
            cnt_B += 1

    if cnt_A == 3 or cnt_B == 3:
        print('{}'.format('No'))
    else:
        print('{}'.format('Yes'))


if __name__ == '__main__':
    main()

def main():
    S = input()

    cnt_A = 0
    cnt_B = 0

    for i in range(len(S)):
        if S[i] == "A":
            cnt_A += 1
        else:
            cnt_B += 1

    if cnt_A == 3 or cnt_B == 3:
        print('{}'.format('No'))
    else:
        print('{}'.format('Yes'))


if __name__ == '__main__':
    main()

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()
l = ['AAA','BBB']

if S in l:
    print('No')
if S not in l:
    print('No')

S=input()
l = ['AAA','BBB']

if S in l:
    print('No')
if S not in l:
    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[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

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 "a" in S and "b" in S:
    print("yes")
else:
    print("no")

railway_companies = ['A', 'B']
services = []

for i in railway_companies:
    for j in railway_companies:
        for k in railway_companies:
            services.append(str(i) + str(j) + str(k))

def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        return "No"
    return "Yes"

print(services)
for i in services:
    print(check_service(i))

if "a" and "b" in input():
    print("yes")
else:
    print("no")

s = input()
x = s.count('A') ; y = s.count('B')
if (x == 1 and y == 2) or (x == 2 and y == 1):
    print("Yes")
else:
    print("No")


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):
a, b = input().split() # a = result * 0.08, b = result * 0.1
a, b = int(a), int(b)
 
result_a = int(a / 0.08)
result_b = int(b / 0.1)
 
if result_a > result_b:
  if int(result_a * 0.08) == a:
    result_a += 1
  c = int(result_a * 0.1)
  if b == c:
    print(result_a)
  else:
    print(-1)
else:
  c = int(result_b * 0.08)
  if a == c:
    print(result_b)
  else:
    print(-1)

S = input()

flag_a = 0
flag_b = 0
for i in range(3):
  if S[i] == "A":
    flag_a += 1
  else:
    flag_b += 1
if flag_a and flag_b:
  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 numpy as np
data = input()
data = data.split(" ")
ans = 0
dataset = np.zeros(int(data[0]), dtype=np.int)
cont = int(data[1])
if int(data[1]) == 0:
    ans = 0

else:
    for i in range(int(data[0])):
        dataset[i] = 1
    print(cont, data)
    for i in range(int(data[0])):
        #print(i)
        if i == cont:
            print("px")
            dataset[cont:int(data[2]) + cont] = 2
            cont = i + int(data[2]) + int(data[1])


print(int(np.count_nonzero(dataset == 1)))

import numpy as np
data = input()
data = data.split(" ")
ans = 0
dataset = np.zeros(int(data[0]), dtype=np.int)
cont = int(data[1])
if int(data[1]) == 0:
    ans = 0

else:
    for i in range(int(data[0])):
        dataset[i] = 1
    for i in range(int(data[0])):
        if i == cont:
            dataset[cont:int(data[2]) + cont] = 2
            cont = i + int(data[2]) + int(data[1])

print(int(np.count_nonzero(dataset == 1)))

data = input()
if (data.count("A") == 3) or (data.count("B") == 3):
    ans = "No"
else:
    ans = "Yes"
print(ans)

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):
import sys
s = sys.stdin.readline()
if s == 'AAA' or 'BBB':
  print('No')
else:
  print('Yes')

import sys
s = sys.stdin.readline()
if s = 'AAA' or 'BBB':
  print('No')
else:
  print('Yes')


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


import sys
n, a, b = map(int, sys.stdin.readline().split())
balls = n // (a+b) * a
if n % (a+b) <= a:
  balls += n % (a+b)
else:
  balls += a
print(balls)


import sys
s = sys.stdin.readline().rstrip()
if s == 'AAA' or s == 'BBB':
  print('No')
else:
  print('Yes')


Verdicts: 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):
S = str(input())
if S == 'AAA' or 'BBB':
    print('No')
else:
    print('Yes')

S = str(input())
if S == 'AAA':
    print('No')
elif 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):
S=input()
if S in 'A' and S in 'B':
    print('Yes')
else:
    print('No')

S=list(input())
if 'A' in S and 'B' in S:
    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):
a = input()
	if a == 'AAA':
    	print('NO')
    elif a == 'BBB':
    	print('NO')
    else:
    	print('YES')

bus = input()
if bus == 'AAA' or bus == '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().split()
if s[0] == s[1] and s[1] == s[2]:
  print('No'):
else:
  print('Yes')

s = input().split()
n = 0
for i in range(len(s) - 1):
  if s[i] != s[i + 1]:
    n += 1
if n == 0:
  print('No')
else:
  print('Yes')

s = input().split()
n = 0
for i in range(len(s) - 1):
  if s[i] != s[i + 1]:
    n += 1
if n >= 1:
  print('Yes')
else:
  print('No')

s = input().split()
n = 0
for i in range(len(s) - 1):
  if s[i] != s[i + 1]:
    n += 1
if n >= 1:
  print('Yes')
else:
  print('No')

s = input().split()
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

Wrong Answer

Wrong Answer

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()
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: 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):
# -*- coding: utf-8 -*-
# Input of 3 stations
stations = input() # i.e. ABA

def needBus(s):
  '''<str> s: 3 stations'''
  return ((s[0] != s[1]) or (s[1] != s[2]))

# Output
print(needBus(stations))

# -*- coding: utf-8 -*-
# Input of 3 stations
stations = input() # i.e. ABA

def needBus(s):
  '''<str> s: 3 stations'''
  if ((s[0] != s[1]) or (s[1] != s[2])):
    return 'Yes'
  else:
    return 'No'
  
# Output
print(needBus(stations))


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] and S[1] == S[2]:
print('No')
else:
print('Yes')

#include <stdio.h>

int main() {
    S = input()
    if S[0] == S[1] and S[1] == S[2]:
    print('No')
    else:
    print('Yes')
    
    
    
    
	return 0;
}

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):
from math import floor

def dostuff():
    a, b = (int(x) for x in input().split(' '))

    x = b * 10
    # print(x)
    for i in range(x, x + 10):
        if floor(i * 0.08) == a:
            print(i)
            return
    print(-1)

dostuff()

n = input()

x = n[0]
answer = True

for i in n:
  if x != i:
    answer = False
    
print("YES" if answer else "NO")

n = input()

if n == "AAA" or n "BBB":
  print("NO")
else:
  print("YES")

n = input()
 
x = n[0]
answer = True
 
for i in n:
  if x != i:
    answer = False
    
print("YES" if not answer else "NO")

n = input()

if n == "AAA" or n == "BBB":
  print("NO")
else:
  print("YES")

from math import floor

def dostuff():
    a, b = (int(x) for x in input().split(' '))

    x = b * 10
    i = x
    for i in range(x, x + 10):
        if floor(i * 0.08) == a:
            print(i)
            return
    print(-1)

dostuff()

from math import floor

def dostuff():
    a, b = (int(x) for x in input().split(' '))

    x = b * 10
    # print(x)
    i = x
    for i in range(x, x + 10):
        if floor(i * 0.08) == a:
            print(i)
            return
    print(-1)

dostuff()

n = input()

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

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):
a,b = map(int, input().split(" "))
list_a = [i for i in range(round(a/0.08+0.5)-1, round((a+1)/0.08 +0.5))]
list_b = [i for i in range(round(b/0.1 +0.5)-1,round((b+1)/0.1 +0.5))]
list_and = list(set(list_a) & set(list_b))
if list_and == []:
    print("-1")
else:
    print(min(list_and))

a = input()
if ("B" in a) & ("A" in a):
    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()

ans='No'
if s=='AAA': ans='Yes'
if s=='BBB': ans='Yes'

print(ans)


s = input()

ans='Yes'
if s=='AAA': ans='No'
if s=='BBB': ans='No'

print(ans)


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()
q = int(input())
query = []
lead = ''
end = ''
inversion_flg = False
 
for j in range(q):
    i = input().split()
    if i[0] == "1":
        if inversion_flg:
            inversion_flg = False 
        else:
            inversion_flg = True
    else:
        if inversion_flg:
            if i[1] == "1":
                i[1] = "2"
            else:
                i[1] = "1"
        if i[1] == "1":
            lead+=i[2]
        else:
            end+=i[2]
 
lead = lead[::-1]
s = lead+s+end
if inversion_flg:
    s = s[::-1]
print(s)

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):
import sys

if len(sys.argv) < 2: 
    print("No argument given!")
    exit(0)

string = sys.argv[1]
if string == "AAA": print("No")
elif string == "BBB": print("No")
else: print("Yes")

import sys

string = input()
if string == "AAA": print("No")
elif string == "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):
# -*- coding: utf-8 -*-
a = str(input())

if a in "AB" or a in "BA":
	print("Yes")
else:
	print("No")


# -*- coding: utf-8 -*-
a = str(input())

if a.find("AB") != 0 :
	print("Yes")
else:
	print("No")


# -*- coding: utf-8 -*-
a = str(input())

if "AB" in a  or "BA" in a:
	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):
S = input()

if S in ("AAA", "BBB"):
    print("Yes")
else:
    print("No")


S = input()

if S in ("AAA", "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):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

ss = nn()
a = 'No' if ss[0] == ss[1] and ss[1] == ss[2] else 'Yes'
print(a)

import sys
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

n,p = na()
s = ns()
s = list(s)
ans = 0

seenRemainders = [[] for k in range(n)] 
for i in range(n):
    remainder = 0
    prefixesFound = 0
    for j in range(i,n):
        remainder = (10 * remainder + int(s[j])) % p
        if remainder in seenRemainders[j]:
            break
        seenRemainders[j].append(remainder)
        if remainder == 0:
            prefixesFound+=1
    ans += prefixesFound * (prefixesFound + 1) // 2

print(ans)

import sys
stdin = sys.stdin
sys.setrecursionlimit(10**9)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

s = ns()
ss = list(s)
a = 'No' if ss[0] == ss[1] and ss[1] == ss[2] else 'Yes'
print(a)

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):
A = str(input())

if A=="AAA":
  print("NO")
  
if A=="BBB":
  print("NO")


if A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":
  print("YES")

A = str(input())

if A=="AAA"or"BBB":
  print("NO")
  

else:
  print("YES")

A = str(input())

if A=="AAA""BBB":
  print("NO")
  
if A=="BBB":
  print("NO")

# else:
#   print("YES")

if A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":
  print("YES")

A=str(input()

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

# coding: utf-8
A=input()

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

Verdicts: Wrong Answer

Wrong Answer

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()
if s == 'B'*len(s) or s == 'A'*len(s):
  print("NO")
else:
  print("YES")

s = input()
if s == 'B'*len(s) or s == 'A'*len(s):
  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 = map(str, input())

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

s = str(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):

import sys
import os
if sys.platform=="darwin":
	base = os.path.dirname(os.path.abspath(__file__))
	name = os.path.normpath(os.path.join(base, '../atcoder/input.txt'))
	sys.stdin = open(name)

l = list(input())
#print(l)
set_l = set(l)
if len(set_l)==1:
    print("Yes")
else:
    print("No")





import sys
import os
if sys.platform=="darwin":
	base = os.path.dirname(os.path.abspath(__file__))
	name = os.path.normpath(os.path.join(base, '../atcoder/input.txt'))
	sys.stdin = open(name)

l = list(input())
#print(l)
set_l = set(l)
if len(set_l)==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):
n,m = map(int,input().split())


print( (n-1)*n/2+(m-1)*m/2)


s = input()

for i in range(1,len(s)):
    if s[i] != s[i-1]:
        print("Yes")
        exit()

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()

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):
a=list(input())

IN=[int(x) for x in a if x != " "]
N=IN[0]
A=IN[1]
B=IN[2]

Times = N // (A + B)
rest = N - Times * (A + B)

if rest < A:
        ans = A * Times + rest
else:
        ans = A * Times + A

print(ans)

import sys

args=sys.argv
S=args[1]
if S[0] == S[1]:
        if S[1] == S[2]:
                print("No")
        else:
                print("Yes")
else:
        print("Yes")

a=list(input())

IN=[int(x) for x in a if x != " "]
N=IN[0]
A=IN[1]
B=IN[2]

ALL=A+B

cnt=0
num=N
while True:
        num = num - ALL
        if num > 0:
                cnt += 1
        else:
                break

if ALL - num > A:
        ans = A * cnt + A
else:
        ans = A * cnt + ALL - num

print(ans)



import sys

args=sys.argv
S=args[1]
if S[0] == S[1]:
        if S[1] == S[2]:
                print("No")
        else:
                print("Yes")
else:
        print("Yes")

S=list(input())

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

Verdicts: 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):
flag = 1

if (S[0] == S[1]) & (S[1] == S[2]):
  	print("No")
else: 
	print("Yes")

str = input()

if (str[0] == str[1]) & (str[1] == str[2]):
  	print("Yes")
else:
  	print("No") 

S

str = input()
 
if (str[0] == str[1]) & (str[1] == str[2]):
  	print("No")
else:
  	print("Yes") 

Verdicts: Runtime Error

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):
a = input()
if a == "AAA" or b == "BBB":
  print("No")
else:
  print("Yes")

a = input()
if a == "AAA" or a == "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):
a, b, c = input().split()

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

s = input()
for i in s:
  if "A" not in  i:
    print("No")
  elif "B" not in i:
    print("No")
else:
  print("Yes")

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

Verdicts: 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):
S[3]
S[1]=input()
S[2]=input()
S[3]=input()
if not S[1]==S[2]and S[2]==S[3]:
	print('No')
else:
	print('Yes')

S=input()
if not S[1]==S[2]and S[2]==S[3]:
	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()
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':
  print('No')
elif s == 'BBB':
  print('No')
else: 
  print('Yes')

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=str(input())
if s=='AAA' or 'BBB':
  print('No')
else:
  print('Yes')

s=str(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):
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):
n, a, b = map(int, input().split())
c = 0
d = a+b
if a==0 and b==0:
    print(0)
elif a==0:
    print(0)
elif b==0:
    print(a)
else:   
    q, mod = divmod(n, d)      
    print(q*a + mod)

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):
S = input()#.strip()

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

# coding: utf-8
# Your code here!

S = input()#.strip()

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

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):
data = input().split()
 
a = int(data[0])
b = int(data[1])
 
pricea = a // 0.08
priceb = b // 0.1
 
if pricea == priceb:
  ans = pricea
elif pricea + 1 == priceb:
  ans = priceb
elif pricea == priceb + 1:
  ans = pricea
else:
  ans = -1
  
print(ans)


com = input()
if com[0] == com[1] and com[1] == com[2] and com[2] == com[0]:
  print("No")
else:
  print("yes")


com = input()
if com[0] == com[1] == com[2]:
  print("No")
else:
  print("Yes")


Verdicts: 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):
def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        return "No"
    return "Yes"

def check_service(service):
    no_service = ['AAA', 'BBB']
    if service in no_service:
        print("No")
    print("Yes")

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")

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):
a = input()

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

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

q=n//(a+b)
mod=n%(a+b)
ans=a*q
if a < mod:
    ans+=a
else:
    ans+=mod
print(ans)


a = input()

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

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().rstrip()

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


s = input().rstrip()

if len(set(s)) == 2:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted