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

Submission attempts (in order):
n = int(input())
if n<1200:
    print('ABC')
if 1200<=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

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

A=int(input())
ARC=1
if(A<1200):
  print("ABC")
  ARC=0

if(A>=2800):
  print("AGC")
  ARC=0
  
if(ARC=1):
  print("ARC")


A=int(input())
ARC=1
if(A<1200):
  print("ABC")
  ARC=0

if(A>=2800):
  print("AGC")
  ARC=0
  
if(ARC==1):
  print("ARC")



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):
import re;print("AC" if re.fullmatch("A[a-z]+C[a-z]+", input()) is not None else "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):
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):
def main18():
    strbuf = input('');
    num = int(strbuf);
    if(num<1200):
        printf("ABC");
    elif(num<2800):
        printf("ARC");
    else:
        printf("AGC");


if __name__ == '__main__':
    main18()


def main17():
    strbuf = "U"
    strbuf2 = "N"
    strbuf3 = "K"
    print(strbuf + strbuf2 + strbuf3)

def main18():
    strbuf = input('');
    num = int(strbuf);
    if(num<1200):
        print("ABC");
    elif(num<2800):
        print("ARC");
    else:
        print("AGC");


if __name__ == '__main__':
    main18()

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(raw_input())

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

R = int(input())

if R <1200:
	print('ABC')

elif R<2800:
	print('ARC')

else :
	print('AGC')

Verdicts: Runtime Error

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

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

r = int(input())
if r < 1200:
    print("ABC")
if 1200 <= r < 2800:
    print("ARC")
if 2800 <= r:
    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%sC'%'BRG'[input()/100+4>>4]

print('A'+'BRG'[int(input())//100+4>>4]+'C')

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<1200 else "AGC" if r<2800)

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

if rate >= 0 && rate <= 1199:
	print('ABC')
elif rate >= 1200 && rate <= 2799:
	print('ARC')
else:
	print('AGC')


rate = int(input())

if rate >= 0 and rate <= 1199:
	print('ABC')
elif rate >= 1200 and rate <= 2799:
	print('ARC')
else:
	print('AGC')


Verdicts: Runtime Error

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

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

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

R = int(input())

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

Verdicts: Runtime Error

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

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

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

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

Verdicts: Runtime Error

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):
s = input()
if len(s) < 4:
    print('WA')
    exit()
count = 0
for i in range(len(s)):
    if i == 0:
        if s[i] != 'A':
            break
    elif i == 1:
        if s[i].islower():
            continue
        else:
            break
    elif i>1 and i < len(s)-1 :
        if s[i]=='C':
            if count == 0:
                count += 1
                continue
            else:
                break
        elif s[i].islower():
            continue
        else:
            break
    elif i == len(s) :
        if s[i].islower():
            print("AC")
            exit()
    else:
        break
print("WA")

s = input()
count = 0
for i in range(len(s)):
    if i == 0:
        if s[i] != 'A':
            break
    elif i == 1:
        if s[i].islower():
            pass
        else:
            break
    elif i>1 and i < len(s)-1 :
        if s[i]=='C':
            if count == 0:
                count += 1
            else:
                break
        elif s[i].islower():
            pass
        else:
            break
    elif i == len(s)-1 :
        if s[i].islower():
            print("AC")
            exit()
    else:
        break
print("WA")

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):
S = input()
if S.startswith('A'):
    if S[2:-1].count('C') == 1:
        str = S[1] + S[2:-2].replace('C','c') + S[-1]
        if str.islower():
            print('AC')
else:
    print('WA')

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

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

if S1[0] == 'A' and S1[2:-1].count('C') == 1 and not(S[1] == 'C' or S[-1] == 'C'):
    print('AC')
else:
    print('WA')

S = input()
S1 = list(S)
i = 0

if ((S1[1] == 'C') or (S1[-1] == 'C')):
    print('WA')
elif ((S1[0] == 'A') and (S1[2:-1].count('C') == 1)):
    S1.remove('A')
    S1.remove('C')
    while i <= len(S1):
        if S1[i].isupper():
            print('WA')
            i += 1
        break
    else:
        print('AC')

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

ans = "WA"
if s[0] == "A" and s[2:-1].count("C") == 1 and s[1] != "C" and s[-1] != "C":
    s2 = s.replace("A","a").replace("C","c")
    if s2 == s.lower():
        ans = "AC"

print(ans)


S = input()
result = "WA"

