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

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

rate = int(input("Enter your rate: "))

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

# -*- coding: utf-8 -*-
 
rate = int(input("Enter your rate: "))
 
if rate < 1200:
    print("ABC")
elif rate >= 1200 and rate < 2800:
    print("ARC")
else:
    print("AGC")

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

rate = int(input("Enter your rate: "))

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

r = int(input())

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

Verdicts: Wrong Answer

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

if N< 1200:
  print ("ABC")
elsif 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())
if R<2400:
    print("ARC")
elif R<1200:
    print("ABC")
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):
d,g=map(int,input().split())
ans=10000
p=[]
c=[]
for i in range(d):
    a,b=map(int,input().split())
    p.append(a)
    c.append(b)
for i in range(2**d):
    x=0
    cou=0
    l=[]
    for j in range(d):
        if ((i>>j)&1):
            x+=c[j]+p[j]*(j+1)*100
            cou+=p[j]
        else:
            l.append(j)
    l.sort(reverse=True)
    k=0
    while x<g:
        for _ in range(p[l[k]]):
            if x>=g:
                break
            cou+=1
            x+=(100*(l[k]+1))
        k+=1
        if k>=len(l):
            break
    ans=min(ans,cou)
print(ans)


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):
mod=10**9+7
s=input()
n=len(s)
dp=[[0]*4 for i in range(n+1)] # A B C ABC
dp[0][0]=1
for i in range(1,n+1):
    if s[i-1]=="A":
        dp[i][0]=dp[i-1][0] % mod
        dp[i][1]=(dp[i-1][1] + dp[i-1][0]) % mod
        dp[i][2]=dp[i-1][2] % mod
        dp[i][3]=dp[i-1][3] % mod
    elif s[i-1]=="B":
        dp[i][0]=dp[i-1][0] % mod
        dp[i][1]=dp[i-1][1] % mod
        dp[i][2]=(dp[i-1][2] + dp[i-1][1]) % mod
        dp[i][3]=dp[i-1][3] % mod
    elif s[i-1]=="C":
        dp[i][0]=dp[i-1][0] % mod
        dp[i][1]=dp[i-1][1] % mod
        dp[i][2]=dp[i-1][2] % mod
        dp[i][3]=(dp[i-1][3] + dp[i-1][2]) % mod
    else:
        dp[i][0]=dp[i-1][0]*3 % mod
        dp[i][1]=(dp[i-1][1]*3 + dp[i-1][0]) % mod
        dp[i][2]=(dp[i-1][2]*3 + dp[i-1][1]) % mod
        dp[i][3]=(dp[i-1][3]*3 + dp[i-1][2]) % mod
print(dp[-1][-1]% mod)

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


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

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


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


Verdicts: Wrong Answer

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


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


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

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


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())
print(["ABC","ARC","AGC"][a<1200, a<2800, a>=2800])

C = ["ABC", "ARC" , "AGC"]
A = int(input())
print(C[(A>1200)+(A>2800)]

C = ["ABC", "ARC" , "AGC"]
A = int(input())
print(C[(A>1199)+(A>2799)])

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")
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 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):
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):
K=int(input());print('ABC'(K<1200)or'ARC'(K<2800)or'AGC')

K=int(input());print('ABC'*(K<1200)or'ARC'*(K<2800)or'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(intput())
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):
N = int(input())

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

N = int(input())

if N < 1200:
    print("ABC")
if N >= 1200 and N < 2800:
    print("ARC")
if N >= 2800:
    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 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):
import itertools
D, G = map(int, input().split())
P = [list(map(int, input().split())) for i in range(D)]
min_num = 10**8

judge_list = list(itertools.product([0, 1, 2], repeat=D)) 

