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):
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: 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')
if 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: 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(imput())

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')
else 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: 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()
if s[0:1]!='A':
  print('WA')
  exit()
t=s[2:len(s)-1]
countc=0
for i in range(len(t)):
  if t[i]=='C':
    countc+=1
if countc!=1:
  print('WA')
  exit()
for i in range(1,len(s)):
  if s[i:i+1]!='C' and s[i:i+1].isupper():
    print('WA')
    exit()
print('AC')

















for i in range(100*d):
  for j in range(d):
    if i+1==p[j]:
      tugi=max(tugi,j+1+c[j])
    elif i+1<p[j]:
      tugi=max(tugi,j+1)
  ten+=tugi
  tugi=0
  print(ten)
  if ten>=g:
    print(i+1)
    exit()


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):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    print("AGC")

if __name__ == '__main__':
    main()


from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    R = int(input())

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


if __name__ == '__main__':
    main()


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):
word=input()
cflg=True
if word[0]!='A':
  cflg=False
  print(cflg)
elif word[2:-1].count('C')!=1:
  cflg=False
cnt=0
for l in word[1:]:
  if l.isupper():
    cnt+=1
else:
  if cnt!=1:
    cflg=False
  
if cflg:
  print('AC')
else:
  print('WC')

s=int(input())

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

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")
elif 2800 < R
    print("AGC")

if A[0] == "A" and  big == 2 and CNUM == 1 and A[-1] != "C":  
    print("AC")
else:
    print("WA")

R =int(input())

if R < 1200:
    print("ABC")
elif 1200 < R < 2800:
    print("ARC")
elif 2800 < R
    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 = 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()
print("AC" if "C" in s[2:-2] and s[0]=="A" and s[1:].replace("C","",1).islower else "WA")

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

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 = list(input())
l = len(s)
if s[0] == 'A':
    c_cnt = 0
    cn_l = []
    for i, m in enumerate(s):
        if 1<i<l-1 and m=='C':
            cn_l.append(i)
            c_cnt += 1
    if c_cnt == 1:
        cn = int(cn_l[0])
        tmp = s
        tmp.pop(0)
        tmp.remove('C')
        tmp_s = ''.join(tmp)
        if tmp_s == tmp_s.lower():
            print('AC')
        else:
            print('WA')
    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):
l = input()
if l<1200:
    print("ABC")
elif l<2800
    print("ARC")
else :
    print("AGC")

l = int(input())
if l<1200:
    print("ABC")
elif l<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 x<1200:
    print("ABC")
elif 1200<=x and x<2800:
    print("ARC")
else:
    print("AGC")

x=int(input())
if x<1200:
    print("ABC")
elif 1200<=x and x<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):
a=int(input())
if a<1200:
  print(ABC)
elif 1199<a<2800:
  print(ARC)
else:
  print(AGC)
  
  

a=input()
if a<1200:
  print(ABC)
elif 1199<a<2800:
  print(ARC)

a=input()
if a<1200:
  print(ABC)
else:
  print(ARC)
  
  

a=int(input())
if a<1200:
  print("ABC")
elif 1199<a<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):
s = input()
res = "AC" if (s[0]=='A' and 'C' in s[2:-1] and s[1:].replace('C','',1).islower()) else "WC"
print(res)

s = input()
res = "AC" if (s[0]=='A' and 'C' in s[2:-2] and s[1:].replace('C','',1).islower()) else "WC"
print(res)

r = int(input())
if(r<1200):
    print("ABC")
elif(r>=1200 and 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):
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):
t=list(input())

if t[0]=="A" and not t[1]=="C" and not t[-1]=="C":
    rs=1
else:
    rs=0

if t[1].isupper==True or t[-1].isupper==True:
    rs -=1

del t[:2]
del t[-1]

if not t.count("C")==1:
    rs -=1

if rs==1:
    t.remove("C")

for i in t:
    if i.isupper()==True:
        rs -=1

if rs==1:
    print("AC")
else:
    print("WA")


t=list(input())

if t[0]=="A" and not t[1]=="C" and not t[-1]=="C":
    rs=1
else:
    rs=0

if t[1].isupper()==True or t[-1].isupper()==True:
    rs -=1

del t[:2]
del t[-1]

if not t.count("C")==1:
    rs -=1

if rs==1:
    t.remove("C")

for i in t:
    if i.isupper()==True:
        rs -=1

if rs==1:
    print("AC")
else:
    print("WA")


t=list(input())

if t[0]=="A" and not t[1]=="C" and not t[-1]=="C" and t[-1].islower==True and t[1].islower==True:
    rs=1
else:
    rs=0

del t[:2]
del t[-1]

if not t.count("C")==1:
    rs -=1

if rs==1:
    t.remove("C")

for i in t:
    if i.isupper()==True:
        rs -=1

if rs==1:
    print("AC")
else:
    print("WA")

t=int(input())