if S.startswith("A"):
    if S.count("C") == 1 and 2 <= S.find("C") <= (len(S)-3):
        S = S.replace("A","").replace("C","")
        if S.islower():
            result = "AC"
    elif S.count("C") == 1 and S.find("C") == 2:
        S = S.replace("A","").replace("C","")
        if S.islower():
            result = "AC"
print(result)


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

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

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

a=int(input())
print("ABC")if a<1200
print("ARC")if a<2800
print("AGC")if a>2799

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

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

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

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

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

n=int(input())
print('ABC') if n<1200 else print('ARC') if n<2800 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):
rating = int(input())
switch(rating):
  case rating>0 and rating < 1200:
    print("ABC")
    break
  case rating > 1200 and rating < 2800:
    print("ARC")
    break
  case rating > 2800 :
    print("AGC")
    break
  default:
    print("ERROR")
    break


rating = int(input())
if(rating>=0 and rating<1200):
  print("ABC")
elif(rating < 2800):
  print("ARC")
elif(rating <= 4208):
  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()
l = len(s)
if s[0] !="A":
    print("WA")
else:
    s = s.replace(s[0],"a")
    index1 = s.find("C")
    index2 = s.find("C", 2)
    if index2 != -1 or (index1 < 2 or index1 > l-3):
        print("WA")
    else:
        s = s.replace("A","a")
        s_lower = s.lower()
        if s != s_lower:
            print("WA")
        else:
            print("AC")


s = input()
l = len(s)
if s[0] !="A":
    print("WA")
else:
    s = s.replace(s[0],"a",1)
    index1 = s.find("C")
    s = s.replace(s[index1],"c",1)
    index2 = s.find("C")
    if index1==-1 or index2 != -1 or (index1 < 2 or index1 > l-3):
        print("WA")
    else:
        s_lower = s.lower()
        if s != s_lower:
            print("WA")
        else:
            print("AC")


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
s=list(input())
if s[0]!='A':
    break
count=0
for i in range(2,len(s)-2):
    if s[i]=='C':
        count+=1

if count==1:
    s.remove('A')
    s.remove('C')    
    res=''.join(s)
    print('AC' if res.islower()==True else 'WA') 

else:
    print('WA')

r=int(input())
if r<1200:
    print('ABC')
elif 1199<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()
n = len(S)
countc = 0
counta = 0
for m in range (3, n-1):
    if S[m-1] == 'C':
        countc = countc + 1
        S = S[:m-1] + 'c' + S[m:]
if S[1-1] == 'A':
    counta = 1
    S = 'a' + S[1:]
if(countc == 1 and counta == 1 and S.islower()):
    print('AC')
else:
    print('WA')

S = input()
n = len(S)
countc = 0
counta = 0
for m in range (3, n-1):
    if S[m-1] == 'C':
        countc = countc + 1
        S = S[:m-2] + 'c' + S[m:]
if S[1-1] == 'A':
    counta = 1
    S = 'a' + S[1:]
print(S)
print(counta, countc)
if(countc == 1 and counta == 1 and S.islower()):
    print('AC')
else:
    print('WA')

S = input()
n = len(S)
countc = 0
counta = 0
for m in range (3, n):
    if S[m-1] == 'C':
        countc = countc + 1
        S = S[:m-2] + 'c' + S[m:]
if S[1-1] == 'A':
    counta = 1
    S = 'a' + S[1:]
print(S)
print(counta, countc)
if(countc == 1 and counta == 1 and S.islower()):
    print('AC')
else:
    print('WA')

S = input()
n = len(S)
for m in range (3, n):
    if S[m-1] == C:
        Count_C = Count_C + 1
        S[m-1].lower()
if S[1] == A:
    Count_A = 1
    S[1].lower()
if(Count_C == 1 and Count_A == 1 and S.islower()):
    print('AC')
else:
    print('WA')



S = input()
n = len(S)
countc = 0
counta = 0
for m in range (3, n):
    if S[m-1] == 'C':
        countc = countc + 1
        S = S[:m-1] + 'c' + S[m:]
if S[1-1] == 'A':
    counta = 1
    S = 'a' + S[1:]
if(countc == 1 and counta == 1 and S.islower()):
    print('AC')
else:
    print('WA')

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


Verdicts: Wrong Answer

Wrong Answer

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


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



Verdicts: Runtime Error

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):

rating = [('ABC', 1200), ('ARC', 2800), ('AGC', 4209)]