for judge in judge_list:
    score = 0
    num = 0
    flag = 0
    for i in range(1, len(judge) + 1):
        if score >= G:
            break
        
        if judge[-i] == 1:
            pass
        
        if judge[-i] == 2:
            score += P[-i][0] * (D - i + 1) * 100 + P[-i][1]
            num += P[-i][0]
            
        if (judge[-i] == 0) and (flag == 0):
            for j in range(P[-i][0]):
                if score >= G:
                    break
                score += 100 * (D - i + 1)
                num += 1
            flag = 1
                        
    if score >= G:
        min_num = min(num, min_num)

print(min_num)           

N = int(input())

if N < 1200:
    print('ABC')
elif 1200<= 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):
import sys

s = input()

if s[0] != "A":
    print("WA")
    sys.exit(0)

if s[1] < "a" or s[1] > "z":
    print("WA")
    sys.exit(0)


sub = s[2:-1]
has = False
for c in sub:
    if not has and c == "C":
        has = True

    elif "a" <= c <= "z":
        continue

    else:
        has = False
        break

if not has:
    print("wA")
    sys.exit(0)

if "a" <= s[len(s) - 1] <= "z":
    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):
print("a", ord("a"))
print("z", ord("z"))

s = input()
n = len(s)
ans = 1
if s[0] != "A":
    ans *= 0
check = 0
for i in range(1, n):
    if s[i] == "C" and check == 0:
        check = 1
    elif s[i] == "C":
        check = 0
    else:
        if 97 <= ord(s[i]) <= 122:
            ans *= 1
        else:
            ans *= 0
print(["WA", "AC"][ans * check])


s = input()
n = len(s)
ans = 1
if s[0] != "A":
    ans *= 0
check = 0
for i in range(n):
    if s[i] == "C" and check == 0:
        check = 1
    elif s[i] == "C":
        check = 0
    else:
        if 97 <= ord(s[i]) <= 122:
            ans *= 1
        else:
            ans *= 0
print(["WA", "AC"][ans * check])


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 =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):
import re;print("AC"if re.match("A[a-z]+C[a-z]+",input())else"WA")

from sys import stderr
from functools import reduce
from operator import add
def f(): return [int(i) for i in input().split()]
def yes(n): print("Yes") if n else print("No")
def debug(*x, sep=" ", end="\n"):
    for item in x:
        stderr.write(repr(item))
        stderr.write(sep)
    stderr.write(end)

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()
count = 0
answer = "WA"

if S[0] == 'A' and S[2:-1].count('C') == 1:
    C = S.index('C')
    exception = [0]
    exception.append(C)

if len(exception) == 2:
    for j in range(len(S)):
        if j not in exception and S[j].islower():
            count += 1

if count == len(S)-2:
    answer = "AC"
    

print(answer)


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 = map(int,input().split())
if r <= 1999:
    print("ABC")
elif r <= 2799:
    print("ARC")
else:
    print("AGC")

r = int(input())
if r <= 1199:
    print("ABC")
elif r <= 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):
S = input()

if S[2:-2].count('C') != 1:
  print('WA')
else:
    if S[0] != 'A':
      print('WA')
    else:
        S[0] == 'a'
        S[S[2:-2].index('C')+2] == 'c'

        if S.islower():
          print('AC')
        else:
          print('WA')


S = input()

if S[2:-2].count('C') != 1:
  print('WA')
else:
    if S[0] != 'A':
      print('WA')
    else:
        S = list(map(lambda x: x, S))
        S[0] = 'a'
        S[S[2:-2].index('C')+2] = 'c'
        if ''.join(S).islower():
          print('AC')
        else:
          print('WA')


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

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

n = int(input())
if n < 1200:
    print("ABC")
elif n < 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:
  pritn("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):
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):
a=int(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,b=map(int,input().split())
a=input()
if(a<2800):
	print("ABC")
else:
	print("ARC")


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

#a,b=map(int,input().split())
a=input()
if a<2800:
	print("ABC")
else:
	print("ARC")

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

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

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

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

R = int(input("R: "))

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: 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):
l = list(input())
length = len(l)