if t<1200:
    print("ABC")
elif t<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):
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 and R>1200:
    print("ARC")
if R>2800:
    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):
a = int(input()) 
A=['ABC','ARC','AGC']
if a <1200:
  print(A[0])
if a <2800:
  print(A[1])
else:
  print(A[2])

a = int(input()) 
A=['ABC','ARC','AGC']
if a <1200:
  print(A[0])
elif a <2800:
  print(A[1])
else:
  print(A[2])

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

S = input()

if S[0] != 'A':
    print('WA')
    exit()

if S[2:len(S) - 1].count('C') != 1:
    print('WA')
    exit()

if S[1] == 'C' or S[-1] == 'C':
    print('WA')
    exit()

for s in string.ascii_uppercase.replace('C', ''):
    if s in S[1:]:
        print('WA')
        exit()

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):
D, G = map(int, input().split())
pc = [list(map(int, input().split())) for _ in range(D)]
sum_list = [(i+1)*100*pac[0] for i, pac in enumerate(pc)]
max_list = [(i+1)*100*pac[0]+pac[1] for i, pac in enumerate(pc)]
stoc = 0
shiyouzumi = []
ichian = 0
nian = 0
while 1:
    kouho1 = []
    kouho2 = []
    for i in range(D):
        if i in shiyouzumi:
            continue
        if G <= sum_list[i]:
            kouho1.append(i)
        if G <= max_list[i]:
            kouho2.append(i)
    if kouho1 != []:
        saikou = kouho1[-1]
        for i in range(pc[saikou][0]+1):
            if i*(saikou+1)*100 >= G :
                ichian = stoc+i
                break
    if kouho2 != []:
        mini = 1000
        for i in kouho2:
            if mini > pc[i][0]:
                mini = pc[i][0]
        nian = stoc+mini
    chiisai = min(ichian, nian)
    if chiisai != 0:
        print(chiisai)
        exit()
    kouritsu = 0
    kouritsu_i = -1
    for i, s in enumerate(max_list):
        if i in shiyouzumi:
            continue
        if s/pc[i][0] > kouritsu:
            kouritsu_i = i
            kouritsu = s/pc[i][0]
    stoc += pc[kouritsu_i][0]
    G -= max_list[kouritsu_i]
    shiyouzumi.append(kouritsu_i)

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 sys
r = int(sys.stdin.readline())
if r < 1200: print("ABC")
elif r < 2800: print("ARC")
else print("AGC")

import sys
r = int(sys.stdin.readline())
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):
n = int(input())

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

n = int(input())

if 0 <= n and 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=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):
S=input()

judge = "AC" if (S[0] == 'a' and S[2:-1].count('C') == 1 and S[1:].replace('C', '').islower()) else "WA"
print(judge)

S=input()
judge='AC'
cnt = 0
if S[0] != 'A':
    judge='WA'
for i in range(1, len(S)):
    if S[i].isupper():
        if i == 1 or i == len(S) - 1 or S[i] != 'C':
            judge = 'WA'
        cnt+=1

if cnt != 1:
    judge = 'WA'
print(judge)


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):
R = int(input())
if R < 1200:
    print("ABC")
eif R < 2800:
    print("ARC")
else:
    print("AGC")

R = int(input())
print(["ARC","ABC","AGC"][R<1200 or -(R>=2800)])

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):
num = int(input())
if (num < 1200):
  print("ABC")
elif (num < 2800):
  print("ARC")
else
  print("AGC")

num = int(input())
if (num < 1200):
  print("ABC")
elif (num < 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())
r = "AGC"
if r < 1200:
    ans = "ABC"
else r < 2800:
    ans = "ARC"
print(ans)

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

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

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):
a=input()
if a<1200:
  print('ABC')
elif 1200<a<2800:
  print('ARC')
else
  print('AGC')

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


a=input()
if int(a)<1200:
    print("ABC")
elif int(a)<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):
s=input()
if s[0]=='A':
  if s[2:-2].count('C')==1:
    if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :
  		print('AC')
    else:
    	print('WA')
  else:
  	print('WA')
else:
  print('WA')

s=input()
if s[0]=='A':
  if s[2:-2].count('C')==1:
    if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :
      print('AC')
else:
  print('WA')


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

s=input()
if s[0]=='A':
    if s[2:-1].count('C')==1:
        if (s[1]+s[2:-1].replace('C', '')+s[-1]).islower() :
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')

s=input()
if s[0]=='A':
    if s[2:-2].count('C')==1:
        if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower()=='True' :
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')
 

s=input()
if s[0]=='A':
    if s[2:-2].count('C')==1:
        if (s[1]+s[2:-1].replace('C', '')+s[-1]).islower() :
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')

if s[0]=='A':
    if s[2:-2].count('C')==1:
        if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')
 

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

s=input()
if s[0]=='A':
    if s[2:-2].count('C')==1:
        if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')
 

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

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):
D,G = map(int,input().split(' '))
l = [list(map(int,input().split())) for i in range(D)]

