TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
n = input()
if n < 1200: print('ABC')
elif n < 2800: print('ARC')
else: print('AGC')

n = int(input())
if n < 1200: print('ABC')
elif n < 2800: print('ARC')
else: print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
x = int(input())
l0 = [1200,2800,9999]
l1 = ["ABC","ARC","AGC"]

for i in range(3):
  if x < l0[i]:
    print(l1[1])
    break


x = int(input())
l0 = [1200,2800,9999]
l1 = ["ABC","ARC","AGC"]

for i in range(3):
  if x < l0[i]:
    print(l1[i])
    break


Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if R < 1200:
  r = 'ABC'
elif R < 2800:
  r = 'ARC':
else:
  r ='AGC'

print(r)

R = int(input())
 
if R < 1200:
  r = 'ABC'
elif R < 2800:
  r = 'ARC':
else:
  r ='AGC'
print(r)

R = int(input())
 
if R < 1200:
  r = 'ABC'
elif R < 2800:
  r = 'ARC'
else:
  r ='AGC'
 
print(r)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
# ABC104A - Rated for Me
r = list(map(int, input().rstrip().split()))
if r < 1200:
    print("ABC")
elif 1200 <= r < 2800:
    print("ARC")
else:
    print("AGC")

# ABC104A - Rated for Me
r = int(input())
if r < 1200:
    print("ABC")
elif 1200 <= r < 2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
n=int(input())
if(n<1200):
  print("ABC")
elif(n<2800):
  print("ARC"):
else:
  print("AGC")

n=int(input())
if(n<1200):
  print("ABC")
elif(n<2800):
  print("ARC"):
elif(n>=2800):
  print("AGC")