a = 0
for i in range(2,length-1):
    if l[i] == "C":
        a += 1
        
b = 0
for i in range(length):
    if l[i].isupper() == True:
        b += 1

if l[0] == "A":
    if a == 1:
        if b == 2:
            print('AC')
        else:
            print('WA')
    else:
        print('WA')
else:
    print('WA')

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: 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):
inputs  input()
R = int(inputs)

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

inputs = input()
R = int(inputs)

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

inputs = input()
R = int(inputs)

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

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

rate(input())

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

rate(int(input()))

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()
text = s[2:-1]
r = s.replace('A', '')
r = r.replace('C', '')

if s[0] != 'A' pr text.count('C') != 1 or r != r.lower():
	print('WA')
	exit()

print('AC')

s = input()
a = False
b = False
c = False
cnt = 0
k = 0

if s[0] == 'A':
	a = True

for c in range(s[2],s[-1]):
	if c == 'C':
		cnt += 1
if cnt == 1:
	b = True

for c in s:
	if c != 'A' or c != 'C':
		if c.islower() == True:
			k += 1

if k == len(s):
	c = True


if a == b == c == True:
	print("AC")
else:
	print("WC")


s = input()
text = s[2:-1]
r = s.replace('A', '')
r = r.replace('C', '')

if s[0] != 'A' or text.count('C') != 1 or r != r.lower():
	print('WA')
	exit()

print('AC')

s = input()
text = s[2:-1]
r = s.replace('A', '')
r = r.replace('C', '')

if s[0] != 'A' or text.count('C') != 1 or r != r.lower():
    print('WA')
    exit()
 
print('AC')

s = input()
text = s[2:-1]
r = s.replace('A', '')
r = r.replace('C', '')

if s[0] != 'A' or text.count('C') != 1 or r != r.lower():
    print('WA')
else:
	print('AC')

r = int(input())

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

Verdicts: Runtime Error

Runtime Error

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

n=int(nput())
print('ABC' if n < 1200 else 'ARC' if 1200 <= n < 2800 else 'AGC')


