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):
#include <bits/stdc++.h>
#define INF 1050000000

#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
    string s, flag="No";
    cin >> s;
    rep(i, ARRAY_LENGTH(s)-1){
        if (s[i]!=s[i+1]) flag = "Yes";
    }
    cout <<flag<< endl;
    return 0;
}

S = list(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):
def A():
    S = input()
    s = "Yes"
    if S=="AAA" or S=="BBB":
        s = "No"
    return s


if __name__ == '__main__':
    A()

def A():
    S = input()
    s = "Yes"
    if (S=="AAA") or (S=="BBB"):
        s = "No"
    print(s)
    return s


if __name__ == '__main__':
    A()


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 = int(input())
if not s[0] == s[1] == s[2]:
    print('No')
else: print('Yes')

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


s = input()
if s[0] == 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):
buses = input()
first = buses[0]
count = 0
for i in buses:
	if i == first:
      count += 1
if count == len(buses):
  print("No")
else:
  print("Yes")

buses = input()
first = buses[0]
count = 0
for i in buses:
	if (i == first):
    	   count += 1
if count == len(buses):
	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 len(set(list(S))) !BBA
= 1:
    print('Yes')
else:
    print('No')


S = input()

if len(set(list(S))) == 1:
    print('Yes')
else:
    print('No')
    

S = input()

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


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):
cuts = []
for i in range(2000):
  cuts+= [[int(i*0.08), int(i*0.10)]]
  
A, B = map(int,input().split())

for i in range(1,2000):
  if [A, B] == cuts[i]:
    print(i)
    break
else:
  print(0)

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" or S="BBB":
  print("NO")
else:
  print("Yes")

S=input()
if S.count("AAA") or S.count("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):
def InS(): return input()


def InL(): return list(map(int, input().split()))


def InI(): return int(input())


S = input()

S_list = list(S)


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

def InS(): return input()


def InL(): return list(map(int, input().split()))


def InI(): return int(input())


S = input()

S_list = list(S)


if S_list[0] == S_list[1]:
    if S_list[1] == S_list[2]:
        print("No")
    else:
        print("Yes")
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 math

TAXRATE8 = 0.08
TAXRATE10 = 0.1

tax8, tax10 = map(int, input().split())

amount8_min = math.ceil(tax8 / TAXRATE8)
amount8_max = math.floor((tax8+1) / TAXRATE8)
if ((tax8+1) / TAXRATE8).is_integer():
  amount8_max -= 1


amount10_min = math.ceil(tax10 / TAXRATE10)
amount10_max = math.floor((tax10+1) / TAXRATE10)
if ((tax10+1) / TAXRATE10).is_integer():
  amount10_max -= 1

ans_set = set(range(amount8_min, amount8_max)) & set(range(amount10_min, amount10_max))

if ans_set == set({}):
  print(-1)
else:
  print(min(ans_set))

N,b,r = map(int, input().split())

num = int(N / (b+r))
rest = N - num * (b + r)
if rest >= b:
	print(num * b + b)
else:
	print(num * b + rest)

N,b,r = map(int, input().split())
 
num = int(N / (b+r))
rest = N - num * (b + r)

if rest >= b:
	print(num * b + b)
else:
	print(num * b + rest)

S = input()

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

if n == 0:
    print(0)
elif a == 0:
    print(0)
elif b == 0:
    print(n)
elif a >= n:
    print(n)
elif a+b > n > a:
    print(a)
else:
    q,mod = divmod(n, a+b)
    print(q*a + mod)

s = list(input())
if s[0] == s[1]:
    if s[1] == s[2]:
        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):
import numpy as np
S=input()
Q=int(input())
q=[[0 for i in range(3)] for j in range(Q)]
onecntr=0
for i in range(Q):
    tmp=input().split()
    if(tmp[0]=="1"):
        q[i][0]=1
    else:
        q[i][0]=2
        q[i][1]=int(tmp[1])
        q[i][2]=tmp[2]
    

for i in range(Q):
    if(q[i][0]==1):
        onecntr+=1
    else:
        
        if(onecntr%2==0):
            if(q[i][1]==1):
                S=q[i][2]+S
            else:
                S=S+q[i][2]
        else:
            if(q[i][1]==2):
                S=q[i][2]+S
            else:
                S=S+q[i][2]
        onecntr=0
    
if(onecntr%2==1):
    S=S[::-1]

print(S)