print(["ABC","ARC","AGC"][int(input())//50+8>>5])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
letters = input()
C = letters[2:-2]
D = letters.replace("A","a").replace("C","c")

print(D)
if letters[0] == "A" and C.count("C") == 1 and D.islower() == True  :
  print("AC")
else:
  print("WA")

r = int(input())

if r < 1200:
  print("ABC")
elif r>= 1200 and r < 2800:
  print("ARC")
else:
  print("AGC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if r < 1200:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")


r = int(input())

if r < 1200:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R = input()
if R < 1200:
  print("ABC")
elif R < 2800:
  print("ARC")
else:
  print("AGC")

R = int(input())
if R < 1200:
  print("ABC")
elif R < 2800:
  print("ARC")
else:
  print("AGC")


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
# coding: utf-8
R = int(input())
print(R)
if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

# coding: utf-8
R = int(input())
# print(R)
if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):

r = int(input())

if r < 1200:
    print("ABC")
elif r 2800:
    print("ARC")
else:
    print("AGC")



r = int(input())

if r < 1200:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R = int(input())
if R<1200:


R = int(input())
if R<1200:
    print('ABC')
elif R<2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
s = input()
mod = 10**9 + 7
abc = 0
bc = 0
c = 0
q = 0
for i in s[::-1]:
  elif i == "A":
    abc = (abc + bc) % mod
  elif i == "B":
    bc = (bc + c) % mod
  elif i == "C":
    c = (3**q+c) % mod
  elif i == "?":
    abc = (abc*3 + bc) % mod
    bc = (bc*3 + c) % mod 
    c = (3**q + c*3) % mod
    q += 1
print(abc)


n = int(input())
if n >= 2800:
  print("AGC")
elif n >= 1200:
  print("ARC")
else:
  print("ABC")
  

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
s=input()
result=""
count=0
l=len(s)
for i in range(l):
  if i==0 and s[i]="A":
    result="WA"
    break
  elif i==1 and ord(s[1])<97 
    result="WA"
    break
  elif i==l-1 and ord(s[l-1])<97:
    result="WA"
    break
  else:
    if ord(s[i])<97:
      count+=1
    if count>1 or s[i]!="C":
      result="WA"
      break
if result!="WA"
  result="AC"
print(result)

D,G= map(int,input().split())
pc=[]
for i in range(D):
  p,c= map(int,input().split())
  pc.append([p,c])
i=D
minN=100000
while i>0:
  #t=pc[i][0]*100*(i+1)+pc[i][1]
  t=pc[i-1][0]*100*(i)+pc[i-1][1]
  if t>=G:
    
    n=pc[i-1][0]
    minN=min(n,minN)
    while n-1>0:
      t1=(n-1)*100*(i)
      if t1>G:
        n=n-1
        continue
      else:
        minN=minN(minN,n+1)
      n=n-1
    
  i=i-1
print(minN)

rate=input()
result=""
if rate<1200:
  result="ABC"
elif rate<2800:
  result="ARC"
else:
  result="AGC"
print(result)

s=input()
result=""
count=0
l=len(s)
if s[0]!="A":
  result="WA"
elif ord(s[1:2])<97 or ord(s[l-1])<97:
  result="WA"
for i in s[2:l-1]:
  if ord(i)<97:
    count+=1
  if count>1 or i!="C":
    result="WA"
    break
if count==0:
  result="WA"
if result!="WA":
  result="AC"
print(result)

rate=int(input())
result=""
if rate<1200:
  result="ABC"
elif rate<2800:
  result="ARC"
else:
  result="AGC"
print(result)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if R < 1200:
    print('ABC')
elif 1200 <= R < 2800
    print('ARC')
else:
    print('AGC')

R = int(input())

if R < 1200:
    print('ABC')
elif 1200 <= R < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
print("AGC")

r=int(input())
if r<1200:
  print("ABC")
elif r<2800:
  print("ARC")
else:
  print("AGC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = int(input())
if n < 1200:
    print('ABC')
elif n < 2800:
    print('ARC')
else:
    print('AGC')

r = int(input())
if r < 1200:
    print('ABC')
elif r < 2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
import math

d, g = map(int, input().split())
lst = [list(map(int, input().split())) for _ in range(d)]

for k,i in enumerate(lst):
    i.append((k+1)*100)
    i.append(i[2]*i[0]+i[1])

def calcurate(pt, count, g, lst):
    lst1 = list()
    for i in lst:
        if i[3] > g - pt:
            lst1.append(i + [i[2]])
        else:
            lst1.append(i + [i[3]/i[0]])
    lst1 = sorted(lst1, key = lambda x: -x[-1])
    ps = lst1[0]
    if ps[3] > g - pt:
        count += math.ceil((g - pt) / ps[2])
        return print(count)
    elif ps[3] == g - pt:
        return print(count + ps[0])
    else:
        calcurate(pt+ps[3], count+ps[0], g, lst1[1:])

calcurate(0,0,g,lst)

r = int(input())
if r < 1200:
    print('ABC')
elif r < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
rating = input()
if rating >= 0 and rating < 1200:
    print('ABC')
elif rating >= 1200 and rating < 2800:
    print('ARC')
else:
    print('AGC') 


rating = int(input())
if rating >= 0 and rating < 1200:
    print('ABC')
elif rating >= 1200 and rating < 2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

a = str [0:1] 
b = str[2:-1]


if a != "A":
 print ("WA")

elif b.count("C") !=1:
 print ("WA")

elif str[1:2] .isupper() :
 print ("WA")

elif str[-1:] .isupper():
 print ("WA")

else :
 print ("AC")

str = str(input())

a = str [0:1] 
b = str[2:-1]


if a != "A":
 print ("WA")

elif b.count("C") !=1:
 print ("WA")

elif str[1:2] .isupper() :
 print ("WA")

elif str[-1:] .isupper():
 print ("WA")

else :
 print ("AC")

R = int(input())

if 0<=R<1200:
 print ("ABC")

if 1200<=R<2800:
 print ("ARC")

if 2800<=R<=4208:
 print ("AGC")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
n=int(input())
if n<1200:
  print("ABC")
elif:
  print("ARC")
else:
  print("AGC")

n=int(input())
if n<1200:
  print("ABC")
elif n<2800:
  print("ARC")
else:
  print("AGC")


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
if n < 1200:
    print('ABC')
elif n < 2800:
    print('ARC')
else:
    print('AGC')

n = int(input())
if n < 1200:
    print('ABC')
elif n < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = int(input())
ans = ''
if r < 1200:
  print('ABC')
elfi r < 2800:
  print('ARC')
else:
  print('AGC')

r = int(input())
if r < 1200:
  print('ABC')
elif r < 2800:
  print('ARC')
else:
  print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
if r < 1200:
    print('ABC')
elif r < 2800:
    print('ARC')
else:
    print('AGC')

r = int(input())
if r < 1200:
    print('ABC')
elif r < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = int(input())
if r < 1200:
    print(ABC)
    if 1200 <= r <2800:
        print(ARC)
    else:
        print(AGC)

r = int(input())
if r < 1200:
    print("ABC")
else:
    if r < 2800:
        print("ARC")
    else:
        print("AGC")

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R=int(input())
if R<1200:
  print("ABC")
elseif R<2800:
  print("ARC")
else:
  print("AGC")

S=input()
if S[0]=="A" and S[2:-2].count("C")==1:
  print("AC")
else:
  print("WA")


R=int(input())
if R<1200:
  print("ABC")
elsif R<2800:
  print("ARC")
else:
  print("AGC")


R=int(input())
if R<1200:
  print("ABC")
elif R<2800:
  print("ARC")
else:
  print("AGC")


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
str=list(input())
flag=True
if str[0]!='A':
    flag=False
str[0]='a'
cnt=0
for i in range(2,len(str)-1):
    if str[i]=='C':
        cnt+=1
        if cnt==1:
            str[i]='c'
if cnt!=1:
    flag=False

tmp="".join(str)
print(tmp)
if not tmp.islower():
    flag=False

if flag==True:
    print("AC")
else:
    print("WA")

r=int(input())
if r>=2800:
    print("AGC")
elif r>=1200:
    print("ARC")
else:
    print("ABC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
print("AGC")

r = int(input())
if r < 1200:
    print("ABC")
elif r <2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

a=[1,0,0,0]

for i in range(len(s)):
    c=s[i]
    if c=="A":
        a[1]+=a[0]
    elif c=="B":
        a[2]+=a[1]
    elif c=="C":
        a[3]+=a[2]
    else:
        a=[ a[0]*3 ] + [ a[j+1]*3+a[j] for j in range(3) ]

    a=[a[i]%1000000007 for i in range(4)]

print(a[3])

s=input()
a=[1,0,0,0]
for i in s:
    if i=="A": a[1]+=a[0]
    elif i=="B": a[2]+=a[1]
    elif i=="C": a[3]+=a[2]
    else: a=[ a[0]*3 ] + [ a[j+1]*3+a[j] for j in range(3) ]

    a=[a[i]%1000000007 for i in range(4)]
print(a[3])

R=int(input())
if R<1200: print("ABC")
elif R<2800: print("ARC")
else: print("AGC")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
elif:
    print('AGC')


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

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
import re
s = input()
pattern = r'^A\w[a-z][a-z]*C{1}[a-z]*[a-z]$'
if re.match(pattern,s):
  print("AC")
else:
  print("WA")


r = int(input())
if r < 1200:
  print("ABC")
elif r < 2800:
  print("ARC")
else:
  print("AGC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if 1200>R:
  print('ABC')
else if 2800>R:
  print('ARC')
else:
  print('AGC')

R=int(input())

if 4208>=R>=2800:
  print('AGC')
else if 1200>R:
  print('ABC')
else:
  print('ARC')
  
  

R=int(input())
if 1200>R:
  print('ABC')
else if 2800>R:
  print('ARC')
else:
  print('AGC')

R=int(input())

if 1200>R:
  print('ABC')
elif 2800>R:
  print('ARC')
else:
  print('AGC')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R = input()
if R < 1200:
    print("ABC")
elif 1200 <= R < 2800:
    print("ARC")
else print("AGC")

R = int(input())
if R < 1200:
    print("ABC")
elif 1200 <= R < 2800:
    print("ARC")
else print("AGC")

R = int(input())
if R < 1200:
    print("ABC")
elif 1200 <= R < 2800:
    print("ARC")
else :
    print("AGC")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
n = int(input())
print("AGC")

s = input()
n = len(s)
mod = 10 ** 9 + 7
dp = [[0] * 4 for i in range(n + 1)]
dp[0][0] = 1

for i in range(n):
    if s[i] == "A":
        dp[i + 1][1] = dp[i + 1][1] + dp[i][0]
        dp[i + 1][0] += dp[i][0]
        dp[i + 1][1] += dp[i][1]
        dp[i + 1][2] += dp[i][2]
        dp[i + 1][3] += dp[i][3]
    elif s[i] == "B":
        dp[i + 1][2] = dp[i + 1][2] + dp[i][1]
        dp[i + 1][0] += dp[i][0]
        dp[i + 1][1] += dp[i][1]
        dp[i + 1][2] += dp[i][2]
        dp[i + 1][3] += dp[i][3]
    elif s[i] == "C":
        dp[i + 1][3] = dp[i + 1][3] + dp[i][2]
        dp[i + 1][0] += dp[i][0]
        dp[i + 1][1] += dp[i][1]
        dp[i + 1][2] += dp[i][2]
        dp[i + 1][3] += dp[i][3]
    else:
        for j in range(4):
            dp[i + 1][j] += 3 * dp[i][j]
        dp[i + 1][1] += dp[i][0]
        dp[i + 1][2] += dp[i][1]
        dp[i + 1][3] += dp[i][2]
    for j in range(4):
        dp[i + 1][0] %= mod
        dp[i + 1][1] %= mod
        dp[i + 1][2] %= mod
        dp[i + 1][3] %= mod

print(dp[n][3] % mod)

n = int(input())
if n < 1200:
    print("ABC")
elif n < 2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
print('AC')

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if R < 1200:
    print('ABC')
elif R < 2800
    print('ARC')
else:
    print('AGC')

R = int(input())

if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
modulo = 10 ** 9 + 7
 
S = input()
 
def nleft(S, c):
    
 
    def _left(S, c):
        
        n = [0 for c in S]
        for i in range(1, len(n)):
            n[i] = n[i-1] + (1 if S[i-1] == c else 0)
        return n
 
    
    n = _left(S, c)
    q = _left(S, '?')
 
    for i in range(len(n)):
        n[i] *= (3 ** q[i]) % modulo               
        n[i] += (3 ** (q[i] - 1)) * q[i] % modulo  
        n[i] %= modulo
    return n
 
def nright(S, c):
    n = nleft(list(reversed(S)), c)
    n.reverse()
    return n
 
left  = nleft (S, 'A')
right = nright(S, 'C')
 

abc = 0
for i in range(0, len(S)):
    if S[i] in 'B?':
        abc += left[i] * right[i]
 
abc = int(abc) % modulo
print(abc)


#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
from math import ceil
 
D, G = [int(t) for t in input().split()]
p = []
c = []
for i in range(D):
    p_, c_ = [int(t) for t in input().split()]
    p.append(p_)
    c.append(c_)
 
def minsolve(G, p, c, i):
    
    if i <= 0:
        return float('inf')
    n = min(ceil(G / (100 * i)), p[i-1])
    s = 100 * i * n
    if n == p[i-1]:
        s += c[i-1]
    if s >= G:
        return min(n, minsolve(G, p, c, i-1))
    else:
        return min(n + minsolve(G - s, p, c, i-1), minsolve(G, p, c, i-1))
 
m = min(minsolve(G, p, c, i) for i in range(1, D+1))
print(m)

R = int(input())

if R < 1200:
  print('ABC')
elif R < 2800:
  print('ARC')
else:
  print('AGC')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if r < 1199:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")


r = int(input())

if r < 1200:
    print("ABC")
elif r < 2800:
    print("ARC")
else:
    print("AGC")


Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
S=input()
if (S[0]=='A' and S[2:-1].count('C')==1):
    pos=S.index("C")
    check=S[1:pos]+S[pos+1:]
    if check.islower():
        print('AC')
    else:
        print('WA')
else:
    print('WA')

R=int(input())
if R<1200:
    print('ABC')
elif 1200<=R<2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
a = int, input().split()
if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

S = input()
if S[0] == "A" and S[2:-1].count("C") == 1 and "C" in S[2:-1]:
    s = S.replace("A", "a").replace("C", "c")
    t = s.lower();
    if s == t:
        print("AC")
        exit()
print("WA")

a = int(input())
if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else a 
    print("AGC")

a = int(input().split())
if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

a = int(input())
if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R = int(input())
if R < 1200:
    print('ABC')
if 1200 <= R < 2800:
    print('ARC')
else:
    print('AGC')


R = int(input())
if R < 1200:
    print('ABC')
if R < 2800:
    print('ARC')
else:
    print('AGC')


R = int(input())
if R < 1200:
    print('ABC')
elif R < 2800:
    print('ARC')
else:
    print('AGC')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
import sys

r = map(int, sys.stdin.readline().rstrip())

def main():
    if r < 1200:
        return 'ABC'
    elif r < 2800:
        return 'ARC'
    else:
        return 'AGC'

if __name__ == '__main__':
    ans = main()
    print(ans)

import sys

r = int(sys.stdin.readline().rstrip())

def main():
    if r < 1200: ans = 'ABC'
    elif r < 2800: ans = 'ARC'
    else: ans = 'AGC'
    print(ans)

if __name__ ==  '__main__':
    main()

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
import copy

def main():
    string = input()
    str_list = list(string)
    if str_list[0] == "A":
        cnt = 0
        index = 0
        for i in range(2, len(str_list)-1):
            if str_list[i] == "C":
                cnt += 1
                index = i
        if cnt == 1:
            str_list[0] = "a"
            str_list[index] = "c"
            str_changed = "".join(str_list)
            if str_changed.islower():
                print("AC")
            else:
                print("WA")
        else:
            print("WA")

    else:
        print("WA")


if __name__ == "__main__":
    main()

import copy

def main():
    string = input()
    if string[0] == "A":
        cnt = 0
        index = 0
        for i in range(2, len(string)-1):
            if string[i] == "C":
                cnt += 1
                index = i
        if cnt == 1:
            cp_str = copy.copy(string)
            string = "a" + string[1:index-1] + "c" + string[index+1:]
            print(string)
            print(cp_str)
            if string == cp_str.lower():
                print("AC")
            else:
                print("WA")
        else:
            print("WA")
    else:
        print("WA")


if __name__ == "__main__":
    main()

import copy

def main():
    string = input()
    if string[0] == "A":
        cnt = 0
        index = 0
        for i in range(2, len(string)-1):
            if string[i] == "C":
                cnt += 1
                index = i
        if cnt == 1:
            cp_str = copy.copy(string)
            print(string[1:1])
            if index == 2:
                string = "a" + string[1:index] + "c" + string[index+1:]
            else:
                string = "a" + string[1:index-1] + "c" + string[index+1:]
            print(string)
            if string == cp_str.lower():
                print("AC")
            else:
                print("WA")
        else:
            print("WA")
    else:
        print("WA")


if __name__ == "__main__":
    main()

def main():
    num = int(input())
    if num < 1200:
        print("ABC")
    elif num < 2800:
        print("ARC")
    else:
        print("AGC")

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = int(input())
if r >= 0 and r < 1200
  print("ABC")
if r >= 1200 and r < 2800
  print("ARC")
if r >= 2800
  print("AGC")

r = int(input())
if r >= 0 and r < 1200:
  print("ABC")
if r >= 1200 and r < 2800:
  print("ARC")
if r >= 2800:
  print("AGC")

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r=int(input())
if r<1200:
  print('ABC')
elif　r<2800:
  print('ARC')
else:
  print('AGC')


r=int(input())
if r<1200:
    print('ABC')
elif　r<2800:
    print('ARC')
else:
    print('AGC')


r=int(input())
if r<1200:
  print('ABC')
elif　1200<=r<2800:
  print('ARC')
else:
  print('AGC')

r=int(input())
if r<1200:
    print('ABC')
elif r<2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = input()
if r < 1200:
  print('ABC')
elif r >= 2800:
  print("AGC")
else:
  print('ARC')

r = int(input())
if r < 1200:
  print('ABC')
elif r >= 2800:
  print("AGC")
else:
  print('ARC')

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

a = int(input())

if a < 1200:
    print("ABC")
elif a < 2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

if R < 1200:
    print("ABC")
if R < 2800:
    print("ARC")
else:
    print("AGC")


R = int(input())

if R < 1200:
    print("ABC")
elif R < 2800:
    print("ARC")
else:
    print("AGC")


Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

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

a=0
ab=0
abc=0
q=0

#if s[0]=="A" :
#  a=1
#elif s[0]=="?":
#  a=1

#print(str(a)+" "+str(ab)+" "+str(abc)+" "+str(q))

for i in range(len(s)):
  if s[i]=="A":
    a=a+3**q
  elif s[i]=="B":
    ab=ab+a
  elif s[i]=="C":
    abc=abc+ab
  elif s[i]=="?":
    abc=abc*3+ab
    
    ab=ab*3+a
    a=a*3
    
    a=a+3**q
    q+=1
  #print(str(a)+" "+str(ab)+" "+str(abc)+" "+str(q))
    
print(abc%(10**9+7))


R=int(input())
if R<1200 :
  print("ABC")
elif R<2800 :
  print("ARC")
else:
  print("AGC")


Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
a=input()
if a<=1199:
  print("ABC")
elif a<=2799:
  print("ARC")
else:
  print("AGC")

a=input()
if int(a)<=1199:
  print("ABC")
elif int(a)<=2799:
  print("ARC")
else:
  print("AGC")

Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
R = int(input())
if R > 1200:
    print("ABC")
elif 1200 <= R < 2800:
    print("ARC")
else:
    print("AGC")

R = int(input())
if R < 1200:
    print("ABC")
elif 1200 <= R < 2800:
    print("ARC")
else:
    print("AGC")

Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
print('AGC')


N = int(input())
if N < 1200:
    print('ABC')
elif N < 2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Wrong Answer

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = int(input())
if r < 1200:
  print(ABC)
elif 1200 <= r < 2800:
  print(ARC)
else:
  print(AGC)

r = int(input())
if r < 1200:
  print(ABC)
if 1200 <= r < 2800:
  print(ARC)
else:
  print(AGC)

r = input()
if r < 1200:
  print(ABC)
if 1200 <= r < 2800:
  print(ARC)
else:
  print(AGC)

r = int(input())
if r < 1200:
  print('ABC')
elif 1200 <= r < 2800:
  print('ARC')
else:
  print('AGC')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
r = input()
if r < 1200:
    print('ABC')
elif 1200 <= r < 2800:
    print('ARC')
else:
    print('AGC')


r = int(input())
if r < 1200:
    print('ABC')
elif 1200 <= r < 2800:
    print('ARC')
else:
    print('AGC')


Verdicts: Runtime Error

Accepted
Problem: A programming competition site _AtCode_ regularly holds programming contests.  The next contest on AtCode is called ABC, which is rated for contestants with ratings less than 1200.  The contest after the ABC is called ARC, which is rated for contestants with ratings less than 2800.  The contest after the ARC is called AGC, which is rated for all contestants.  Takahashi's rating on AtCode is R. What is the next contest rated for him?

Submission attempts (in order):
n = int(input())
ans = ""
if n < 1200:
	ans = "ABC"
else if n < 2800:
	ans = "ARC"
else:
	ans = "AGC"

print(ans)


n = int(input())
ans = ""
if n < 1200:
	ans = "ABC"
elif n < 2800:
	ans = "ARC"
else:
	ans = "AGC"

print(ans)


Verdicts: Runtime Error

Accepted