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
u301444029
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()\nif str = 'ARC':\n print(str.replace('B','R'))\nelse:\n print(str.replace('B','R'))", "str = input()\nif str = 'ABC':\n print(str.replace('B','R'))\nelse:\n print(str.replace('B','R'))\n", "str = input()\nif str == 'ABC':\n print(str.replace('B','R'))\nelse:\n print(str.replace('R','B'))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s451104426', 's712268327', 's622200887']
[8900.0, 8896.0, 9024.0]
[19.0, 21.0, 20.0]
[95, 96, 96]
p02687
u303329092
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())]\nif a==("ABC"):\n\tprint("ARC")\nelse:\n \tprint("ABC")\n ', 'a=input()\n\nif a =="ABC":\n print("ARC")\nelse:\n print("ABC")\n \n']
['Runtime Error', 'Accepted']
['s348893023', 's104910531']
[8972.0, 8860.0]
[25.0, 24.0]
[69, 67]
p02687
u303344598
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()\nprint 'ABC' if N == 'ARC' else print 'ARC'", "N = input()\nans = 'ABC' if N == 'ARC' else 'ARC'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s793775809', 's070791482']
[8952.0, 9092.0]
[21.0, 29.0]
[54, 59]
p02687
u303384315
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\ns = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')", 'import sys\ninput = sys.stdin.readline\n\ns = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")', "import sys\ninput = sys.stdin.readline\n\ns = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')", 'import sys\ninput = sys.stdin.readline\n\ns = input()\nif s == "ABC":\n print("ARC")\nelif s == "ARC":\n print("ABC")', "s = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s422053745', 's833451038', 's838823548', 's857146451', 's398197393']
[9032.0, 8908.0, 9100.0, 9032.0, 8908.0]
[23.0, 21.0, 22.0, 23.0, 24.0]
[105, 105, 105, 116, 66]
p02687
u305237878
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 == "ARC):\n print("ABC")\nelse:\n print("ARC")', 'print(input())', 'S = input()\n\nif (S == "ARC"):\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s518689870', 's614543387', 's170876688']
[8912.0, 8960.0, 8876.0]
[20.0, 33.0, 27.0]
[68, 14, 69]
p02687
u307418002
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='ABC'\n print('ARC') \nelse if s='ARC' \n print('ABC') \n\n\n\n", "s = input()\n\n\nif s=='ABC':\n print('ARC') \nelif s=='ARC':\n print('ABC') \n\n\n"]
['Runtime Error', 'Accepted']
['s216432597', 's524827234']
[9008.0, 8952.0]
[21.0, 24.0]
[81, 80]
p02687
u315121179
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 = raw_input()\n\nif a == "ABC":\n print("ARC")\nelif a == "ARC":\n print("ABC")', 'a = raw_input()\n\nif a == "ABC":\n print(ARC)\n elif a == "ARC":\n print(ABC)', 'a = input()\n\nif a == "ABC":\n print("ARC")\nelif a == "ARC":\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s205623803', 's568590715', 's340159017']
[9020.0, 8868.0, 8992.0]
[21.0, 19.0, 24.0]
[78, 75, 74]
p02687
u315759831
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\nans = [0,0]\nfor i in range(-500,500):\n for j in range(-500,500):\n if i**5 - j**5 == X:\n ans[0] = i\n ans[1] = j\n break\n\nans = " ".join(map(str,ans))\nprint(ans)\n ', 'NK = list(map(int, input().split()))\nans = [0]*NK[0]\n\nfor i in range(0,NK[1]):\n d = int(input())\n table = list(map(int, input().split()))\n for j in range(0,NK[0]):\n if table.count(j) == 1:\n ans[j] = 0\nprint(NK[1]-sum(ans))', 'NK = list(map(int, input().split()))\nans = [1]*NK[0]\n\nfor i in range(0,NK[1]):\n d = int(input())\n table = list(map(int, input().split()))\n for j in range(0,NK[0]):\n if table.count(j) == 0:\n ans[j] = 0\nprint(sum(ans))', 'def nextweek(S):\n if( S == "ABC"):\n return "ARC"\n else:\n return "ABC"\n\n\n\nS = input()\nnextweek(S)', 'def nextweek(S):\n if( S == "ABC"):\n return "ARC"\n else:\n return "ABC"\n\n\n\nS = input()\nprint (nextweek(S))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s338450492', 's681429905', 's769139816', 's835573945', 's335344354']
[9108.0, 9192.0, 9108.0, 9092.0, 8968.0]
[18.0, 20.0, 23.0, 20.0, 20.0]
[202, 234, 228, 104, 112]
p02687
u316390754
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()\na = ord(s)\nb = ord('ABC')\nr = ord('ARC')\nif a == b:\n print('ARC')\nelif a == b:\n print('ABC')", "s = map(list,input())\nb = [ABC]\nr = [ARC]\nif s == b:\n print('ARC')\nelif r == b:\n print('ABC')\n ", "s = list(input())\nif s[1] == 'B':\n print('ARC')\nelif s[1] == 'R':\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s008483235', 's750590853', 's003233826']
[9036.0, 9028.0, 8948.0]
[20.0, 23.0, 21.0]
[106, 97, 81]
p02687
u317485668
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.
['# -*- coding: utf-8 -*-\n\ns = input()\n\nprint(s)\n', '# -*- coding: utf-8 -*-\n\nS = input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Wrong Answer', 'Accepted']
['s420843546', 's334957065']
[9004.0, 8704.0]
[19.0, 22.0]
[47, 93]
p02687
u323068559
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.
['NM=list(map(int,input().split()))\nperson=[0 for i in range(NM[0])]\nfor i in range(NM[1]):\n d=input() \n snack=list(map(int,input().split()))\n for i in snack:\n person[i-1]=1\nd=0\nfor i in range(len(person)):\n if person[i]==0:\n d+=1\nprint(d)\n', 'a =input()\nif a == "ABC":\n print("ARC")\nelif a =="ARC":\n print("ABC")\n \n']
['Runtime Error', 'Accepted']
['s163639266', 's953805444']
[9188.0, 9020.0]
[25.0, 20.0]
[264, 75]
p02687
u326435117
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.
['comp = input()\nif cpm[1] == \'R\' :\n print("ABC")\nelse :\n print("ARC")', 'comp = input()\ntry :\n if comp[1] == \'R\' :\n print("ABC")\n else : print("ARC")\nexcept: \n pass']
['Runtime Error', 'Accepted']
['s710431607', 's074208034']
[9024.0, 9084.0]
[22.0, 22.0]
[70, 97]
p02687
u326470887
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().split()\n\nif S == 'ARC':\n print('ABC')\nelif S = 'ABC' \n print('ARC')", "S = input().split()\n\nif S == 'ARC':\n print('ABC')\nelif S == 'ABC' \n print('ARC')", "S = input()\n\nif S == 'ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s121845157', 's477166921', 's904265106']
[8948.0, 8988.0, 8960.0]
[21.0, 24.0, 24.0]
[85, 86, 67]
p02687
u327532412
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("ACR")\nelse:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s167549009', 's259182998']
[9088.0, 8960.0]
[24.0, 21.0]
[66, 62]
p02687
u329817560
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()\ni = s[2]\nif s == "arc":\n print(\'abc\')\nelse:\n print(\'arc\')', 's = input()\nif s == "ARC":\n print(\'ABC\')\nelse:\n print(\'ARC\')']
['Wrong Answer', 'Accepted']
['s418029700', 's275655731']
[9028.0, 9028.0]
[24.0, 21.0]
[75, 66]
p02687
u331233176
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']
['s834814765', 's138074368']
[8896.0, 8956.0]
[23.0, 21.0]
[57, 58]
p02687
u331711751
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.
['\n2 using namespace std;\n3 int main(){\n4 string s;\n5 cin >> s;\n6 if(s == "ABC"){\n7 cout << "ARC" << endl;\n8 }else{\n9 cout << "ABC" << endl;\n10 }\n11 }', 'a、b = map(int、input()。split())\n印刷(a * b)', "\nS = input()\n\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')\nelse:\n print('IDK')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s325417693', 's696609490', 's448988304']
[8876.0, 8684.0, 9016.0]
[29.0, 22.0, 28.0]
[167, 70, 127]
p02687
u334983390
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()}\ntest = {'ABC', 'ARC'}\nprint(test - s)", "s = {input()}\ntest = {'ABC', 'ARC'}\nprint(list(test - s)[0])"]
['Wrong Answer', 'Accepted']
['s299808519', 's942211700']
[9008.0, 8960.0]
[25.0, 27.0]
[51, 60]
p02687
u336564899
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 = "ARC":\n print("ABC")\nelif s = "ABC":\n print("ARC")\n', 's = input()\n\nif s = "ARC":\n print("ABC")\nelif s = "ABC"\n print("ARC")\n', 's = input()\n\nif s == "ARC":\n print("ABC")\nelif s == "ABC":\n print("ARC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s611548681', 's995781477', 's340757068']
[9004.0, 8944.0, 9012.0]
[20.0, 24.0, 20.0]
[77, 76, 79]
p02687
u337080722
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\ndef debug(*args):\n print(*args, file=sys.stderr)\n\n\nx_diff_of_5th_factor = int(input())\n\n\nfor a in range(-119, 118):\n for a in range(-118, 119):\n if a ** 5 - b ** 5 == x_diff_of_5th_factor:\n print('{} {}'.format(a, b))\n sys.exit(0)\n\nsys.exit(1)\n", "import sys\n\ndef debug(*args):\n print(*args, file=sys.stderr)\n\n\nx_diff_of_5th_factor = int(input())\n\n\nfor a in range(-118, 119):\n for b in range(-119, 118):\n if a ** 5 - b ** 5 == x_diff_of_5th_factor:\n print('{} {}'.format(a, b))\n sys.exit(0)\n\nsys.exit(1)\n", "print('ABC' if input() == 'ARC' else 'ARC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s047049886', 's087564438', 's955209638']
[9036.0, 9172.0, 9092.0]
[20.0, 24.0, 20.0]
[291, 291, 43]
p02687
u341267151
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']
['s485099511', 's811338297']
[9020.0, 9032.0]
[23.0, 30.0]
[57, 59]
p02687
u342062419
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\')', "x,y = map(int, input().split())\ncount = 0\n\nif y >= 2*x and y <= 4*x and y % 2 == 0:\n print('Yes')\nelse:\n print('No') \n", 'S = input()\nif S == \'ABC\':\n print("ARC")\nelif S == \'ARC\':\n print(\'ABC\')']
['Runtime Error', 'Runtime Error', 'Accepted']
['s212251287', 's793587922', 's367006179']
[8884.0, 9060.0, 9112.0]
[23.0, 33.0, 24.0]
[77, 124, 77]
p02687
u342456871
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[1] == B):\n print("ARC")\nelse:\n print("ABC")', 's = input()\nif (s[1] == "B"):\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s406101795', 's783481801']
[8960.0, 9080.0]
[21.0, 23.0]
[63, 66]
p02687
u345132740
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']
['s417074248', 's719547914']
[9016.0, 9024.0]
[20.0, 20.0]
[58, 60]
p02687
u349600366
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')", "if S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "s = input()\nprint('ARC' if s == 'ABC' else 'ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s098629998', 's506596713', 's125276183']
[8988.0, 8932.0, 8732.0]
[26.0, 23.0, 27.0]
[65, 53, 49]
p02687
u349898379
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 = 'ABC'\n\nif S == 'ABC':\n print('今週はARCが開催されます')\nif S == 'ARC':\n print('今週はABCが開催されます')", "S = input('先週: ')\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')", "S = input('先週: ')\n\nif S == 'ABC':\n print('今週: ARC')\nelif S == 'ARC':\n print('今週: ABC')\nelse:\n print('わかりません')", "S = input('')\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s127720918', 's214785410', 's758945863', 's094688900']
[8928.0, 8880.0, 9104.0, 9080.0]
[20.0, 19.0, 25.0, 24.0]
[134, 84, 136, 76]
p02687
u350093546
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\nelif s==ARC:\n print('ABC')\n ", "s=input()\nif s=='ABC':\n print('ARC')\n\nelif s=='ARC':\n print('ABC')\n \n"]
['Runtime Error', 'Accepted']
['s289909622', 's819404262']
[9040.0, 8968.0]
[22.0, 21.0]
[67, 72]
p02687
u357651829
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")']
['Runtime Error', 'Accepted']
['s871696950', 's057995749']
[8956.0, 9040.0]
[25.0, 21.0]
[58, 58]
p02687
u358088436
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.
["from collections import deque\nimport sys\ninput = sys.stdin.readline()\n\nif input=='ABC':\n print('ARC')\nelse:\n print('ABC')", "from collections import deque\nimport sys\ninput = sys.stdin.readline().strip('\\n')\nif input=='ABC':\n print('ARC')\nelif input=='ARC':\n print('ABC')\nelse:\n print(input)"]
['Wrong Answer', 'Accepted']
['s742434559', 's688701232']
[9264.0, 9336.0]
[24.0, 24.0]
[127, 174]
p02687
u359752656
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("S : ")\n\nif s == "ABC":\n print(\'ARC\')\nelif s == "ARC":\n print(\'ABC\')', 's = input()\n\nif s == "ABC":\n print(\'ARC\')\nelif s == "ARC":\n print(\'ABC\')']
['Wrong Answer', 'Accepted']
['s135928432', 's387019722']
[8872.0, 8908.0]
[22.0, 23.0]
[84, 78]
p02687
u362563655
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 print("ABC")\nelse:\n print("ARC")', 'S = input()\nif S == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s026622921', 's863292769']
[8948.0, 9024.0]
[19.0, 24.0]
[65, 66]
p02687
u362599643
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 i in range(-150,151):\n for j in range(-150,151):\n if i**5-j**5==X:\n print(i,j)\n exit()', "a = input()\nif a == 'ABC': print('ARC')\nelse: print('ABC')"]
['Runtime Error', 'Accepted']
['s202669148', 's620010288']
[9136.0, 8900.0]
[19.0, 22.0]
[137, 58]
p02687
u363080243
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()\nfor i in range(s):\n if s[i] =\'B\':\n s[i] = \'R\'\nprint("".join(s))', 's = input()\nif s== \'ABC\':\n print("ARC")\nelif s==\'ARC\':\n print("ABC")\nelse:\n pass']
['Runtime Error', 'Accepted']
['s807850371', 's291793885']
[8948.0, 9020.0]
[21.0, 20.0]
[79, 89]
p02687
u364027015
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']
['s455277719', 's254547045']
[8876.0, 8904.0]
[23.0, 23.0]
[57, 58]
p02687
u364774090
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()\nprint("ABC")', 'import sys\nlw = sys.argv[1]\nprint(lw.startsWith("ABC") ? "ARC" : "ABC")\n', 'import sys\nlw = sys.argv[1]\nretrun lw.startsWith("ABC") ? "ARC" : "ABC"\n', 'lw = input()\nprint("ABC" if lw.startsWith("ABC") else "ARC")\n', 'tw ="ABC" if input().startswith("ARC") else "ARC")\nprint(tw)\n', 'import sys\nlw = sys.argv[1]\nreturn lw == "ABC" ? "ARC" : "ABC"\n', 'tw ="ABC" if lw.startsWith(input()) else "ARC")\nprint(tw)', 'import sys\nlw = sys.argv[1]\nretrun lw == "ABC" ? "ARC" : "ABC"', 'tw ="ABC" if input().startsWith("ARC") else "ARC")\nprint(tw)\n', '\nlw = input()\nprint(lw.startsWith("ABC") ? "ARC" : "ABC")\n', 'lw = input()\nretrun lw == "ABC" ? "ARC" : "ABC"\n', 'tw ="ABC" if input().startswith("ARC") else "ARC"\nprint(tw)\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s058521432', 's116527371', 's181089730', 's258111892', 's262500783', 's461078787', 's550045588', 's644024598', 's681366573', 's692654408', 's944099409', 's823039699']
[9028.0, 8880.0, 9024.0, 9124.0, 9016.0, 9008.0, 8944.0, 8960.0, 8964.0, 9016.0, 8980.0, 8916.0]
[22.0, 23.0, 21.0, 25.0, 19.0, 20.0, 20.0, 21.0, 21.0, 21.0, 25.0, 19.0]
[25, 72, 72, 61, 61, 63, 57, 62, 61, 58, 48, 60]
p02687
u365491796
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.
["# 166 A\nS = input()\nprint('ABC') if S == 'ARC' else print('ABC')", "# 166 A\nS = input()\nprint('ABC') if S == 'ARC' else print('ARC')"]
['Wrong Answer', 'Accepted']
['s996003802', 's220440490']
[9020.0, 8892.0]
[31.0, 27.0]
[64, 64]
p02687
u366135002
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()\nif x is 'ABC':\n print('ARC')\nelse:\n print('ABC')", "\nx=input()\nif x == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s084933223', 's620941902']
[9028.0, 8904.0]
[23.0, 25.0]
[60, 65]
p02687
u366974168
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']
['s062873203', 's559557643']
[8952.0, 9020.0]
[20.0, 22.0]
[57, 58]
p02687
u367163675
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')"]
['Wrong Answer', 'Accepted']
['s255187105', 's023983819']
[9028.0, 9020.0]
[20.0, 20.0]
[60, 60]
p02687
u370331385
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 print('ABC')\nelse:\n print('ARC')", "s = input()\nif(s=='ARC'):\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s388674791', 's465655198']
[9028.0, 9028.0]
[25.0, 23.0]
[61, 61]
p02687
u373422978
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\nfor a in range(100):\n for b in range(100):\n if a**5 + b**5 == x:\n print(a, b)\n exit()', "s = input()\n\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s981907821', 's472879306']
[9100.0, 9036.0]
[26.0, 23.0]
[135, 68]
p02687
u373858851
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 is'ABC':\n print('ARC')\nelse:\n print('ABC')", "s=input()\n\nif s=='ABC':\n print('ARC')\nelse:\n print('ABC')\n \n"]
['Wrong Answer', 'Accepted']
['s800928819', 's480588356']
[9000.0, 8920.0]
[23.0, 26.0]
[60, 69]
p02687
u374372942
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']
['s803304885', 's381580877']
[9024.0, 9092.0]
[22.0, 20.0]
[60, 63]
p02687
u374815848
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.
['from sys import stdin\n\nn, m = list(map(int, input().split()))\nh_n = list(map(int, input().split()))\na_b_m = stdin.readlines()\n\nres = 0\nomit_s = []\nfor i in range(1, n+1):\n count_omit = 0\n for k in range(len(omit_s)):\n if omit_s[k] == i:\n count_omit = 1\n break\n if count_omit == 0:\n count = 0\n count_higher = 0\n for j in range(m):\n a, b = [int(x) for x in a_b_m[j].rstrip().split()]\n if a == i:\n count = 1\n if h_n[b-1] >= h_n[a-1]:\n count_higher = 1\n elif h_n[a-1] > h_n[b-1]:\n ommit_s.append(b-1)\n break\n elif b == i:\n count = 1\n if h_n[a-1] >= h_n[b-1]:\n count_higher = 1\n break\n if count == 1 and count_higher == 0:\n res += 1\n elif count == 0:\n res += 1\nprint(res)\n', "s = str(input())\n\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s991194548', 's420692792']
[9240.0, 8948.0]
[22.0, 22.0]
[965, 73]
p02687
u376591216
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[1] == "R":\n return \'ABC\'\nelse:\n return \'ARC\'', "S == input()\nif S[1] == 'R':\n\tprint('ABC')\nelse:\n print('ARC')", "S = input()\nif S[1] == 'R':\n\tprint('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s393663582', 's568374074', 's091471435']
[8936.0, 9060.0, 9008.0]
[21.0, 21.0, 21.0]
[51, 65, 64]
p02687
u377265351
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[1]=="R":\n s[1]=="B"\nelse:\n s[1]=="R"\nprint(s)', 's = input()\ns_list = list(s)\nif s[1]=="R":\n s_list[1]="B"\nelse:\n s_list[1]="R"\nprint("".join(s_list))']
['Wrong Answer', 'Accepted']
['s630308073', 's282487892']
[8932.0, 9040.0]
[20.0, 21.0]
[68, 107]
p02687
u385733796
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')", 'print("AARBCC"[input()!="ABC"::2])']
['Runtime Error', 'Accepted']
['s955552546', 's637441617']
[8948.0, 8964.0]
[19.0, 25.0]
[61, 34]
p02687
u388703798
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("ABC")\nif a=="ARC":\n print("ARC")', 'a="ABC"\nb="ARC"\nif a==a:\n print("ABC")\nif b==b:\n print("ARC")', 'a=input()\nif a==a:\n print("ABC")\nelif a==a:\n print("ARC")', 'a="ABC"\nb="ARC"\nif a==a:\n print("ABC")\nelse: a==a\nprint("ARC")\n ', 'a="ABC"\nb="ARC"\nfor a in range (1):\n print(a)\nfor a in range (2):\n print(b)', 'a=input()\nif a=="ARC":\n print("ABC")\nif a=="ABC":\n print("ARC")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s140274750', 's196299152', 's365238264', 's406514359', 's489812360', 's053775204']
[9024.0, 8932.0, 9088.0, 8932.0, 8932.0, 9024.0]
[26.0, 25.0, 28.0, 24.0, 26.0, 26.0]
[70, 67, 63, 70, 81, 69]
p02687
u392918440
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 return "ARC"\nelse:\n return "ABC"', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s932552278', 's856567372']
[8968.0, 9028.0]
[19.0, 20.0]
[67, 67]
p02687
u395313349
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 is "ABC":\n print("ARC")\nelse:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s115092272', 's415385036']
[9036.0, 9024.0]
[23.0, 22.0]
[62, 62]
p02687
u398203017
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 if S=="ARC":\n print("ABC")', 'S=str(input())\nif S=="ABC":\n print("ARC")\nelif S=="ARC":\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s873400541', 's101163643']
[8948.0, 9008.0]
[20.0, 19.0]
[75, 73]
p02687
u400692785
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()\ndef f(x):\n if x == "ABC":\n print("ARC")\n elif x == "ARC":\n print("ABC")\n else:\n print("ivalid input")\n\nprint(f(x))', ' x = input()\n def f(x):\n if x == "ABC":\n print("ARC")\n elif x == "ARC":\n print("ABC")\n else:\n print("invalid input")\n \n print(f(x))', 'x = input()\ndef f(x):\n if x == ABC:\n print("ARC")\n elif x == ARC:\n print("ABC")\n else:\n print("invalid input")\n\nprint(f(x))', 'x = input()\nif x == ARC:\n print("ABC")\nelif x == ABC:\n print("ARC")\nelse:\n print("invalid input")', 'x = input()\ndef f(x):\n if x == "ABC":\n print("ARC")\n elif x == "ARC":\n print("ABC")\n else:\n print("invalid input")\nf(x)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s034322187', 's125897402', 's367081097', 's922588605', 's838956545']
[8964.0, 8828.0, 8948.0, 9020.0, 9084.0]
[20.0, 19.0, 20.0, 22.0, 20.0]
[156, 180, 135, 100, 149]
p02687
u402126035
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()\nif x = "ABC":\n print("ARC")\nif x = "ARC":\n print("ABC")', "x = input()\nif x == 'ABC':\n print('ARC')\nif x == 'ARC':\n print('ABC')"]
['Runtime Error', 'Accepted']
['s665346696', 's380589787']
[8872.0, 9092.0]
[24.0, 21.0]
[73, 75]
p02687
u402228762
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,b = map(int,input().split())\nlis = [0]*b\nfor i in range(a):\n c = int(input())\n d = input().split()\n \n for l in range(c):\n lis[int(d[l])-1] += 1\n \ncount = 0\nfor i in range(b):\n if(lis[i] == 0):\n count += 1\n\nprint(count)', 'input_l = input()\n\nif(input_l =="ARC"):\n print("ABC")\n \nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s710223852', 's981746336']
[9132.0, 9040.0]
[21.0, 20.0]
[234, 78]
p02687
u404991095
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 print("ABC")\n', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s731689580', 's484995194']
[8948.0, 9060.0]
[24.0, 20.0]
[61, 63]
p02687
u406721804
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']
['s661250091', 's688129254']
[8940.0, 9040.0]
[20.0, 22.0]
[64, 65]
p02687
u407513296
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().split()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'S = input().split()\n\nif S == "ABC":\n print("ARC")\nif s == "ARC":\n print("ARC")\n', 'S = input().split()\n\nif S == "ABC":\n print("ARC")\nif S == "ARC":\n print("ARC")\n', 's = input()\nif s[1] == "B":\n print("ARC")\nelse:\n print("ABC")\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s221467957', 's692427754', 's817761738', 's010512195']
[9020.0, 9024.0, 9016.0, 8948.0]
[22.0, 20.0, 21.0, 18.0]
[76, 85, 85, 68]
p02687
u408791346
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("SRC")\nelse:\n print("ABC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s279525278', 's086698465']
[8960.0, 9028.0]
[22.0, 21.0]
[66, 66]
p02687
u409064224
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()[1]\nprint(f\'A{"B" if a=="B" else "R"}C\')', 'a = input()[1]\nprint(f\'A{"R" if a=="B" else "B"}C\')\n']
['Wrong Answer', 'Accepted']
['s243129301', 's195084446']
[9092.0, 8988.0]
[22.0, 20.0]
[51, 52]
p02687
u409306788
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\n# A - A?C\nif input() == 'ABC':\n\tprint('ARC')\nelse:\n\tprint('ABC')", "# A - A?C\nif input() == 'ABC':\n\tprint('ARC')\nelse:\n\tprint('ABC')"]
['Wrong Answer', 'Accepted']
['s470856060', 's716456200']
[9032.0, 9080.0]
[21.0, 21.0]
[103, 64]
p02687
u410035828
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\tretrun ARC\nelse:\n\tretrun ABC', "S = input()\nif S == 'ABC':\n\tprint('ARC')\nelse:\n\tprint('ABC')"]
['Runtime Error', 'Accepted']
['s374411682', 's369798773']
[9004.0, 8956.0]
[20.0, 19.0]
[53, 60]
p02687
u415875614
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() == 'ARC' else print('ARC')\n", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s269131001', 's523146448']
[9000.0, 9092.0]
[20.0, 20.0]
[52, 62]
p02687
u418197217
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 print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s741220853', 's855360282']
[8948.0, 9024.0]
[22.0, 20.0]
[59, 66]
p02687
u418199806
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 = int(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']
['s717589450', 's848976358', 's975509746']
[8944.0, 9008.0, 9088.0]
[24.0, 23.0, 23.0]
[67, 71, 68]
p02687
u418808418
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']
['s151915017', 's939300458', 's305865862']
[9008.0, 8932.0, 9088.0]
[23.0, 23.0, 19.0]
[64, 65, 67]
p02687
u419246138
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 = ["ABC":"ARC","ARC":"ABC"]\nprint(k[input()])', 'k = {"ABC":"ARC","ARC":"ABC"}\nprint(k[input()])']
['Runtime Error', 'Accepted']
['s919088321', 's191602697']
[9012.0, 9024.0]
[25.0, 18.0]
[47, 47]
p02687
u420059236
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 as np\nN, M = list(map(int, input().split()))\nH = list(map(int, input().split()))\nG = N\nlists = np.zeros(N)\nfor i in range(M):\n A, B = list(map(int, input().split()))\n if H[A-1] < H[B-1]:\n lists[A-1] = 1\n else:\n lists[B-1] = 1\nfor i in range(N):\n if lists[i] == 1:\n G -= 1\nprint(lists)\nprint(G)', 'S = input("")\nif S =="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s984133162', 's777033016']
[27168.0, 9064.0]
[104.0, 20.0]
[339, 67]
p02687
u422633119
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=string(input())\nprint('ARC') if s=='ABC' else print('ABC')", "s=input()\nprint('ARC') if s=='ABC' else print('ABC')\n"]
['Runtime Error', 'Accepted']
['s031429097', 's495315453']
[8944.0, 9076.0]
[19.0, 23.0]
[60, 53]
p02687
u423614187
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() == "ABC"):\n return "ARC"\n\nelse:\n return "ABC"', 's = input()\n\nif(s == \'ABC\'):\n print("ARC")\n\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s441508800', 's099635566']
[9016.0, 9092.0]
[20.0, 20.0]
[58, 65]
p02687
u423812170
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.
["\nS = input('先週開催されたコンテストは')\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')\nelse:\n print('ABC または\u3000ARC を入力してください')", "S = input()\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')\nelse:\n print('ABC または\u3000ARC を入力してください')"]
['Wrong Answer', 'Accepted']
['s222595646', 's237045791']
[8948.0, 8940.0]
[25.0, 26.0]
[258, 145]
p02687
u428341537
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.find('B')=='1':\n print('ARC')\nelse:\n print('ABC')", 's=input()\n\nif s.find(\'B\')=="2":\n print(\'ARC\')\nelse:\n print(\'ABC\')', "s=input()\n\nif s.find('B')==1:\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s097372948', 's606403009', 's420479487']
[8784.0, 8948.0, 8856.0]
[27.0, 29.0, 27.0]
[67, 67, 65]
p02687
u430336181
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 = inout()\n\nif S == ABC:\n\tprint(ARC)\n \nif S == ARC:\n print(ABC)', 'S = input()\n \nif S == ABC:\n\tprint(ARC)\n \nif S == ARC:\n print(ABC)', 'S = input()\n \nif S == ABC:\n\tprint(ARC)\n\nif S == ARC:\n \tprint(ABC)', 'S = input()\n \nif S == "ABC":\n\tprint(ARC)\n\nif S == "ARC":\n \tprint(ABC)', 'S = input()\n\nif S == "ABC":\n print("ARC")\n\nif S == "ARC":\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s201855939', 's440473892', 's710470094', 's821532155', 's672167363']
[8952.0, 9092.0, 9092.0, 9084.0, 9020.0]
[19.0, 20.0, 19.0, 20.0, 20.0]
[68, 69, 66, 70, 77]
p02687
u430395207
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[1] = "B":\n S[1] = "R"\nelse:\n S[1] = "B"\nprint(S)', 'S = input()\nif S[1] == "B":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s694262875', 's570653244']
[8784.0, 8944.0]
[27.0, 23.0]
[67, 63]
p02687
u431873251
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(input())', 'if input()==\'ABC\': print("ARC")\nelse: print("ABC")']
['Wrong Answer', 'Accepted']
['s005056746', 's267217827']
[9080.0, 9020.0]
[24.0, 19.0]
[14, 50]
p02687
u432098488
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')\n"]
['Runtime Error', 'Accepted']
['s643116273', 's415176095']
[8824.0, 9016.0]
[21.0, 23.0]
[62, 64]
p02687
u436660228
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 print("ABC")\nelif s="ABC":\n print("ARC")\n', 'x=int(input())\nfor i in range(-1000:1000:1):\n for j in range(-1000:1000:1):\n if i**5-j**5==x:\n print(i,j)\n exit()', 'N=input()\n\nif N=="ARC":\n print("ABC")\n \nelse:\n print("ARC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s058837846', 's368284180', 's714625495']
[9016.0, 8908.0, 9096.0]
[20.0, 21.0, 20.0]
[66, 127, 62]
p02687
u438189153
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")\nelif S="ARC":\n print("ABC")\n', 'S=str(input())\nif S="ABC":\n print("ARC")\nelif S="ARC":\n print("ABC")\n', 'S=str(input())\nif S=="ABC":\n print("ARC")\nelif S=="ARC":\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s801835018', 's844662546', 's989435165', 's712584341']
[8948.0, 8784.0, 8880.0, 9028.0]
[24.0, 29.0, 22.0, 30.0]
[70, 70, 75, 77]
p02687
u439212411
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']
['s843793072', 's249574893']
[9008.0, 9032.0]
[20.0, 22.0]
[65, 66]
p02687
u441246928
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 = 'ABC' :\n print( 'ARC' )\nelif S = 'ARC' :\n print( 'ABC' )\n", "S = input()\nif S == 'ABC' :\n print( 'ARC' )\nelif S == 'ARC' :\n print( 'ABC' )\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s169706882', 's482683888', 's533723171']
[8948.0, 9008.0, 9016.0]
[22.0, 19.0, 21.0]
[87, 84, 86]
p02687
u441902623
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']
['s804374138', 's917271400']
[9004.0, 9024.0]
[24.0, 29.0]
[60, 62]
p02687
u444732068
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[1] == "B":\n print("R")\nelse:\n print("B")\n', 's = input()\nif s[1] == "B":\n print("ARC")\nelse:\n print("ABC")\n']
['Wrong Answer', 'Accepted']
['s426124210', 's099578814']
[9076.0, 9036.0]
[22.0, 24.0]
[64, 68]
p02687
u446185258
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 == \'ABS\':\n print("ARC")\nelse:\n print("ABS")', 's = input()\nif s == \'ABC\':\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s039076991', 's337995406']
[8904.0, 8952.0]
[20.0, 24.0]
[66, 66]
p02687
u449514925
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.
['# -*- coding: utf-8 -*-\n\n#N, K = map(int, input().split())\n\ns = input()\n\n\n\n\nif s==ABC:\n print("ARC")\nelse:\n print("ABC")\n', '# -*- coding: utf-8 -*-\n\n#N, K = map(int, input().split())\n\ns = input()\n\n\n\n\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s278830401', 's319016819']
[8896.0, 9084.0]
[22.0, 21.0]
[267, 269]
p02687
u449580152
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()))\ns = [[0]]*m\n \nfor _ in range(m):\n a, b = map(int, input().split())\n s[a-1].append(H[b-1])\n s[b-1].append(H[a-1])\n \nc = 0\nfor j in range(n):\n if H[j] > max(s[j]):\n c+= 1\n \nprint(c) ', "s = input()\n\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s751541404', 's331091311']
[9200.0, 8908.0]
[21.0, 24.0]
[268, 67]
p02687
u449863068
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 = "ABC":\n print("ARC")\nelse":\n print("ABC")\n\n', 'S = int(input())\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n\n', 'S = int(input())\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")', '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\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s047070711', 's571085794', 's763774430', 's940540145', 's605832358']
[8820.0, 9124.0, 8944.0, 8944.0, 8996.0]
[21.0, 21.0, 23.0, 24.0, 23.0]
[69, 69, 66, 61, 64]
p02687
u450147945
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']
['s683349649', 's226647656']
[9004.0, 9096.0]
[24.0, 24.0]
[61, 62]
p02687
u452512115
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 == "ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'S = int(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\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s524907830', 's711036568', 's744146745']
[9084.0, 9020.0, 9076.0]
[22.0, 22.0, 24.0]
[68, 68, 64]
p02687
u456823367
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")print("ARC")\nelse if("ARC")print("ABC")\n\n\n', 's=input()\n\nif(s=="ABC")print("ARC")\nelse if(s=="ARC")print("ABC")\n\n\n', 's=input()\n\nif(s=="ABC"):print("ARC")\nif(s=="ARC"):print("ABC")\n\n\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s260837323', 's721935824', 's431026632']
[9012.0, 8892.0, 9084.0]
[20.0, 20.0, 25.0]
[65, 68, 65]
p02687
u463602788
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\ndiv_list = []\nfor a in range(1, int(X**0.5)+1):\n if X % a == 0:\n div_list.append((a, X//a))\n\n#print(div_list)\nfor x, y in div_list:\n for a in range(int(X**0.5)+1):\n b = a - x\n #print(a, b)\n y_hat = a**4 + b*a**3 + b**2*a**2 + b**3*a + b**4\n #print(y_hat)\n if y_hat == y:\n print(a, b)\n exit()\n', "S = str(input())\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s230270521', 's644800310']
[9132.0, 9020.0]
[20.0, 28.0]
[404, 83]
p02687
u464205401
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('ARC') if S=='ARC' else print('ABC')\n", "S=input()\nprint('ARC') if S=='ABC' else print('ABC')"]
['Wrong Answer', 'Accepted']
['s792883337', 's167958359']
[9016.0, 8992.0]
[20.0, 20.0]
[53, 52]
p02687
u469281291
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\nimport math\n\nn, m = map(int, input().split())\nh = list(map(int, input().split()))\nma = [0] * n\nfor i in range(m):\n a, b = map(int, input().split())\n ma[a - 1] = max(h[a - 1],max(ma[a-1],h[b - 1]))\n ma[b - 1] = max(h[b - 1],max(ma[b-1] ,h[a - 1]))\ncnt = 0\nfor i in range(n):\n if h[i] >= ma[i]:\n cnt += 1\nprint(cnt)\n', "import sys\nimport math\ns=input()\nif (s == 'ABC'):\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s616365984', 's474224344']
[9212.0, 9092.0]
[20.0, 20.0]
[344, 89]
p02687
u471217476
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']
['s698852770', 's795213149']
[8960.0, 9092.0]
[20.0, 22.0]
[57, 62]
p02687
u471503862
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())\nO = list(map(int, input().split()))\nB = [[0 for i in range(N)] for j in range (N)]\n \nfor j in range(M):\n o_1, o_2 = map(int, input().split())\n B[o_1-1].append(o_2-1)\n B[o_2-1].append(o_1-1)\n \nans = 0\nfor k in range(N):\n flag =1\n for l in B[k]:\n if O[k] <= O[l]:\n flag = 0\n break\n else:\n continue\n if flag ==1:\n ans += 1\nprint(ans)\n ', 'N, M = map(int, input().split())\nO = [0]*N\nB = [[0 for i in range(N)] for j in range (N)]\na = list(map(int, input().split()))\nfor i in range(N):\n O[i] = a[i]\n \nfor j in range(M):\n o_1, o_2 = map(int, input().split())\n B[o_1-1][o_2-1] = 1\n B[o_2-1][o_1-1] = 1\n \nans = 0\nfor k in range(N):\n flag =1\n for l in range(N):\n if B[k][l] == 1 and O[k] <= O[l]:\n flag = 0\n if flag ==1:\n ans += 1\nprint(ans)\n ', "a = input()\nif (a[1] == 'B'):\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s473323753', 's902555855', 's898617919']
[9044.0, 9140.0, 9016.0]
[19.0, 23.0, 23.0]
[402, 423, 66]
p02687
u481550011
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 ans=ARC\nelse:\n ans=ABC\nprint(ans)', 'S=input()\nif S=="ABC":\n ans="ARC"\nelse:\n ans="ABC"\nprint(ans)']
['Runtime Error', 'Accepted']
['s710753244', 's270514585']
[9024.0, 9092.0]
[23.0, 21.0]
[63, 67]
p02687
u483298903
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()))\nA = [0]*M\nB = [0]*M\nfor i in range(M):\n A[i],B[i]=map(int,input().split())\nc = 0\np=[0]*N\nfor i in range(1,N+1):\n if i not in A and i not in B:\n c = c+1\n else:\n for j in range(1,M+1):\n if i == A[j-1]:\n if H[A[j-1]-1] > H[B[j-1]-1]:\n p[i-1] = p[i-1]+1\n if i == B[j-1]:\n if H[B[j-1]-1] > H[A[j-1]-1]:\n p[i-1] = p[i-1]+1\n if p[i-1] == A.count(i)+B.count(i):\n c =c+1\nprint(c)', 'x = input()\nif x == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s098642598', 's332777036']
[9240.0, 9024.0]
[21.0, 20.0]
[493, 62]
p02687
u483873684
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")\n else:\n print("ABC")', 's=str(input())\nif(s=="ABC"):\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s989435269', 's884358779']
[9012.0, 9028.0]
[21.0, 17.0]
[65, 64]
p02687
u486094752
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())\na = 1\nb = 1\nwhile True: \n if(a**5 - b**5 == X):\n print(a , b)\n break\n a += 1\n for i in range(X):\n b += 1\n if(a**5 - b**5 == X):\n print(a , b)\n exit()\nwhile True:\n if(a**5 - b**5 == X):\n print(a , b)\n break\n b -= 1\n for j in range(X):\n b -= 1\n if(a**5 - b**5 == X):\n print(a , b)\n exit()', 'X = int(input())\n \nfor a in range(-119 , 120 , 1):\n A = a**5\n for b in range(-119 , 120 , 1):\n B = b**5\n if(A-B==X):\n print(a, b)\n exit()\n else:\n continue\n \n', 'p = 0\nN = int(input())\nA = list(map(int , input().split()))\nfor i in range(N):\n for j in range(N):\n sa = abs(i-j)\n wa = A[i]+A[j]\n \n if(sa == wa):\n p += 1\nprint(p//2)', 'S = str(input())\nif(S == "ARC"):\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s090290819', 's527578723', 's756891137', 's468103828']
[9056.0, 9132.0, 9108.0, 9060.0]
[20.0, 23.0, 19.0, 20.0]
[354, 188, 184, 68]
p02687
u486297080
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(S)', 'S = input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s849759256', 's162538242']
[9004.0, 9092.0]
[20.0, 20.0]
[21, 67]
p02687
u489155878
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("ABC")', 'A=input()\n\nif A=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s625570194', 's343351279']
[8952.0, 9084.0]
[20.0, 22.0]
[58, 60]
p02687
u489717595
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']
['s304318314', 's814653692']
[8884.0, 8932.0]
[23.0, 28.0]
[62, 65]