TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=[0]*N
ans=0

for n in range(1,N+1):
    for m in pathlist:
        if(n in m):
            if(m[0]==n):
                if(high_list[n-1]>high_list[m[1]-1]):
                    ans=ans+1
            else:
                if(high_list[n-1]>high_list[m[0]-1]):
                    ans=ans+1
print(ans)




N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=[0]*N

for n in range(1,N+1):
    for m in pathlist:
        if(n in m):
            if(m[0]==n):
                if(waylist[n-1],high_list[m[1]-1]):
                    waylist[n-1]=high_list[m[1]-1]
            else:
                if( waylist[n-1]<high_list[m[0]-1]):
                    waylist[n-1]=high_list[m[0]-1]

answer=0
for n in range(N):
    if(waylist[n]<high_list[n]):
        answer=answer+1

print(answer)




import numpy  as np
N,M=map(int,input().split())
high_list=list(map(int,input().split()))
pathlist=[]
for i in range(M):
    pathlist.append(list(map(int,input().split())))
waylist=np.array([[0]*N]*N)

for n in range(1,N+1):
    for m in pathlist:
        if(n in m):
            if(m[0]==n):
                waylist[n-1][m[1]-1]=high_list[m[1]-1]
            else:
                waylist[n-1][m[0]-1]=high_list[m[0]-1]

answer=0
for n in range(N):
    if(waylist[n].max()<high_list[n]):
        answer=answer+1

print(answer)




x=input()
print('ARC' if x == 'ABC' else 'ABC')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = str(input())
if a=="ABC":
    print("AGC")
elif a=="AGC":
    print("ABC")

a = str(input())
if a=="ABC":
    print("ARC")
elif a=="ARC":
    print("ABC")

Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S = int(input())
if S == 'ABC':
    print('ARC')
else:
    print('ABC')
    

S = input()
if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
import numpy as np
N,M =map(int,input().split())
h_lis=np.array(list(map(int,input().split())))
way_lis=[list(map(int,input().split())) for _ in range(M)]

tes=0
for i in range(N):
    nears=[]
    for way in way_lis:
        if i+1 in way:
            nears.extend(way)
    for j,ne in enumerate(nears):
        if j==0:
            h=max(h_lis[ne[0]-1],h_lis[ne[1]-1])
            z=h
        else:
            k=z
            h=max(h_lis[ne[0]-1],h_lis[ne[1]-1])
            z=max(k,h)
    if z==h_lis[i]:
        tes+=1
print(tes)

S=input()
if S=="ABC":
  print("ARC")
else:
  print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = input()
if a = "ABC":
    print("ARC")
else:
    print("ABC")

a = input()
if a == "ABC":
    print("ARC")
else:
    print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s = input()
if s = "ABC":
  print("ARC")
else:
  print("ABC")

s = input()
if s == "ABC":
  print("ARC")
else:
  print("ABC")


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if S = "ABC":
  print("ARC")
else:
  print("ABC")
  


S=input()

if S == "ABC":
  print("ARC")
else:
  print("ABC")
  


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S=input()
if S=ABC:
  print(ARC)
else:
  print(ABC)

S=input()
if S=="ABC":
    print("ARC")
else:
    print("ABC")


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s=input()
if s =='ABC' :
  print('ARC')
else if s=='ARC':
  prinr('ABC')

s=input()
if s =='ABC' :print('ARC')
else if s=='ARC':print('ABC')


s=input()
if s =='ABC' :print('ARC')
elif s=='ARC':print('ABC')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s = input()
if S=="ABC":
    print("ARC")
else:
    print("ABC")

s = input()
if s=="ABC":
    print("ARC")
else:
    print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
X = int(input())
C= [i**5 for i in range(119)]

a = 0
b = 0

for a in range(len(C)):
    for b in range(len(C)):
        if C[a] + C[b] == X:
            print(a, -b)
            exit(0)
        elif C[a] - C[b] == X:
            print(a, b)
            exit(0)


import sys
input = sys.stdin.readline