try:
    r = int(input('高橋くんのレーティングを入力してください: '))
    if 0 <= r <= 4208:
        
        for t in rating:
            if r < t[1]:
                print(t[0])
                break
    else:
        print('範囲外の入力値です')
except:
        print('整数値を入力してください')


rating = [('ABC', 1200), ('ARC', 2800), ('AGC', 4209)]
r = int(input())
for t in rating:
    if r < t[1]:
        print(t[0])
        break

Verdicts: Wrong Answer

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
S = str(input())
flag = False
 
if S.startswith("A"):
  if ((S[2]) == "C") ^ (S["-2"]=="C"):
  	index = S.find("C")
    for i, s in enumerate(S):
      if (i == 0) or (i == index):
        continue
      if s.islower():
        continue
        if i == len(s):
          flag == True
 
if flag == True:
  print("AC")
else:
  print("WA")

S = str(input())
flag = False
 
if S.startswith("A"):
  if ((S[2]) == "C") ^ (S[-2]=="C"):
    index = S.find("C")
    if (S[1:index] + S[index+1:]).islower():
      flag = True
      
if flag == True:
  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):
D, G = [int(n) for n in input().split()]

score_table = []
for i in range(1, D+1):
    p, c = [int(n) for n in input().split()]
    score_table.append([i*100, p, c])

min_count = sum([l[1] for l in score_table])
#print(min_count)

for bit in range(1<<D):
    score = 0
    count = 0

    for i in range(D):
        if bit & (1<<i):
            score += score_table[i][0] * score_table[i][1] + score_table[i][2]
            count += score_table[i][1]
    
    if score >= G:
        min_count = min(min_count, count)
    else:
        additional = []
        for j in range(D):
            if not bit & (1<<j):
                additional.append(score_table[j])
        
        additional_ = sorted(additional, key=lambda x:x[0], reverse=True)
        #print(additional_)
        
        
        #     if i[1] > 1:
        #         add_score = i
        #         break

        add_score = additional_[0]

        for k in range(add_score[1]-1):
            score += add_score[0]
            count += 1
            if score >= G:
                min_count = min(min_count, count)

print(min_count)

R = int(input())

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

Verdicts: Runtime Error

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

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

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

r = int(input())

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


Verdicts: Runtime Error

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

Submission attempts (in order):
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()
if S[0] == "A":
  if S[2:-2].count("C") == 1: 
    if not S[0:2].upper and S[3:].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].islower:
      if S[3:].islower:
        print("AC")
      else:
        print("WA")
    else:
      print("WA")
  else:
    print("WA")
else:
  print("WA")

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

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
from math import ceil
D,G=map(int,input().split())
p=[0]*D
c=[0]*D

for i in range(D):
    p[i],c[i]=map(int,input().split())
_min=101*D

flag=1
while(flag < 2**D):
    
    _G=G
    tmp=0
    max_ind=0
    for i in range(D):
        if(flag & 1<<i):
            _G-=p[i]*(i+1)*100 + c[i]
            tmp+=p[i]
        else:
            max_ind=i
    k=ceil(max([(_G),0])//(100*(max_ind+1)))  
    if(k < p[max_ind]):
        tmp+=k
        _min=min([tmp,_min])
    flag+=1
print(_min) 

from math import ceil
D,G=map(int,input().split())
p=[0]*D
c=[0]*D

for i in range(D):
    p[i],c[i]=map(int,input().split())
_min=101*D

flag=1
while(flag < 2**D):
    
    _G=G
    tmp=0
    max_ind=0
    for i in range(D):
        if(flag & 1<<i):
            _G-=p[i]*(i+1)*100 + c[i]
            tmp+=p[i]
        else:
            max_ind=i
    k=ceil(max([(_G),0])/(100*(max_ind+1)))  
    if(k < p[max_ind]):
        tmp+=k
        _min=min([tmp,_min])
    flag+=1
print(_min)  

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


R = int(input())

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


R = int(input())

if R < 1200:
	print("ABC")
elif 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):
#110
S = list(map(int,input().split()))
ans=max(S)-min(S)
print(ans)

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

Verdicts: Wrong Answer

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

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

if n<1200:
  print("ABC")
  
elif 1200=<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: Runtime Error

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

Submission attempts (in order):
# -*- coding: utf-8 -*-
R = int(input())
if R >=2800:
  print("AGC")
elif R >= 1200 and 2800 > R:
  print("ARC")
else:
  print("AGC")

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

print(ans)