import numpy as np
S=input()
Q=int(input())
q=[[0 for i in range(3)] for j in range(Q)]
onecntr=0
for i in range(Q):
    tmp=input().split()
    if(tmp[0]=="1"):
        q[i][0]=1
    else:
        q[i][0]=2
        q[i][1]=int(tmp[1])
        q[i][2]=tmp[2]
    

for i in range(Q):
    if(q[i][0]==1):
        onecntr+=1
    else:
        
        if(onecntr%2==0):
            if(q[i][1]==1):
                S=q[i][2]+S
            else:
                S=S+q[i][2]
        else:
            if(q[i][1]==2):
                S=q[i][2]+S
            else:
                S=S+q[i][2]
    
if(onecntr%2==1):
    S=S[::-1]

print(S)
            

S=input()
cntr=0
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):
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):
str = input()

ct = str.count('A')

if ct == 0 or ct == 3:
  print('No')
else :
  pritn('Yes')

str = input()

ct = str.count('A')

if ct == 0 or ct == 3:
  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 "AB" in s or "BA" in s:
  print("YES")
else:
  print("NO")

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

fun main()
{
    val given = readLine()!!
    println(if ( given.contains("AB") || given.contains("BA")) "Yes" else "No")
}

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

s= input()
if "AB" in s or "BA" in s:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

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):
S=input()
s=set(S)
if len(s)==3:
  print("Yes")
else:
  print("No")

S=input()
s=set(S)
if len(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):
s=str(input())
if s=="AAA" or s=="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()
if s == "BBB":
	print("NO")
elif s == "AAA":
	print("NO")
else:
	print("YES")

s = list(input())
if s == "BBB":
print("NO")

elif s == "AAA":
print("NO")

else:
print("YES")

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

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 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):
N = input()
if len(set(N))==1:
  print('NO')
else:
  print('YES')

N = input()
if len(set(N))==1:
  print('YES')
else:
  print('NO')

N = input()
if len(set(N))==1:
  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):
a=input()
if a == 'AAA' or a == 'BBB':
    print('Yes')
else:
    print('No')

a=input()
if a == 'AAA' or a == '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):
l = list(map(int, input().split()))
n,a,b=l[0],l[1],l[2]
count=0
while True:
  for i in range(a):
    if n == 0:
      break
    count += 1
    n -= 1	
  for i in range(b):
    if n == 0:
      break
    n -= 1
  if n == 0:
    break
print(count)		

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

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

n,a,b=input(),input(),input()
n=int(n)
a=int(a)
b=int(b)
k=n//(a+b)*a+min(a,n%(a+b))
  
print(k)

s=input()
if s[0]==s[1] and s[0]==s[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().split()

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

S = input()

if S[0] == 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):
x = []
for i in range(1000):
  x.append([0] * 10000000000000)

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

a = str(input())
if a == "AAA" or a == "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 numpy as np
import sys
readline = sys.stdin.buffer.readline
N,A,B = map(int, readline().split())
R=A*(N//(A+B))+min(A,N%(A+B))
print(R)

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 = list(input())
a = S.count("A")
b = S.count("B")
if a == 3 or b == 3:
  print("Yes")
else:
  print("No")

x = list(input())
if x.count(x[0]) == 3:
    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):
