problem_id
stringlengths 6
6
| user_id
stringlengths 10
10
| time_limit
float64 1k
8k
| memory_limit
float64 262k
1.05M
| problem_description
stringlengths 48
1.55k
| codes
stringlengths 35
98.9k
| status
stringlengths 28
1.7k
| submission_ids
stringlengths 28
1.41k
| memories
stringlengths 13
808
| cpu_times
stringlengths 11
610
| code_sizes
stringlengths 7
505
|
---|---|---|---|---|---|---|---|---|---|---|
p03288 | u379689547 | 2,000 | 1,048,576 | 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? | ['a = int(input())\nprint(["ABC","ARC","AGC"][a<1200, a<2800, a>=2800])', 'C = ["ABC", "ARC" , "AGC"]\nA = int(input())\nprint(C[(A>1200)+(A>2800)]', 'C = ["ABC", "ARC" , "AGC"]\nA = int(input())\nprint(C[(A>1199)+(A>2799)])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s052284513', 's388693342', 's514998763'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [68, 70, 71] |
p03288 | u379692329 | 2,000 | 1,048,576 | 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? | ['R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse\n print("AGC")', 'R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s268645098', 's717970172'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 95] |
p03288 | u388297793 | 2,000 | 1,048,576 | 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? | ['r=int(input())\nif r<1200:\n print("ABC")\nif r<2800:\n print("ARC")\nelse:\n print("AGC")', 'r=int(input())\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s212482279', 's792703593'] | [9024.0, 9152.0] | [30.0, 26.0] | [93, 95] |
p03288 | u391731808 | 2,000 | 1,048,576 | 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? | ['print("AGC")', 'N = int(input())\nif N < 1200:\n print("ABC")\nelif N < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s708564128', 's557118180'] | [2940.0, 2940.0] | [17.0, 18.0] | [12, 101] |
p03288 | u391819434 | 2,000 | 1,048,576 | 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? | ["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')"] | ['Runtime Error', 'Accepted'] | ['s919852965', 's856626411'] | [2940.0, 2940.0] | [17.0, 18.0] | [57, 59] |
p03288 | u392361133 | 2,000 | 1,048,576 | 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? | ['r = int(intput())\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")', 'r = int(input())\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s410022777', 's189987073'] | [9088.0, 9084.0] | [21.0, 28.0] | [96, 96] |
p03288 | u392423112 | 2,000 | 1,048,576 | 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? | ['N = int(input())\n\nif N < 1200:\n print("ABC")\nif N >= 1200 and N < 2800:\n print("ARC")\nelse:\n print("AGC")', 'N = int(input())\n\nif N < 1200:\n print("ABC")\nif N >= 1200 and N < 2800:\n print("ARC")\nif N >= 2800:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s346555611', 's811737726'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 122] |
p03288 | u396391104 | 2,000 | 1,048,576 | 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? | ['r = int(input())\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = int(input())\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s757475187', 's726037838'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 96] |
p03288 | u411858517 | 2,000 | 1,048,576 | 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? | ['import itertools\nD, G = map(int, input().split())\nP = [list(map(int, input().split())) for i in range(D)]\nmin_num = 10**8\n\njudge_list = list(itertools.product([0, 1, 2], repeat=D)) \n\nfor judge in judge_list:\n score = 0\n num = 0\n flag = 0\n for i in range(1, len(judge) + 1):\n if score >= G:\n break\n \n if judge[-i] == 1:\n pass\n \n if judge[-i] == 2:\n score += P[-i][0] * (D - i + 1) * 100 + P[-i][1]\n num += P[-i][0]\n \n if (judge[-i] == 0) and (flag == 0):\n for j in range(P[-i][0]):\n if score >= G:\n break\n score += 100 * (D - i + 1)\n num += 1\n flag = 1\n \n if score >= G:\n min_num = min(num, min_num)\n\nprint(min_num) ', "N = int(input())\n\nif N < 1200:\n print('ABC')\nelif 1200<= N < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s045759522', 's345819033'] | [3188.0, 2940.0] | [18.0, 17.0] | [917, 109] |
p03288 | u411965808 | 2,000 | 1,048,576 | 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? | ['import sys\n\ns = input()\n\nif s[0] != "A":\n print("WA")\n sys.exit(0)\n\nif s[1] < "a" or s[1] > "z":\n print("WA")\n sys.exit(0)\n\n\nsub = s[2:-1]\nhas = False\nfor c in sub:\n if not has and c == "C":\n has = True\n\n elif "a" <= c <= "z":\n continue\n\n else:\n has = False\n break\n\nif not has:\n print("wA")\n sys.exit(0)\n\nif "a" <= s[len(s) - 1] <= "z":\n print("AC")\nelse:\n print("WA")\n', 'r = int(input())\n\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Wrong Answer', 'Accepted'] | ['s169194549', 's057429741'] | [3064.0, 2940.0] | [17.0, 17.0] | [430, 103] |
p03288 | u419963262 | 2,000 | 1,048,576 | 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? | ['print("a", ord("a"))\nprint("z", ord("z"))\n\ns = input()\nn = len(s)\nans = 1\nif s[0] != "A":\n ans *= 0\ncheck = 0\nfor i in range(1, n):\n if s[i] == "C" and check == 0:\n check = 1\n elif s[i] == "C":\n check = 0\n else:\n if 97 <= ord(s[i]) <= 122:\n ans *= 1\n else:\n ans *= 0\nprint(["WA", "AC"][ans * check])\n', 's = input()\nn = len(s)\nans = 1\nif s[0] != "A":\n ans *= 0\ncheck = 0\nfor i in range(n):\n if s[i] == "C" and check == 0:\n check = 1\n elif s[i] == "C":\n check = 0\n else:\n if 97 <= ord(s[i]) <= 122:\n ans *= 1\n else:\n ans *= 0\nprint(["WA", "AC"][ans * check])\n', 'R=int(input())\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s130119373', 's681232881', 's909651840'] | [8964.0, 9068.0, 2940.0] | [26.0, 27.0, 17.0] | [362, 316, 89] |
p03288 | u431475157 | 2,000 | 1,048,576 | 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? | ["R =input()\nif R<1200:\n print('ABC')\nelif R<2800:\n print('ARC')\nelse:\n print('AGC')", "R =int(input())\nif R<1200:\n print('ABC')\nelif R<2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s134020674', 's497904985'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 90] |
p03288 | u444856278 | 2,000 | 1,048,576 | 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? | ['import re;print("AC"if re.match("A[a-z]+C[a-z]+",input())else"WA")', 'from sys import stderr\nfrom functools import reduce\nfrom operator import add\ndef f(): return [int(i) for i in input().split()]\ndef yes(n): print("Yes") if n else print("No")\ndef debug(*x, sep=" ", end="\\n"):\n for item in x:\n stderr.write(repr(item))\n stderr.write(sep)\n stderr.write(end)\n\nr = int(input())\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s890502881', 's698741956'] | [3188.0, 4196.0] | [23.0, 181.0] | [66, 410] |
p03288 | u448655578 | 2,000 | 1,048,576 | 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? | ['S = input()\ncount = 0\nanswer = "WA"\n\nif S[0] == \'A\' and S[2:-1].count(\'C\') == 1:\n C = S.index(\'C\')\n exception = [0]\n exception.append(C)\n\nif len(exception) == 2:\n for j in range(len(S)):\n if j not in exception and S[j].islower():\n count += 1\n\nif count == len(S)-2:\n answer = "AC"\n \n\nprint(answer)\n', "N = int(input())\nif N < 1200:\n print('ABC')\nelif N < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s709443300', 's603202104'] | [3060.0, 2940.0] | [17.0, 17.0] | [333, 95] |
p03288 | u448720391 | 2,000 | 1,048,576 | 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? | ['r = map(int,input().split())\nif r <= 1999:\n print("ABC")\nelif r <= 2799:\n print("ARC")\nelse:\n print("AGC")', 'r = int(input())\nif r <= 1199:\n print("ABC")\nelif r <= 2799:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s748821460', 's883297172'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 103] |
p03288 | u448747186 | 2,000 | 1,048,576 | 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? | ["S = input()\n\nif S[2:-2].count('C') != 1:\n print('WA')\nelse:\n if S[0] != 'A':\n print('WA')\n else:\n S[0] == 'a'\n S[S[2:-2].index('C')+2] == 'c'\n\n if S.islower():\n print('AC')\n else:\n print('WA')\n", "S = input()\n\nif S[2:-2].count('C') != 1:\n print('WA')\nelse:\n if S[0] != 'A':\n print('WA')\n else:\n S = list(map(lambda x: x, S))\n S[0] = 'a'\n S[S[2:-2].index('C')+2] = 'c'\n if ''.join(S).islower():\n print('AC')\n else:\n print('WA')\n", "N = int(input())\n\n\nif N < 1200:\n print('ABC')\nelif N< 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s274991678', 's318303453', 's119974188'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [251, 295, 96] |
p03288 | u455317716 | 2,000 | 1,048,576 | 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? | ['r = int(input())\nif n < 1200:\n print("ABC")\nelif n < 2800:\n print("AEC")\nelse:\n print("AGC")', 'r = int(input())\nif n < 1200:\n print("ABC")\nelif n < 2800:\n print("AEC")\nelse:\n print("AGC")', 'n = int(input())\nif n < 1200:\n print("ABC")\nelif n < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s225000232', 's362667946', 's335423286'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [101, 101, 101] |
p03288 | u457957084 | 2,000 | 1,048,576 | 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? | ['R = int(input())\n\nif R < 1200:\n pritn("ABC")\n \nelif R < 2800:\n print("ARC")\n \nelse:\n print("AGC")\n \n ', 'R = int(input())\n\nif R < 1200:\n print("ABC")\n \nelif R < 2800:\n print("ARC")\n \nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s002739054', 's565079905'] | [2940.0, 2940.0] | [17.0, 18.0] | [108, 103] |
p03288 | u466238961 | 2,000 | 1,048,576 | 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? | ['if R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")\n', 'R=int(input())\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s351490370', 's993052184'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 96] |
p03288 | u466917094 | 2,000 | 1,048,576 | 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? | ['a=int(input())\nif a<1200:\n\tprint("ABC")\nelse if a<2800:\n\tprint("ARC")\nelse:\n print("AGC")', 'a=input()\nif a<1200:\n\tprint("ABC")\nelif a<2800:\n\tprint("ARC")\nelse:\n print("AGC")', '#a,b=map(int,input().split())\na=input()\nif(a<2800):\n\tprint("ABC")\nelse:\n\tprint("ARC")\n', 'a=int(input())\nif a<1500:\n\tprint("ABC")\nelse if a<2800:\n\tprint("ARC")\nelse:\n print("AGC")', '#a,b=map(int,input().split())\na=input()\nif a<2800:\n\tprint("ABC")\nelse:\n\tprint("ARC")', 'a=int(input())\nif a<1200:\n\tprint("ABC")\nelif a<2800:\n\tprint("ARC")\nelse:\n\tprint("AGC")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s014833825', 's159212924', 's551102923', 's660200752', 's772689441', 's211141127'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [90, 82, 86, 90, 84, 86] |
p03288 | u468431843 | 2,000 | 1,048,576 | 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? | ["if R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')", "R = int(input())\n\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s155828764', 's844419042'] | [9044.0, 9044.0] | [30.0, 23.0] | [84, 102] |
p03288 | u475675023 | 2,000 | 1,048,576 | 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? | ['R=input()\nif R<1200:\n print("ABC")\nelif R>=1200 and R<2800:\n print("ARC")\nelif R>=2800:\n print("AGC")', 'R=int(input())\nif R<1200:\n print("ABC")\nelif R>=1200 and R<2800:\n print("ARC")\nelif R>=2800:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s553064841', 's882688959'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 109] |
p03288 | u481026841 | 2,000 | 1,048,576 | 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? | ["R = int(input())\nif R < 1200:\n print('ABC')\nelif <2800:\n print('ARC')\nelse:\n print('AGC')", "R = int(input())\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s897586861', 's746057747'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 101] |
p03288 | u484216426 | 2,000 | 1,048,576 | 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? | ['r = int(input("R: "))\n\nif(r < 1200):\n print("ABC")\nelif(r < 2800):\n print("ARC")\nelse:\n print("AGC")\n ', 'R = int(input("R: "))\n\nif(R < 1200):\n print("ABC")\nelif(R < 2800):\n print("ARC")\nelse:\n print("AGC")\n ', 'r = int(input())\n\nif(r < 1200):\n print("ABC")\nelif(r < 2800):\n print("ARC")\nelse:\n print("AGC")\n '] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s288154186', 's574586730', 's675413472'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0] | [114, 114, 109] |
p03288 | u488380455 | 2,000 | 1,048,576 | 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? | ['l = list(input())\nlength = len(l)\n\na = 0\nfor i in range(2,length-1):\n if l[i] == "C":\n a += 1\n \nb = 0\nfor i in range(length):\n if l[i].isupper() == True:\n b += 1\n\nif l[0] == "A":\n if a == 1:\n if b == 2:\n print(\'AC\')\n else:\n print(\'WA\')\n else:\n print(\'WA\')\nelse:\n print(\'WA\')', "R = input()\n\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')", "R = int(input())\n\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')\n\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s815328965', 's990591536', 's127618113'] | [3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [353, 97, 104] |
p03288 | u497285470 | 2,000 | 1,048,576 | 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? | ['inputs input()\nR = int(inputs)\n\nif R < 1200:\n print("ARC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")', 'inputs = input()\nR = int(inputs)\n\nif R < 1200:\n print("ARC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")', 'inputs = input()\nR = int(inputs)\n\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s334331834', 's812396968', 's988039358'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [117, 118, 118] |
p03288 | u506587641 | 2,000 | 1,048,576 | 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? | ["def rate(n):\n if n < 1200:\n print('ABC')\n elif 1200 <= n <2800:\n print('ARC')\n else:\n print('AGC')\n\nrate(input())", "def rate(n):\n if n < 1200:\n print('ABC')\n elif 1200 <= n <2800:\n print('ARC')\n else:\n print('AGC')\n\nrate(int(input()))"] | ['Runtime Error', 'Accepted'] | ['s911240207', 's587504209'] | [2940.0, 2940.0] | [17.0, 17.0] | [143, 148] |
p03288 | u515952036 | 2,000 | 1,048,576 | 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? | ["s = input()\ntext = s[2:-1]\nr = s.replace('A', '')\nr = r.replace('C', '')\n\nif s[0] != 'A' pr text.count('C') != 1 or r != r.lower():\n\tprint('WA')\n\texit()\n\nprint('AC')", 's = input()\na = False\nb = False\nc = False\ncnt = 0\nk = 0\n\nif s[0] == \'A\':\n\ta = True\n\nfor c in range(s[2],s[-1]):\n\tif c == \'C\':\n\t\tcnt += 1\nif cnt == 1:\n\tb = True\n\nfor c in s:\n\tif c != \'A\' or c != \'C\':\n\t\tif c.islower() == True:\n\t\t\tk += 1\n\nif k == len(s):\n\tc = True\n\n\nif a == b == c == True:\n\tprint("AC")\nelse:\n\tprint("WC")\n', "s = input()\ntext = s[2:-1]\nr = s.replace('A', '')\nr = r.replace('C', '')\n\nif s[0] != 'A' or text.count('C') != 1 or r != r.lower():\n\tprint('WA')\n\texit()\n\nprint('AC')", "s = input()\ntext = s[2:-1]\nr = s.replace('A', '')\nr = r.replace('C', '')\n\nif s[0] != 'A' or text.count('C') != 1 or r != r.lower():\n print('WA')\n exit()\n \nprint('AC')", "s = input()\ntext = s[2:-1]\nr = s.replace('A', '')\nr = r.replace('C', '')\n\nif s[0] != 'A' or text.count('C') != 1 or r != r.lower():\n print('WA')\nelse:\n\tprint('AC')", 'r = int(input())\n\nif r < 1200:\n\tprint("ABC")\nelif r < 2800:\n\tprint("ARC")\nelse:\n\tprint("AGC")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s014562805', 's065160115', 's754714284', 's922196317', 's955503117', 's724421878'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [165, 320, 165, 172, 166, 93] |
p03288 | u516554284 | 2,000 | 1,048,576 | 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? | ["n=input()\nprint('ABC' if n < 1200 else 'ARC' if 1200 <= n < 2800 else 'AGC')", "n=int(nput())\nprint('ABC' if n < 1200 else 'ARC' if 1200 <= n < 2800 else 'AGC')\n", "n=int(input())\nprint('ABC' if n < 1200 else 'ARC' if 1200 <= n < 2800 else 'AGC')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s274189677', 's788649381', 's411587153'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [76, 81, 82] |
p03288 | u518378780 | 2,000 | 1,048,576 | 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? | ["s = input()\n\ndp3 = 1\ndp2 = 0\ndp1 = 0\ndp0 = 0\n\nfor i in reversed(range((len(s)))):\n m = 1\n m1 = 1\n m2 = 0\n m3 = 0\n m4 = 0\n if s[i] == '?':\n m = 3\n m1 = 3\n m2 = 1\n m3 = 1\n m4 = 1\n\n if s[i] == 'C':\n m2 = 1\n\n if s[i] == 'B':\n m3 = 1\n\n if s[i] == 'A':\n m4 = 1\n\n t_dp3 = m * dp3\n t_dp2 = m1 * dp2 + m2 * dp3\n t_dp1 = m1 * dp1 + m3 * dp2\n t_dp0 = m1 * dp0 + m4 * dp1\n dp3 = t_dp3\n dp2 = t_dp2\n dp1 = t_dp1\n dp0 = t_dp0\n\nn = 10 ** 9 + 7\nans = dp0 % n\nprint(ans)", "s = input()\n\ndp = [[0 for _ in range(4)] for _ in range(len(s) + 1)]\ndp[len(s)][3] = 1\nn = 10 ** 9 + 7\n\nfor i in reversed(range((len(s)))):\n m = 1\n m1 = 1\n m2 = 0\n m3 = 0\n m4 = 0\n if s[i] == '?':\n m = 3\n m1 = 3\n m2 = 1\n m3 = 1\n m4 = 1\n\n if s[i] == 'C':\n m2 = 1\n\n if s[i] == 'B':\n m3 = 1\n\n if s[i] == 'A':\n m4 = 1\n\n dp[i][3] = (m * dp[i+1][3]) % n\n dp[i][2] = (m1 * dp[i+1][2] + m2 * dp[i+1][3]) % n\n dp[i][1] = (m1 * dp[i+1][1] + m3 * dp[i+1][2]) % n\n dp[i][0] = (m1 * dp[i+1][0] + m4 * dp[i+1][1]) % n\n\nans = dp[0][0]\nprint(ans)", "r = int(input())\n\nif r < 1200:\n print('ABC')\nelif r < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s052066139', 's659953058', 's212228991'] | [3064.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [560, 624, 102] |
p03288 | u519003353 | 2,000 | 1,048,576 | 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? | ['R = input()\nif R < 1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")', 'R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s122298966', 's380618923'] | [2940.0, 2940.0] | [17.0, 20.0] | [94, 101] |
p03288 | u525987461 | 2,000 | 1,048,576 | 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? | ['R = int(input())\nif R < 1200:\n ptint("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")\n', 'R = int(input())\nif R < 1200:\n ptint("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")\n', 'R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s152375561', 's217724021', 's242175878'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [102, 102, 102] |
p03288 | u531436689 | 2,000 | 1,048,576 | 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? | ['r = input()\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")', 'R=input()\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")', 'R=int(input())\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s223153045', 's232525451', 's844017614'] | [2940.0, 2940.0, 3316.0] | [19.0, 17.0, 25.0] | [86, 84, 89] |
p03288 | u533482278 | 2,000 | 1,048,576 | 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? | ['a = input()\n\nif a < 1200:\n print("ABC")\nelif(a < 2800)\n print("ARC")\nelse\n print("AGC")\n', 'a = input()\n\nif a < 1200:\n print("ABC")\nelif(a < 2800):\n print("ARC")\nelse:\n print("AGC")\n', 'a = int(input())\n\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s735931237', 's958393119', 's947600083'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [97, 99, 103] |
p03288 | u533885955 | 2,000 | 1,048,576 | 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? | ['R = int(input())\nif R < 1200:\n print(ABC)\nelif R < 2800:\n print(ARC)\nelse:\n print(AGC)', 'R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s442457812', 's265088470'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 95] |
p03288 | u534953209 | 2,000 | 1,048,576 | 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? | ["R = int(input())\nif R < 1200:\n print('ABC')\nelif:\n R < 2800:\n print('ARC')\nelse:\n print('AGC')\n", 'print("AGC")', "R = int(input())\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s111101986', 's442719142', 's840969296'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [107, 12, 102] |
p03288 | u543954314 | 2,000 | 1,048,576 | 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? | ['s = list(input())\nans = "AC"\nif 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:\n ans = "WA"\nprint(ans)', 'S = input()\nN = len(S)\na,b,c,d = 0,0,0,1\nmod = 10**9+7\nfor x in reversed(S):\n if x == "?":\n a,b,c,d = 3*a+b, 3*b+c, 3*c+d, 3*d\n elif x == "A":\n a += b\n elif x == "B":\n b += c\n elif x == "C":\n c += d\n a %= mod; b %= mod; c %= mod; d %= mod\nprint(a)', 'r = int(input())\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s785532653', 's963214463', 's190350676'] | [3060.0, 3064.0, 2940.0] | [18.0, 17.0, 18.0] | [185, 264, 95] |
p03288 | u550895180 | 2,000 | 1,048,576 | 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? | ["import sys\n\ndef solve(R):\n if R < 1200 :\n return 'ABC'\n elif R < 2800 :\n return 'ARC'\n else :\n return 'AGC'\n\ndef readQuestion():\n ws = sys.stdin.readline().strip().split()\n R = int(ws[0])\n return (R,)\n\ndef main():\n solve(*readQuestion())\n\n#Uncomment before submission\nmain()", "def solve(R): #104-A\n if 1200>R :\n return 'ABC'\n if 2800>R :\n return 'ARC'\n else:\n return 'AGC'", "import sys\n\ndef solve(R):\n if R < 1200 :\n return 'ABC'\n elif R < 2800 :\n return 'ARC'\n else :\n return 'AGC'\n\ndef readQuestion():\n ws = sys.stdin.readline().strip().split()\n R = int(ws[0])\n return (R,)\n\ndef main():\n solve(*readQuestion())\n\nUncomment before submission\nmain()", "import sys\n \n\ndef solve(R):\n if R < 1200 :\n return 'ABC'\n elif R < 2800 :\n return 'ARC'\n else :\n return 'AGC'\n \n\ndef readQuestion():\n line = sys.stdin.readline().rstrip()\n return int(line)\n \ndef main():\n n = readQuestion()\n answer = solve(n)\n print(answer)\n \nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s201292488', 's266623200', 's272133678', 's934168160'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0, 18.0] | [316, 125, 315, 505] |
p03288 | u553070631 | 2,000 | 1,048,576 | 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? | ["s=input()\ndef AcCepted(str1):\n if str1[0]!='A':\n return False\n str2=str1[1:-1]\n if str2.count('C')!=1:\n return False\n else:\n str3=str2.strip('C')\n if str3.islower ==False:\n return False\n return True\n\nif AcCepted(s)==True:\n print('AC')\nelse:\n print('WA')\n", "a=int(input())\nif a<=1199:\n print('ABC')\nelif a<=2799:\n print('ARC')\nelse:\n print('AGC')\n"] | ['Wrong Answer', 'Accepted'] | ['s584422664', 's915601371'] | [2940.0, 2940.0] | [17.0, 17.0] | [315, 92] |
p03288 | u555356625 | 2,000 | 1,048,576 | 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? | ['R = input()\nprint(R)\t\n\nif R < 1200:\n print(ABC)\nelif 1200 <= R and R < 2800:\n print(ARC)\nelse:\n print(AGC)', "R = int(input())\n\nif R < 1200:\n print('ABC')\nelif 1200 <= R and R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s928982756', 's805676949'] | [9016.0, 9144.0] | [22.0, 28.0] | [109, 110] |
p03288 | u556477263 | 2,000 | 1,048,576 | 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? | ["n = int(input())\n\nif n < 1200:\n print('ABC')\nif n >= 1200 and n < 2800:\n print('ARC')\nelse:\n print('AGC')", "n = int(input())\n\nif n < 1200:\n print('ABC')\nif n >= 1200 and n < 2800:\n print('ARC')\nif n >= 2800:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s314376719', 's439797205'] | [9020.0, 9044.0] | [28.0, 28.0] | [114, 122] |
p03288 | u556589653 | 2,000 | 1,048,576 | 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? | ['S = input()\nflag = 0\nflag_of_flag = 0\nnow = 0\nkomoji = 0\nk = ["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"]\nif S[0] == "A":\n flag += 1\nfor i in range(2,len(S)-1):\n if S[i] == "C":\n now += 1\n elif S[i] in k:\n komoji += 1\nif now == 1:\n flag += 1\nif S[1] in k and S[len(S)-2] in k and S[len(S)-1] in k:\n komoji += 3\nif flag == 2:\n if komoji == len(S)-2:\n print("AC")\n else:\n print("WA")\nelse:\n print("WA")\n', 's = input()\nA_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"]\nans_C = 0\nans_Big = 0\nif s[0] != "A":\n print("WA")\nelse:\n for i in range(2,(len(s)-1)):\n if s[i] == "C":\n ans_C += 1\n else:\n ans_C += 0\n for j in range(len(s)):\n if s[j] in A_list:\n ans_Big += 1\n else:\n ans_Big += 0\n if ans_C == 1 and ans_Big == 0:\n print("AC")\n else:\n print("WA")', 'R = int(input())\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s749897461', 's839193002', 's220804000'] | [3064.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [482, 450, 91] |
p03288 | u562016607 | 2,000 | 1,048,576 | 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? | ['0', 'R=int(input())\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Wrong Answer', 'Accepted'] | ['s584593424', 's191667597'] | [2940.0, 2940.0] | [17.0, 17.0] | [1, 96] |
p03288 | u568426505 | 2,000 | 1,048,576 | 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? | ['a=int(input())\nrint(["ABC","ARC","AGC"][(a>=1200)+(a>=2800)])', 'a=int(input())\nprint(["ABC","ARC","AGC"][(a>=1200)+(a>=2800)])'] | ['Runtime Error', 'Accepted'] | ['s281842561', 's174651008'] | [9076.0, 9028.0] | [26.0, 30.0] | [61, 62] |
p03288 | u572002343 | 2,000 | 1,048,576 | 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? | ['a = int(input())\n\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse\n print("AGC")', 'a = int(input())\n\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s329431813', 's661434354'] | [2940.0, 2940.0] | [17.0, 18.0] | [101, 103] |
p03288 | u575101291 | 2,000 | 1,048,576 | 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? | ['R=int(input())\nif R <1200\n print("ABC")\nif R<2800\n print("ARC")\nelse\n print("AGC")', 'R=int(input())\nif R <1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s833194122', 's126862910'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 88] |
p03288 | u580236524 | 2,000 | 1,048,576 | 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? | ["r = int(input())\n \nif r<1200:\n print('ABC')\nif r<2800:\n print('ARC')\nelse:\n print('AGC')", "r = int(input())\n\nif r<1200:\n print('ABC')\nif 1200<=r<2800:\n print('ARC')\nelse:\n print('AGC')", 'r = int(input())\nif r < 1200:\n print("ABC")\nelif r < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s690888353', 's868817333', 's454741136'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [91, 96, 101] |
p03288 | u580806822 | 2,000 | 1,048,576 | 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? | ['r=int(imput())\n\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")\n', 'r=int(input())\n\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s673751308', 's688156485'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 97] |
p03288 | u589432040 | 2,000 | 1,048,576 | 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? | ["R = int(input())\nif R < 1200:\n print('ABC')\nelse if R < 2800:\n print('ARC')\nelse:\n print('AGC')", "R = int(input())\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')\n"] | ['Runtime Error', 'Accepted'] | ['s446458537', 's031160232'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 96] |
p03288 | u594956556 | 2,000 | 1,048,576 | 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? | ["s=input()\nif s[0:1]!='A':\n print('WA')\n exit()\nt=s[2:len(s)-1]\ncountc=0\nfor i in range(len(t)):\n if t[i]=='C':\n countc+=1\nif countc!=1:\n print('WA')\n exit()\nfor i in range(1,len(s)):\n if s[i:i+1]!='C' and s[i:i+1].isupper():\n print('WA')\n exit()\nprint('AC')\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfor i in range(100*d):\n for j in range(d):\n if i+1==p[j]:\n tugi=max(tugi,j+1+c[j])\n elif i+1<p[j]:\n tugi=max(tugi,j+1)\n ten+=tugi\n tugi=0\n print(ten)\n if ten>=g:\n print(i+1)\n exit()\n", "r=int(input())\nif r<1200:\n print('ABC')\nelif r<2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s115316329', 's526097393'] | [3064.0, 2940.0] | [17.0, 17.0] | [499, 89] |
p03288 | u596276291 | 2,000 | 1,048,576 | 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? | ['from collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(10000)\nINF = float("inf")\nYES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\ndy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]\n\n\ndef inside(y, x, H, W):\n return 0 <= y < H and 0 <= x < W\n\n\ndef ceil(a, b):\n return (a + b - 1) // b\n\n\ndef main():\n print("AGC")\n\nif __name__ == \'__main__\':\n main()\n', 'from collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(10000)\nINF = float("inf")\nYES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\ndy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]\n\n\ndef inside(y, x, H, W):\n return 0 <= y < H and 0 <= x < W\n\n\ndef ceil(a, b):\n return (a + b - 1) // b\n\n\ndef main():\n R = int(input())\n\n if R < 1200:\n print("ABC")\n elif R < 2800:\n print("ARC")\n else:\n print("AGC")\n\n\nif __name__ == \'__main__\':\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s623611650', 's543094545'] | [3948.0, 4328.0] | [30.0, 44.0] | [707, 822] |
p03288 | u607729897 | 2,000 | 1,048,576 | 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? | ["word=input()\ncflg=True\nif word[0]!='A':\n cflg=False\n print(cflg)\nelif word[2:-1].count('C')!=1:\n cflg=False\ncnt=0\nfor l in word[1:]:\n if l.isupper():\n cnt+=1\nelse:\n if cnt!=1:\n cflg=False\n \nif cflg:\n print('AC')\nelse:\n print('WC')", "s=int(input())\n\nif s<1200:\n res='ABC'\nelif 1200<=s<2800:\n res='ARC'\nelse:\n res='AGC'\nprint(res)"] | ['Wrong Answer', 'Accepted'] | ['s753582552', 's095561664'] | [3064.0, 2940.0] | [17.0, 17.0] | [244, 98] |
p03288 | u609814378 | 2,000 | 1,048,576 | 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? | ['R = int(input())\n\nif R < 1200:\n print("ABC")\nelif 1200 < R < 2800:\n print("ARC")\nelif 2800 < R\n print("AGC")', 'if A[0] == "A" and big == 2 and CNUM == 1 and A[-1] != "C": \n print("AC")\nelse:\n print("WA")', 'R =int(input())\n\nif R < 1200:\n print("ABC")\nelif 1200 < R < 2800:\n print("ARC")\nelif 2800 < R\n print("AGC")', 'R = int(input())\n\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s393339895', 's452879510', 's928725026', 's914963963'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [117, 100, 116, 103] |
p03288 | u612975321 | 2,000 | 1,048,576 | 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? | ["r = int(input())\nif r < 1200:\n print('ABC')\nif r < 2800:\n print('ARC')\nelse:\n print('AGC')\n", "r = int(input())\nif r < 1200:\n print('ABC')\nelif r < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s032590744', 's929806571'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 101] |
p03288 | u618373524 | 2,000 | 1,048,576 | 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? | ['s = input()\nprint("AC" if "C" in s[2:-2] and s[0]=="A" and s[1:].replace("C","",1).islower else "WA")', 'r = int(input())\nprint("ABC" if r < 1200 else "AGC" if r >=2800 else"ARC")'] | ['Wrong Answer', 'Accepted'] | ['s898315606', 's887624127'] | [2940.0, 2940.0] | [18.0, 18.0] | [101, 74] |
p03288 | u618512227 | 2,000 | 1,048,576 | 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? | ["s = list(input())\nl = len(s)\nif s[0] == 'A':\n c_cnt = 0\n cn_l = []\n for i, m in enumerate(s):\n if 1<i<l-1 and m=='C':\n cn_l.append(i)\n c_cnt += 1\n if c_cnt == 1:\n cn = int(cn_l[0])\n tmp = s\n tmp.pop(0)\n tmp.remove('C')\n tmp_s = ''.join(tmp)\n if tmp_s == tmp_s.lower():\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')", "r=int(input())\nif r < 1200:\n print('ABC')\nelif 1200 <= r < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s314262314', 's773226765'] | [3064.0, 2940.0] | [18.0, 17.0] | [465, 101] |
p03288 | u625092455 | 2,000 | 1,048,576 | 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? | ['l = input()\nif l<1200:\n print("ABC")\nelif l<2800\n print("ARC")\nelse :\n print("AGC")', 'l = int(input())\nif l<1200:\n print("ABC")\nelif l<2800:\n print("ARC")\nelse :\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s284962760', 's107442416'] | [2940.0, 3064.0] | [17.0, 18.0] | [92, 98] |
p03288 | u631460433 | 2,000 | 1,048,576 | 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? | ['if x<1200:\n print("ABC")\nelif 1200<=x and x<2800:\n print("ARC")\nelse:\n print("AGC")', 'x=int(input())\nif x<1200:\n print("ABC")\nelif 1200<=x and x<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s910408622', 's791316259'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 107] |
p03288 | u635958201 | 2,000 | 1,048,576 | 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? | ['a=int(input())\nif a<1200:\n print(ABC)\nelif 1199<a<2800:\n print(ARC)\nelse:\n print(AGC)\n \n ', 'a=input()\nif a<1200:\n print(ABC)\nelif 1199<a<2800:\n print(ARC)', 'a=input()\nif a<1200:\n print(ABC)\nelse:\n print(ARC)\n \n ', 'a=int(input())\nif a<1200:\n print("ABC")\nelif 1199<a<2800:\n print("ARC")\nelse:\n print("AGC")\n \n \n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s453878983', 's486005365', 's546995989', 's028047788'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [94, 64, 58, 113] |
p03288 | u636157062 | 2,000 | 1,048,576 | 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? | ['s = input()\nres = "AC" if (s[0]==\'A\' and \'C\' in s[2:-1] and s[1:].replace(\'C\',\'\',1).islower()) else "WC"\nprint(res)', 's = input()\nres = "AC" if (s[0]==\'A\' and \'C\' in s[2:-2] and s[1:].replace(\'C\',\'\',1).islower()) else "WC"\nprint(res)', 'r = int(input())\nif(r<1200):\n print("ABC")\nelif(r>=1200 and r<2800):\n print("ARC")\nelse:\n print("AGC")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s567095770', 's879858286', 's870433234'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [115, 115, 112] |
p03288 | u636162168 | 2,000 | 1,048,576 | 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? | ['r=int(input())\nif r>1200:\n print("ABC")\nelif 1200<=r<2800:\n print("ARC")\nelse:\n print("AGC")', 'r=int(input())\nif r<1200:\n print("ABC")\nelif 1200<=r<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s595992389', 's727843801'] | [2940.0, 2940.0] | [19.0, 17.0] | [101, 101] |
p03288 | u637016017 | 2,000 | 1,048,576 | 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? | ['t=list(input())\n\nif t[0]=="A" and not t[1]=="C" and not t[-1]=="C":\n rs=1\nelse:\n rs=0\n\nif t[1].isupper==True or t[-1].isupper==True:\n rs -=1\n\ndel t[:2]\ndel t[-1]\n\nif not t.count("C")==1:\n rs -=1\n\nif rs==1:\n t.remove("C")\n\nfor i in t:\n if i.isupper()==True:\n rs -=1\n\nif rs==1:\n print("AC")\nelse:\n print("WA")\n', 't=list(input())\n\nif t[0]=="A" and not t[1]=="C" and not t[-1]=="C":\n rs=1\nelse:\n rs=0\n\nif t[1].isupper()==True or t[-1].isupper()==True:\n rs -=1\n\ndel t[:2]\ndel t[-1]\n\nif not t.count("C")==1:\n rs -=1\n\nif rs==1:\n t.remove("C")\n\nfor i in t:\n if i.isupper()==True:\n rs -=1\n\nif rs==1:\n print("AC")\nelse:\n print("WA")\n', 't=list(input())\n\nif t[0]=="A" and not t[1]=="C" and not t[-1]=="C" and t[-1].islower==True and t[1].islower==True:\n rs=1\nelse:\n rs=0\n\ndel t[:2]\ndel t[-1]\n\nif not t.count("C")==1:\n rs -=1\n\nif rs==1:\n t.remove("C")\n\nfor i in t:\n if i.isupper()==True:\n rs -=1\n\nif rs==1:\n print("AC")\nelse:\n print("WA")', 't=int(input())\n\nif t<1200:\n print("ABC")\nelif t<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s204808133', 's259555524', 's387225496', 's759723453'] | [3064.0, 3064.0, 3064.0, 2940.0] | [19.0, 17.0, 17.0, 17.0] | [339, 343, 327, 97] |
p03288 | u643081547 | 2,000 | 1,048,576 | 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? | ['a=int(input())\nif(a<1200):\n print("ABC")\n elif a<2800:\n print("ARC")\n else:\n print("AGC")\n ', 'a=int(input())\nif(a<1200):\n print("ABC")\nelif a<2800:\n print("ARC")\nelse:\n print("AGC")\n '] | ['Runtime Error', 'Accepted'] | ['s194625543', 's511328981'] | [3188.0, 2940.0] | [17.0, 19.0] | [95, 93] |
p03288 | u644100188 | 2,000 | 1,048,576 | 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? | ['R = int(input())\n\nif R<1200:\n print("ABC")\nif R<2800 and R>1200:\n print("ARC")\nif R>2800:\n print("AGC"', 'R = int(input())\n\nif R<1200:\n print("ABC")\nelif R<2800:\n print("ARC")\nelse :\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s087215605', 's602444303'] | [2940.0, 2940.0] | [17.0, 17.0] | [111, 99] |
p03288 | u661576386 | 2,000 | 1,048,576 | 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? | ["a = int(input()) \nA=['ABC','ARC','AGC']\nif a <1200:\n print(A[0])\nif a <2800:\n print(A[1])\nelse:\n print(A[2])", "a = int(input()) \nA=['ABC','ARC','AGC']\nif a <1200:\n print(A[0])\nelif a <2800:\n print(A[1])\nelse:\n print(A[2])"] | ['Wrong Answer', 'Accepted'] | ['s092063085', 's256867322'] | [2940.0, 3060.0] | [17.0, 17.0] | [111, 113] |
p03288 | u663710122 | 2,000 | 1,048,576 | 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? | ["import string\n\nS = input()\n\nif S[0] != 'A':\n print('WA')\n exit()\n\nif S[2:len(S) - 1].count('C') != 1:\n print('WA')\n exit()\n\nif S[1] == 'C' or S[-1] == 'C':\n print('WA')\n exit()\n\nfor s in string.ascii_uppercase.replace('C', ''):\n if s in S[1:]:\n print('WA')\n exit()\n\nprint('AC')\n", "R = int(input())\n\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s340263095', 's741682906'] | [4148.0, 2940.0] | [33.0, 17.0] | [313, 102] |
p03288 | u673281957 | 2,000 | 1,048,576 | 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? | ['D, G = map(int, input().split())\npc = [list(map(int, input().split())) for _ in range(D)]\nsum_list = [(i+1)*100*pac[0] for i, pac in enumerate(pc)]\nmax_list = [(i+1)*100*pac[0]+pac[1] for i, pac in enumerate(pc)]\nstoc = 0\nshiyouzumi = []\nichian = 0\nnian = 0\nwhile 1:\n kouho1 = []\n kouho2 = []\n for i in range(D):\n if i in shiyouzumi:\n continue\n if G <= sum_list[i]:\n kouho1.append(i)\n if G <= max_list[i]:\n kouho2.append(i)\n if kouho1 != []:\n saikou = kouho1[-1]\n for i in range(pc[saikou][0]+1):\n if i*(saikou+1)*100 >= G :\n ichian = stoc+i\n break\n if kouho2 != []:\n mini = 1000\n for i in kouho2:\n if mini > pc[i][0]:\n mini = pc[i][0]\n nian = stoc+mini\n chiisai = min(ichian, nian)\n if chiisai != 0:\n print(chiisai)\n exit()\n kouritsu = 0\n kouritsu_i = -1\n for i, s in enumerate(max_list):\n if i in shiyouzumi:\n continue\n if s/pc[i][0] > kouritsu:\n kouritsu_i = i\n kouritsu = s/pc[i][0]\n stoc += pc[kouritsu_i][0]\n G -= max_list[kouritsu_i]\n shiyouzumi.append(kouritsu_i)', "R = int(input())\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s679402998', 's972634227'] | [3064.0, 2940.0] | [18.0, 18.0] | [1227, 95] |
p03288 | u676305149 | 2,000 | 1,048,576 | 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? | ['import sys\nr = int(sys.stdin.readline())\nif r < 1200: print("ABC")\nelif r < 2800: print("ARC")\nelse print("AGC")', 'import sys\nr = int(sys.stdin.readline())\nif r < 1200: print("ABC")\nelif r < 2800: print("ARC")\nelse: print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s339903335', 's127494725'] | [2940.0, 3316.0] | [17.0, 19.0] | [112, 113] |
p03288 | u676496404 | 2,000 | 1,048,576 | 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? | ['n = int(input())\n\nif n < 1200 :\n print(ABC)\nelif n < 2800 :\n print(ARC)\nelse :\n print(AGC)\n ', 'n = int(input())\n\nif 0 <= n and n < 1200 :\n print("ABC")\nelif n < 2800 :\n print("ARC")\nelse :\n print("AGC")\n '] | ['Runtime Error', 'Accepted'] | ['s494388301', 's212105811'] | [3060.0, 2940.0] | [18.0, 17.0] | [104, 121] |
p03288 | u684743124 | 2,000 | 1,048,576 | 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? | ['r=input()\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")', 'r=int(input())\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s622097079', 's907261900'] | [9016.0, 9080.0] | [25.0, 26.0] | [84, 89] |
p03288 | u685662874 | 2,000 | 1,048,576 | 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? | ['S=input()\n\njudge = "AC" if (S[0] == \'a\' and S[2:-1].count(\'C\') == 1 and S[1:].replace(\'C\', \'\').islower()) else "WA"\nprint(judge)', "S=input()\njudge='AC'\ncnt = 0\nif S[0] != 'A':\n judge='WA'\nfor i in range(1, len(S)):\n if S[i].isupper():\n if i == 1 or i == len(S) - 1 or S[i] != 'C':\n judge = 'WA'\n cnt+=1\n\nif cnt != 1:\n judge = 'WA'\nprint(judge)\n", "R=int(input())\nif R < 1200:\n print('ABC')\nelif R < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s456973805', 's561664533', 's608475820'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [128, 247, 99] |
p03288 | u686036872 | 2,000 | 1,048,576 | 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? | ['R = int(input())\nif R < 1200:\n print("ABC")\neif R < 2800:\n print("ARC")\nelse:\n print("AGC")', 'R = int(input())\nprint(["ARC","ABC","AGC"][R<1200 or -(R>=2800)])'] | ['Runtime Error', 'Accepted'] | ['s965594880', 's927772161'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 65] |
p03288 | u692515710 | 2,000 | 1,048,576 | 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? | ['num = int(input())\nif (num < 1200):\n print("ABC")\nelif (num < 2800):\n print("ARC")\nelse\n print("AGC")', 'num = int(input())\nif (num < 1200):\n print("ABC")\nelif (num < 2800):\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s909046203', 's250133527'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 106] |
p03288 | u693378622 | 2,000 | 1,048,576 | 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? | ['r = int(input())\nr = "AGC"\nif r < 1200:\n ans = "ABC"\nelse r < 2800:\n ans = "ARC"\nprint(ans)', 'r = int(input())\nans = "AGC"\nif r < 1200:\n ans = "ABC"\nelse r < 2800:\n ans = "ARC"\nprint(ans)', 'r = int(input())\nans = "AGC"\nif r < 1200:\n ans = "ABC"\nelif r < 2800:\n ans = "ARC"\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s743041434', 's992421727', 's883661694'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [97, 99, 99] |
p03288 | u693953100 | 2,000 | 1,048,576 | 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? | ["a=input()\nif a<1200:\n print('ABC')\nelif 1200<a<2800:\n print('ARC')\nelse\n print('AGC')", "a=int(input())\nif a<1200:\n\tprint('ABC')\nelif 1200<a<2800:\n\tprint('ARC')\nelse\n\tprint('AGC')\n", 'a=input()\nif int(a)<1200:\n print("ABC")\nelif int(a)<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s125210523', 's435432660', 's532498839'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 91, 100] |
p03288 | u696715721 | 2,000 | 1,048,576 | 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? | ["s=input()\nif s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :\n \t\tprint('AC')\n else:\n \tprint('WA')\n else:\n \tprint('WA')\nelse:\n print('WA')", "s=input()\nif s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :\n print('AC')\nelse:\n print('WA')\n", "r=input()\nif r<1200:\n print('ABC')\nelif 1200<=r and r<2800:\n print('ARC')\nelse:\n print('AGC')", "s=input()\nif s[0]=='A':\n if s[2:-1].count('C')==1:\n if (s[1]+s[2:-1].replace('C', '')+s[-1]).islower() :\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')", "s=input()\nif s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower()=='True' :\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')\n ", "s=input()\nif s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-1].replace('C', '')+s[-1]).islower() :\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')", "if s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')\n ", "r=input()\nif r<1200:\n print('ABC')\nelif 1200<=r<2800:\n print('ARC')\nelse:\n print('AGC')", "s=input()\nif s[0]=='A':\n if s[2:-2].count('C')==1:\n if (s[1]+s[2:-2].replace('C', '')+s[-1]).islower() :\n print('AC')\n else:\n print('WA')\n else:\n print('WA')\nelse:\n print('WA')\n ", "r=int(input())\nif r<1200:\n print('ABC')\nelif 1200<=r and r<2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s015522364', 's186922279', 's242962498', 's407599891', 's589159286', 's651234240', 's727346166', 's821297884', 's907759536', 's504835471'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 20.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [194, 147, 96, 228, 238, 228, 220, 90, 230, 101] |
p03288 | u698501671 | 2,000 | 1,048,576 | 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? | ["D,G = map(int,input().split(' '))\nl = [list(map(int,input().split())) for i in range(D)]\n\nans = 10**8\nfor i in range(2**D):\n score = 0\n tmp = 0\n n_list = []\n for j in range(D):\n if (i >> j & 1):\n k = l[j]\n score += (j+1)*100*k[0]+k[1]\n tmp += k[0]\n else:\n n_list.append([j+1]+l[j])\n e_flag = False\n for ii in n_list[::-1]:#[1or2or..,times,bonus]\n for jj in range(ii[1]-1):\n if score<G:\n score += ii[0]*100\n tmp += 1\n else:\n e_flag = True\n break\n if e_flag:\n break\n if score<G:\n continue\n ans = min(ans,tmp)\nprint(ans)", "r = int(input())\nif r < 1200:\n ans = 'ABC'\nelif r<2800:\n ans = 'ARC'\nelse:\n ans = 'AGC'\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s011138632', 's570388128'] | [3064.0, 2940.0] | [17.0, 17.0] | [713, 107] |
p03288 | u698919163 | 2,000 | 1,048,576 | 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? | ['R = int(input())\n\nif R < 1200:\n print("ABC"):\nelif 1200 <= R and R < 2800:\n print("ARC")\nelse:\n print("AGC")', 'R = int(input())\n\nif R < 1200:\n print("ABC")\nelif 1200 <= R and R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Accepted'] | ['s670568550', 's833847588'] | [2940.0, 2940.0] | [17.0, 19.0] | [117, 116] |
p03288 | u716529032 | 2,000 | 1,048,576 | 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? | ['r = int(input());print("ABC"if r<1200else"ARC"if else r<2800else"AGC")', 'r = int(input())\nprint("ABC" if r<1200 else "ARC" if r<2800 else "AGC")'] | ['Runtime Error', 'Accepted'] | ['s922985525', 's630218953'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 71] |
p03288 | u716660050 | 2,000 | 1,048,576 | 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? | ["R=int(input())\nif R < 1199: print('ABC')\nelif R < 2799: print('ARC')\nelse: print('ARC')", "R=int(input())\nif R < 1200: print('ABC')\nelif R < 2800: print('ARC')\nelse: print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s792760322', 's729089679'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03288 | u724742135 | 2,000 | 1,048,576 | 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? | ["from sys import stdin\nn = int(stdin.readline.rstrip())\nif n<1200:\n print('ABC')\nelif n>=1200 and n<2800:\n print('ARC')\nelif n>=2800:\n print('AGC')", "from sys import stdin\nn = int(stdin.readline().rstrip())\nif n<1200:\n print('ABC')\nelif n>=1200 and n<2800:\n print('ARC')\nelif n>=2800:\n print('AGC')"] | ['Runtime Error', 'Accepted'] | ['s681082675', 's186372284'] | [2940.0, 2940.0] | [18.0, 17.0] | [149, 151] |
p03288 | u725406838 | 2,000 | 1,048,576 | 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? | ["R=input()\n0<=R and R<=4208\nif R>=1 and R<1200\nprint('ABC')\nelif R>=1200 and R<2800\nprint('ARC')\nelif R>=2800\nprint('AGC')", "R=input()\n0<=R and R<=4208\nif R>=1 and R<1200\n print('ABC')\nelif R>=1200 and R<2800\n print('ARC')\nelif R>=2800 and R<=4208\n print('AGC')", "R=int(input())\n0<=R and R<=4208\nif R>=0 and R<1200:\n print('ABC')\nelif R>=1200 and R<2800:\n print('ARC')\nelif R>=2800 and R<=4208:\n print('AGC')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s608024423', 's609749854', 's830950780'] | [3188.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [121, 142, 150] |
p03288 | u727787724 | 2,000 | 1,048,576 | 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? | ["s=input()\nS=list(s)\nt=S\ncount=0\nc=0\nans='AC'\nif S[0]!='A':\n ans='WA'\nfor i in range(2,len(t)-1):\n if t[i]=='C':\n count+=1\nif count!=1:\n ans='WA'\nif ans!='WA':\n for j in range(len(S)):\n if S[j]=='A' or 'C':\n S.remove(S[j])\n c+=1\n if c==2:\n break\n for k in range(len(S)):\n x=S[k].lower()\n if S[k]!=x:\n ans='WA'\n break\nprint(ans)", "r=int(input())\nif r<1200:\n print('ABC')\nelif r<2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s275501340', 's963944971'] | [3064.0, 2940.0] | [17.0, 17.0] | [431, 89] |
p03288 | u729707098 | 2,000 | 1,048,576 | 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? | ['n = int(input())\nif n<1200: print("ABC")\nelif: n<2800: print("ARC")\nelse: print("AGC")', 'n = int(input())\nif n<1200: print("ABC")\nelif n<2800: print("ARC")\nelse: print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s205988096', 's710846377'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 86] |
p03288 | u740284863 | 2,000 | 1,048,576 | 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? | ['my_rate = input()\nif my_rate < 1200:\n print("ABC")\nelif my_rate >=1200 and my_rate < 2800:\n print("ARC")\nelse:\n print("AGC")\n', 'my_rate = input()\nif my_rate < 1200:\n print("ABC")\nelif my rate >=1200 and my_rate < 2800:\n print("ARC")\nelse:\n print("AGC")', 'my_rate = int(input())\nif my_rate < 1200:\n print("ABC")\nelif my_rate < 2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s466088246', 's758542041', 's612810084'] | [3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [146, 145, 132] |
p03288 | u750651325 | 2,000 | 1,048,576 | 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? | ['import re\nimport sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\nimport functools\ndef v(): return input()\ndef k(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef X(): return list(input())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\ncnt = 0\nans = 0\ninf = float("inf")\n\nr = I()\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")\n', 'import re\nimport sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\nimport functools\ndef v(): return input()\ndef k(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef X(): return list(input())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\ncnt = 0\nans = 0\ninf = float("inf")\n\nr = k()\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Runtime Error', 'Accepted'] | ['s985813053', 's845824152'] | [10356.0, 10316.0] | [32.0, 43.0] | [620, 620] |
p03288 | u752700460 | 2,000 | 1,048,576 | 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? | ['S = input()\n\nif S[0] != \'A\':\n print("WA")\n exit()\nif S[2:-1].count(\'C\') != 1:\n print("WA")\n exit()\nif S.replace("A", "").replace("C", "").islower == False:\n print("WA")\n exit()\nprint("AC")\n', 'R = int(input())\n\nif(R < 1200):\n print("ABC")\nelif(R < 2800):\n print("ARC")\nelse:\n print("AGC")\n'] | ['Wrong Answer', 'Accepted'] | ['s310206635', 's101530898'] | [2940.0, 2940.0] | [18.0, 17.0] | [207, 105] |
p03288 | u754022296 | 2,000 | 1,048,576 | 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? | ['print("AGC")', 'a = int(input())\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s657513158', 's381396970'] | [2940.0, 2940.0] | [17.0, 17.0] | [12, 95] |
p03288 | u759519438 | 2,000 | 1,048,576 | 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? | ['x=input()\nif (x< 1200):\n \tprint("ABC")\nelif (x<2800):\n \tprint("ARC")\nelse:\n \tprint("AGC")', 'x=input()\nif (x< 1200):\n print("ABC")\nelif (x<2800):\n print("ARC")\nelse:\n print("AGC")', 'x=int(input())\nif (x< 1200):\n print("ABC")\nelif (x<2800):\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s052420356', 's110728502', 's141431285'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [92, 89, 94] |
p03288 | u759651152 | 2,000 | 1,048,576 | 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? | ["#-*-coding:utf-8-*-\n\ndef main():\n r = int(input())\n if r < 2000:\n print('ABC')\n elif r >= 1200 ans r < 2800:\n print('ARC')\n else:\n print('AGC')\n\nif __name__ == '__main__':\n main()", "#-*-coding:utf-8-*-\n\ndef main():\n r = int(input())\n if r < 1200:\n print('ABC')\n elif r >= 1200 and r < 2800:\n print('ARC')\n else:\n print('AGC')\n\nif __name__ == '__main__':\n main()"] | ['Runtime Error', 'Accepted'] | ['s780754467', 's305439280'] | [2940.0, 2940.0] | [17.0, 17.0] | [215, 215] |
p03288 | u764234894 | 2,000 | 1,048,576 | 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? | ['a = input()\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = input()\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = int(input())\nif a < 1200:\n print("ABC")\nelse if a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = input()\nif a < 1200:\n print("ABC")\nelse if a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = input()\nif a < 1200:\n print("ABC")\nelse if a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = input()\nif a < 1200:\n\tprint("ABC")\nelif a < 2800:\n\tprint("ARC")\nelse:\n\tprint("AGC")', 'a = input()\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")', 'a = int(input())\nif a < 1200:\n print("ABC")\nelif a < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s202101483', 's427739987', 's632083589', 's738829145', 's877380879', 's907096469', 's938859849', 's687159269'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [87, 96, 98, 93, 99, 87, 96, 92] |
p03288 | u764956288 | 2,000 | 1,048,576 | 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? | ["R = int(input())\nr = 'AGC'\nif R<2800:\n r[1]='R'\nif R<1200:\n r[1]='B'\nprint(r)", "R = int(input())\nif R<1200:\n r='ABC'\nif R<2800:\n r='ARC'\nelse:\n r='AGC'\nprint(r)", "R = int(input())\nr = 'AGC'\nif R<2800: r='ARC'\nif R<1200: r='ABC'\nprint(r)"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s722756151', 's828902390', 's232738198'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [83, 89, 73] |
p03288 | u765590009 | 2,000 | 1,048,576 | 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? | ['import sys\ns = input()\n\nanswer = True\nif s[0] != "A":\n answer = False\n\nif s[2:len(s)-1].count("C") != 1:\n answer = False\n \nfor i in range(len(s)):\n if s[i] != "A" and s[i] != "C":\n if ord(s[i]) < 97 or 122 < ord(s[i]):\n answer = False\n\nif answer : \n print("AC")\nelse :\n print("WA")', 'a = int(input())\n\nif a < 1200 :\n print("ABC")\nelif a < 2800 :\n print("ARC")\nelse :\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s813563027', 's796501947'] | [8832.0, 2940.0] | [26.0, 17.0] | [302, 105] |
p03288 | u765815947 | 2,000 | 1,048,576 | 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? | ["r = int(input())\nif r < 1200:\n print('ABC')\nif r < 2800:\n print('ARC')\nelse:\n print('AGC')\n ", "r = int(input())\nif r < 1200:\n print('ABC')\nelif r < 2800:\n print('ARC')\nelse:\n print('AGC')\n "] | ['Wrong Answer', 'Accepted'] | ['s864433560', 's921764621'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 98] |
p03288 | u766393261 | 2,000 | 1,048,576 | 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? | ['# using-utf8\n\nR=input()\nr=int(R)\nif r<1200:\n print("ABC"):\nif r>(1200-1) and r<2800:\n print("ARC")\nif r>(2800-1):\n print("AGC")', '# coding: utf-8\n\nR=input()\nr=int(R)\nif r<1200:\n print("ABC"):\nif r>(1200-1) and r<2800:\n print("ARC")\nif r>(2800-1):\n print("AGC")', '# coding: utf-8\n# Your code here!\n\nR=input()\nr=int(R)\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s192749066', 's617178667', 's262751093'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0] | [146, 149, 134] |
p03288 | u768559443 | 2,000 | 1,048,576 | 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? | ['r=int(input())\nif r<1200:\n print("ABC")\nif 1200<=r<2800:\n print("ARC")\nelse:\n print("AGC")', 'r=int(input())\nif r<1200:\n print("ABC")\nelif r<2800:\n print("ARC")\nelse:\n print("AGC")\n'] | ['Wrong Answer', 'Accepted'] | ['s374306482', 's349697261'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 90] |
p03288 | u771167374 | 2,000 | 1,048,576 | 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? | ["n = int(input())\nif n<1200:\n print('ABC')\nif 1200<=n<2800:\n print('ARC')\nelse :\n print('AGC')", "n = int(input())\nif n<1200:\n print('ABC')\nelif 1200<=n<2800:\n print('ARC')\nelse :\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s631991136', 's648897391'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 104] |
p03288 | u771406607 | 2,000 | 1,048,576 | 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? | ["r = int(input())\nif r < 1200:\n print('ABC')\nif r < 2800:\n print('ARC')\nelse:\n print('AGC')\n ", "r = int(input())\nif r < 1200:\n print('ABC')\nelif r < 2800:\n print('ARC')\nelse:\n print('AGC')"] | ['Wrong Answer', 'Accepted'] | ['s309890600', 's355774979'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 95] |
p03288 | u777028980 | 2,000 | 1,048,576 | 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? | ['A=int(input())\nif(A<1200):\n print("ABC")\nif(A>=2800):\n print("AGC")\nelse:\n print("ARC")', 'A=int(input())\nARC=1\nif(A<1200):\n print("ABC")\n ARC=0\n\nif(A>=2800):\n print("AGC")\n ARC=0\n \nif(ARC=1):\n print("ARC")\n', 'A=int(input())\nARC=1\nif(A<1200):\n print("ABC")\n ARC=0\n\nif(A>=2800):\n print("AGC")\n ARC=0\n \nif(ARC==1):\n print("ARC")\n\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s328474635', 's659983871', 's833535806'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [90, 122, 124] |
p03288 | u777923818 | 2,000 | 1,048,576 | 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? | ['import re;print("AC" if re.fullmatch("A[a-z]+C[a-z]+", input()) is not None else "WA")', 'R = int(input())\nif R < 1200:\n print("ABC")\nelif R < 2800:\n print("ARC")\nelse:\n print("AGC")'] | ['Wrong Answer', 'Accepted'] | ['s787138483', 's067670990'] | [3188.0, 2940.0] | [20.0, 19.0] | [86, 101] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.