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
p02687
u496018856
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N,M=map(int, input().split())\nH=list(map(int, input().split()))\nflag=[1]*N\nfor i in range(M):\n A,B=map(int, input().split())\n if H[A-1]>H[B-1]:\n flag[B-1]=0 \n elif H[A-1]<H[B-1]:\n flag[A-1]=0\n else:\n flag[A-1]=0\n flag[B-1]=0\nprint(sum(flag))', 'input1 = input().rstrip().split(" ")\nh = input().rstrip().split(" ")\nyoi = [1 for i in range(int(input1[0]))]\nroot = [input().rstrip().split(" ") for i in range(int(input1[1]))]\nprint(int(root[0][1]))\nfor i in range(int(input1[1])):\n a=int(root[i][0])-1\n b=int(root[i][1])-1\n if h[a]> h[b]:\n yoi[b] = 0\n elif h[a] < h[b]:\n yoi[a] = 0\n else:\n yoi[a] = 0\n yoi[b] = 0\nprint (sum(yoi))\n', '# coding: utf-8\n# Your code here!\ninput1 = input().rstrip()\nif input1=="ABC":\n print("ARC")\nelif input1=="ARC":\n print("ABC")\nelse:\n print(0)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s425674372', 's807833813', 's343055981']
[9180.0, 9132.0, 9036.0]
[20.0, 20.0, 23.0]
[281, 426, 150]
p02687
u496821919
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\n\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'S = input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s124091385', 's946982983']
[8880.0, 9084.0]
[25.0, 17.0]
[67, 68]
p02687
u497188176
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s=input()\nif S==ABC:\n print("ARC")\nelse:\n print("ARC")\n', 'S==input()\nB="ABC"\nif S==B:\n print("ARC")\nelse:\n print("ABC")', 's=input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ARC")', 'S=input()\nB="ABC"\nif S==B:\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s425530113', 's621184861', 's900214058', 's123762187']
[9080.0, 9048.0, 9084.0, 9084.0]
[18.0, 21.0, 24.0, 18.0]
[61, 67, 62, 67]
p02687
u501986378
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['a = input()\n\nif a == ABC:\n print("ARC")\nelse:\n print("ARC")', 'a = input()\n \nif a == "ABC":\n print("ARC")\nif a == "ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s353491694', 's177095219']
[9024.0, 9020.0]
[22.0, 22.0]
[61, 73]
p02687
u505547600
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s=input()\n\n\nif s=='ARC':\n print('ARC')\nelse:\n print('ABC')", 'print(input())', "\n\n\nif input() == 'ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s801057407', 's833776261', 's148717385']
[8952.0, 9084.0, 8900.0]
[22.0, 22.0, 24.0]
[60, 14, 59]
p02687
u505825680
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['contest = input()\nif "ARC" == contest:\n print("ABC")\nelse\n print("ARC")', 'contest = input()\nif "ARC" == contest:\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s489177635', 's372441558']
[9016.0, 8964.0]
[23.0, 19.0]
[73, 74]
p02687
u505843680
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = print()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")', 's = print()\nif s == "ABC":\n print("ARC")\nelse s == "ARC":\n print("ABC")\n', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s188288018', 's716713674', 's598052871']
[8952.0, 8948.0, 9088.0]
[23.0, 24.0, 23.0]
[66, 78, 66]
p02687
u507456172
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S=input()\n\nif S == "ABC":\n print(ARC)\nelse:\n print(ABC)', 'S = input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s130404964', 's753876788']
[9092.0, 8928.0]
[20.0, 20.0]
[57, 63]
p02687
u510814835
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['X = int(input())\nflag = False\nfor a in range(-1000,1000):\n for b in range(-1000,1000):\n if a**5 - b**5 == X:\n print("{0} {1}".format(a,b))\n flag = True\n break\n if flag:\n break', "S = input()\nif 'ABC' == S:\n print('ARC')\nelif 'ARC' == S:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s173535039', 's937651324']
[9104.0, 9048.0]
[23.0, 22.0]
[228, 77]
p02687
u513900925
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N = input()\nif N = "ABC":\n print("ARC")\nelse:\n print("ABC")', 'N = input()\nif N == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s674736621', 's380447808']
[9008.0, 8952.0]
[21.0, 23.0]
[61, 62]
p02687
u515647766
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC"', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s101754070', 's097180660']
[8868.0, 9084.0]
[19.0, 23.0]
[61, 62]
p02687
u518064858
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s=input()\nif s="ABC":\n print("ARC")\nelse:\n print("ABC")\n', 's=input()\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s113621670', 's094949443']
[8828.0, 9088.0]
[18.0, 25.0]
[62, 63]
p02687
u518851250
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nprint(S)', "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s796395976', 's390373250']
[9052.0, 8916.0]
[22.0, 25.0]
[20, 62]
p02687
u523087093
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\n\nif S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s912103830', 's768755420']
[8912.0, 8880.0]
[19.0, 25.0]
[66, 67]
p02687
u524868257
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S=input()\nif S=="ABC":\n print("ARC")\nif S=="ARC"\n print("ABC")', 'S=input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s459759187', 's382252678']
[9012.0, 9024.0]
[21.0, 23.0]
[64, 58]
p02687
u528124741
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['import numpy \nx = int(input())\nmax = 10**9+1\nflag = False\nfor i in range(1,max):\n if x%i == 0:\n for j in range(-i,i+1): \n if (numpy.power(i-j,5) - numpy.power(j,5)) == x:\n print(str(i-j)+" "+str(j))\n flag = True\n break\n if flag:\n break', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s353152648', 's539686270']
[27020.0, 8956.0]
[103.0, 23.0]
[311, 67]
p02687
u530473641
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["print('ABC') if input() == 'AGC' else print('AGC')\n", "print('ABC') if input() == 'ARC' else print('ARC')\n"]
['Wrong Answer', 'Accepted']
['s184769528', 's962774856']
[8948.0, 8984.0]
[20.0, 19.0]
[51, 51]
p02687
u531599639
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S=input()\nif S=='ABC':\n print('ARC')\nelif S=='ARC'\n print('ABC)\n", "S=input()\nif S=='ABC':\n print('ARC')\nelse:\n print('ABC)", "S=input()\nif S=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s753704417', 's896474324', 's569013398']
[8976.0, 9020.0, 9088.0]
[24.0, 23.0, 20.0]
[66, 57, 58]
p02687
u532549251
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['\n#List = list(map(int, input().split()))\ns = input()\n\nif s == ABC:\n print("ARC")\nelse s == ARC:\n print("ABC")\n', '\n#List = list(map(int, input().split()))\ns = input()\n\nif s == ABC:\n print("ARC")\nelse :\n print("ABC")\n', '\n#List = list(map(int, input().split()))\ns = input()\n\nif s == "ABC":\n print("ARC")\nelse :\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s443647001', 's691690490', 's464219214']
[8948.0, 9080.0, 9020.0]
[20.0, 23.0, 20.0]
[152, 144, 146]
p02687
u535258729
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["x=input()\nprint('ABC' if x == 'ABC' else 'ARC')", "x=input()\nprint('ABC' if x == 'ARC' else 'ABC')", "x=input()\nprint('ABC' if x == 'ARC' else 'ARC')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s582857227', 's999463649', 's044799469']
[8988.0, 8972.0, 9000.0]
[27.0, 27.0, 22.0]
[47, 47, 47]
p02687
u536034761
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N, M = map(int, input().split(" "))\nheight = list(map(int, input().split(" ")))\nflag = [1 for i in height]\nfor i in range(M):\n a, b = map(int, input().split(" "))\n if height[a - 1] > height[b - 1]:\n flag[b - 1] = 0\n elif height[b - 1] > height[a - 1]:\n flag[a - 1] = 0\n else:\n flag[a - 1] = 0\n flag[b - 1] = 0\nprint(sum(flag))', 's = input()\nif s == "ABC":\n print("ADC")\nelse:\n print("ABC")', 'if imput() = "ABC":\n print("ADC")\nelse:\n print("ABC")', 'N = input()\na = [i**5 for i in range(120)]\nfor i in range(120):\n for j in range(i + 1, 120):\n if a[j] - a[i] == N:\n print(j, i)\n break\n if a[j] - a[i] == N:\n print(j, -i)\n break\n else:\n continue\n break', 'if input() == "ABC":\n print("ADC")\nelse:\n print("ABC")', 'N, K = map(int, input().split(" "))\nflag = [1 for i in range(N)]\nfor i in range(K):\n input()\n for j in map(int,input().split(" ")):\n flag[j-1] = 0\nsum(flag)\n', 's = input()\nif s == "ABC":\n print("ADC")\nelse:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s092795031', 's106858194', 's135299279', 's157086856', 's312696228', 's662972440', 's728178169', 's150127786']
[9040.0, 9092.0, 8820.0, 8952.0, 8960.0, 9136.0, 8992.0, 8908.0]
[21.0, 22.0, 21.0, 21.0, 23.0, 20.0, 20.0, 20.0]
[342, 62, 55, 239, 56, 162, 62, 62]
p02687
u539514977
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = str(input())\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")', 'S = str(input())\nif S == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s183304506', 's815645634']
[8900.0, 9000.0]
[22.0, 26.0]
[66, 67]
p02687
u543122853
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['x = int(input())\n\nimport math\ndef trial_division(n):\n \n num_list = []\n factor = set(num_list)\n \n tmp = int(math.sqrt(n)) + 1\n for num in range(2,tmp):\n while n % num == 0:\n n //= num\n factor.add(num)\n \n if not factor:\n return [1]\n else:\n factor.add(n)\n return factor\n\n\nfor number in trial_division(x):\n for a in range(round(x**(1/5))):\n b = a - number\n if a**5 - b**5 == x:\n print(a,b)\n break\n elif a**5 - (-b)**5==x:\n print(a,-b)\n break', "s = str(input())\n\nif s == 'ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s704898912', 's453806238']
[9224.0, 8956.0]
[24.0, 24.0]
[660, 68]
p02687
u544025500
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["def abc_arc(s):\n if s == 'ABC':\n print('ARC')\n elif s == 'ARC':\n print('ABC')", "def abc_arc(s):\n if s=='ABC':\n return 'ARC'\n elif s == 'ARC':\n return 'ABC'", "s = input()\nif s == 'ABC':\n print('ARC')\nelif s == 'ARC':\n print('ABC')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s319188220', 's662926176', 's227375954']
[8956.0, 8948.0, 9080.0]
[22.0, 21.0, 23.0]
[85, 83, 74]
p02687
u548545174
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['X = int(input())\n\nroot = int(X**(1/5))\n\nif root**5 < X:\n rest = X - root**5\n another = -int(rest**(1/5))\nelse:\n rest = root**5 - X\n another = int(rest**(1/5))\n\nwhile root**5 - another**5 != X:\n another_plus = another + 1\n another_minus = another - 1\n if root**5 - another_plus**5 == X:\n another = another_plus\n break\n if root**5 - another_minus**5 == X:\n another = another_minus\n break\n\n\nprint(root, another)\n', 's = input()\n\nprint("ABC" if s == "ARC" else "ARC")']
['Runtime Error', 'Accepted']
['s076704545', 's095911028']
[9072.0, 9092.0]
[20.0, 22.0]
[461, 50]
p02687
u551425474
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["def next_contest(x):\n if x is 'ABC':\n return 'ARC'\n elif x is 'ARC':\n return 'ABC'\n else:\n return 'not defined contest'\n\nnext_contest(S)", "S = imput()\n\nif S is 'ARC':\n print('ABC')\nelse:\n print('ARC')", "if S is 'ABC':\n\tprint('ARC')\nelif S is 'ARC':\n print('ABC')", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s155411266', 's482877435', 's763922721', 's197113504']
[8928.0, 9016.0, 9016.0, 8964.0]
[23.0, 20.0, 21.0, 22.0]
[148, 63, 62, 62]
p02687
u552004554
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['#!/usr/bin/env python3\n\nfrom sys import stdin\n\n\ndef main():\n S = stdin.readline()\n if S == \'ABC\':\n print(\'ARC\')\n else:\n print(\'ABC\')\n\n\nif __name__ == "__main__":\n main()\n', '#!/usr/bin/env python3\n\nfrom sys import stdin\n\n\ndef main():\n S = stdin.readline()\n if S == \'ABC\':\n print(\'ARC\')\n elif S == \'ARC\':\n print(\'ABC\')\n\n\nif __name__ == "__main__":\n main()\n', '\ndef main():\n S = input()\n if S == \'ABC\':\n print(\'ARC\')\n else:\n print(\'ABC\')\n\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s171892447', 's231168236', 's200835864']
[9024.0, 9028.0, 9092.0]
[22.0, 20.0, 19.0]
[196, 207, 140]
p02687
u552143188
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\nif S == 'ABC':\n input('ARC')\nelse:\n print('ABC')", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s496193847', 's889137729']
[9024.0, 9088.0]
[22.0, 22.0]
[62, 62]
p02687
u554096168
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\n \nprint("ARC" if S == "ABC else "ABC")\n ', 'S = input()\n \nprint("ARC" if S == "ABC" else "ABC")']
['Runtime Error', 'Accepted']
['s591331471', 's135487789']
[9008.0, 9076.0]
[20.0, 22.0]
[58, 52]
p02687
u555829857
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S=input()\nif S==ABC:\n print("ARC")\nelse:\n print("ABC")', 's=input()\nif s==ABC:\n print("ARC")\nif s==ARC:\n print("ABC")', 'S=input()\nif S==("ABC"):\n print("ARC")\nelif S==("ARC"):\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s124789812', 's421811073', 's408666383']
[9020.0, 8908.0, 8972.0]
[20.0, 21.0, 22.0]
[56, 61, 71]
p02687
u558077614
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = input()\n\nif s[1] == 'B':\n s[1] = 'R'\nelse: \n s[1] = 'B'\n \nprint(s)", 's = list(input())\n \nif s[1] == \'B\':\n s[1] = \'R\'\nelse: \n s[1] = \'B\'\n \nprint("".join(s))']
['Runtime Error', 'Accepted']
['s014555951', 's486565550']
[8860.0, 9012.0]
[19.0, 20.0]
[73, 89]
p02687
u562015767
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = str(input())\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC)', 's = str(input())\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s717241304', 's730977208']
[9016.0, 9092.0]
[22.0, 20.0]
[71, 72]
p02687
u574565611
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC"', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s315096653', 's282002739']
[8960.0, 9092.0]
[22.0, 20.0]
[65, 66]
p02687
u579508806
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['if gets()=="ABC"\n puts "ARC"\nelse\n puts "ABC"\nend', 'print("ABC" if input()=="ARC" else "ARC")']
['Runtime Error', 'Accepted']
['s560001663', 's454337265']
[9016.0, 8924.0]
[22.0, 20.0]
[51, 41]
p02687
u585963734
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["A=input()\nif A='ABC':\n print('ARC')\nelse:\n print('ABC')", "A=input()\nif A=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s230252058', 's014976502']
[9008.0, 9088.0]
[23.0, 20.0]
[57, 58]
p02687
u588276267
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["if input() == 'ARC':\n print('ABC')\nelse: \n print('ARD')", 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s296217917', 's676189815']
[8932.0, 9028.0]
[20.0, 21.0]
[57, 62]
p02687
u591295155
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['import sys\n#import cython\n\ndef main():\n read = lambda: sys.stdin.readline().rstrip()\n \n #N: cython.longlong = 0\n N = read()\n print("ABC" if N[1]=="B" else "ARC")\n \nif __name__ == "__main__":\n main()', 'import sys\n#import cython\n\ndef main():\n read = lambda: sys.stdin.readline().rstrip()\n \n #N: cython.longlong = 0\n N = read()\n print("ABC" if N[1]=="R" else "ARC")\n \nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s491227647', 's966379569']
[8900.0, 8964.0]
[20.0, 20.0]
[216, 216]
p02687
u594862874
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\n\nprint('ABC' if S=='ARC' else 'ABC')", "S = input()\n\nprint('ABC' if S=='ARC' else 'ARC')"]
['Wrong Answer', 'Accepted']
['s149625307', 's585095206']
[9024.0, 8956.0]
[21.0, 25.0]
[48, 48]
p02687
u599669731
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s=input()\nif s=="ARC":\n:\n print("ABC")\nelse:\n print("ARC")', 's=input()\nif s=="ARC":\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s452797347', 's252732950']
[8940.0, 9088.0]
[23.0, 21.0]
[64, 62]
p02687
u603843432
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = input()\n\nif s == 'ABC':\n print('ABC')\nif s == 'ARC':\n print('ARC')\n", 'n,k = map(int,input().split())\nlist=[]\nfor i in range(k):\n d = int(input())\n sunuke = input().split()\n for j in range(d):\n if int(sunuke[j]) not in list:\n list.append(int(sunuke[j]))\nprint(str(n - len(list)))', 'n,k = map(int,input().split())\nlist=[]\nfor i in range(k):\n d = int(input())\n sunuke = map(int,input().split())\n for j in sunuke:\n if j not in list:\n list.append(j)\nprint(str(n - len(list)))', "s = input()\n\nif s == 'ABC':\n print('ARC')\nif s == 'ARC':\n print('ABC')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s090229689', 's748980280', 's759500868', 's988999043']
[9076.0, 9116.0, 9072.0, 9020.0]
[24.0, 23.0, 25.0, 21.0]
[77, 235, 216, 77]
p02687
u606374450
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input('Please type ABC or ARC: ')\n\nif S == 'ABC':\n T = S\nelse:\n T = 'ARC'\n\nprint(T)\n", "print('ABC' if input() == 'ARC' else 'ABC')\n", "S = input('Please type ABC or ARC: ')\n\nif S == 'ABC':\n T = 'ARC'\nelse:\n T = 'ABC'\n\nprint(T)\n", "result = 'ARC' if input() == 'ABC' else 'ABC'\nprint(result)\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s275386849', 's795246924', 's856738869', 's415713524']
[9080.0, 9020.0, 9020.0, 9080.0]
[21.0, 23.0, 21.0, 24.0]
[94, 44, 98, 60]
p02687
u608454345
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\nif s == ABC:\n print("ARC")\nelse:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s934455352', 's098709414']
[9088.0, 8896.0]
[20.0, 22.0]
[60, 63]
p02687
u609738635
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif(S="ABC"):\n print("ARC")\nelse:\n print("ABC")', 'S = input()\nif(S=="ABC"):\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s866325530', 's535162028']
[9008.0, 9020.0]
[23.0, 20.0]
[64, 65]
p02687
u610120522
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\nif s == "ABC":\n print("ARC")\n else if:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s653854159', 's111511818']
[8940.0, 9092.0]
[21.0, 20.0]
[69, 62]
p02687
u611352758
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['a = int(input())\n\nif a == "ARC" :\n ans = "ABC"\nelse:\n ans = "ARC"\n\nprint(ans)', 'S = input("")\nre = "ABC"\nif S == "ABC":\n re = "ARC"\nprint(re)']
['Runtime Error', 'Accepted']
['s602813138', 's899469421']
[9156.0, 9004.0]
[23.0, 23.0]
[83, 64]
p02687
u616117610
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = str(input())\nif s == "ARC":\n print("ABC")\nelse:\n print("ABC")', 's = str(input())\nif s == "ARC":\n print("ABC")\nelse:\n print("ARC")\n']
['Wrong Answer', 'Accepted']
['s038937251', 's970416789']
[9024.0, 8896.0]
[21.0, 21.0]
[67, 68]
p02687
u617040773
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["input = input()\nif input='ABC':\n print('ARC')\nelse:\n print('ABC')", "x = str(input())\nif x == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s672256380', 's686877217']
[9008.0, 9080.0]
[22.0, 21.0]
[67, 68]
p02687
u617225232
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["a = input()\na == 'ABC' if print('ARC') else print('ABC')", "a = input()\nprint('ABC') if a == 'ARC' else print('ARC')"]
['Wrong Answer', 'Accepted']
['s507662451', 's695393090']
[8900.0, 9028.0]
[22.0, 20.0]
[56, 56]
p02687
u618363477
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S == "ABC:\n\tprint("ARC")\nelse:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n ']
['Runtime Error', 'Accepted']
['s085337422', 's691430326']
[9004.0, 8984.0]
[27.0, 25.0]
[60, 65]
p02687
u619850971
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\nprint(s.replace("ABC","ARC").replace("ARC","ABC"))', 's = input()\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s325026448', 's385097182']
[9088.0, 9024.0]
[21.0, 23.0]
[62, 64]
p02687
u623362339
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["d = {'B':'R', 'R':'B'}\ns = str(input())\ns[1] = d[s[1]]\nprint(s)", "s = str(input())\nif(s[1] == 'B'):\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s221301988', 's559902262']
[9008.0, 9072.0]
[21.0, 21.0]
[63, 69]
p02687
u623943170
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\n\nif S == ABC :\n print(ARC)\nelse :\n print(ABC)', 'S = input()\n\nif S == ABC :\n print("ARC")\nelse :\n print("ABC")', 'S = input()\n\nif S == "ABC" :\n print("ARC")\nelse :\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s491943294', 's541424298', 's755845472']
[9088.0, 8936.0, 9092.0]
[25.0, 20.0, 25.0]
[59, 63, 65]
p02687
u626891113
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['n, k = map(int, input().split())\nm = [True]*n\n\nfor i in range(k):\n d = int(input())\n a = (list(map(int, input().split())))\n for j in a:\n m[j-1] = False\n \nans = [i for i in range(n) if m[i]]\nprint(len(ans))\n', 'n, m = map(int, input().split())\nh = list(map(int, input().split()))\np = [False] + [True]*n\nA = []\nB = []\nfor i in range(m):\n a, b = map(int,input().split())\n A.append(a)\n B.append(b)\n\nfor i in range(m):\n if h[A[i] - 1] > h[B[i] - 1]:\n p[B[i]] = False\n if h[A[i] - 1] < h[B[i] - 1]:\n p[A[i]] = False\n else:\n p[A[i]] = False\n p[B[i]] = False\n\nans = [i for i in range(n + 1) if p[i]]\n\nprint(len(ans))\n', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s469754714', 's683857919', 's073336034']
[9028.0, 8996.0, 8864.0]
[24.0, 26.0, 27.0]
[229, 445, 68]
p02687
u629350026
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S=="ABC":\n print("ARC")\nelsse:\n print("ABC")', 'S = input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s196316338', 's986455406']
[8880.0, 9028.0]
[24.0, 20.0]
[65, 64]
p02687
u629540524
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\nif (S == 'ABC)':\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif (S == 'ABC'):\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s685621590', 's323107652']
[8812.0, 8944.0]
[22.0, 22.0]
[68, 68]
p02687
u629614915
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["## import\n\n\n\n## main process\nif __name__ == '__main__':\n \n ## input\n N, M = map(int,input().split())\n HEIGHT_LIST = list(map(int,input().split())) \n ROAD_LIST = []\n for j in range(M): \n ROAD_LIST.append(\n set(map(int,input().split()))\n )\n \n ## business logic\n COUNT = 0\n \n for i in list(range(1, N+1)):\n unioned_i = set([])\n for k in ROAD_LIST:\n if i in k:\n unioned_i = unioned_i | k\n if len(unioned_i) == 0:\n COUNT = COUNT + 1\n continue\n HIGHT_i = HEIGHT_LIST[i-1]\n if HIGHT_i >= max(\n [ HEIGHT_LIST[l-1] for l in list(unioned_i) ]\n ):\n COUNT = COUNT + 1\n \n ## output\n print(COUNT)", "S = input()\nif S == 'ABC':\n print 'ARC'\nelse:\n print 'ABC'", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s806960162', 's958624030', 's795078999']
[9160.0, 9008.0, 8992.0]
[22.0, 20.0, 20.0]
[784, 64, 66]
p02687
u629747832
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['string x=input()\nif x=="ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'x=string(input())\nif x=="ABC":\n print("ARC")\nelse:\n print("ABC")', 'x=input()\nif x=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s061555503', 's499400474', 's785098004']
[8876.0, 8992.0, 8872.0]
[20.0, 23.0, 20.0]
[70, 70, 63]
p02687
u631579948
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["N=input()\nif N='ABC':\n print('ARC')\nelse:\n print('ABC')", "N=input()\nif N=='ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s903232259', 's355220788']
[9008.0, 9080.0]
[22.0, 19.0]
[57, 59]
p02687
u632609425
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S=input()\nif S=ABC:\n\tprint("ARC")\nelse:\n\tprint("ABC")', 'S=input()\nif S=="ABC":\n\tprint("ARC")\nelse:\n\tprint("ABC")']
['Runtime Error', 'Accepted']
['s167265950', 's851711981']
[8820.0, 9088.0]
[26.0, 20.0]
[53, 56]
p02687
u633928488
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['inpo=inport()\nfor i in inpo:\n if i=="B":\n print("R")\n elif i=="R":\n print("B")\n else:\n print(i)', 'inpo=input(),\nfor i in inpo:\n if i=="B":\n print("R",end="")\n elif i=="R":\n print("B",end="")\n else:\n print(i,end="")', 's = inport()\nprint("ABC" if s=="ARC" else "ARC")', 'inpo=inport()\nfor i in inpo:\n if i=="B":\n print("R",end="")\n elif i=="R":\n print("B",end="")\n else:\n print(i,end="")', 'inpo=input().split()\nfor i in inpo:\n if i=="B":\n print("R",end="")\n elif i=="R":\n print("B",end="")\n else:\n print(i,end="")', 'inpo=inport()\nfor i in inpo:\n if i=="B":\n print("R",end="")\n elif i=="R":\n print("B",end="")\n else:\n print(i)', 's = input()\nprint("ABC" if s=="ARC" else "ARC")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s052772869', 's361657968', 's458357207', 's703787017', 's793523280', 's924472778', 's536364580']
[9036.0, 8824.0, 9024.0, 8940.0, 9068.0, 9040.0, 8936.0]
[24.0, 22.0, 22.0, 21.0, 20.0, 22.0, 19.0]
[107, 128, 48, 128, 135, 121, 47]
p02687
u634549990
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["str = input()\n\nif(str == 'ARC'){\n print('ABC')\n}else{\n print('ARC')\n}", 's = input()\n\n\nif s == "ARC":\n print("ABC")\nelse:\n print("ARC")\n']
['Runtime Error', 'Accepted']
['s580305404', 's434231526']
[8948.0, 8948.0]
[20.0, 20.0]
[71, 65]
p02687
u634602776
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['list=["ABC","ARC]\na=input()\nif a==list[0]:\n print(list[1])\nelse:\n print(list[0])', 'list=["ABC","ARC"]\na=input()\nif a==list[0]:\n print(list[1])\nelse:\n print(list[0])']
['Runtime Error', 'Accepted']
['s110449771', 's405786703']
[9016.0, 9036.0]
[19.0, 22.0]
[90, 91]
p02687
u634902238
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s=input()\nif(s=="ABC"):\n print("ARC")\n else:\n print("ABC")', 's=input()\nif(s=="ABC"):\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s716402845', 's845926563']
[9016.0, 9092.0]
[25.0, 24.0]
[60, 59]
p02687
u635358120
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['if S == "ABC":\n\tprint("ARC")\nelse:\n\tprint("ABC")', 'If S = "ABC":\n\treturn "ARC"\nelse:\n\treturn "ABC"', 'S = input() \nif S == "ABC":\n\tprint("ARC")\nelse:\n\tprint("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s419487902', 's783576961', 's302591444']
[8948.0, 8880.0, 9024.0]
[23.0, 23.0, 20.0]
[48, 47, 61]
p02687
u635621124
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = str(input())\nif S=="ABC":\n print("ARC")\nelif\n print("ABC")', 'S = str(input())\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s517085136', 's887001631']
[8720.0, 9024.0]
[22.0, 21.0]
[68, 69]
p02687
u635864321
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = import()\nif S == ABC:\n print("ARC")\nelse:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s229459627', 's799428297']
[8792.0, 8864.0]
[25.0, 20.0]
[61, 62]
p02687
u636022669
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = input()\nif s == 'ABC':\n print()'ARC'\nelse:\n print('ABC')", 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print(\'ABC\')']
['Runtime Error', 'Accepted']
['s100818998', 's529812742']
[8864.0, 8956.0]
[24.0, 20.0]
[62, 62]
p02687
u636684559
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S=input()\nif S='ABC':\n print('ARC')\nelse:\n print('ABC')", "S=input()\nif S=='ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s548303034', 's214167359']
[8820.0, 9016.0]
[20.0, 23.0]
[57, 59]
p02687
u642093436
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['args = raw_input()\n \nif(args == "ABC"){\nprint("ARC")\n}elif(args=="ARC"){\nprint("ABC")\n}', '\n \nif(S == "ABC"){\nprint("ARC")\n}elif(S=="ARC"){\nprint("ABC")\n}', 'import sys\nargs = sys.argv\n\nif(args == "ABC"){\nprint("ARC")\n}elif(args=="ARC"){\nprint("ABC")\n}\n', 'args = input()\n \nif(args == "ABC"){\nprint("ARC")\n}elif(args=="ARC"){\nprint("ABC")\n}', 'args = input()\nif args == "ABC":\n print("ARC")\nelif(args=="ARC"):\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s353611049', 's395417476', 's412712916', 's624538854', 's162580992']
[8948.0, 9004.0, 8948.0, 9004.0, 9088.0]
[17.0, 21.0, 20.0, 21.0, 19.0]
[87, 63, 95, 83, 79]
p02687
u642829572
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S = "ABC":\n print("ARC")\nelif S = "ARC":\n print("ABC")', 'S = input()\nif S[1]=="B":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s645539545', 's171766429']
[8948.0, 9096.0]
[22.0, 19.0]
[71, 61]
p02687
u643679148
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\n\nif s = "ABC":\n print("ARC")\nelse:\n print("ABC")\n', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s800528496', 's290762510']
[8852.0, 9008.0]
[24.0, 30.0]
[67, 68]
p02687
u644516473
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["input()\nans = 'ABC' if s == 'ARC' else 'ARC'\nprint(ans)\n", "S = input()\nprint('ABC' if S == 'ARC' else 'ARC')\n"]
['Runtime Error', 'Accepted']
['s168301124', 's962699173']
[9020.0, 9016.0]
[19.0, 20.0]
[56, 50]
p02687
u650932312
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["if S == 'ABC':\n S = 'ARC'\nelse:\n S = 'ABC'\n \nprint(S)", "S = input()\n\nif S == 'ABC':\n S = 'ARC'\nelse:\n S = 'ABC'\n \nprint(S)"]
['Runtime Error', 'Accepted']
['s271113068', 's465992927']
[8916.0, 9020.0]
[26.0, 20.0]
[56, 69]
p02687
u654590131
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['x = int(input())\nfor a in range(-118,119):\n for b in range(-119,118):\n if a**5 - b**5 == x:\n print(a,b)\n exit()\n', 'S = input()\n\nif S[1] == "B":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s731315332', 's172975812']
[9096.0, 9084.0]
[19.0, 22.0]
[144, 69]
p02687
u655833110
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['if S == "ARC":\n print("ABc")\nelse:\n print("ARC")', 'S =input()\nif S == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s609766719', 's269100335']
[8964.0, 9024.0]
[24.0, 21.0]
[54, 65]
p02687
u659159398
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['x = int(input())\n\nroot = int(x**(0.2))\n\nflag = 0\nfor i in range(root - 400, root + 400):\n for j in range(-100, root + 400):\n if i!=j:\n if x%(i-j) == 0:\n if i**5-j**5 == x:\n print(i, j)\n flag = 1\n break\n if flag:\n break', 'x = int(input())\n\nroot = int(x**(0.2))\n\nflag = 0\nfor i in range(root - 100, root + 100):\n for j in range(-40, root):\n if i!=j:\n if x%(i-j) == 0:\n if i**5-j**5 == x:\n print(i, j)\n flag = 1\n break\n if flag:\n break', "s = input()\nif s =='ABC':\n print('ARC')\nif s == 'ARC':\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s687451031', 's696874697', 's573453589']
[9200.0, 9060.0, 8972.0]
[21.0, 19.0, 21.0]
[321, 314, 70]
p02687
u659587571
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["string = input()\nif string == 'ABC':\n anser = 'ARC'\nelse:\n anser = 'ABC'", "string = input()\nif string == 'ABC':\n answer = 'ARC'\nelse:\n answer = 'ABC'\nprint(answer)"]
['Wrong Answer', 'Accepted']
['s259355242', 's742731063']
[9028.0, 8968.0]
[19.0, 21.0]
[74, 90]
p02687
u660640166
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['\nfrom sys import stdin\nimport sys\nsys.setrecursionlimit(10**8)\n\ndef nextLine(): return next(stdin)\ndef nextStrList(): return nextLine().split()\ndef nextIntList(): return [int(_) for _ in nextStrList()]\n\n\ndef ox(s, i):\n\treturn s[i]=="o"\n\n\ndef main():\n\ts=nextLine()\n\tif s=="ABC":\n\t\tprint("ARC")\n\telse:\n\t\tprint("ABC")\n\t\nif __name__=="__main__":\n\tmain()\n', '\nfrom sys import stdin\nimport sys\nsys.setrecursionlimit(10**8)\n\ndef nextLine(): return next(stdin).rstrip()\ndef nextStrList(): return nextLine().split()\ndef nextIntList(): return [int(_) for _ in nextStrList()]\n\n\ndef main():\n\ts=nextLine()\n\tif s=="ABC":\n\t\tprint("ARC")\n\telse:\n\t\tprint("ABC")\n\t\nif __name__=="__main__":\n\tmain()\n']
['Wrong Answer', 'Accepted']
['s537080066', 's849319148']
[9056.0, 9112.0]
[24.0, 22.0]
[350, 325]
p02687
u665452497
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = int(input())\nif s[1] == 'B':\n print('ARC')\nelse:\n print('ABC')", "s = input()\nif s[1] == 'B':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s412505168', 's318448855']
[9120.0, 8900.0]
[26.0, 20.0]
[68, 63]
p02687
u669696235
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N,K=map(int,input().split())\nhoge={}\nfor j in range(K):\n input()\n [hoge.update({int(j):1}) for j in input().split()]\nprint(sum([not j in hoge for j in range(N)]))\n', 'print("ARC" if input()=="ABC" else "ABC")']
['Runtime Error', 'Accepted']
['s551065928', 's031820728']
[9108.0, 9020.0]
[20.0, 20.0]
[169, 41]
p02687
u671889550
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S=input()\n\nif S[1]==B:\n print('ARC')\nelse:\n print('ABC')", "S=input()\n\nif S[1]=='B':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s231271828', 's467360352']
[9028.0, 9080.0]
[20.0, 28.0]
[58, 61]
p02687
u672314394
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["ABC, ARC = map(input().split())\n\nif (s=ABC):\n print('ARC')\nelse:\n print('ABC')", "ABC, ARCw = map(input().split())\n\nif (s=ABC):\n print('ARC')\nelse:\n print('ABC')", "ABC, ARC = input().split()\n\nif (s=ABC):\n print('ARC')\nelse:\n print('ABC')", "ABC, ARCw = map(int, input().split())\n\nif (s=ABC):\n print('ARC')\nelse:\n print('ABC')", "S = input().split()\nif(S=ABC):\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif(S=='ABC'):\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s087906401', 's227632516', 's554074132', 's730445757', 's821848447', 's374443165']
[9008.0, 8876.0, 8876.0, 9012.0, 8880.0, 9096.0]
[23.0, 22.0, 24.0, 22.0, 19.0, 23.0]
[84, 85, 79, 90, 70, 65]
p02687
u672370694
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["k = input()\nif k == 'ARC':\n print('ABC')\nelse:\n print(k)", "k = input()\nif k == 'ARC':\n print('ABC')\nelif k == 'ABC':\n print('ARC')"]
['Wrong Answer', 'Accepted']
['s144297959', 's240045276']
[9020.0, 8960.0]
[22.0, 25.0]
[58, 73]
p02687
u673101577
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = int(input())\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n\n", "S = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n\n"]
['Runtime Error', 'Accepted']
['s349649703', 's552481289']
[9144.0, 9076.0]
[20.0, 18.0]
[74, 69]
p02687
u674588203
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N=input()\n\nif (N ="ABC"):\n print("ARC")\nelse:\n print(ABC)', 'X=int(input())\n\nXkon=X**0.2\nif(Xkon==int(Xkon)):\n print(str(0)+" "+str(int(-Xkon)))\n #break\nelse:\n m=-(10**3)\n while m<0:\n A=X+(m**)\n check=(A**0.2)\n # print(type(check))\n if(type(check)!=complex):\n if(check==int(check)):\n AnsA=-check\n AnsB=-m\n print(str(int(AnsB))+" "+str(int(AnsA)))\n break\n else:\n pass\n else:\n m=m+1\n n=1\n while n<10**3:\n A=X+(n**5)\n check=(A**0.2)\n if(check==int(check)):\n AnsA=check\n AnsB=n\n print(str(int(AnsB)+" "+str(int(-AnsA))))\n break\n else:\n n=n+1\n', 'a=input()\nif a="ABC":\n print("ARC")\nelse:\n print("ABC")', 'N=input()\n\nif (N ="ABC"):\n print("ARC")\nelse:\n print("ABC")', 'X=int(input())\n\nXkon=X**0.2\nif(Xkon==int(Xkon)):\n print(str(0)+" "+str(int(-Xkon)))\n #break\nelse:\n m=-(10**2)\n while m<0:\n A=X+(m**5)\n check=(A**0.2)\n # print(type(check))\n if(type(check)!=complex):\n if(check==int(check)):\n AnsA=-check\n AnsB=-m\n print(str(int(AnsB))+" "+str(int(AnsA)))\n break\n else:\n pass\n else:\n m=m+1\n n=1\n while n<10**2:\n A=X+(n**5)\n check=(A**0.2)\n if(check==int(check)):\n AnsA=check\n AnsB=n\n print(str(int(AnsB)+" "+str(int(-AnsA))))\n break\n else:\n n=n+1\n', 'X=int(input())\n\nXkon=X**0.2\nif(Xkon==int(Xkon)):\n print(str(0)+" "+str(int(-Xkon)))\n #break\nelse:\n m=-(10**2)\n while m<0:\n A=X+(m**5)\n check=(A**0.2)\n # print(type(check))\n if(type(check)!=complex):\n if(check==int(check)):\n AnsA=-check\n AnsB=-m\n print(str(int(AnsB))+" "+str(int(AnsA)))\n break\n else:\n pass\n else:\n m=m+1\n n=1\n while n<10**2:\n A=X+(n**5)\n check=(A**0.2)\n if(check==int(check)):\n AnsA=check\n AnsB=n\n print(str(int(AnsB)+" "+str(int(-AnsA))))\n break\n else:\n n=n+1\n', 'a=input()\nif a=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s063322080', 's093155891', 's129895870', 's170181968', 's435979795', 's751835936', 's219178560']
[9016.0, 8920.0, 8832.0, 8888.0, 9220.0, 9164.0, 9024.0]
[23.0, 21.0, 24.0, 20.0, 25.0, 20.0, 24.0]
[63, 721, 57, 65, 722, 722, 59]
p02687
u678579294
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = input()\n\nif s == 'ABC':\n\tprint('ARS')\nelse:\n print('ABC')", "s = input()\n\nif s == 'ABC':\n\tprint('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s996829403', 's077950710']
[9024.0, 9092.0]
[24.0, 24.0]
[64, 64]
p02687
u688281605
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['a = input()\nif(a == "ABC"):\n input("ARC")\nelse:\n input("ABC")', 'a = input()\nif(a == "ABC"):\n print("ARC")\nelse:\n print("ABC")\n\n']
['Runtime Error', 'Accepted']
['s729874411', 's814384799']
[8920.0, 9048.0]
[23.0, 21.0]
[63, 65]
p02687
u689890477
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = imput()\nif s =="ABC":\n print("ARC")\nelse:\n print("ARC")', 's = input()\nif s =="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s787679470', 's378124429']
[8940.0, 8964.0]
[23.0, 22.0]
[65, 65]
p02687
u690040890
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\n\nif S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s778079401', 's104037180']
[8944.0, 9020.0]
[20.0, 22.0]
[66, 67]
p02687
u690554532
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["import sys\ninput = sys.stdin.readline\n\ndef main():\n x = int(input())\n for i in range(-1000, 1000):\n for j in range(-1000, 1000):\n if x == i**5 - j**5:\n print(i, j)\n break\n else:\n continue\n break\n\nif __name__ == '__main__':\n main()", "a = int(input())\nif a == 'ABC':\n print('ARC')\nelse:\n print('ABC')", "a = input()\nif a == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s108031768', 's627326606', 's330375920']
[9096.0, 9076.0, 9088.0]
[20.0, 22.0, 23.0]
[312, 71, 66]
p02687
u690626617
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\n\nif S == "ABC":\n print(ARC)\nelse:\n print(ABC)', 'S = input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s777222231', 's989067626']
[9092.0, 8944.0]
[23.0, 19.0]
[59, 63]
p02687
u692311686
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N,M=map(int,input().split())\nH=list(map(int,input().split()))\ntunagari=[[] for i in range(N)]\nfor i in range(M):\n A,B=map(int,input().split())\n tunagari[A-1]+=[B-1]\n tunagari[B-1]+=[A-1]\n\nnums=[0 for i in range(N)]\nt=0\nfor i in range(N):\n tmpl=tunagari[i]\n mini=min(tmpl)\n if mini<i:\n nums[i]=nums[mini]\n continue\n nums[i]=t\n t+=1\nmaxn=max(nums)\ngroups=[[] for i in range(maxn+1)]\nprint(maxn+1)\nfor i in range(N):\n groups[nums[i]]+=[i]\nans=0\n\nfor i in range(maxn):\n tmpl=groups[i]\n tmpl2=[]\n for i in tmpl:\n tmpl2+=[H[i]]\n n=len(tmpl)\n if n==1:\n ans+=1\n else:\n tmpl2.sort()\n if tmpl2[-1]!=tmpl2[-2]:\n ans+=1', 'S=input()\nif S=="ARC":\n print("ABC")\nelse:\n print("ARC")\n ']
['Runtime Error', 'Accepted']
['s601472634', 's065375344']
[9260.0, 9032.0]
[22.0, 20.0]
[645, 61]
p02687
u692498898
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s=input()\nprint('ABC' if s='ARC' else 'ARC')", "s=input()\nprint('ABC' if s=='ARC' else 'ARC')"]
['Runtime Error', 'Accepted']
['s668193080', 's904532830']
[9020.0, 9020.0]
[20.0, 20.0]
[44, 45]
p02687
u692687119
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N, K = map(int, input().split())\nA = []\n\nfor i in range(K):\n d = int(input())\n a = list(map(int, input().split()))\n A.append(a)\n\nref = A[0]\n\nfor i in range(1, K):\n ref = list(set(ref) & set(A[i])) + list(set(ref) ^ set(A[i]))\n\nlen = len(ref)\n\nprint(N - len)', "S = input()\n\nif S[2] == 'B':\n print('ARC')\n\nif S[2] == 'R':\n print('ABC')", "S = input()\n\nif S[1] == 'B':\n print('ARC')\n\nif S[1] == 'R':\n print('ABC')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s197771528', 's791478750', 's748285938']
[9144.0, 9092.0, 9032.0]
[25.0, 22.0, 23.0]
[261, 75, 75]
p02687
u694380052
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["lw=input()\nif lw='ABC':\n print('ARC')\nelse:\n print('ABC')", "lw=input()\nif lw=='ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s926776527', 's694984761']
[9008.0, 8952.0]
[20.0, 22.0]
[63, 65]
p02687
u695644361
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['print("ABC"if input()=="ABC"else"ARC")', 'print("ABC"if input()=="ARC"else"ARC")']
['Wrong Answer', 'Accepted']
['s204718837', 's487004794']
[8992.0, 8972.0]
[26.0, 22.0]
[38, 38]
p02687
u695691591
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input("先週のコンテスト名を入力")\n\na = ABC\n\nb = ARC\n\nif S == a:\n print(b)\n \nelse:\n print(a)', 'S = input("先週のコンテスト名を入力")\n\nif S == "ABC":\n print("ARC")\n \nelse:\n print("ABC")', 'S = int(input("先週のコンテスト名を入力"))\n\nif S == ABC:\n print(ARC)\n \nelse:\n print(ABC)', 'S = input("先週のコンテスト名を入力")\n\nif S == ABC:\n print(ARC)\n \nelse:\n print(ABC)', 'S = input("先週のコンテスト名を入力")\n\nif S == ABC:\n print(ARC)\n \nelse:\n print(ABC)', 'S = input()\n\nif S == "ABC":\n print("ARC")\n \nelse:\n print("ABC")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s051287749', 's112090383', 's132822692', 's356413702', 's986910290', 's276654228']
[8908.0, 9024.0, 9156.0, 9024.0, 9088.0, 9092.0]
[20.0, 23.0, 20.0, 21.0, 19.0, 20.0]
[110, 104, 103, 98, 98, 66]
p02687
u697758384
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['contest_1 == "ABC"\ncontest_2 == "ARC"\n\nS = input()\n\nif S == contest_1:\n print(contest_2)\nelse:\n print(contest_1)', 'contest_1 = "ABC"\ncontest_2 = "ARC"\n\nS = input()\n\nif S == contest_1:\n print(contest_2)\nelse:\n print(contest_1)']
['Runtime Error', 'Accepted']
['s842672423', 's998627280']
[9092.0, 9032.0]
[25.0, 24.0]
[118, 116]
p02687
u698416089
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['s = input()\nif s = "ABC":\n print("ARC")\nelse:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s071480494', 's095772501']
[8944.0, 8904.0]
[26.0, 19.0]
[65, 66]
p02687
u698919163
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\n\nif S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s056707157', 's929896669']
[9012.0, 9024.0]
[20.0, 20.0]
[66, 67]