Verdicts: Wrong Answer

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

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
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):
def dfs(i, total, S, remain):
    global ans
    if i == D:
        if S < G:
           use = max(remain)
           N = min(L[use-1][0], (G-S)//(100*use))
           S += 100 * N * use
           total += N
           
        if S >= G:
           ans = min(ans, total)
    else:
        dfs(i+1, total, S, remain)
        dfs(i+1, total + L[i][0], S + 100 * (i+1) * L[i][0] + L[i][1], remain - {i+1})
 
D, G = map(int, input().split())
L = [list(map(int, input().split())) for _ in range(D)]
ans = 10 ** 9
 
dfs(0, 0, 0, set(range(1, D+1)))
 
print(ans)

r = int(input())

rate = [1200, 2800, 4209]
contest = ['ABC', 'ARC', 'AGC']

for i in range(3):
    if r < rate[i]:
        break
print(contest[i])

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 = list(input())
cnt = 0

array = S[2:-1]
if array.count("C")==1:
  array.remove("C")
  S = S[:2]+array+S[-1]
else:
  cnt += 1

if S[0]=="A":
  del S[0]
else:
  cnt += 1

s = "".join(S)
if s.islower == False:
  cnt += 1
print("AC" if cnt==0 else "WA")


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

Verdicts: Wrong Answer

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

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

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


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

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

Verdicts: Runtime Error

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

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

mid = S[2:-1]
C_count = 0

for i in mid:
    if i == 'C':
        C_count += 1
        
S_lower = S.lower()
S_replace = S.replace('A', 'a').replace('C', 'c')
        
if S[0] == 'A' and C_count == 1 and S_lower == S_replace:
    print('AC')
else:
    print('WA')

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):
'''
A - Rated for Me
https://atcoder.jp/contests/abc104/tasks/abc104_a

>>> main(1199)
ABC
>>> main(1200)
ARC
>>> main(4208)
AGC
'''


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


'''
A - Rated for Me
https://atcoder.jp/contests/abc104/tasks/abc104_a

>>> main(1199)
ABC
>>> main(1200)
ARC
>>> main(4208)
AGC
'''


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


if __name__ == "__main__":
    r = int(input())
    main(r)


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

a = int(input())
if a < 1200 :
    print('ABC')
elif a >= 1200 and 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=input('レートを入力してください:')

R=int(R)

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

elif 2800<=R<=4208 :
    print('AGC')

r=input('レートを入力してください:')

R=int(r)

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

elif 2800<=R<=4208 :
    print('AGC')

r=input('レートを入力してください:')

R=int(r)

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

elif 2800<=R<=4208 :
    print('AGC')

else :
    print('error')

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
# AcCepted
import re
s = input()
if s[0] == 'A':
    if s[2:-2:].count('C') == 1:
        if len(re.findall('[ABCDEFGHIJKLMNOPQRSTUVWXYZ]', s)) == 2:
            print('AC')
            exit()
print('WA')


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


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S. Each character of S is uppercase or lowercase English letter. Determine if S satisfies all of the following conditions:    * The initial character of S is an uppercase `A`.   * There is exactly one occurrence of `C` between the third character from the beginning and the second to last character (inclusive).   * All letters except the `A` and `C` mentioned above are lowercase.

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

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

ss = s[2:-1]
# print(ss)
if ss.count("C") != 1:
    flag = False
for si in s:
    if si != "A" or si != "C":
        if si.islower() != True: 
            flag = False
print("AC" if flag else "WA")


s = list(input())

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

ss = s[2:-1]
if ss.count("C") != 1:
    flag = False
for si in s:
    if si != "A" and si != "C":
        if si.islower() != True: 
            flag = False
            
print("AC" if flag else "WA")


Verdicts: Wrong Answer

Accepted
Problem: You are given a string S. Each character of S is uppercase or lowercase English letter. Determine if S satisfies all of the following conditions:    * The initial character of S is an uppercase `A`.   * There is exactly one occurrence of `C` between the third character from the beginning and the second to last character (inclusive).   * All letters except the `A` and `C` mentioned above are lowercase.

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

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

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

if not S.replace('A', '').replace('C', '').islower():
  print('WA')
  
print('AC')


S = input()

flag = False

if S[0] == 'A' and S[2:-1].count('C') == 1 :
  if S.count('A') == 1 and S.count('C') == 1:
    if S.replace('A', 'a').replace('C','c').islower():
      flag = True

log = 'AC' if flag else 'WA'
print(log)


Verdicts: Wrong Answer

Accepted