n=int(input())
print('ABC' if n < 1200 else 'ARC' if 1200 <= n < 2800 else '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()

dp3 = 1
dp2 = 0
dp1 = 0
dp0 = 0

for i in reversed(range((len(s)))):
    m = 1
    m1 = 1
    m2 = 0
    m3 = 0
    m4 = 0
    if s[i] == '?':
        m = 3
        m1 = 3
        m2 = 1
        m3 = 1
        m4 = 1

    if s[i] == 'C':
        m2 = 1

    if s[i] == 'B':
        m3 = 1

    if s[i] == 'A':
        m4 = 1

    t_dp3 = m * dp3
    t_dp2 = m1 * dp2 + m2 * dp3
    t_dp1 = m1 * dp1 + m3 * dp2
    t_dp0 = m1 * dp0 + m4 * dp1
    dp3 = t_dp3
    dp2 = t_dp2
    dp1 = t_dp1
    dp0 = t_dp0

n = 10 ** 9 + 7
ans = dp0 % n
print(ans)

s = input()

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

for i in reversed(range((len(s)))):
    m = 1
    m1 = 1
    m2 = 0
    m3 = 0
    m4 = 0
    if s[i] == '?':
        m = 3
        m1 = 3
        m2 = 1
        m3 = 1
        m4 = 1

    if s[i] == 'C':
        m2 = 1

    if s[i] == 'B':
        m3 = 1

    if s[i] == 'A':
        m4 = 1

    dp[i][3] = (m * dp[i+1][3]) % n
    dp[i][2] = (m1 * dp[i+1][2] + m2 * dp[i+1][3]) % n
    dp[i][1] = (m1 * dp[i+1][1] + m3 * dp[i+1][2]) % n
    dp[i][0] = (m1 * dp[i+1][0] + m4 * dp[i+1][1]) % n

ans = dp[0][0]
print(ans)

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 = 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:
    ptint("ABC")
elif R < 2800:
    print("ARC")
else:
    print("AGC")


R = int(input())
if R < 1200:
    ptint("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

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

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


print("AGC")

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


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):
s = list(input())
ans = "AC"
if s[0] != "A" or s.count("C") !=1 or s[2:-1].count("C") != 1 or ''.join([i for i in s if i != "A" and i != "C"]).islower != True:
    ans = "WA"
print(ans)

S = input()
N = len(S)
a,b,c,d = 0,0,0,1
mod = 10**9+7
for x in reversed(S):
  if x == "?":
    a,b,c,d = 3*a+b, 3*b+c, 3*c+d, 3*d
  elif x == "A":
    a += b
  elif x == "B":
    b += c
  elif x == "C":
    c += d
  a %= mod; b %= mod; c %= mod; d %= mod
print(a)

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

def solve(R):
    if R < 1200 :
        return 'ABC'
    elif R < 2800 :
        return 'ARC'
    else :
        return 'AGC'

def readQuestion():
    ws = sys.stdin.readline().strip().split()
    R = int(ws[0])
    return (R,)

def main():
    solve(*readQuestion())

#Uncomment before submission
main()

def solve(R): #104-A
    if 1200>R :
        return 'ABC'
    if 2800>R :
        return 'ARC'
    else:
        return 'AGC'

import sys

def solve(R):
    if R < 1200 :
        return 'ABC'
    elif R < 2800 :
        return 'ARC'
    else :
        return 'AGC'

def readQuestion():
    ws = sys.stdin.readline().strip().split()
    R = int(ws[0])
    return (R,)

def main():
    solve(*readQuestion())

Uncomment before submission
main()

import sys
 

def solve(R):
    if R < 1200 :
        return 'ABC'
    elif R < 2800 :
        return 'ARC'
    else :
        return 'AGC'
 

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)
 
def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

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):
s=input()
def AcCepted(str1):
    if str1[0]!='A':
        return False
    str2=str1[1:-1]
    if str2.count('C')!=1:
         return False
    else:
        str3=str2.strip('C')
        if str3.islower ==False:
            return False
    return True

if AcCepted(s)==True:
    print('AC')
else:
    print('WA')


a=int(input())
if a<=1199:
  print('ABC')
elif a<=2799:
  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()
print(R)	

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

if n < 1200:
    print('ABC')
if n >= 1200 and n < 2800:
    print('ARC')
else:
    print('AGC')

n = int(input())

if n < 1200:
    print('ABC')
if n >= 1200 and n < 2800:
    print('ARC')
if n >= 2800:
    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()
flag = 0
flag_of_flag = 0
now = 0
komoji = 0
k = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
if S[0] == "A":
  flag += 1
for i in range(2,len(S)-1):
  if S[i] == "C":
    now += 1
  elif S[i] in k:
    komoji += 1
if now == 1:
  flag += 1
if S[1] in k and S[len(S)-2] in k and S[len(S)-1] in k:
  komoji += 3
if flag == 2:
  if komoji == len(S)-2:
    print("AC")
  else:
    print("WA")
else:
  print("WA")


s = input()
A_list =["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
ans_C = 0
ans_Big = 0
if s[0] != "A":
  print("WA")
else:
  for i in range(2,(len(s)-1)):
    if s[i] == "C":
      ans_C += 1
    else:
      ans_C += 0
  for j in range(len(s)):
    if s[j] in A_list:
      ans_Big += 1
    else:
      ans_Big += 0
  if ans_C == 1 and ans_Big == 0:
    print("AC")
  else:
    print("WA")

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

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):
0

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=int(input())
rint(["ABC","ARC","AGC"][(a>=1200)+(a>=2800)])

a=int(input())
print(["ABC","ARC","AGC"][(a>=1200)+(a>=2800)])

Verdicts: Runtime Error

Accepted