def main():
    s = input().rstrip()

    if s == 'ABC':
        print('ARC')
    else:
        print('ABC')


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
X=int(input())
Y=int(X**(0.2))
for i in range(Y,-Y,-1):
    for t in (-Y//2,Y,1):
        if i**5-t**5==X:
            S=i
            Z=t
            break
print(S,Z)

X=int(input())
Y=int(X**(0.2))
for i in range(Y,-Y,-1):
    for t in (-Y//2,Y,1):
        if i**5-t**5==X:
            S=i
            Z=t
            break
        else:
            continue
print(S,Z)

S=input()
print('ABC' if S=='ARC' else 'ARC')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
x = int(input())

for d in range(1, int(x**0.5)+1):
    if x % d == 0:
        for a in range(1,d+1):
            b = a - d
            if a**5 - b**5 == x:
                print(a, b)
                exit()

s = input()

if s == 'ABC':
    print('ARC')
else:
    print('ABC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

ans = "ABC"
if s == "ABC":
    print("ARC")

print(ans)


s = input()

ans = "ABC"
if s == "ABC":
    ans = "ARC"

print(ans)


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s=input()
if x=="ABC":
    print("ARC")
else:
    print("ABC")

s=input()
if s=="ABC":
    print("ARC")
else:
    print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if S = "ABC":
  print("ARC")
else:
  print("ABC")

S = input()

if S == "ABC":
  print("ARC")
else:
  print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
contest=input()
if contest='ABC':
  print('ARC')
elif contest='ARC':
  print('ABC')
else:
  print('Error')

contest=input()
if contest=='ABC':
  print('ARC')
elif contest=='ARC':
  print('ABC')
else:
  print('Error')


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
def main():
    import sys
    input = sys.stdin.readline

    S = input()
    if S == "ABC":
        print("ARC")
    else:
        print("ABC")


if __name__ == "__main__":
    main()


def main():
    # import sys
    # input = sys.stdin.readline

    S = input()
    if S == "ABC":
        print("ARC")
    else:
        print("ABC")


if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
def main():
    s = input()
    if s == 'ABC':
        print('ARC')
    else:
        print('ABC')
if __name__ == '__main__':
    main(

def main():
    s = input()
    if s == 'ABC':
        print('ARC')
    else:
        print('ABC')
if __name__ == '__main__':
    main()

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S =input()
if S[1] =='B':
    print('R')
else:
    print('B')

S =input()
if S[1] =='B':
    print('ARC')
else:
    print('ABC')

Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
N,M=list(map(int, input().split()))
H=list(map(int, input().split()))
A=[list(map(int, input().split())) for _ in range(M)]

dp=[True]*N
a=[0]*N

for i in A:
  if H[i[0]-1]<H[i[1]-1] and a[i[1]-1]==0:
    dp[i[1]-1]=True
    dp[i[0]-1]=False
    a[i[0]-1]+=1
  elif H[i[0]-1]<H[i[1]-1] and a[i[1]-1]!=0:
    a[i[0]-1]+=1
    continue
  elif H[i[0]-1]>H[i[1]-1] and a[i[0]-1]==0:
    dp[i[1]-1]=False
    dp[i[0]-1]=True
    a[i[1]-1]+=1
  elif H[i[0]-1]>H[i[1]-1] and a[i[0]-1]!=0:
    a[i[1]-1]+=1
    continue
  elif H[i[0]-1]==H[i[1]-1]:
    dp[i[1]-1]=False
    dp[i[0]-1]=False
  

print(dp.count(True))

S=input()

if S=="ABC":
  print("ARC")
  
else:
  print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if(n == 'ARC'):
  print('ABC')
else:
  print('ABC')


n = input()

if(n == 'ARC'):
  print('ABC')
elif(n == 'ABC'):
  print('ARC')


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if s == "ABC":
    print("ARC")
elif s = "ARC":
    print("ABC")

s = input()

if s == "ABC":
    print("ARC")
elif s == "ARC":
    print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
print(input())

print(['ABC','ARC'][input()=='ABC'])

Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = int(input)
if a == 'ABC':
  print('ARC')
elif a == 'ARC':
  print('ABC')



a = input()
if a == 'ABC':
  print('ARC')
elif a == 'ARC':
  print('ABC')















Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S = input()
print('ARC`' if S == 'ABC' else 'ABC')


S = input()
print('ARC`' if S == 'ABC' else 'ARC')


S = input()
print('ARC' if S == 'ABC' else 'ABC')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
n,m = map(int,input().split())
h_list = [int(i) for i in input().split()]
data = [list(map(int, input().split())) for _ in range(m)]

ten_set =set(np.array(range(1,n+1)))
ans_set =set([])
exist_set = set(np.array(range(1,n+1)))
for i in range(m):
    if h_list[data[i][0]-1] < h_list[data[i][1]-1]:
        ans_set.add(data[i][1])
        if data[i][0] in ans_set:
            ans_set.remove(data[i][0])
    elif h_list[data[i][0]-1] > h_list[data[i][1]-1]:
        
        ans_set.add(data[i][0])
        if data[i][1] in ans_set:
            ans_set.remove(data[i][1])
    elif h_list[data[i][0]-1] == h_list[data[i][1]-1]:
        if data[i][0] in ans_set:
            ans_set.remove(data[i][1])
        if data[i][1] in ans_set:
            ans_set.remove(data[i][1])
    exist_set.add(data[i][0])
    exist_set.add(data[i][1])

sa_set = ten_set − exist_set
ans_set = ans_set.union(sa_set)
print(len(ans_set))

s = input()
if s == 'ARC':
    print('ABC')
else:
    print('ARC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
var str = readLine()!

if str=="ABC"{
  print("ARC")
}else{
  print("ABC")
}

s=input()

if s=='ABC':
    ans='ARC'
else:
    ans='ABC'
print(ans)

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
import sys
import math
import collections
from collections import deque
from functools import reduce
import heapq
#x = int(input())

s = input()
#a = list(map(int, sys.stdin.readline().split()))

print(s)


import sys
import math
import collections
from collections import deque
from functools import reduce
import heapq
#x = int(input())

s = input()
#a = list(map(int, sys.stdin.readline().split()))

if s == "ABC":
    print("ARC")
else:
    print("ABC")


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if S = 'ABC':
  print('ARC')
else:
  print('ABC')

S = input()
 
if S == 'ABC':
  print('ARC')
else:
  print('ABC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S = input()
if S is 'ABC':
    print('ARC')
else:
    print('ABC')


S = input()
if S == 'ABC':
    print('ARC')
else:
    print('ABC')

Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
A = input()
if A[1]=='B' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
elif:A[1]=='R':
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

a = input()
if a=='ABC' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
elif a == 'ARC':
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

A = input()
if A[1]=='ABC' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
else:
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

a=input()
if a[1] =='B' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
elif a[1] == 'R':
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

A = input()
if A[1]=='B' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
else:
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

A = list(input())
if A[1]=='B' :
  print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')
else:
  print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')

a=input()
if a[1] =='B' :
  print('ARC')
elif a[1] == 'R':
  print('ABC')

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
if S = "ABC"
print("ARC")
else
print("ABC")

S = str(input())
if S = "ABC":
  print("ARC")
else:
  print("ABC")

S = input()
if S = "ABC":
  print("ARC")
else:
  print("ABC")

if S = "ARC":
  print("ABC")
else:
  prnit("ABC")

S = str(input())
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):

s=input()


if s=='abc':
    print('arc')

if s=='arc':
    print('abc')
    

s=input()


print(s)



s=input()

if s=='ABC':
    print('ARC')

if s=='ARC':
    print('ABC')



Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
n = int(input())
 
a = [i**5 for i in range(120)]
for i in range(119):
    for j in range(i+1,119):
        if a[j]-a[i] == n:
            print(j,i)
            break
        if a[j]+a[i] == n:
            print(j,-i)
            break
    else: continue
    break


print("ABC" if input() == "ARC" else "ARC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):

def main():
    s = input()
    if s = 'ABC':
        print('ARC')
    else:
        print('ARC')


if __name__ == "__main__":
    main()



def main():
    s = input()
    if s == 'ABC':
        print('ARC')
    else:
        print('ABC')


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s=input()
print('ARC' if s='ABC' else 'ABC')

s=input()
print('ARC' if s=='ABC' else 'ABC')


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s = input()
if s = 'ABC':
  print('ARC')
else:
  print('ABC')

s = input()
if s == 'ARC':
    print('ABC')
else:
    print('ARC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
# 166 A

s = input()

if s == "ABC":
    print("ARC")
elif s == "ARC"
    print("ABC")

# 166 A

s = input()

if s == "ABC":
    print("ARC")
elif s == "ARC":
    print("ABC")

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):

S =　input()


if S == "ABC":
  print("ARC")
else:
  print("ABC")


S =　input()
 

if S == "ABC":
    print("ARC")
elif S == "ARC":
    print("ABC")


S =　input()
 

if S == "ABC":
  print("ARC")
elif　S == "ARC":
  print("ABC")


S =　input()
 

if S == "ABC":
    print("ARC")
elif S == "ARC":
    print("ABC")
else:
    print("入力内容が正しくありません。")


S = input()


if S == "ABC":
    print("ARC")
elif S == "ARC":
    print("ABC")
else:
    print("入力内容が正しくありません。")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
N,M = map(int,input().split())
H = list(map(int,input().split()))
P = [0] * N
for i in range(M) :
    q = list(map(int,input().split()))
    p = P[q[0]-1]
    h = H[q[1]-1]
    if p < h :
        P[q[0]-1] = H[q[1]-1]
    if p > h :
        P[q[1]-1] = H[q[0]-1]

R = 0
for i in range(N) :
    if H[i] > P[i] :
        R += 1
print(R)

S = input()
if S == 'ABC' :
    Next = 'ARC'
else :
    Next = 'ABC'
print Next

N,M = map(int,input().split())
H = list(map(int,input().split()))
P = [0] * N
for i in range(M) :
    q = list(map(int,input().split()))
    p = P[q[0]-1]
    h = H[q[1]-1]
    if p < h :
        P[q[0]-1] = H[q[1]-1]
    if p > h :
        P[q[1]-1] = H[q[0]-1]

R = 0
for i in range(N) :
    if H[i] > P[i] :
        R += 1
print(R)

S = input()
if S == 'ABC' :
    Next = 'ARC'
else :
    Next = 'ABC'
print (Next)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
if ABC:
    print("ARC")
else:
    print("ABC")

S=input()
if int(S)=ABC:
    print("ARC")
else:
    print("ABC")


S=input()
if S=ABC:
    print("ARC")
else:
    print("ABC")


S=input()
if S==ABC
    print("ARC")
else:
    print("ABC")

S=input()
if S=="ABC":
    print("ARC")
else:
    print("ABC")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S = input()
ans = 'ABC'
if S = 'ABC':
  ans = 'ARC'
print(ans)

S = input()
ans = 'ABC'
if S == 'ABC':
  ans = 'ARC'
print(ans)

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = ["ABC","ARC"]
print(a[input() == "ARC"])

a = ["ABC","ARC"]
print(a[input() == "ABC"])


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
#!/usr/bin/env python3


#!/usr/bin/env python3
s = input()
if s == 'ABC':
    print('ARC')
else:
    print('ABC')


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if s == ABC:
  print('ARC')
else:
  if s == ARC:
    print('ABC')

s = str(input())

if s == 'ABC':
  print('ARC')
else:
  if s == 'ARC':
    print('ABC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
import math
import sys

X = int(input())
 
for i in range(-118, 119):
  for j in range(-119, 118):
    if math.pow(i, 5) - math.pow(j, 5) == X:
      print("%d %d" % (i, j))
      sys.exit()


S = input()
 
if S == 'ABC':
  print(ARC)
else:
  print(ABC)

import math
import sys

X = int(input())
 
for i in range(1000):
  for j in range(-100, 1000):
    if math.pow(i, 5) - math.pow(j, 5) == X:
      print("%d %d" % (i, j))
      sys.exit()


import math
import sys

X = int(input())

for i in range(-100, 1000):
  for j in range(-100, 1000):
    if	math.pow(i, 5) - math.pow(j, 5)	== X:
      print("%d %d" % (i, j))
      sys.exit()


S = input()
 
if S == 'ABC':
  print('ARC')
else:
  print('ABC')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
in = input()
if in == 'ABC':
  print('ARC')
else:
  print('ABC')

in_ = input()
if in_ == 'ABC':
  print('ARC')
else:
  print('ABC')

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
    s = input()
    t = 'ABC' if s == 'ARC' else 'ARC'
    print(t)

if __name__=='__main__':
    s = input()
    t = 'ABC' if s == 'ARC' else 'ARC'
    print(t)

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
N=int(input())
def contest(N):
  if N=="ABC":
    return ARC
  else:
    return ABC
contest(N)

N=input()
def contest(N):
  if N=="ABC":
    return "ARC"
  else:
    return "ABC"
contest(N)



N=input()
def contest(N):
  if N=="ABC":
    return "ARC"
  else:
    return "ABC"
print(contest(N))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = input()
if a == input():
    print('ARC')
elif a == 'ARC':
    print('ABC')

a = input()
if a = input():
    print('ARC')
elif a == 'ARC':
    print('ABC')


a = input()
    print('ARC')
elif a == 'ARC':
    print('ABC')

a = input()

if a == 'ABC':
    print('ARC')
elif a == 'ARC':
    print('ABC')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
str = input()
if str = 'ARC':
  print(str.replace('B','R'))
else:
  print(str.replace('B','R'))

str = input()
if str = 'ABC':
  print(str.replace('B','R'))
else:
  print(str.replace('B','R'))


str = input()
if str == 'ABC':
  print(str.replace('B','R'))
else:
  print(str.replace('R','B'))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a=[int(input())]
if a==("ABC"):
	print("ARC")
else:
  	print("ABC")
 

a=input()

if a =="ABC":
    print("ARC")
else:
    print("ABC")
 


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
N = input()
print 'ABC' if N == 'ARC' else print 'ARC'

N = input()
ans = 'ABC' if N == 'ARC' else 'ARC'
print(ans)

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
import sys
input = sys.stdin.readline

s = input()
if s == 'ABC':
    print('ARC')
else:
    print('ABC')

import sys
input = sys.stdin.readline

s = input()
if s == "ABC":
    print("ARC")
else:
    print("ABC")

import sys
input = sys.stdin.readline

s = input()
if s == 'ABC':
    print('ARC')
else:
    print('ABC')

import sys
input = sys.stdin.readline

s = input()
if s == "ABC":
    print("ARC")
elif s == "ARC":
    print("ABC")

s = input()
if s == 'ABC':
    print('ARC')
else:
    print('ABC')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if (S == "ARC):
    print("ABC")
else:
    print("ARC")

print(input())

S = input()

if (S == "ARC"):
    print("ABC")
else:
    print("ARC")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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


if s='ABC'
  print('ARC')  
else if s='ARC' 
    print('ABC')  





s = input()


if s=='ABC':
  print('ARC')  
elif s=='ARC':
    print('ABC')  




Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
a = raw_input()

if a == "ABC":
  print("ARC")
elif a == "ARC":
  print("ABC")

a = raw_input()

if a == "ABC":
  print(ARC)
 elif a == "ARC":
  print(ABC)

a = input()

if a == "ABC":
  print("ARC")
elif a == "ARC":
  print("ABC")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
X = int(input())

ans = [0,0]
for i in range(-500,500):
  for j in range(-500,500):
    if i**5 - j**5 == X:
      ans[0] = i
      ans[1] = j
      break

ans = " ".join(map(str,ans))
print(ans)
      

NK = list(map(int, input().split()))
ans = [0]*NK[0]

for i in range(0,NK[1]):
  d = int(input())
  table  = list(map(int, input().split()))
  for j in range(0,NK[0]):
    if table.count(j) == 1:
      ans[j] = 0
print(NK[1]-sum(ans))

NK = list(map(int, input().split()))
ans = [1]*NK[0]

for i in range(0,NK[1]):
  d = int(input())
  table  = list(map(int, input().split()))
  for j in range(0,NK[0]):
    if table.count(j) == 0:
      ans[j] = 0
print(sum(ans))

def nextweek(S):
  if( S == "ABC"):
    return "ARC"
  else:
    return "ABC"



S = input()
nextweek(S)

def nextweek(S):
  if( S == "ABC"):
    return "ARC"
  else:
    return "ABC"



S = input()
print (nextweek(S))

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
s = input()
a = ord(s)
b = ord('ABC')
r = ord('ARC')
if a == b:
  print('ARC')
elif a == b:
  print('ABC')

s = map(list,input())
b = [ABC]
r = [ARC]
if s == b:
  print('ARC')
elif r == b:
  print('ABC')
 

s = list(input())
if s[1] == 'B':
  print('ARC')
elif s[1] == 'R':
  print('ABC')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

s = input()

print(s)


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

S = input()

if S == "ABC":
    print("ARC")
else:
    print("ABC")


Verdicts: Wrong Answer

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
NM=list(map(int,input().split()))
person=[0 for i in range(NM[0])]
for i in range(NM[1]):
    d=input() 
    snack=list(map(int,input().split()))
    for i in snack:
        person[i-1]=1
d=0
for i in range(len(person)):
    if person[i]==0:
        d+=1
print(d)


a =input()
if a == "ABC":
  print("ARC")
elif a =="ARC":
  print("ABC")
  


Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
comp = input()
if cpm[1] == 'R' :
  print("ABC")
else :
  print("ARC")

comp = input()
try :
  if comp[1] == 'R' :
    print("ABC")
  else : print("ARC")
except: 
  pass

Verdicts: Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

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

if S == 'ARC':
    print('ABC')
elif S = 'ABC' 
    print('ARC')

S = input().split()

if S == 'ARC':
    print('ABC')
elif S == 'ABC' 
    print('ARC')

S = input()

if S == 'ARC':
    print('ABC')
else:
    print('ARC')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: AtCoder Inc. holds a contest every Saturday.  There are two types of contests called ABC and ARC, and just one of them is held at a time.  The company holds these two types of contests alternately: an ARC follows an ABC and vice versa.  Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.

Submission attempts (in order):
S = input()
if S == 'ABC':
    print("ACR")
else:
    print("ABC")

S = input()
if S == "ABC":
  print("ARC")
else:
  print("ABC")

Verdicts: Wrong Answer

Accepted