A,B=map(int,input().split())
S=set(range(25*A//2,25*(A+1)//2))&set(range(10*B,10*(B+1)))
print(S.pop() if len(S)>0 else -1)


c=input().count('A')
print('No' if c==3 or c==0 else '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):
i = input()
if i[-1]==i[-2] and i[-2]==i[-3]:
    print("Yes")
else:
    print("No")

i = input()
if i[-1]==i[-2] and i[-2]==i[-3]:
    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 = int(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" 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()
ans = 'Yes'
if S[0] != S[1]:
    ans = 'No'
elif S[1] != S[2]:
    ans = 'No'
print(ans)

S = input()
ans = True
if S[0] != S[1]:
    ans = False
elif S[1] != S[2]:
    ans = False
print(ans)

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

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 ='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" 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

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 "A" and "B" in S:
    print("Yes")
else:
    print("No")

S = input().split()

if "A" in S and "B" in S:
    print("Yes")
else: 
    print("No")

S = input()

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

S=input()
for a in S:
  if a=='AAA':
    print('No')
  elif a=='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' or S == '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

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):
N, A, B = map(int,input().split())

q, mod = divmod(N, A+B)


if A == 0 :
    print(0)

elif N >A+B :
    if mod <= A :
        print(q*A+mod)
    if mod > A :
        print(q*A+A)
    
elif N == A+B :
    print(q*A)

elif N < A+B :
    print(N)
    
elif N < A :
    print(N)

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

q, mod = divmod(N, A+B)


if A == 0 :
    print(0)

elif N >A+B :
    if mod <= A :
        print(q*A+mod)
    if mod > A :
        print(q*A+A)
    
elif N == A+B :
    print(q*A)

elif N < A or N < A+B :
    print(N)

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

q, mod = divmod(N, A+B)


if A == 0 :
    print(0)

elif N >A+B :
    if mod <= A :
        print(q*A+mod)
    if mod > A :
        print(q*A+A)
    
elif N == A+B :
    print(q*A)

elif N < A or N < A+B :
    print(N)

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

q, mod = divmod(N, A+B)


if A == 0 :
    print(0)

elif N >A+B :
    if mod <= A :
        print(q*A+mod)
    if mod > A :
        print(q*A+A)
    
elif N == A+B :
    print(q*A)

elif N < A+B :
    print(N)

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

if A == 0 :
    print(0)

elif N >A+B :
    q, mod = divmod(N, A+B)
    if mod <= A :
        print(q*A+mod)
    if mod > A :
        print(q*A+A)
    
elif N == A+B :
    q, mod = divmod(N, A+B)
    print(q*A)

elif N < A+B :
    print(N)

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

Verdicts: 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):
print("Yes" if input() in "A" else "No")


print("YES" if input() in "A" else "NO")

print("Yes" if "A" in input() and "B" in input() else "No"

print("YES" if "A" in input() and "B" in input() else "NO")


print("YES" if input() in "A" and input() in "B" else "NO")


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

Verdicts: Wrong Answer

Wrong Answer

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):
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 = [x for x in input()]
if 'A' in S and 'B' in S:
  print("YEs")
else:
  print("No")

S = [x for x in 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):
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):
if S[0] != S[1] and S[0] != S[2]:
    print("Yes")
elif S[0] != S[1] and S[1] != S[2]:
    print("Yes")
else:
    print("No")


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

S=input()
if S[1]!= S[2] and S[1]!=S[3]:
    print("Yes")
else:
    print("No")

S = input()
if S == "AAA" or 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):
s=list(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 a[0]==a[1]==a[2]:
  print("No")
else:
  print("Yes")

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

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

Verdicts: Runtime Error

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

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()
As = s.count("A")
Bs = s.count("B")
if As == 3 or Bs == 3:
  print("NO")
else:
  print("YES")

s = input()
As = s.count("A")
Bs = s.count("B")
if As == 3 or Bs == 3:
  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()
a=S.count("A")
b=S.count("B")
if a==3 or b==3:
  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,b = [int(x) for x in input().split()]
amax = int((a+1)*12.5)
amin = int(a*12.5)
bmax = int((b+1)*10)
bmin = int(b*10)
hantei = bmin
if amax < bmin:
  hantei = str(-1)
elif bmax < amin:
  hantei = str(-1)
elif bmin < amin:
  hantei = amin
print(hantei)

a = input()
b = list(a)
hantei = "Yes"
if b[0] == b[1] and b[1] == b[2] and b[2] == b[0]:
  hantei = "No"
print(hantei)

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())
a = [s]

for i in range(q):
    so = input()
    if so == '1':
        a[0], a[-1] = a[-1], a[0]
    else:
        d, f, c = so.split()
        if f == '1':
            a.insert(0, c)
        else:
            a.append(c)


print(''.join(a))


s = input()
a = [str(i) for i in s]

if a[0] == a[1] and a[1] == a[2] and a[2] == a[0]:
    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 math
from collections import deque
def main():
    n,p = tuple([int(t)for t in input().split()])
 
    s = input()[::-1]
    subs = [0]*p
    counter =0
    for i in range(0,n):
        subs[int(s[0:i+1])%p] +=1
 
    counter+=subs[0]
 
    for i in range(p//2):
        counter+= subs[i]*subs[-i-1]
 
 
    counter+=subs[0]*(subs[0]-1)//2
 
    print(counter)
 
if __name__ == "__main__":
    main()

import math
from collections import deque
def main():
    s = set(input())

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



if __name__ == "__main__":
    main()

Verdicts: Runtime Error

Accepted