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
u106095117
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())\narr=[0]+list(map(int,input().split()))\ng=[[] for _ in range(n+1)]\nfor _ in range(m):\n a,b=map(int,input().split())\n g[a].append(b)\n g[b].append(a)\nans=0\nfor v in range(1,n+1):\n for u in g[v]: \n if arr[u]>=arr[v]:\n break\n else: \n ans+=1\nprint(ans)', "S = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s659513874', 's239639015']
[9112.0, 9060.0]
[24.0, 22.0]
[499, 67]
p02687
u106816675
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)', 'print(input())', "S=input()\n\nif S=='ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s840424647', 's986167058', 's575531913']
[9136.0, 9076.0, 9076.0]
[19.0, 20.0, 18.0]
[18, 14, 64]
p02687
u111082563
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, a, b, c = map(int, input().split())\n\n\ndef calc(x, y):\n if x - 1 >= 0:\n return (x - 1, y)\n elif y - 1 >= 0:\n return (x, y - 1)\n\n\nanswers = []\nfor i in range(n):\n s = list(map(str, input().split()))\n old_a = a\n old_b = b\n old_c = c\n\n if s == 'AB':\n a, b = calc(a, b)\n elif s == 'AC':\n a, c = calc(a, c)\n elif s == 'BC':\n b, c = calc(b, c)\n\n if a > old_a:\n answers.append('A')\n elif b > old_b:\n answers.append('B')\n elif c > old_c:\n answers.append('C')\n\n if a >= 0 and b >= 0 and c >= 0:\n print('No')\n quit()\n\n\nprint('Yes')\nfor ans in answers:\n print(ans)\n", "s = str(input())\n\na = ''\n\nif s == 'ABC':\n a = 'ARC'\nelif s == 'ARC':\n a = 'ABC'\n\nprint(a)\n"]
['Runtime Error', 'Accepted']
['s251076697', 's433124259']
[9172.0, 9100.0]
[23.0, 19.0]
[668, 96]
p02687
u112364985
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.
['#include <bits/stdc++.h>\nusing namespace std;\ntypedef long long int ll;\ntypedef long double ld;\n\n\nconst ld pi=3.14159265358979323846;\n \nint main() {\n string s;\n cin>>s;\n if (s=="ABC"){\n cout<<"ARC"<<endl;\n }\n else{\n cout<<"ABC"<<endl;\n }\n}', 's=input()\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s937159714', 's165938876']
[8812.0, 9088.0]
[23.0, 21.0]
[379, 62]
p02687
u113107956
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']
['s432097568', 's413028436']
[8876.0, 9092.0]
[22.0, 21.0]
[62, 62]
p02687
u113255362
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")\nelse:\n print("input is wrong")', 's=input()\nif s == "ARC":\n print("ABC")\nelif s == "ABC":\n print("ARC")\nelse:\n print("input is wrong")']
['Runtime Error', 'Accepted']
['s084988519', 's591952432']
[9036.0, 9032.0]
[22.0, 23.0]
[99, 103]
p02687
u117494854
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\nA = 0\nB = 0\ntest = 10**3\nfor i in range(-test, test):\n\ta = (X + i**5)**0.2\n\tif type(a) == float:\n\t\tif round(a, 10).is_integer():\n\t\t\t# print(int(a), i)\n\t\t\tA, B = int(a), i\n\t\t\tbreak\nprint(A, B)', 'S = input()\n\nif "B" in S:\n print(S.replace("B", "R"))\nelif "R" in S:\n print(S.replace("R", "B"))']
['Runtime Error', 'Accepted']
['s088971516', 's894560727']
[9184.0, 9092.0]
[20.0, 23.0]
[209, 98]
p02687
u119982001
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 S:\n print('ABC')\n", "S=input()\nif S=='ABC':\n print('ARC')\nelse :\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s757398191', 's293093631']
[8932.0, 9048.0]
[18.0, 24.0]
[65, 64]
p02687
u120810144
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\nimport numpy as np\nimport copy\n\ndef main():\n s = input()\n print "ARC" if s == "ABC" else "ABC"\n return 0\n\nif __name__ == \'__main__\':\n sys.exit(main())', 'import sys\nimport math\nimport numpy as np\nimport copy\n\ndef main():\n s = input()\n print("ARC" if s == "ABC" else "ABC")\n return 0\n\nif __name__ == \'__main__\':\n sys.exit(main())']
['Runtime Error', 'Accepted']
['s229783479', 's145782694']
[9020.0, 27136.0]
[22.0, 105.0]
[185, 186]
p02687
u123640023
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('ARC')\nelse:\n\tprint('ABC')", "s = input()\n\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s103523135', 's235347218']
[9008.0, 9044.0]
[21.0, 18.0]
[60, 75]
p02687
u124212130
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()\n\nif S[1] == 'B':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s321675855', 's951612462']
[9088.0, 9028.0]
[20.0, 19.0]
[61, 64]
p02687
u132892633
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 = [0]+list(map(int, input().split()))\nans = [0]+[1]*n\nfor i in range(m):\n a, b = map(int, input().split())\n if h[a]>=h[b]:\n ans[b] = 0\n if h[b]>=h[a]:\n ans[a] = 0\nprint(sum(ans))', "s = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s215319643', 's419417125']
[9160.0, 9032.0]
[21.0, 24.0]
[236, 66]
p02687
u135389999
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']
['s932774172', 's672921962']
[8964.0, 9076.0]
[24.0, 21.0]
[60, 62]
p02687
u137226361
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().rstrip()\n\nif s[2]=='B':\n s='ARC'\n\n\nprint(s)", "s = input().rstrip()\n\nif s[2]=='B':\n s='ARC'\n\n\nprint(s)", "s = input().rstrip()\n\nif s[1]=='B':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s438858128', 's562336255', 's522052372']
[9056.0, 8924.0, 9020.0]
[24.0, 23.0, 21.0]
[58, 58, 75]
p02687
u144072139
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 "ABC")', 'S=input()\n\nif S=="ABC":\n print("ARC")\n \nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s829947854', 's313403991']
[9024.0, 8844.0]
[23.0, 22.0]
[45, 68]
p02687
u147910356
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 = input("The element of S: ")\nARC = input("The element of S: ")\nif ABC == "S":\n print("ABC")\nif ARC == "S":\n print("ARC")\n', 'S = input("The element of S: ")\nif S == "ABC":\n print("ARC")\nif S == "ARC":\n print("ABC")\n', 'user = input()\nif user == "s":\n print("ARC")\nif user == "s":\n print("ABC")\n', 'S = input("The element of S: ")\nif S == "ABC":\n print("ABC")\nif S == "ARC":\n print("ARC")\n', 'S = input("The element of S: ")\nif S == "ABC":\n print("ARC")\nif S == "ARC":\n print("ABC")\n', 's = input()\nif s == "ABC":\n print("ARC")\nif s == "ARC":\n print("ABC")\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s038660380', 's158490264', 's289976044', 's536911999', 's786320950', 's580666615']
[9020.0, 9020.0, 9020.0, 8900.0, 9076.0, 9016.0]
[24.0, 21.0, 23.0, 21.0, 21.0, 19.0]
[132, 96, 81, 96, 96, 76]
p02687
u152614052
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']
['s759101198', 's421237428']
[8964.0, 9024.0]
[23.0, 23.0]
[61, 62]
p02687
u153652239
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")\n\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s712490441', 's960747487']
[8924.0, 9028.0]
[22.0, 22.0]
[60, 63]
p02687
u153823221
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']
['s541451346', 's097836155']
[9012.0, 8968.0]
[20.0, 18.0]
[67, 68]
p02687
u154403054
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())\n\nH = input().split()\n \nt_1 = [int(h) for h in H]\n\nt_2 = []\n \nfor m in range(M):\n \n g = 0\n \n A, B = map(int, input().split())\n \n if t_1[A-1] > t_1[B-1]:\n \n g = t_1[A-1]\n f = t_1[B-1]\n \n \n else:\n \n g = t_1[B-1]\n f = t_1[A-1]\n \n if f in t_2: \n t_2.remove(f)\n \n t_2.append(g)\n \nprint(len(set(t_2)))', "S = input()\nif S=='ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s594328978', 's439245395']
[9152.0, 9052.0]
[23.0, 20.0]
[445, 64]
p02687
u157232135
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 itertools\n\nx = int(input())\n\ny = itertools.combinations(range(-80,80), 2)\nfor n in y:\n if (n[0]**5 - n[1]**5) == x:\n print(n[0], n[1])\n break\n elif (n[1]**5 - n[0]**5) == x:\n print(n[1], n[0])\n break', 'import itertools\n\nx = int(input())\n\ny = itertools.combinations(range(-100,100), 2)\ni = 0\nfor n in y:\n if (n[0]**5 - n[1]**5) == x:\n print(n[0], n[1])\n break\n elif (n[1]**5 - n[0]**5) == x:\n print(n[1], n[0])\n break\n#print("miss")', 'import itertools\n \nx = int(input())\n \ny = itertools.combinations(range(-50,50), 2)\ni = 0\nfor n in y:\n if (n[0]**5 - n[1]**5) == x:\n print(n[0], n[1])\n break\n elif (n[1]**5 - n[0]**5) == x:\n print(n[1], n[0])\n break', 'x = int(input())\n\ny = itertools.combinations(range(-50,50), 2)\ni = 0\nfor n in y:\n if (n[0]**5 - n[1]**5) == x:\n print(n[0], n[1])\n break\n elif (n[1]**5 - n[0]**5) == x:\n print(n[1], n[0])\n break', 'import itertools\n\nx = int(input())\n\ny = itertools.combinations(range(-100,100), 2)\ni = 0\nfor n in y:\n if (n[0]**5 - n[1]**5) == x:\n print("{} {}".format(n[0], n[1]))\n break\n elif (n[1]**5 - n[0]**5) == x:\n print("{} {}".format(n[1], n[0]))\n break', 'a = input()\n\nif a == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s421740821', 's481424399', 's572556100', 's921404929', 's923771168', 's083794265']
[9076.0, 9168.0, 9192.0, 9192.0, 9132.0, 9024.0]
[23.0, 19.0, 24.0, 20.0, 21.0, 25.0]
[240, 263, 248, 228, 280, 67]
p02687
u159335277
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 is 'ABC':\n print('ARC')\neles:\n print('ABC')", "a = input()\nif a is 'ABC':\n print('ARC')\neles:\n print('ABC')", "a = input()\nif a == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s094900254', 's600036707', 's376994788']
[8828.0, 8884.0, 8976.0]
[19.0, 23.0, 20.0]
[62, 62, 62]
p02687
u161593842
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("AGC")\nelse:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s592391932', 's744291315']
[9024.0, 9088.0]
[28.0, 24.0]
[62, 62]
p02687
u161777729
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\tprint("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s660710301', 's201221164']
[9012.0, 9080.0]
[21.0, 20.0]
[60, 62]
p02687
u163829702
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(-150, 150):\n for B in range(-150, 150):\n if A**5 - B**5 == X:\n print(A, B)\n break\n else:\n continue\n break', 'S = input()\n\nif S == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Runtime Error', 'Accepted']
['s022362513', 's477895848']
[9104.0, 9092.0]
[20.0, 24.0]
[182, 67]
p02687
u165114979
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 = inpu()\nif s == 'ARC':\n print('ABC')\nelse:\n print('ARC')", "s = input()\nif s == 'ARC':\n print('ABC')\nelse:\n print('ARC')\n"]
['Runtime Error', 'Accepted']
['s787843381', 's428002775']
[8888.0, 8856.0]
[23.0, 24.0]
[61, 63]
p02687
u165368960
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']
['s087376175', 's660002774']
[8856.0, 9028.0]
[22.0, 24.0]
[62, 63]
p02687
u167681994
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')\n ", "a = input()\nif a == 'ABC':\n print('ARC')\nelif a == 'ARC':\n print('ABC')\n "]
['Runtime Error', 'Accepted']
['s292258721', 's930619077']
[8908.0, 8856.0]
[22.0, 28.0]
[64, 76]
p02687
u169350228
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\nimport math\ns = input()\nprint(s)\n', 'import numpy as np\nimport math\ns = input()\nif s == "ABC"\n print("ARC")\nelse:\n print("ABC")', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s205206413', 's707373817', 's438715884']
[26968.0, 8940.0, 8908.0]
[104.0, 20.0, 19.0]
[52, 96, 67]
p02687
u169601597
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 copy\nn,m = map(int,input().split())\nht = [x for x in input().split()]\nhl = {x + 1 : int(ht[x]) for x in range(len(ht))}\nmx = {h:0 for h in hl}\nfor i in range(m):\n l,r = map(int,input().split())\n mx[l] = max(mx[l],hl[r])\n mx[r] = max(mx[r],hl[l])\ncnt = 0\nfor h in hl:\n if mx[h] < hl[h]:\n cnt += 1\nprint(cnt)', 's = input()\nret = ""\nif s=="ARC":\n ret = "ABC"\nelif s=="ABC":\n ret = "ARC"\nprint(ret)']
['Runtime Error', 'Accepted']
['s194948089', 's287948907']
[9240.0, 8824.0]
[25.0, 20.0]
[332, 91]
p02687
u169696482
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']
['s914850927', 's726329014']
[9028.0, 8956.0]
[19.0, 21.0]
[60, 62]
p02687
u174203233
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 = int(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']
['s126202479', 's902205713', 's413256084']
[8944.0, 8948.0, 9088.0]
[24.0, 22.0, 20.0]
[61, 66, 62]
p02687
u178465329
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","ARC"][n=="ARC"])', 'n = input()\nprint(["ABC","ARC"][n=="ABC"])']
['Wrong Answer', 'Accepted']
['s135004705', 's385225186']
[9092.0, 9024.0]
[20.0, 23.0]
[42, 42]
p02687
u179304833
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('ABC')\nelse:\n print('ARC')", "s = input()\nif s=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s988471099', 's328266371']
[9092.0, 9092.0]
[22.0, 23.0]
[60, 60]
p02687
u179575101
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.
['t=input()\nif(t=="ABC"){\n\tprint("ARC")}\nelse{\n\tprint("ABC")}', 't=input()\nif(t=="ABC"):\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s072462329', 's273451886']
[8852.0, 8916.0]
[20.0, 20.0]
[59, 59]
p02687
u181159654
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")\nif s == "ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s743316068', 's163496192']
[8972.0, 9020.0]
[22.0, 21.0]
[64, 76]
p02687
u181668771
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 main():\n from builtins import int, map, list, print\n import sys\n sys.setrecursionlimit(10 ** 6)\n\n input = sys.stdin.readline\n input_list = (lambda: input().rstrip().split())\n input_number = (lambda: int(input()))\n input_number_list = (lambda: list(map(int, input_list())))\n\n S = input()\n print(['ABC','ARC'][S=='ABC'])\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n from builtins import int, map, list, print\n import sys\n sys.setrecursionlimit(10 ** 6)\n S = input()\n print(['ABC', 'ARC'][S == 'ABC'])\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s833348729', 's719173165']
[9052.0, 9084.0]
[23.0, 21.0]
[390, 203]
p02687
u182178426
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']
['s686060790', 's661687846']
[8940.0, 9088.0]
[23.0, 21.0]
[66, 67]
p02687
u185297444
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 print('ARC')\nelse S == 'ARC':\n print('ABC')\n", "\nS = input('=')\n\nif S == 'ABC':\n print('ARC')\nelse S == 'ARC':\n print('ABC')\n", "\nS = input('=')\n\nif S == 'ABC':\n print('ARC')\nelif S== 'ARC':\n print('ABC')\nelse:\n print(' ')\n", "S = ''\n\nif S == 'ABC':\n print('ARC')\nelse S == 'ARC':\n print('ABC')\n", "\nvar S = input('先週開催されたコンテストは?')\n\nif S == 'ABC':\n print('ARC')\nelif S == 'ARC':\n print('ABC')\n", "\nif S == 'ABC':\n print('ARC')\nelif S== 'ARC':\n print('ABC')\nelse:\n print(' ')\n", "\nS = input('=')\n\nif S == 'ABC':\n print('ARC')\nelif S== 'ARC':\n print('ABC')\nelse:\n print(' ')\n", 's = input()\na = ["ABC", "ARC"]\nprint(a[(a.index(s)+1)%len(a)])']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s073134314', 's117840658', 's259059112', 's278273533', 's285628539', 's534269126', 's781124441', 's657568200']
[8952.0, 8812.0, 9032.0, 8852.0, 8936.0, 9076.0, 9056.0, 9016.0]
[21.0, 22.0, 22.0, 20.0, 21.0, 26.0, 24.0, 23.0]
[66, 83, 104, 74, 124, 87, 103, 62]
p02687
u187621751
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 = 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', 'Runtime Error', 'Accepted']
['s626925739', 's994489639', 's438665165']
[8944.0, 8952.0, 9024.0]
[21.0, 19.0, 24.0]
[71, 67, 68]
p02687
u189326411
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 "ABC")', 's = input()\nprint("ABC" if s=="ARC" else "ARC")']
['Wrong Answer', 'Accepted']
['s542927722', 's284806730']
[9100.0, 9008.0]
[23.0, 25.0]
[47, 47]
p02687
u190866453
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)', 'S = input()\nif S == "ABC":\n print(\'ARC\')\nelse:\n print(\'ABC\')']
['Runtime Error', 'Runtime Error', 'Accepted']
['s363976629', 's568955114', 's171401651']
[8928.0, 9096.0, 8936.0]
[21.0, 20.0, 26.0]
[60, 62, 66]
p02687
u192221858
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")', 's = input()\nif s == "ARC":\n print("ABC")\nelse :\n print("ARC")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s225118959', 's589999725', 's066725599']
[9028.0, 8928.0, 9028.0]
[25.0, 20.0, 20.0]
[61, 61, 61]
p02687
u192797994
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')\nprint('ABC')", 'S = input()\nprint(S)', "S = input()\nif(S == 'ABC'):\n print('ARC')\nelse:\n print('ABC')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s032926171', 's312711146', 's226957716']
[9068.0, 9004.0, 9072.0]
[19.0, 23.0, 20.0]
[56, 20, 64]
p02687
u193880030
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] == 'R':\n print('ARC')\nelse:\n print('ABC')", "S = input()\n\nif S[1] == 'R':\n print('ABC')\nelse:\n print('ARC')"]
['Wrong Answer', 'Accepted']
['s214024928', 's712743562']
[9092.0, 9036.0]
[22.0, 21.0]
[68, 68]
p02687
u193927973
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']
['s176563336', 's328787680']
[9012.0, 8956.0]
[23.0, 23.0]
[57, 58]
p02687
u194472175
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')\n", "S = input()\nif S=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s031386056', 's389891403']
[9044.0, 8904.0]
[21.0, 20.0]
[65, 64]
p02687
u194696430
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 == "ARC":\n print("ABC")\nelse:\n print("ABC")', 'string = input()\nif string == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Wrong Answer', 'Accepted']
['s364805871', 's460376379']
[8992.0, 9064.0]
[25.0, 20.0]
[72, 72]
p02687
u199356004
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\nprint("ABC" if S=="ARC" else "ARC")\n', 'N=input()\n\nprint("ABC" if N=="ARC" else "ARC")\n']
['Runtime Error', 'Accepted']
['s554311054', 's218907112']
[8860.0, 8912.0]
[21.0, 19.0]
[47, 47]
p02687
u199941968
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())\nhigh_list=list(map(int,input().split()))\npathlist=[]\nfor i in range(M):\n pathlist.append(list(map(int,input().split())))\nwaylist=[0]*N\nans=0\n\nfor n in range(1,N+1):\n for m in pathlist:\n if(n in m):\n if(m[0]==n):\n if(high_list[n-1]>high_list[m[1]-1]):\n ans=ans+1\n else:\n if(high_list[n-1]>high_list[m[0]-1]):\n ans=ans+1\nprint(ans)\n\n\n', 'N,M=map(int,input().split())\nhigh_list=list(map(int,input().split()))\npathlist=[]\nfor i in range(M):\n pathlist.append(list(map(int,input().split())))\nwaylist=[0]*N\n\nfor n in range(1,N+1):\n for m in pathlist:\n if(n in m):\n if(m[0]==n):\n if(waylist[n-1],high_list[m[1]-1]):\n waylist[n-1]=high_list[m[1]-1]\n else:\n if( waylist[n-1]<high_list[m[0]-1]):\n waylist[n-1]=high_list[m[0]-1]\n\nanswer=0\nfor n in range(N):\n if(waylist[n]<high_list[n]):\n answer=answer+1\n\nprint(answer)\n\n\n', 'import numpy as np\nN,M=map(int,input().split())\nhigh_list=list(map(int,input().split()))\npathlist=[]\nfor i in range(M):\n pathlist.append(list(map(int,input().split())))\nwaylist=np.array([[0]*N]*N)\n\nfor n in range(1,N+1):\n for m in pathlist:\n if(n in m):\n if(m[0]==n):\n waylist[n-1][m[1]-1]=high_list[m[1]-1]\n else:\n waylist[n-1][m[0]-1]=high_list[m[0]-1]\n\nanswer=0\nfor n in range(N):\n if(waylist[n].max()<high_list[n]):\n answer=answer+1\n\nprint(answer)\n\n\n', "x=input()\nprint('ARC' if x == 'ABC' else 'ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s612913462', 's746763419', 's890755904', 's468880650']
[9116.0, 9196.0, 27176.0, 8988.0]
[22.0, 21.0, 104.0, 24.0]
[601, 724, 667, 47]
p02687
u201544433
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 = str(input())\nif a=="ABC":\n print("AGC")\nelif a=="AGC":\n print("ABC")', 'a = str(input())\nif a=="ABC":\n print("ARC")\nelif a=="ARC":\n print("ABC")']
['Wrong Answer', 'Accepted']
['s840309950', 's244502771']
[8960.0, 9024.0]
[29.0, 27.0]
[78, 78]
p02687
u201878104
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 = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s717982569', 's431287463']
[9168.0, 9024.0]
[25.0, 21.0]
[76, 66]
p02687
u201986772
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 =map(int,input().split())\nh_lis=np.array(list(map(int,input().split())))\nway_lis=[list(map(int,input().split())) for _ in range(M)]\n\ntes=0\nfor i in range(N):\n nears=[]\n for way in way_lis:\n if i+1 in way:\n nears.extend(way)\n for j,ne in enumerate(nears):\n if j==0:\n h=max(h_lis[ne[0]-1],h_lis[ne[1]-1])\n z=h\n else:\n k=z\n h=max(h_lis[ne[0]-1],h_lis[ne[1]-1])\n z=max(k,h)\n if z==h_lis[i]:\n tes+=1\nprint(tes)', 'S=input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s920247756', 's260827435']
[27152.0, 9024.0]
[109.0, 22.0]
[534, 58]
p02687
u208464243
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']
['s918117752', 's541060231']
[9008.0, 9036.0]
[19.0, 20.0]
[65, 66]
p02687
u218487926
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']
['s810288148', 's133405251']
[8876.0, 9016.0]
[20.0, 22.0]
[61, 63]
p02687
u219937318
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 \n', 'S=input()\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")\n \n']
['Runtime Error', 'Accepted']
['s651314262', 's205648118']
[8792.0, 9000.0]
[23.0, 21.0]
[64, 65]
p02687
u220085075
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']
['s601104829', 's191065328']
[9012.0, 8956.0]
[23.0, 19.0]
[51, 63]
p02687
u221034304
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 if s=='ARC':\n prinr('ABC')", "s=input()\nif s =='ABC' :print('ARC')\nelse if s=='ARC':print('ABC')\n", "s=input()\nif s =='ABC' :print('ARC')\nelif s=='ARC':print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s063734842', 's114121041', 's705451231']
[8952.0, 8868.0, 8896.0]
[23.0, 20.0, 21.0]
[72, 67, 64]
p02687
u221149873
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']
['s856530815', 's551154049']
[8956.0, 8956.0]
[20.0, 21.0]
[64, 64]
p02687
u227550284
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())\nC= [i**5 for i in range(119)]\n\na = 0\nb = 0\n\nfor a in range(len(C)):\n for b in range(len(C)):\n if C[a] + C[b] == X:\n print(a, -b)\n exit(0)\n elif C[a] - C[b] == X:\n print(a, b)\n exit(0)\n', "import sys\ninput = sys.stdin.readline\n\ndef main():\n s = input().rstrip()\n\n if s == 'ABC':\n print('ARC')\n else:\n print('ABC')\n\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Accepted']
['s625880562', 's273555906']
[9188.0, 8880.0]
[22.0, 23.0]
[262, 188]
p02687
u229518917
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())\nY=int(X**(0.2))\nfor i in range(Y,-Y,-1):\n for t in (-Y//2,Y,1):\n if i**5-t**5==X:\n S=i\n Z=t\n break\nprint(S,Z)', 'X=int(input())\nY=int(X**(0.2))\nfor i in range(Y,-Y,-1):\n for t in (-Y//2,Y,1):\n if i**5-t**5==X:\n S=i\n Z=t\n break\n else:\n continue\nprint(S,Z)', "S=input()\nprint('ABC' if S=='ARC' else 'ARC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s051242535', 's581248513', 's675370685']
[9052.0, 8936.0, 9028.0]
[20.0, 26.0, 20.0]
[167, 202, 45]
p02687
u230621983
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 d in range(1, int(x**0.5)+1):\n if x % d == 0:\n for a in range(1,d+1):\n b = a - d\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')"]
['Runtime Error', 'Accepted']
['s227934630', 's840748318']
[9180.0, 9024.0]
[22.0, 18.0]
[207, 67]
p02687
u233107306
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\nans = "ABC"\nif s == "ABC":\n print("ARC")\n\nprint(ans)\n', 's = input()\n\nans = "ABC"\nif s == "ABC":\n ans = "ARC"\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s562064905', 's689469323']
[9016.0, 9020.0]
[22.0, 20.0]
[69, 68]
p02687
u236536206
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 x=="ABC":\n print("ARC")\nelse:\n print("ABC")', 's=input()\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s571860943', 's130627391']
[9092.0, 8964.0]
[20.0, 23.0]
[62, 62]
p02687
u238084414
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']
['s653247964', 's510862566']
[8940.0, 9024.0]
[23.0, 20.0]
[62, 63]
p02687
u239048001
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 contest='ABC':\n print('ARC')\nelif contest='ARC':\n print('ABC')\nelse:\n print('Error')", "contest=input()\nif contest=='ABC':\n print('ARC')\nelif contest=='ARC':\n print('ABC')\nelse:\n print('Error')\n"]
['Runtime Error', 'Accepted']
['s652714576', 's997976354']
[8868.0, 9096.0]
[23.0, 24.0]
[106, 109]
p02687
u239917977
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 main():\n import sys\n input = sys.stdin.readline\n\n S = input()\n if S == "ABC":\n print("ARC")\n else:\n print("ABC")\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n # import sys\n # input = sys.stdin.readline\n\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', 'Accepted']
['s644705719', 's416942667']
[8928.0, 8928.0]
[22.0, 20.0]
[186, 190]
p02687
u243312682
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 main():\n s = input()\n if s == 'ABC':\n print('ARC')\n else:\n print('ABC')\nif __name__ == '__main__':\n main(", "def main():\n s = input()\n if s == 'ABC':\n print('ARC')\n else:\n print('ABC')\nif __name__ == '__main__':\n main()"]
['Runtime Error', 'Accepted']
['s043970640', 's947875156']
[8992.0, 9096.0]
[23.0, 26.0]
[135, 136]
p02687
u244434589
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')", "S =input()\nif S[1] =='B':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s522495178', 's320193584']
[9032.0, 9120.0]
[29.0, 25.0]
[61, 65]
p02687
u247680229
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=list(map(int, input().split()))\nH=list(map(int, input().split()))\nA=[list(map(int, input().split())) for _ in range(M)]\n\ndp=[True]*N\na=[0]*N\n\nfor i in A:\n if H[i[0]-1]<H[i[1]-1] and a[i[1]-1]==0:\n dp[i[1]-1]=True\n dp[i[0]-1]=False\n a[i[0]-1]+=1\n elif H[i[0]-1]<H[i[1]-1] and a[i[1]-1]!=0:\n a[i[0]-1]+=1\n continue\n elif H[i[0]-1]>H[i[1]-1] and a[i[0]-1]==0:\n dp[i[1]-1]=False\n dp[i[0]-1]=True\n a[i[1]-1]+=1\n elif H[i[0]-1]>H[i[1]-1] and a[i[0]-1]!=0:\n a[i[1]-1]+=1\n continue\n elif H[i[0]-1]==H[i[1]-1]:\n dp[i[1]-1]=False\n dp[i[0]-1]=False\n \n\nprint(dp.count(True))', 'S=input()\n\nif S=="ABC":\n print("ARC")\n \nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s504033349', 's273413370']
[9244.0, 9024.0]
[19.0, 23.0]
[608, 62]
p02687
u250554058
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 == 'ARC'):\n print('ABC')\nelse:\n print('ABC')\n", "n = input()\n\nif(n == 'ARC'):\n print('ABC')\nelif(n == 'ABC'):\n print('ARC')\n"]
['Wrong Answer', 'Accepted']
['s032418816', 's199391360']
[8948.0, 8952.0]
[19.0, 24.0]
[65, 77]
p02687
u252828980
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")\nelif s = "ARC":\n print("ABC")', 's = input()\n\nif s == "ABC":\n print("ARC")\nelif s == "ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s689674647', 's585766327']
[9012.0, 8956.0]
[23.0, 22.0]
[77, 78]
p02687
u252964975
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())', "print(['ABC','ARC'][input()=='ABC'])"]
['Wrong Answer', 'Accepted']
['s439619766', 's962291406']
[9024.0, 8960.0]
[21.0, 20.0]
[14, 36]
p02687
u257750994
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 print('ARC')\nelif a == 'ARC':\n print('ABC')", "\n\na = input()\nif a == 'ABC':\n print('ARC')\nelif a == 'ARC':\n print('ABC')\n\n\n\n\n\n\n\n\n\n\n\n\n\n"]
['Runtime Error', 'Accepted']
['s923104780', 's429367640']
[8904.0, 9084.0]
[20.0, 22.0]
[76, 135]
p02687
u259755734
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 == 'ABC' else 'ABC')\n", "S = input()\nprint('ARC`' if S == 'ABC' else 'ARC')\n", "S = input()\nprint('ARC' if S == 'ABC' else 'ABC')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s604941682', 's748818905', 's422141763']
[8996.0, 8844.0, 9044.0]
[20.0, 20.0, 19.0]
[51, 51, 50]
p02687
u260053458
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 = [int(i) for i in input().split()]\ndata = [list(map(int, input().split())) for _ in range(m)]\n\nten_set =set(np.array(range(1,n+1)))\nans_set =set([])\nexist_set = set(np.array(range(1,n+1)))\nfor i in range(m):\n if h_list[data[i][0]-1] < h_list[data[i][1]-1]:\n ans_set.add(data[i][1])\n if data[i][0] in ans_set:\n ans_set.remove(data[i][0])\n elif h_list[data[i][0]-1] > h_list[data[i][1]-1]:\n \n ans_set.add(data[i][0])\n if data[i][1] in ans_set:\n ans_set.remove(data[i][1])\n elif h_list[data[i][0]-1] == h_list[data[i][1]-1]:\n if data[i][0] in ans_set:\n ans_set.remove(data[i][1])\n if data[i][1] in ans_set:\n ans_set.remove(data[i][1])\n exist_set.add(data[i][0])\n exist_set.add(data[i][1])\n\nsa_set = ten_set − exist_set\nans_set = ans_set.union(sa_set)\nprint(len(ans_set))', "s = input()\nif s == 'ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s004643309', 's926680930']
[9052.0, 9024.0]
[20.0, 22.0]
[916, 66]
p02687
u262244504
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.
['var str = readLine()!\n\nif str=="ABC"{\n print("ARC")\n}else{\n print("ABC")\n}', "s=input()\n\nif s=='ABC':\n ans='ARC'\nelse:\n ans='ABC'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s080735399', 's144880455']
[8816.0, 9084.0]
[19.0, 21.0]
[76, 68]
p02687
u262801165
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\nimport collections\nfrom collections import deque\nfrom functools import reduce\nimport heapq\n#x = int(input())\n\ns = input()\n#a = list(map(int, sys.stdin.readline().split()))\n\nprint(s)\n', 'import sys\nimport math\nimport collections\nfrom collections import deque\nfrom functools import reduce\nimport heapq\n#x = int(input())\n\ns = input()\n#a = list(map(int, sys.stdin.readline().split()))\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Wrong Answer', 'Accepted']
['s328726571', 's751100005']
[9436.0, 9504.0]
[24.0, 23.0]
[254, 300]
p02687
u264988409
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']
['s124757324', 's988870887']
[9016.0, 9032.0]
[22.0, 20.0]
[62, 64]
p02687
u266294380
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')\n", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s397895328', 's005389818']
[9024.0, 9028.0]
[25.0, 23.0]
[67, 66]
p02687
u266795424
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[1]=='B' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelif:A[1]=='R':\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "a = input()\nif a=='ABC' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelif a == 'ARC':\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "A = input()\nif A[1]=='ABC' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelse:\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "a=input()\nif a[1] =='B' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelif a[1] == 'R':\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "A = input()\nif A[1]=='B' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelse:\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "A = list(input())\nif A[1]=='B' :\n print('先週開催されたコンテストはABCなので、今週はARCが開催されます。')\nelse:\n print('先週開催されたコンテストはARCなので、今週はABCが開催されます。')", "a=input()\nif a[1] =='B' :\n print('ARC')\nelif a[1] == 'R':\n print('ABC')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s303176812', 's311480310', 's329128759', 's335137845', 's546846834', 's993015179', 's065656623']
[9016.0, 9084.0, 9024.0, 9096.0, 9028.0, 9024.0, 9100.0]
[21.0, 21.0, 23.0, 19.0, 21.0, 20.0, 19.0]
[246, 246, 238, 247, 236, 242, 73]
p02687
u268268624
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"\nprint("ARC")\nelse\nprint("ABC")', 'S = str(input())\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")', 'S = input()\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")', 'if S = "ARC":\n print("ABC")\nelse:\n prnit("ABC")', 'S = str(input())\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s008040474', 's348125328', 's639964729', 's769882477', 's860580999']
[9012.0, 8948.0, 8968.0, 8832.0, 9028.0]
[19.0, 23.0, 20.0, 23.0, 22.0]
[43, 66, 61, 49, 67]
p02687
u268314634
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\n\nif s=='abc':\n print('arc')\n\nif s=='arc':\n print('abc')\n ", 's=input()\n\n\nprint(s)', "\n\ns=input()\n\nif s=='ABC':\n print('ARC')\n\nif s=='ARC':\n print('ABC')\n\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s681048200', 's692500512', 's131330646']
[8988.0, 9072.0, 8896.0]
[29.0, 31.0, 28.0]
[78, 20, 75]
p02687
u268822556
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 = int(input())\n \na = [i**5 for i in range(120)]\nfor i in range(119):\n for j in range(i+1,119):\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: continue\n break\n', 'print("ABC" if input() == "ARC" else "ARC")']
['Runtime Error', 'Accepted']
['s570126332', 's632319327']
[9172.0, 9020.0]
[24.0, 23.0]
[266, 43]
p02687
u274615057
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.
['\ndef main():\n s = input()\n if s = \'ABC\':\n print(\'ARC\')\n else:\n print(\'ARC\')\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']
['Runtime Error', 'Accepted']
['s034966660', 's379219040']
[9004.0, 9084.0]
[24.0, 25.0]
[139, 140]
p02687
u274635633
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='ABC' else 'ABC')", "s=input()\nprint('ARC' if s=='ABC' else 'ABC')\n"]
['Runtime Error', 'Accepted']
['s089858529', 's778095905']
[8880.0, 9016.0]
[24.0, 20.0]
[44, 46]
p02687
u277104886
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 == 'ARC':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s280581258', 's831579956']
[8888.0, 8840.0]
[25.0, 20.0]
[61, 66]
p02687
u277429554
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\n\ns = input()\n\nif s == "ABC":\n print("ARC")\nelif s == "ARC"\n print("ABC")', '# 166 A\n\ns = input()\n\nif s == "ABC":\n print("ARC")\nelif s == "ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s489580109', 's486045948']
[8948.0, 9084.0]
[26.0, 25.0]
[86, 87]
p02687
u278143034
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 =\u3000input()\n\n\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")', '\nS =\u3000input()\n \n\nif S == "ABC":\n print("ARC")\nelif S == "ARC":\n print("ABC")', '\nS =\u3000input()\n \n\nif S == "ABC":\n print("ARC")\nelif\u3000S == "ARC":\n print("ABC")', '\nS =\u3000input()\n \n\nif S == "ABC":\n print("ARC")\nelif S == "ARC":\n print("ABC")\nelse:\n print("入力内容が正しくありません。")', '\nS = input()\n\n\nif S == "ABC":\n print("ARC")\nelif S == "ARC":\n print("ABC")\nelse:\n print("入力内容が正しくありません。")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s155704627', 's391081849', 's911158192', 's921902064', 's471610197']
[9004.0, 9000.0, 8900.0, 8892.0, 8932.0]
[22.0, 20.0, 21.0, 26.0, 30.0]
[155, 171, 169, 233, 230]
p02687
u278353498
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()))\nP = [0] * N\nfor i in range(M) :\n q = list(map(int,input().split()))\n p = P[q[0]-1]\n h = H[q[1]-1]\n if p < h :\n P[q[0]-1] = H[q[1]-1]\n if p > h :\n P[q[1]-1] = H[q[0]-1]\n\nR = 0\nfor i in range(N) :\n if H[i] > P[i] :\n R += 1\nprint(R)', "S = input()\nif S == 'ABC' :\n Next = 'ARC'\nelse :\n Next = 'ABC'\nprint Next", 'N,M = map(int,input().split())\nH = list(map(int,input().split()))\nP = [0] * N\nfor i in range(M) :\n q = list(map(int,input().split()))\n p = P[q[0]-1]\n h = H[q[1]-1]\n if p < h :\n P[q[0]-1] = H[q[1]-1]\n if p > h :\n P[q[1]-1] = H[q[0]-1]\n\nR = 0\nfor i in range(N) :\n if H[i] > P[i] :\n R += 1\nprint(R)', "S = input()\nif S == 'ABC' :\n Next = 'ARC'\nelse :\n Next = 'ABC'\nprint (Next)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s177972283', 's586431600', 's797548604', 's562030491']
[9148.0, 8868.0, 9208.0, 9016.0]
[24.0, 22.0, 20.0, 21.0]
[334, 79, 334, 81]
p02687
u279464152
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 ABC:\n print("ARC")\nelse:\n print("ABC")', 'S=input()\nif int(S)=ABC:\n print("ARC")\nelse:\n print("ABC")\n', '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")', 'S=input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s311172396', 's523564843', 's632697129', 's709516000', 's371712894']
[9020.0, 9012.0, 8944.0, 8876.0, 8936.0]
[22.0, 21.0, 22.0, 25.0, 24.0]
[47, 65, 60, 59, 62]
p02687
u282657760
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()\nans = 'ABC'\nif S = 'ABC':\n ans = 'ARC'\nprint(ans)", "S = input()\nans = 'ABC'\nif S == 'ABC':\n ans = 'ARC'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s723123354', 's645941996']
[8948.0, 8908.0]
[23.0, 19.0]
[62, 63]
p02687
u283929013
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 = ["ABC","ARC"]\nprint(a[input() == "ARC"])', 'a = ["ABC","ARC"]\nprint(a[input() == "ABC"])\n']
['Wrong Answer', 'Accepted']
['s110040892', 's543743652']
[9072.0, 8980.0]
[26.0, 27.0]
[44, 45]
p02687
u285022453
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', "#!/usr/bin/env python3\ns = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Wrong Answer', 'Accepted']
['s172199236', 's792544558']
[9000.0, 8960.0]
[24.0, 25.0]
[23, 90]
p02687
u287660527
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 if s == ARC:\n print('ABC')", "s = str(input())\n\nif s == 'ABC':\n print('ARC')\nelse:\n if s == 'ARC':\n print('ABC')"]
['Runtime Error', 'Accepted']
['s151869529', 's520295481']
[8940.0, 8980.0]
[21.0, 26.0]
[83, 87]
p02687
u289288647
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 math\nimport sys\n\nX = int(input())\n \nfor i in range(-118, 119):\n for j in range(-119, 118):\n if math.pow(i, 5) - math.pow(j, 5) == X:\n print("%d %d" % (i, j))\n sys.exit()\n', "S = input()\n \nif S == 'ABC':\n print(ARC)\nelse:\n print(ABC)", 'import math\nimport sys\n\nX = int(input())\n \nfor i in range(1000):\n for j in range(-100, 1000):\n if math.pow(i, 5) - math.pow(j, 5) == X:\n print("%d %d" % (i, j))\n sys.exit()\n', 'import math\nimport sys\n\nX = int(input())\n\nfor i in range(-100, 1000):\n for j in range(-100, 1000):\n if\tmath.pow(i, 5) - math.pow(j, 5)\t== X:\n print("%d %d" % (i, j))\n sys.exit()\n', "S = input()\n \nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s014644785', 's496824185', 's703761992', 's704538962', 's698655789']
[9048.0, 8912.0, 9032.0, 9200.0, 8896.0]
[23.0, 22.0, 22.0, 18.0, 22.0]
[191, 60, 187, 192, 64]
p02687
u292703814
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.
["in = input()\nif in == 'ABC':\n print('ARC')\nelse:\n print('ABC')", "in_ = input()\nif in_ == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s728257091', 's202654717']
[8940.0, 9020.0]
[22.0, 23.0]
[64, 66]
p02687
u295656477
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 t = 'ABC' if s == 'ARC' else 'ARC'\n print(t)", "if __name__=='__main__':\n s = input()\n t = 'ABC' if s == 'ARC' else 'ARC'\n print(t)"]
['Runtime Error', 'Accepted']
['s554756555', 's909194901']
[8940.0, 8960.0]
[24.0, 24.0]
[67, 92]
p02687
u296082800
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=int(input())\ndef contest(N):\n if N=="ABC":\n return ARC\n else:\n return ABC\ncontest(N)', 'N=input()\ndef contest(N):\n if N=="ABC":\n return "ARC"\n else:\n return "ABC"\ncontest(N)\n\n', 'N=input()\ndef contest(N):\n if N=="ABC":\n return "ARC"\n else:\n return "ABC"\nprint(contest(N))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s058679545', 's539110225', 's838222339']
[9008.0, 8952.0, 8920.0]
[21.0, 20.0, 25.0]
[94, 95, 100]
p02687
u301317743
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 == input():\n print('ARC')\nelif a == 'ARC':\n print('ABC')", "a = input()\nif a = input():\n print('ARC')\nelif a == 'ARC':\n print('ABC')\n", "a = input()\n print('ARC')\nelif a == 'ARC':\n print('ABC')", "a = input()\n\nif a == 'ABC':\n print('ARC')\nelif a == 'ARC':\n print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s013382292', 's431599210', 's438099905', 's586437339']
[9088.0, 9012.0, 9008.0, 9020.0]
[21.0, 22.0, 24.0, 22.0]
[79, 79, 62, 79]