ans = 10**8
for i in range(2**D):
    score = 0
    tmp = 0
    n_list = []
    for j in range(D):
        if (i >> j & 1):
            k = l[j]
            score += (j+1)*100*k[0]+k[1]
            tmp += k[0]
        else:
            n_list.append([j+1]+l[j])
    e_flag = False
    for ii in n_list[::-1]:#[1or2or..,times,bonus]
        for jj in range(ii[1]-1):
            if score<G:
                score += ii[0]*100
                tmp += 1
            else:
                e_flag = True
                break
        if e_flag:
            break
    if score<G:
        continue
    ans = min(ans,tmp)
print(ans)

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

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 and R < 2800:
    print("ARC")
else:
    print("AGC")

R = int(input())

if R < 1200:
    print("ABC")
elif 1200 <= R and 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());print("ABC"if r<1200else"ARC"if else r<2800else"AGC")

r = int(input())
print("ABC" if r<1200 else "ARC" if r<2800 else "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 < 1199: print('ABC')
elif R < 2799: print('ARC')
else: print('ARC')

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):
from sys import stdin
n = int(stdin.readline.rstrip())
if n<1200:
  print('ABC')
elif n>=1200 and n<2800:
  print('ARC')
elif n>=2800:
  print('AGC')

from sys import stdin
n = int(stdin.readline().rstrip())
if n<1200:
  print('ABC')
elif n>=1200 and n<2800:
  print('ARC')
elif n>=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=input()
0<=R and R<=4208
if R>=1 and R<1200
print('ABC')
elif R>=1200 and R<2800
print('ARC')
elif R>=2800
print('AGC')

R=input()
0<=R and R<=4208
if R>=1 and R<1200
   print('ABC')
elif R>=1200 and R<2800
   print('ARC')
elif R>=2800 and R<=4208
   print('AGC')

R=int(input())
0<=R and R<=4208
if R>=0 and R<1200:
   print('ABC')
elif R>=1200 and R<2800:
   print('ARC')
elif R>=2800 and R<=4208:
   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):
s=input()
S=list(s)
t=S
count=0
c=0
ans='AC'
if S[0]!='A':
    ans='WA'
for i in range(2,len(t)-1):
    if t[i]=='C':
        count+=1
if count!=1:
    ans='WA'
if ans!='WA':
    for j in range(len(S)):
        if S[j]=='A' or 'C':
            S.remove(S[j])
            c+=1
        if c==2:
            break
    for k in range(len(S)):
        x=S[k].lower()
        if S[k]!=x:
            ans='WA'
            break
print(ans)

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):
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")
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):
my_rate = input()
if my_rate < 1200:
        print("ABC")
elif my_rate >=1200 and my_rate < 2800:
        print("ARC")
else:
        print("AGC")


my_rate = input()
if my_rate < 1200:
        print("ABC")
elif my rate >=1200 and my_rate < 2800:
        print("ARC")
else:
        print("AGC")

my_rate = int(input())
if my_rate < 1200:
        print("ABC")
elif my_rate < 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):
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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


import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

r = k()
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()

if S[0] != 'A':
    print("WA")
    exit()
if S[2:-1].count('C') != 1:
    print("WA")
    exit()
if S.replace("A", "").replace("C", "").islower == False:
    print("WA")
    exit()
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):
print("AGC")

a = int(input())
if a < 1200:
  print("ABC")
elif a < 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):
x=input()
if (x< 1200):
  	print("ABC")
elif (x<2800):
  	print("ARC")
else:
  	print("AGC")

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

x=int(input())
if (x< 1200):
  print("ABC")
elif (x<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):
#-*-coding:utf-8-*-

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

if __name__ == '__main__':
    main()

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

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

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):
a = input()
if a < 1200:
 print("ABC")
elif a < 2800:
 print("ARC")
else:
 print("AGC")

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

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

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

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

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

a = 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

Runtime Error

Runtime Error

Runtime Error

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 = int(input())
r = 'AGC'
if R<2800:
    r[1]='R'
if R<1200:
    r[1]='B'
print(r)

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

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

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

answer = True
if s[0] != "A":
  answer = False

if s[2:len(s)-1].count("C") != 1:
  answer = False
  
for i in range(len(s)):
  if s[i] != "A" and s[i] != "C":
    if ord(s[i]) < 97  or  122 < ord(s[i]):
      answer = False

if answer :      
  print("AC")
else :
  print("WA")

a = int(input())

if a < 1200 :
    print("ABC")
elif a < 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')
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):
# using-utf8

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

# coding: utf-8

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

# coding: utf-8
# Your code here!

R=input()
r=int(R)
if r<1200:
    print("ABC")
elif 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):
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")
elif r<2800:
  print("ARC")
else:
  print("AGC")


Verdicts: Wrong Answer

Accepted