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
u701017915
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 = 0\nfor a in range(-118, 119):\n for b in range(-118, 119):\n Y = a ** 5 - b ** 5\n if Y == X:\n A = a\n B = b\n print(A, B)\n c = 1\n break\n if c ==1:\n break', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s371718867', 's505074406']
[9064.0, 8928.0]
[20.0, 21.0]
[209, 62]
p02687
u705418271
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['n,k=map(int,input().split())\nnum=[]\n\nfor i in range(k):\n d=int(input())\n num+=list(map(int,input().split()))\n\nQ=list(set(num))\nprint(n-len(Q))\n', 'n,k = map(int, input().split())\nnum = []\n\nfor i in range(k):\n d = int(input())\n num += list(map(int, input().split()))\n\nQ = list(set(num))\nprint(n-len(Q))\n', 'n,k=map(int,input().split())\nnum=[]\n\nfor i in range(k):\n d=int(input())\n num+=list(map(int,input().split()))\n\nQ=list( set (num))\nprint(n-len(Q))', 'S=input()\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")\n ']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s709583496', 's827935853', 's903582627', 's520810260']
[9048.0, 9092.0, 9180.0, 8888.0]
[24.0, 24.0, 20.0, 29.0]
[145, 157, 146, 61]
p02687
u706330549
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ns = readline()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ns = read().rstrip().decode()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Wrong Answer', 'Accepted']
['s106401032', 's220919488']
[9116.0, 8956.0]
[23.0, 21.0]
[188, 202]
p02687
u706433263
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 i in range (200):\n for j in range (-200,200):\n if i**5-j**5==x:\n print(i,j)\n exit()', "s=input()\n\nif s=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s897873995', 's638448443']
[9168.0, 8976.0]
[21.0, 23.0]
[117, 59]
p02687
u706908631
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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())', 'word = input()\n\nif word == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s288841326', 's034919691']
[9024.0, 8916.0]
[23.0, 22.0]
[14, 69]
p02687
u711539583
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 print("ABC")\nelse:\n print("ABC")', 's = input()\nif s[1] == "R":\n print("ABC")\nelse:\n print("ARC")\n']
['Wrong Answer', 'Accepted']
['s613380821', 's445478620']
[9028.0, 8944.0]
[27.0, 22.0]
[67, 68]
p02687
u713165870
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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', 'if __name__ = "__main__":\n S = input() \n if S == "ABC":\n print("ARC")\n elif S == "ARC":\n print("ABC")\n ', 'if __name__ = "__main__":\n S = input() \n if S == "ABC":\n print "ARC"\n elif S == "ARC":\n print "ABC"\n ', 'if __name__ == "__main__":\n S = input() \n if S == "ABC":\n print("ARC")\n elif S == "ARC":\n print("ABC")\n ']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s472871158', 's817858944', 's832361222', 's036211789']
[8900.0, 8860.0, 8944.0, 9016.0]
[23.0, 19.0, 20.0, 23.0]
[2, 152, 150, 153]
p02687
u716660050
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S=input()\nprint('ABC' if S='ARC' else 'ARC')", "S=input()\nprint('ABC' if S=='ARC' else 'ARC')"]
['Runtime Error', 'Accepted']
['s577918194', 's415313379']
[8832.0, 9024.0]
[25.0, 23.0]
[44, 45]
p02687
u718765445
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N, K = map(int, input().split())\nS = [input().split() for _ in range(N+K-1)]\nnew_list = []\nfor i in range(1,(len(S)//2)+1):\n for j in S[i*2]:\n new_list.append(j)\nnew_list = set(new_list)\nprint(N - len(new_list))\n', 'S = str(input())\nprint("ARC" if S == "ABC" else "ABC" if S == "ARC" else "")']
['Runtime Error', 'Accepted']
['s068883536', 's320481296']
[9176.0, 9092.0]
[19.0, 23.0]
[222, 76]
p02687
u719840207
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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(100):\n k=x-i**5\n a=k**0.2\n if type(a)==complex:\n continue\n if a.is_integer():\n break\nprint(-i,int(a))', 's=input()\nif s=="ABC":\n print("ARC")\nelse :\n print("ABC")']
['Runtime Error', 'Accepted']
['s961266899', 's202642433']
[9172.0, 8956.0]
[22.0, 19.0]
[157, 63]
p02687
u720314082
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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']
['s429025461', 's984438233', 's188184375']
[8948.0, 8940.0, 9084.0]
[25.0, 25.0, 24.0]
[71, 76, 78]
p02687
u721403425
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()\nl=list(map(int,input().split()))\nx=0\nc=list()\nfor i in range(1,len(l)+1):\n a=i+l[i-1]\n c.append(a)\n b=i-l[i-1]\n if b in c:\n x=x+c.count(b)\nprint(x)\n\n', 'n=input()\nl=list(map(int,input().split()))\nx=0\nc=list()\nfor i in range(1,n+1):\n a=i+l[i-1]\n c.append(a)\n b=i-l[i-1]\n if b in c:\n x=x+c.count(b)\nprint(x)\n\n', "s=input()\nif s== 'ABC':\n print('ARC')\nif s=='ARC':\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s307302858', 's500208260', 's990534813']
[9056.0, 8832.0, 8956.0]
[23.0, 20.0, 20.0]
[166, 161, 66]
p02687
u722122988
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["p=input()\nif p='ABC':\n print('ARC')\nelse:\n print('ABC')", "p=input()\nif p=='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s975987942', 's804337112']
[9008.0, 9084.0]
[19.0, 20.0]
[57, 58]
p02687
u723790132
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 s[1] == 'R' else 'ARC')", "print('ABC' if s[1] == 'R' else 'ARC')", 'print("ABC" if s[1] == "R" else "ARC")', "print('ABC' if input()[1] == 'R' else 'ARC')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s038945764', 's338328963', 's852628053', 's629465127']
[9084.0, 8956.0, 9016.0, 9104.0]
[21.0, 22.0, 18.0, 19.0]
[38, 38, 38, 45]
p02687
u725239076
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\ns = sys.stdin.readline()\nif (s== 'ABC'):\n sys.stdout('ARC')\nelse:\n sys.stdout('ABC')", "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', 'Runtime Error', 'Accepted']
['s341813983', 's467745629', 's060992772']
[9096.0, 8948.0, 8908.0]
[23.0, 23.0, 21.0]
[97, 72, 66]
p02687
u726984689
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 = list(map(int,input().split()))\nA=np.zeros((n,n))\nfor i in range(m):\n a,b=input().split()\n A[int(a)-1][int(b)-1]=1\n A[int(b)-1][int(a)-1]=1\ncount = 0 \nfor i in range(n):\n best = H[i]\n for j in range(n):\n if A[i][j]==1 and best <= H[j]:\n best = H[j]\n if best == H[i]:\n count += 1\nprint(count) ', "s= input()\nif s == 'ABC':\n print('ARC')\nelif s == 'ARC':\n print('ABC')"]
['Runtime Error', 'Accepted']
['s913161831', 's863775786']
[27052.0, 9088.0]
[101.0, 20.0]
[376, 72]
p02687
u727072969
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")\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")\nif S == "ARC":\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s038301461', 's822554113', 's380480545']
[8824.0, 9008.0, 9016.0]
[20.0, 25.0, 19.0]
[74, 76, 77]
p02687
u728248843
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\u3000str=="ABC":\n print("ARC")\nelif str=="ARC":\n print("ABC")\n', 'val = input()\nif val=="ABC":\n print("ARC")\nelif val=="ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s570540635', 's441160737']
[8944.0, 8960.0]
[24.0, 22.0]
[79, 75]
p02687
u730811276
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 A():\n S = input()\n if S == 'ARC':\n out = 'ABC'\n else:\n out = 'ARC'\n return out\nA()", "def A(S):\n if S == 'ARC':\n out = 'ABC'\n else:\n out = 'ARC'\n return out\nA('ABC')", "def A():\n s = input()\n if s == 'ARC':\n print('ABC')\n else:\n print('ARC')\nA()"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s167690346', 's612230672', 's220205814']
[9108.0, 8972.0, 8956.0]
[22.0, 26.0, 21.0]
[112, 102, 99]
p02687
u734423776
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = str(input())\nif S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = str(input())\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s476860534', 's696272345']
[9012.0, 9080.0]
[24.0, 23.0]
[66, 72]
p02687
u736443076
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n s = list(input())\n a = ('ABC')\n if s == a:\n print('ARC')\n else:\n print('ABC')\n \n\nif __name__ == '__main__':\n solve()\n", "import sys\n\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n s = list(input())\n a = 'ABC'\n if s != a:\n print('ABC')\n exit()\n else:\n print('ARC')\n \n\nif __name__ == '__main__':\n solve()\n", "import sys\n\nsys.setrecursionlimit(10 ** 7)\nrl = sys.stdin.readline\n\n\ndef solve():\n s = list(input())\n a = ('ABC')\n if s == a:\n print('ARC')\n exit()\n else:\n print('ABC')\n \n\nif __name__ == '__main__':\n solve()\n", 'def solve():\n S = input()\n if S == "ABC":\n print("ARC")\n exit()\n else:\n print("ABC")\n\n\nif __name__ == \'__main__\':\n solve()\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s001868591', 's576991105', 's854060303', 's577453232']
[9032.0, 9044.0, 9032.0, 9092.0]
[23.0, 20.0, 24.0, 22.0]
[230, 243, 245, 156]
p02687
u736470924
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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(-118, 120):\n for j in range(-119, 119):\n if i**5 - j**5 = x:\n print(i, j)\n exit(0)\n', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s047544998', 's093165833']
[8940.0, 9092.0]
[19.0, 23.0]
[129, 66]
p02687
u739959951
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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'\n\nif s!=ans:\n ans='ARC'\n \nprint(ans)", "s=input()\n\nif s=='ABC':\n ans='ARC'\nelse:\n ans='ABC'\n\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s877294097', 's066295779']
[9028.0, 8956.0]
[21.0, 19.0]
[58, 65]
p02687
u741007505
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['str = input()\n\nif(str == \'ABC\'):\n print("ARC")\n el:\n print("ABC")', 'str = input()\n\nif str == \'ABC\':\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s767627071', 's337788635']
[8956.0, 9084.0]
[24.0, 21.0]
[70, 68]
p02687
u742529680
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 s[1]='R'\nelse:\n s[1]='B'\nprint(s)", "s=input()\n\nif s[1]=='B':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s548187315', 's768314304', 's531304771']
[9032.0, 9000.0, 8904.0]
[18.0, 20.0, 22.0]
[61, 60, 61]
p02687
u743478358
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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=intput("enter")\nif a=="ABC":\n print("ARC")\nelif a=="ARC":\n print("ABC")', 'a=intput()\nif a=="ABC":\n print("ARC")\nelif a=="ARC":\n print("ABC")', 'a=input()\nif a=="ABC":\n print("ARC")\nelif a=="ARC":\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s016776791', 's859149396', 's105130124']
[9112.0, 9088.0, 9092.0]
[20.0, 19.0, 22.0]
[79, 72, 71]
p02687
u744920373
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nsys.setrecursionlimit(10**8)\ndef ii(): return int(sys.stdin.readline())\ndef mi(): return map(int, sys.stdin.readline().split())\ndef li(): return list(map(int, sys.stdin.readline().split()))\ndef li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]\ndef dp2(ini, i, j): return [[ini]*i for i2 in range(j)]\ndef dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]\nimport bisect \n#from collections import defaultdict #d = defaultdict(int) d[key] += value\n#from collections import Counter # a = Counter(A).most_common()\n#from itertools import accumulate #list(accumulate(A))\nimport math\n\ndef make_divisors(n):\n divisors = []\n for i in range(1, int(n**0.5)+1):\n if n % i == 0:\n divisors.append(i)\n if i != n // i:\n divisors.append(n//i)\n\n \n return sorted(divisors)\n\n\n\nX = ii()\n'''\na = make_divisors(X)\nind = bisect.bisect_left(a, X**0.2)\n\nfor num in a[:ind+1]:\n for i in range(num):\n j = num - i\n if i**5 + j**5 == X:\n print(i, (-1)*j)\n exit()\n'''\nnum = int(X**0.2)+1\nfor i in range(num):\n #tmp = i**5\n b = (X - i**5)**0.2\n if math.floor(b) == b:\n print(i, (-1)*int(b))\n exit()", "import sys\nsys.setrecursionlimit(10**8)\ndef ii(): return int(sys.stdin.readline())\ndef mi(): return map(int, sys.stdin.readline().split())\ndef li(): return list(map(int, sys.stdin.readline().split()))\ndef li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]\ndef dp2(ini, i, j): return [[ini]*i for i2 in range(j)]\ndef dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]\n\n#from collections import defaultdict #d = defaultdict(int) d[key] += value\n#from collections import Counter # a = Counter(A).most_common()\n#from itertools import accumulate #list(accumulate(A))\n\nS = input()\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s166558796', 's167576043']
[9144.0, 9072.0]
[21.0, 25.0]
[1291, 724]
p02687
u745861782
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()\noutput = "ABC"\nif s == output:\n output = "ARC"\nprint(s)', 's = input()\noutput = "ABC"\nif s == output:\n output = "ARC"\nprint(output)']
['Wrong Answer', 'Accepted']
['s575522586', 's531929923']
[9004.0, 9000.0]
[23.0, 22.0]
[68, 73]
p02687
u749359783
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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']
['s926015928', 's736401845']
[8944.0, 9040.0]
[22.0, 21.0]
[65, 66]
p02687
u750945716
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = input()\nif s = 'ABC':\n\tprint('ARC')\nelse:\n\tprint('ABC')", "s = input()\nif s == 'ABC':\n\tprint('ARC')\nelse:\n\tprint('ABC')"]
['Runtime Error', 'Accepted']
['s412723210', 's627127870']
[8876.0, 9084.0]
[21.0, 22.0]
[59, 60]
p02687
u752114241
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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:\n print("ABC")', 'if S =="ABC":\n print("ARC")\nelse:\n print("ABC")', 'if S == "ABC"\nprint "ARC"\nif S =="ARC"\nprint"ABC"', 'S = input()\nif S ==("ABC"):\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s102399904', 's165247961', 's979034524', 's124385701']
[9080.0, 9084.0, 8924.0, 9016.0]
[23.0, 20.0, 20.0, 20.0]
[52, 49, 49, 64]
p02687
u752907799
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()[1] == 'R' else 'ARC)", "print('ABC' if input()[1] == 'R' else 'ARC')\n"]
['Runtime Error', 'Accepted']
['s524428819', 's016671374']
[8920.0, 8932.0]
[20.0, 23.0]
[43, 45]
p02687
u756311765
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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(input())', 'if input() == "ARC":\n print("ABC")\nelse:\n print("ARC")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s161089983', 's281220533', 's716420230']
[9056.0, 9076.0, 9072.0]
[21.0, 21.0, 20.0]
[14, 14, 60]
p02687
u758815106
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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();print("ABC"if s=="ARC"else"ARC")']
['Wrong Answer', 'Accepted']
['s196358413', 's542082365']
[9012.0, 9024.0]
[26.0, 28.0]
[49, 42]
p02687
u762199573
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 is 'ABC' else 'ABC')", "S = input()\nprint('ARC' if S == 'ABC' else 'ABC')"]
['Wrong Answer', 'Accepted']
['s929224545', 's976099350']
[9024.0, 9096.0]
[21.0, 22.0]
[49, 49]
p02687
u763383823
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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')", "s = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s966725809', 's577546733']
[9156.0, 9024.0]
[22.0, 21.0]
[71, 66]
p02687
u769870836
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 print('ABC')\nelse:\n print('ARC')", "s=input()\nif s[1]=='R':\n print('ABC')\nelse:\n print('ARC')"]
['Runtime Error', 'Accepted']
['s116242334', 's616171169']
[9008.0, 8960.0]
[23.0, 22.0]
[58, 59]
p02687
u771538568
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 ptint("ARC")\nelse:\n print("ABC")', 'a=input()\nif a=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s111308740', 's765017455']
[8856.0, 8908.0]
[24.0, 23.0]
[58, 59]
p02687
u773077120
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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')", "print('ARC' if input() != 'ABC else 'ABC')", "S = input()\nprint('ARC' if S == 'ABC' else 'ABC')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s228082291', 's273255870', 's127877271']
[9000.0, 8948.0, 9044.0]
[24.0, 20.0, 21.0]
[48, 42, 49]
p02687
u773865844
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nlines = sys.stdin.readline()\n\nX = str(lines)\n\nif X =='ABC':\n print('ARC')\nelse:\n print('ABC')", "lines = input()\n\nX = str(lines)\n\nif X =='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s438085424', 's902259147']
[9036.0, 8916.0]
[22.0, 22.0]
[111, 86]
p02687
u778420059
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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=="ABC":\n print("ARC")\n elif str=="ARC":\n print("ABC")\n else:\n ', 'str=input()\nif str=="ABC":\n print("ARC")\nelif str=="ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s508945553', 's034632710']
[8884.0, 9116.0]
[20.0, 19.0]
[102, 77]
p02687
u780698286
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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("ABC")\nelse:\n print("ARC")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s165585884', 's043240136']
[8916.0, 8900.0]
[23.0, 21.0]
[62, 66]
p02687
u782460722
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 input() == 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s716256764', 's625880159']
[8896.0, 9024.0]
[23.0, 19.0]
[68, 62]
p02687
u782785740
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\ns = input()\n\nif s == "ARC" :\n\tprint("ABC")\nelse:\n\tprint(s)', "\n\ns = input()\n\nif s == 'ARC' :\n\tprint('ABC')\nelse:\n\tprint('ARC')"]
['Wrong Answer', 'Accepted']
['s712799072', 's940236682']
[9072.0, 9032.0]
[20.0, 22.0]
[60, 64]
p02687
u783340206
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()\ns[1] = "R"\nprint(s)', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s612175800', 's235211671']
[8952.0, 9092.0]
[20.0, 20.0]
[31, 62]
p02687
u790067527
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nfrom sys import stdin,stdout\n#% 998244353\nT = stdin.readline()\nif T=="ABC":\n print("ARC")\nelse:\n print("ABC") ', 'import math\nfrom sys import stdin,stdout\n#% 998244353\nfrom heapq import heapify,heappop,heappush\n\nimport collections\n# T = int(stdin.readline())\n\n #N=int(stdin.readline())\nN,M=list(map(int,stdin.readline().split()))\nhill=list(map(int,stdin.readline().split()))\n\ndc=collections.defaultdict(list)\n#vis=set()\nfor m in range(M):\n A,B=list(map(int,stdin.readline().split()))\n dc[A].append(B)\n dc[B].append(A)\n\nans=0\nfor k,ls in dc.items():\n\n f=0\n z=0\n for h in ls:\n\n if hill[k-1]<=hill[h-1]:\n f=1\n break\n\n if not f:\n # print(k)\n ans+=1 \n#print(ans)\n#ans+=(N-len(dc.keys()))\nprint(ans) ', 'import math\nfrom sys import stdin,stdout\n#% 998244353\nfrom heapq import heapify,heappop,heappush\n\nimport collections\n# T = int(stdin.readline())\n\n #N=int(stdin.readline())\nN,M=list(map(int,stdin.readline().split()))\nhill=list(map(int,stdin.readline().split()))\n\ndc=collections.defaultdict(list)\n#vis=set()\nfor m in range(M):\n A,B=list(map(int,stdin.readline().split()))\n dc[A].append(B)\n dc[B].append(A)\n\nans=0\nfor k,ls in dc.items():\n\n f=0\n for h in ls:\n if ls.count(h)>1:\n continue\n if hill[k-1]<hill[h-1]:\n f=1\n break\n if not f:\n ans+=1 \n\nans+=N-len(dc.keys())\nprint(ans) ', 'import math\nfrom sys import stdin,stdout\n#% 998244353\nT = stdin.readline()\nif T=="ABC":\n print("ARC")\nelif T=="ARC":\n print("ABC") ', 'import math\nfrom sys import stdin,stdout\n#% 998244353\nT = stdin.readline()\nT=T[:-1]\nif T=="ABC":\n print("ARC")\nelif T=="ARC":\n print("ABC") ']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s292218329', 's771203124', 's954027532', 's963534651', 's990844859']
[9024.0, 9412.0, 9400.0, 9028.0, 9032.0]
[18.0, 25.0, 22.0, 24.0, 21.0]
[131, 678, 682, 140, 149]
p02687
u792243917
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['str = input()\n\nif str == "ABC":\n print(ARC)\nelse:\n print(ABC)\n', 'str = input()\n\nif str == "ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s115884934', 's897862567']
[9012.0, 9024.0]
[21.0, 19.0]
[68, 72]
p02687
u792309960
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")\n else:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\n else:\n print("ABC")', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s583981140', 's608851493', 's147326021']
[8876.0, 8948.0, 9024.0]
[23.0, 22.0, 22.0]
[51, 63, 62]
p02687
u792670114
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S = "ABC":\n print("ARC")\nif S = "ARC":\n print("ABC")\n', 'S = input()\nif S == "ABC":\n print("ARC")\nif S == "ARC":\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s385280719', 's092088506']
[8916.0, 8956.0]
[23.0, 19.0]
[70, 72]
p02687
u798499549
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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("ABC")', 's=input()\nif s=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s986699923', 's967160366']
[8964.0, 9032.0]
[21.0, 24.0]
[57, 58]
p02687
u798543098
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 a = input()\n if a == "ABC"\n print("ARC")\n else:\n print("ABC")\nif __name__ == \'__main__\':\n main()\n', 'def main():\n a = input()\n if a == "ABC":\n print("ARC")\n else:\n print("ABC")\nif __name__ == \'__main__\':\n main()\n\n']
['Runtime Error', 'Accepted']
['s722374684', 's165258784']
[9008.0, 9084.0]
[20.0, 24.0]
[136, 138]
p02687
u799916419
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 awc(s):\n print("ARC" if s == "ABC" else "ABC")\n\nif __name__ == "__main__":\n import sys\n in_str = []\n for line in sys.stdin:\n in_str.append(line)\n awc(s)\n', 'def awc(s):\n print("ARC" if s == "ABC" else "ABC")\n\nif __name__ == "__main__":\n import sys\n in_str = []\n for line in sys.stdin:\n in_str.append(line)\n awc(in_str[0])\n', 'def awc(s):\n print("ARC" if s == "ABC" else "ABC")\n\nif __name__ == "__main__":\n import sys\n in_str = input()\n awc(in_str)\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s857778472', 's897930845', 's718994540']
[8960.0, 9088.0, 9020.0]
[21.0, 19.0, 18.0]
[179, 187, 134]
p02687
u802662134
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['n, k = map(int, input().split())\n \nm = [0]*n\n \nfor i in range(k):\n d = int(input())\n a = [int(x) for x in input().split()]\n for j in range(d):\n m[a[j]-1] += 1\n \nprint(m.count(0))\n', 'n, k = map(int, input().split())\n \nM = [0]*n\n \nfor i in range(k):\n d = int(input())\n a = [int(x) for x in input().split()]\n for j in range(d):\n M[a[j]-1] += 1\n \nprint(M.count(0))', 'n, k = map(int, input().split())\n \nmember = [0]*n\n \nfor i in range(k):\n d = int(input())\n a = [int(x) for x in input().split()]\n for j in range(d):\n \n member[a[j]-1] += 1\n \nprint(member.count(0))\n', 'N,K = map(int,input().split())\n \nP = [0 for i in range(N)]\nm = 0\nfor i in range(K):\n a = int(input())\n b = list(int,input().split())\n for j in range(a):\n P[b[j]-1] = 1\n j += 1\n \nfor l in range(N):\n if P[l] == 0:\n m += 1\n \nprint(m)\n', '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')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s054748667', 's190798646', 's413127495', 's724900342', 's874298059', 's920716743', 's512405410']
[9096.0, 9136.0, 9064.0, 9176.0, 8960.0, 8864.0, 8952.0]
[20.0, 20.0, 20.0, 22.0, 26.0, 23.0, 21.0]
[195, 194, 219, 250, 62, 61, 63]
p02687
u805392425
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nK = str(stdin.readline())\n\nif K=="ABC":\n print("ARC")\nelse:\n print("ABC")', 'from sys import stdin\n\nK = int(stdin.readline())\n\nif K=="ABC":\n print("ARC")\nelse:\n print("ARC")', 'from sys import stdin\n\nK = str(stdin.readline().strip())\n\nif K=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s356136074', 's468853808', 's658951258']
[9028.0, 9164.0, 9088.0]
[21.0, 21.0, 24.0]
[98, 98, 106]
p02687
u805846052
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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())\na = list(map(int, input().split()))\n\nnn = n + max(a)\nml = [0] * nn\npl = [0] * nn\n\nout = 0\n\nfor i in range(0, n):\n pl[i+a[i]] += 1\n if(i-a[i]>=0):\n ml[i-a[i]] += 1\n\nfor i in range(0, n):\n out += pl[i] * ml[i]\n\nprint(out)\n', 'n = int(input())\na = list(map(int, input().split()))\n\nout = 0\n\nfor i in range(n):\n w = i-a[i]\n for j in range(i):\n if(w == a[j] + j):\n out += 1\nprint(out)\n', "instr = input()\n\nif instr == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s171361919', 's175750835', 's611858974']
[9100.0, 9088.0, 8952.0]
[20.0, 20.0, 21.0]
[253, 179, 76]
p02687
u805852597
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["s = str(input())\nif s == 'ABC':\n print('ARC)\nelse:\n print('ABC')", "s = str(input())\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s489159241', 's044407754']
[8952.0, 8944.0]
[24.0, 20.0]
[66, 67]
p02687
u809819902
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()[1] == "B" else "ARC")', 'print("ABC" if input()[1]=="R" else "ARC")']
['Wrong Answer', 'Accepted']
['s352479539', 's915449895']
[9020.0, 8936.0]
[28.0, 29.0]
[44, 42]
p02687
u810787773
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = input()\nif S = \'ABC\':\n print("ARC")\nelse:\n print("ABC")\n', 'S = input()\nif S == \'ABC\':\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s055729414', 's798444606']
[8856.0, 8844.0]
[23.0, 30.0]
[66, 67]
p02687
u810978770
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")', 's = input()\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s495619571', 's178133064']
[9152.0, 9088.0]
[25.0, 19.0]
[71, 66]
p02687
u813123196
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N = input()\nif N = "ABC" :\n print("ARC")\nelif N = "ARC" :\n print("ABC")', 'N = input()\nif N == "ABC" :\n print("ARC")\nelif N == "ARC" :\n print("ABC")']
['Runtime Error', 'Accepted']
['s689933781', 's934320406']
[8828.0, 8964.0]
[22.0, 23.0]
[73, 75]
p02687
u816171517
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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=list(map(int,input().split()))\nlow=[]\nhigh=[]\n\nfor i in range(m):\n\n a,b=map(int,input().split())\n\n if h[a-1]>h[b-1]:\n\n low.append(b)\n high.append(a)\n\n elif h[a-1]==h[b-1]:\n\n\n low.extend([a,b])\n\n elif h[a-1]<h[b-1]:\n\n low.append(a)\n high.append(b)\n\ncommon=list(set(low)&set(high))\n\nfor k in range(len(common)):\n\n high.remove(common[k])\n\nlh_or=list(set(low) ^ set(high))\n\ng=n-len(lh_or)\nhigh=list(set(high))\n\nprint(len(high)+g)\n', 's=input()\n\nif s=="ARC":\n\n print("ABC")\n\nelse:\n print("ARC")\n']
['Runtime Error', 'Accepted']
['s788073405', 's426868879']
[9232.0, 9020.0]
[20.0, 25.0]
[508, 66]
p02687
u819663617
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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(str)\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']
['s786226454', 's858376817']
[9084.0, 9088.0]
[22.0, 20.0]
[65, 62]
p02687
u821265215
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 a[1] == "R" else print("ARC")', 's = input()\nprint("ABC") if s[1] == "R" else print("ARC")']
['Runtime Error', 'Accepted']
['s976941931', 's683718795']
[9092.0, 9088.0]
[22.0, 20.0]
[57, 57]
p02687
u823885866
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nn = sys.stdin.readline()\nif n = 'ABC':\n print('ARC')\nelse:\n print('ABC')", "import sys\nn = sys.stdin.readline()\nif n == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n", "import sys\nn = sys.stdin.readline().strip()\nif n == 'ABC':\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s040933403', 's077933961', 's501993541']
[9028.0, 9016.0, 9040.0]
[21.0, 21.0, 25.0]
[85, 87, 95]
p02687
u825161822
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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=str(input())\nif n=="ABS":\n print("ARC")\nelse:\n print("ABC")\n', 'n=str(input())\nif n=="ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s855982960', 's473979674']
[8828.0, 9024.0]
[29.0, 28.0]
[68, 67]
p02687
u826557401
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 return 'ARC'\nelse:\n return 'ABC'", "S = str(input())\nif S == 'ABC':\n return 'ARC'\nelse:\n return 'ABC'", "if S == 'ABC':\n return 'ARC'\nelse:\n return 'ABC'", "S = str(input())\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s023327161', 's749275463', 's756704683', 's076255832']
[8948.0, 9084.0, 9084.0, 9012.0]
[23.0, 22.0, 20.0, 22.0]
[49, 67, 50, 67]
p02687
u827306875
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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')\n \nelse:\n print('ABC')", "S = str(input())\n\nif S == 'ABC':\n print('ARC')\n \nelse:\n print('ABC')\n\n"]
['Runtime Error', 'Accepted']
['s641228964', 's404193980']
[8948.0, 9016.0]
[21.0, 25.0]
[70, 73]
p02687
u829116341
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")\nelse:', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s299752161', 's006497005']
[8944.0, 8876.0]
[25.0, 29.0]
[73, 62]
p02687
u829416877
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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:\n print('ABC')", "if S = ABC:\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif S ='ABC':\n print('ARC')\nelse:\n print('ABC')", "S == 'ABC'\n\nif S == 'ABC' :\n print('ARC')\nelse :\n print('ABC')", "S = input()\nif S='ABC':\n print('ARC')\nelse :\n print('ABC')", "S == 'ABC'\n\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')", "S = ABC\n\nif S == ABC:\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif S =='ABC':\n print('ARC')\nelse:\n print('ABC)", "if S = 'ABC':\n print('ARC')\nelse:\n print('ABC')", 'S = ABC\nif S = ABC:\n print("ARC")\nelse:\n print("ABC")', '\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")', "S = 'ABC'\nif S = 'ABC':\nprint('ARC')\nelse:\nprint('ABC')", "S = ABC\n\nif S = ABC:\n print('ARC')\nelse:\n print('ABC')", "if S = ABC:\n print('ARC')\nelf:\n print('ABC')", "if S = ABC:\n print('ARC')\nelse:\n print('ABC')", "S = input()\nif S =='ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s001423472', 's144891728', 's264616009', 's304780304', 's337461939', 's345116166', 's360421618', 's468285629', 's500597696', 's507454455', 's592306034', 's620583256', 's696516962', 's770995562', 's966140016', 's658011482']
[8960.0, 9000.0, 8920.0, 8968.0, 8948.0, 9076.0, 9088.0, 8892.0, 8948.0, 8948.0, 8984.0, 8936.0, 8948.0, 8996.0, 8932.0, 9000.0]
[19.0, 21.0, 20.0, 20.0, 20.0, 21.0, 24.0, 24.0, 25.0, 22.0, 23.0, 19.0, 22.0, 20.0, 21.0, 20.0]
[48, 45, 58, 62, 60, 60, 55, 60, 47, 53, 51, 55, 54, 44, 45, 61]
p02687
u830742419
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["N, K = input().split(' ')\n\nsunukekuns = [i for i in range(N)]\n\nfor k in range(K):\n _ = input()\n sunukekun = input().split(' ')\n for (kun in sunukekun):\n if kun in sunukekuns:\n sunukekuns.remove(kun)\n\nprint(len(sunukekuns))\n", 'lastWeek = input()\n\nthisWeek = "ABC" if (lastWeek == "ARC") else "ARC"\n\nprint(thisWeek)']
['Runtime Error', 'Accepted']
['s365526923', 's532677359']
[8892.0, 8968.0]
[22.0, 22.0]
[234, 87]
p02687
u833071789
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['\nimport glob\n\n\nREL_PATH = \'ABC\\\\166\\\\A\'\n\n\nTOP_PATH = \'C:\\\\AtCoder\'\n\nclass Common:\n\n problem = []\n index = 0\n\n def __init__(self, rel_path):\n self.rel_path = rel_path\n\n def initialize(self, path):\n file = open(path)\n self.problem = file.readlines()\n self.index = 0\n return\n\n def input_data(self):\n try:\n IS_TEST\n self.index += 1\n return self.problem[self.index-1]\n\n except NameError:\n return input()\n\n def resolve(self):\n pass\n\n def exec_resolve(self):\n try:\n IS_TEST\n for path in glob.glob(TOP_PATH + \'\\\\\' + self.rel_path + \'/*.txt\'):\n print("Test: " + path)\n self.initialize(path)\n self.resolve()\n print("\\n\\n")\n except NameError:\n self.resolve()\n\n\nclass Solver(Common):\n\n def resolve(self):\n\n\n S = map(int, self.input_data().split())\n\n if S == \'ABC\':\n print(\'ARC\')\n else:\n print(\'ABC\')\n\n\n\nsolver = Solver(REL_PATH)\nsolver.exec_resolve()', '\nimport glob\n\n\nREL_PATH = \'ABC\\\\166\\\\A\'\n\n\nTOP_PATH = \'C:\\\\AtCoder\'\n\nclass Common:\n\n problem = []\n index = 0\n\n def __init__(self, rel_path):\n self.rel_path = rel_path\n\n def initialize(self, path):\n file = open(path)\n self.problem = file.readlines()\n self.index = 0\n return\n\n def input_data(self):\n try:\n IS_TEST\n self.index += 1\n return self.problem[self.index-1]\n\n except NameError:\n return input()\n\n def resolve(self):\n pass\n\n def exec_resolve(self):\n try:\n IS_TEST\n for path in glob.glob(TOP_PATH + \'\\\\\' + self.rel_path + \'/*.txt\'):\n print("Test: " + path)\n self.initialize(path)\n self.resolve()\n print("\\n\\n")\n except NameError:\n self.resolve()\n\n\nclass Solver(Common):\n\n def resolve(self):\n\n\n S = self.input_data()\n\n if S == \'ABC\':\n print(\'ARC\')\n else:\n print(\'ABC\')\n\n\n\nsolver = Solver(REL_PATH)\nsolver.exec_resolve()']
['Wrong Answer', 'Accepted']
['s229543510', 's505385616']
[9896.0, 9776.0]
[29.0, 30.0]
[1227, 1209]
p02687
u834224054
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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().split()\nif A == 'ABC':\n print('ARC')\nelif A == 'ARC':\n print('ABC')\n ", "A = input().split()\n\nif A[0][1] == 'B':\n print('ARC')\nelif A[0][1] == 'R':\n print('ABC')\n "]
['Wrong Answer', 'Accepted']
['s508399298', 's169934718']
[9084.0, 9088.0]
[20.0, 22.0]
[90, 99]
p02687
u835263313
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()\n\nif contest = "ABC":\n print("ARC")\nelse:\n print("ABC")\n ', 'contest = input()\n\nif contest == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s756096721', 's340072804']
[9016.0, 8908.0]
[22.0, 22.0]
[77, 75]
p02687
u841585822
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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("ABC" or "ARC")\nif S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'if S == ABC:\n print("ARC")\nelse:\n print("ABC")', 'S = <math xmlns="http://www.w3.org/1998/Math/MathML">\n <mi>S</mi>\n</math>\nif S == "ABC" :\n print("ARC")\nif S == "ARC" :\n print("ABC")', 'S = ["ABC","ARC"]\nif S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'S = "ARC" or "ABC"\nif S == "ABC" :\n print("ARC")\nif S == "ARC" :\n print("ABC")', 'S = "ABC"\nif S == "ABC" : \n print("ARC")\nS = "ARC"\nif S == "ARC" :\n print("ABC")', 'S = input("S=ABC" or "S=ARC")\nif S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'S = "ABC","ARC"\nif S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'if S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'if S == "ABC" :\n print("ARC")\nelse:\n print("ABC")\n \n', 'S = ["ABC" or "ARC"]\nif S == "ABC" : \n print("ARC")\nif S == "ARC" :\n print("ABC")', 'S = "ARC" or "ABC"\nif S == "ABC" :\n print("ARC")\nelse :\n print("ABC")', 'S = input()\nif S == "ABC" : \n print("ARC")\nelse :\n print("ABC")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s042592744', 's066233274', 's190710831', 's264024708', 's319542844', 's437965980', 's445368716', 's534217953', 's589361500', 's733258657', 's795305173', 's912057801', 's194637528']
[9032.0, 9084.0, 8948.0, 8960.0, 9080.0, 9096.0, 9096.0, 9028.0, 8892.0, 8944.0, 9068.0, 9028.0, 8960.0]
[20.0, 22.0, 19.0, 22.0, 21.0, 21.0, 20.0, 22.0, 25.0, 21.0, 23.0, 21.0, 23.0]
[88, 48, 136, 80, 80, 82, 92, 78, 62, 55, 83, 71, 65]
p02687
u842964692
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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=intput()\n\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")\n', 'S=input()\n\nif S=="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s308695580', 's365539461']
[9068.0, 9000.0]
[23.0, 21.0]
[61, 60]
p02687
u843318346
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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')", "print('ABC' if input()=='ARC' else 'ARC')"]
['Runtime Error', 'Accepted']
['s872208858', 's290236897']
[9076.0, 8988.0]
[22.0, 21.0]
[70, 41]
p02687
u844558673
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["list = ['ABC','ARC']\nif s == 'ABC':\n\tprint(list[1])\nelse:\n print(list[0])", "s = input()\nlist = ['ABC','ARC']\nif s == 'ABC':\n\tprint(list[1])\nelse:\n print(list[0])"]
['Runtime Error', 'Accepted']
['s013111101', 's212406847']
[9088.0, 9012.0]
[23.0, 21.0]
[74, 86]
p02687
u845573105
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()[2]\nif S=="B":\n print("ARC")\nelse:\n print("ABC")', 'S = input()[1]\nif S=="B":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s326603970', 's333456416']
[8952.0, 9084.0]
[22.0, 23.0]
[61, 61]
p02687
u847727454
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['N,K = list(map(int,input().split()))\n\nsnk_sweets = []\n\nfor i in range(K):\n sweets = int(input())\n snk_sweets = snk_sweets + input().split()\n\nlen_snk = len(snk_sweets)\nprint(N - len_snk)\n', "S = input()\n\nif S == 'ABC' :\n print('ARC')\nelse:\n print('ABC')\n"]
['Runtime Error', 'Accepted']
['s010554731', 's194596473']
[8896.0, 8924.0]
[20.0, 22.0]
[192, 69]
p02687
u849334482
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 \nflag = 0\nA = 0\nB = 0\n \nfor i in range(0, 100000):\n for j in range(0, 100000):\n if i**5 - j**5 == X:\n A = i\n B = j\n break\n elif i**5 + j**5 == X:\n A = i\n B = j\n break\n elif -i**5 - j**5 == X:\n A = -i\n B = j\n break\nprint(str(A) + ' ' + str(B))", "X = int(input())\n \nflag = 0\nA = 0\nB = 0\n \nfor i in range(0, 100):\n for j in range(0, 100):\n if i**5 - j**5 == X:\n A = i\n B = j\n break\n elif i**5 + j**5 == X:\n A = i\n B = j\n break\n elif -i**5 - j**5 == X:\n A = -i\n B = j\n break\nprint(str(A) + ' ' + str(B))", 'N = int(input())\n\nheight = input()\nheight = height.split()\nheight = [int(s) for s in height]\n\ncount = 0\n\nfor i in range(N):\n for j in range(i+1, N):\n if j-i == height[i] + height[j]:\n count += 1\n\nprint(count)', "a = input()\n\nif a == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s297168281', 's539685307', 's994664474', 's043451271']
[9220.0, 9208.0, 9188.0, 9096.0]
[22.0, 20.0, 20.0, 24.0]
[315, 309, 217, 63]
p02687
u849341325
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\tprint('ABC')\nelse\n\tptint('ARC')", "S = input()\n\nif S == 'ARC':\n\tprint('ABC')\nelse:\n\tprint('ARC')"]
['Runtime Error', 'Accepted']
['s704349707', 's440560088']
[8972.0, 9056.0]
[24.0, 21.0]
[59, 61]
p02687
u849647454
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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')\nelse:\n print('ABC')", "x = input()\nif x == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s026759429', 's408615640']
[9016.0, 8908.0]
[20.0, 23.0]
[64, 66]
p02687
u851066060
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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\nS=input()\nif S ="ABC":\n print("ARC")\nelse:\n print("ABC")\n', '# coding: utf-8\nS=input()\nif S =="ABC":\n print("ARC")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s824576082', 's705898404']
[9008.0, 9044.0]
[25.0, 20.0]
[79, 80]
p02687
u851704997
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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']
['s036831173', 's381002835']
[9024.0, 8796.0]
[25.0, 28.0]
[61, 64]
p02687
u852699202
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["if S == 'ABC':\n\tprint('ARC')\nelse:\n print('ABC')", "S = input()\nif S == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s695293329', 's015514878']
[8952.0, 8968.0]
[22.0, 20.0]
[49, 62]
p02687
u853728588
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")\nelif s == "ARC":\n print("ABC")']
['Runtime Error', 'Accepted']
['s025296317', 's310305719']
[9032.0, 9120.0]
[22.0, 22.0]
[62, 73]
p02687
u856366449
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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, m = map(int, input().split())\n h = list(map(int, input().split()))\n ab = [list(map(int, input().split())) for _ in range(m)]\n L = [0] * n\n\n for i in range(m):\n A =ab[i][0]-1\n B =ab[i][1]-1\n M = max(h[A],h[B])\n if M == h[A]:\n L[A] += 0.33\n L[B] -= 100\n else: \n L[B] += 0.33\n L[A] -= 100\n \n L= list(filter(lambda x: x >= 0, L))\n print(len(L))\n\nif __name__ == '__main__':\n main()\n", "s = input()\nif s == 'ABC':\n print('ARC')\nelse:\n print('ABC')"]
['Runtime Error', 'Accepted']
['s509260582', 's810380612']
[9232.0, 8960.0]
[19.0, 22.0]
[511, 66]
p02687
u858196335
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")\nelif(S == "ARC"):\n\tprint("ABC")\n\n', 'if(S == ABC):\n\tprint("ARC")\nelif(S == ARC):\n\tprint("ABC")\n\n', 'if(S == ABC){\n\tprint("ARC")\n}\nelse if(S == ARC){\n\tprint("ABC");\n}', 'if(S == ABC){\n\tprint("ARC")\n}\nelse if(S == ARC){\n\tprint("ABC")\n}\n', 'S = input()\n\nif(S == ABC):\n\tprint("ARC")\nelif(S == ARC):\n\tprint("ABC")\n\n', 'S = input()\n\nif(S == "ABC"):\n\tprint("ARC")\nelif(S == "ARC"):\n\tprint("ABC")\n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s276851278', 's540753966', 's812958626', 's882268135', 's926150278', 's024976224']
[9080.0, 9020.0, 9012.0, 8948.0, 9028.0, 8972.0]
[21.0, 23.0, 20.0, 22.0, 23.0, 20.0]
[77, 59, 65, 65, 72, 76]
p02687
u860966226
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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:print("ARC") else:print("ABC")', 'if input() == ABC:\n print("ARC")\nelse:\n print("ABC")', 'print("ABC" if input() == "ARC" else "ARC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s115274061', 's554633127', 's141747592']
[8920.0, 9084.0, 9024.0]
[19.0, 23.0, 21.0]
[48, 54, 43]
p02687
u863955163
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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(-200, 200):\n for j in range(-200, 200):\n if i**5 - j**5 == X:\n print(i,j)\n exit()', "S = input()\nprint('ABC' if S =='ARC' else 'ARC')"]
['Runtime Error', 'Accepted']
['s399625062', 's062495151']
[8980.0, 8904.0]
[23.0, 20.0]
[145, 48]
p02687
u864085306
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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]=="B"):\n result = S.replace("B","R")\nelse:\n result = S.replace("R","B")\nprint(result)', 'S = input()\nif(S[1]=="B"):\n result = S.replace("B","R")\nelse:\n result = S.replace("R","B")\nprint(result)']
['Runtime Error', 'Accepted']
['s388077178', 's364412255']
[9024.0, 9036.0]
[20.0, 23.0]
[98, 110]
p02687
u865108308
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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()\nb = "ABC"\nr = "ARC"\n\nif s == b:\n print("ARC")\nelse if s == r:\n print("ABC")\n', 's = str(input())\n\nif s == "ARC":\n print("ABC")\nelse if s == "ABC":\n print("ARC")', 'n, k = map(int, input().split())\na = set()\n\nfor _ in range(k):\n d = int(input())\n while m <= d:\n l = int(input())\n a.append(l)\n m += 1\n\nprint(n - len(a))\n', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse if s == "ARC":\n print("ABC")', 's = input()\nb = "ABC"\nr = "ARC"\n\nif s == b:\n print("ARC")\nelif s == r:\n print("ABC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s174086653', 's282455388', 's405350646', 's478171017', 's302896861']
[8888.0, 8952.0, 9120.0, 8828.0, 9028.0]
[27.0, 24.0, 20.0, 20.0, 22.0]
[90, 82, 165, 77, 87]
p02687
u865383026
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
["S = input()\nprint('ABC' if S = 'ARC' else 'ARC')", "S = input()\nprint('ABC' if S == 'ARC' else 'ARC')"]
['Runtime Error', 'Accepted']
['s912407959', 's096169255']
[8952.0, 9088.0]
[25.0, 21.0]
[48, 49]
p02687
u865691242
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['char = input()\nif(char == "ARC"):\n print("ABC")\nelsif(char == "ABC"):\n print("ARC")', 'a = input()\nif(a == "ARC"):\n print("ABC")\nelsif(a == "ABC"):\n print("ARC")\n', 'a = input()\nif a == "ARC":\n print("ABC")\nelif a == "ABC":\n print("ARC")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s184789692', 's656838773', 's806394853']
[8948.0, 8964.0, 9072.0]
[25.0, 21.0, 19.0]
[85, 77, 74]
p02687
u867408000
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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")', 's = input()\n\nif s == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s678240383', 's918862311']
[8980.0, 9028.0]
[27.0, 27.0]
[75, 67]
p02687
u869763042
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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())', 'S = input()\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s829992094', 's700102668']
[9112.0, 8964.0]
[23.0, 23.0]
[14, 62]
p02687
u870518235
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given a string S representing the type of the contest held last week, print the string representing the type of the contest held this week.
['S = str(input())\nif S = "ABC":\n print("ARC")\nelse:\n print("ABC")', 'S = str(input())\nif S == "ABC":\n print("ARC")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s156429985', 's824124848']
[8944.0, 9028.0]
[21.0, 27.0]
[70, 71]
p02687
u870721578
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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:print(\'ARC\')', 'if S == ABC:\n print(ARC)\n \nelse:print(ABC)', 'S = input()\nif S == \'ARC\':\n print("ABC")\nelse:print(\'ARC\')']
['Runtime Error', 'Runtime Error', 'Accepted']
['s641562845', 's692384055', 's699248932']
[8908.0, 9024.0, 8948.0]
[21.0, 23.0, 21.0]
[58, 43, 59]
p02687
u871047306
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 = int('ARC')\n print('ABC')\nif S = int('ABC')\n print('ARC')\n ", 'S = input()\n if S == int("ARC") :\n print("ABC")\n elif S == int(\'ABC\'):\n print(\'ARC\')\n', "if S = ABC\n print('ARC')\nelif S = ARC\n print('ABC')", "S = input()\n if S == 'ARC':\n print('ABC')\n elif S == 'ABC':\n print('ARC')", 'S = input()\n if S == "ARC":\n print("ABC")\n elif S == "ABC":\n print("ARC")\n', 'S = input()\nif S == "ARC":\n print("ABC")\nelif S == "ABC":\n print("ARC")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s024363959', 's487201415', 's494089403', 's664186386', 's767809547', 's634482707']
[8952.0, 9020.0, 8924.0, 8824.0, 8952.0, 8900.0]
[21.0, 23.0, 23.0, 21.0, 21.0, 25.0]
[87, 97, 57, 85, 86, 78]
p02687
u871176343
2,000
1,048,576
AtCoder Inc. holds a contest every Saturday. There are two types of contests called ABC and ARC, and just one of them is held at a time. The company holds these two types of contests alternately: an ARC follows an ABC and vice versa. Given 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 = [int( i/2)*((-1)**i) for i in range(1, 10000)]\nb = [int( i/2)*((-1)**i) for i in range(1, 10000)]\n\n\n\nfind = False\nif X == 0:\n print(0)\nelse: \n for a_ in a:\n for b_ in b:\n if a_ + b_ == 0:\n continue\n if a_ >= 0:\n if b_ >= 0 or b_ > a_:\n continue\n if a_ < 0:\n if b_ >= 0:\n continue\n \n if X%(a_+b_) != 0:\n continue\n \n if (a_**5) - (b_**5) == X:\n print(f"{a_} {b_}")\n find = True\n break\n if find:\n break\n', 'X = int(input())\n\na = [int( i/2)*((-1)**i) for i in range(1, 1000)]\nb = [int( i/2)*((-1)**i) for i in range(1, 1000)]\n\n\n\nfind = False\nif X == 0:\n print(0)\nelse: \n for a_ in a:\n for b_ in b:\n if a_ + b_ == 0:\n continue\n if a_ >= 0:\n if b_ >= 0 or b_ > a_:\n continue\n if a_ < 0:\n if b_ >= 0:\n continue\n \n if X%(a_+b_) != 0:\n continue\n \n if (a_**5) - (b_**5) == X:\n print(f"{a_} {b_}")\n find = True\n break\n if find:\n break\n', 'c = input()\nprint("ABC" if c == "ARC" else "ARC")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s325271947', 's343960508', 's203726304']
[9220.0, 9220.0, 9092.0]
[20.0, 23.0, 25.0]
[656, 654, 49]