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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02753 | u132687480 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['def Main(S):\n return "Yes" if \'A\' in S and \'B\' in S else "No"\n \ndef main():\n S = str(input())\n print(Main(N))\n\nif __name__ == \'__main__\':\n main()', 'def Main(S):\n return "Yes" if \'A\' in S and \'B\' in S else "No"\n \ndef main():\n S = str(input())\n print(Main(S))\n\nif __name__ == \'__main__\':\n main()'] | ['Runtime Error', 'Accepted'] | ['s450661186', 's173782526'] | [2940.0, 2940.0] | [17.0, 17.0] | [160, 160] |
p02753 | u133583235 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nif "AB" in S or "BA" in S:\n print("yes")\nelse:\n print("no")', 'Si = input()\n\nif "AB" in Si or "BA" in Si:\n print("yes")\nelse:\n print("no")', 'S = input()\n\nif "AB" in S or "BA" in S:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s185270007', 's468932639', 's660972931'] | [3064.0, 3064.0, 2940.0] | [23.0, 17.0, 17.0] | [74, 77, 74] |
p02753 | u137226361 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a, b = map(int, input().split())\nx=10*b\n\nimport math\nfor i in range(10):\n if math.floor((x+i)*0.08)==a:\n print(x+i)\n exit(0)\n\nprint(-1)', "s = input()\nif s=='AAA' or s== 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s840709890', 's195707638'] | [9080.0, 2940.0] | [24.0, 17.0] | [152, 76] |
p02753 | u137808818 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['n,a,b = map(int,input().split())\nif a==0:\n print(0)\nelse :\n x = n/(a+b)\n y =n%(a+b)\n print(x*a+y)\n\n ', "x = set(input().split())\nprint('No' if len(x)==1 else 'Yes')", "x = set(input())\nprint('No' if len(x)==1 else 'Yes')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s384592388', 's700316995', 's711266331'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [115, 60, 52] |
p02753 | u138781768 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s.count(s[0]) == 3:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s.count(s[0]) == 3:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s514392059', 's497836462'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 69] |
p02753 | u141410514 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s = "AAA" or s = "BBB":\n print("No")\nelse:\n print("Yes")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s614552442', 's585626370'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 79] |
p02753 | u142211940 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['#--------------------------------------------\n\nimport sys\nimport math\nfrom math import sqrt\n#--------------------------------------------\n\nN = str(input())\nif N == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', '#--------------------------------------------\n\nimport sys\nimport math\nfrom math import sqrt\n#--------------------------------------------\n\nN = str(input())\nprint("No" if N == "AAA" or N =="BBB" else "Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s970782459', 's976617534'] | [2940.0, 2940.0] | [17.0, 17.0] | [246, 234] |
p02753 | u145483532 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['def yesno(S):\n if S==AAA or S==BBB:\n return No\n else:\n return Yes\n\nS=input()\nprint(yesno(S))', 'def yesno(S):\n if S=="AAA" or S=="BBB":\n return "No"\n else:\n return "Yes"\n\nS=input()\nprint(yesno(S))'] | ['Runtime Error', 'Accepted'] | ['s671109611', 's313140390'] | [2940.0, 2940.0] | [18.0, 17.0] | [100, 108] |
p02753 | u145600939 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s == 'AAA' or s == 'BBB':\n print(No)\nelse:\n print(Yes)", "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s974020476', 's954343285'] | [2940.0, 2940.0] | [17.0, 18.0] | [71, 76] |
p02753 | u148423304 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = str(input())\nif s == "AAA" or s == "BBB":\n input("No")\nelse:\n input("Yes")\n', 's = str(input())\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s471253623', 's164988293'] | [2940.0, 2940.0] | [17.0, 19.0] | [85, 85] |
p02753 | u148753842 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nq = int(input())\nfor i in range(0, q):\n query = input()\n if query[0] == '1':\n s = s[::-1]\n else:\n if query[2] == '1':\n \n s = ''.join([query[4],s])\n else:\n \n s = ''.join([s,query[4]])\nprint(s)", 'n, b, r = map(int, input().split())\ncount = 0\ni = 0\nwhile (n>i):\n for bi in range(b):\n count += 1\n i += 1\n if n <= i:\n break\n for ri in range(r):\n i += 1\n if n<=i:\n break\nprint(count)', "s = input()\nif (s=='AAA')|(s=='BBB'):\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s744744622', 's820249205', 's706818777'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [293, 246, 76] |
p02753 | u148856702 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s == "AAA" or s == "BBB":\n return True\nelse:\n return False', 's = input()\nif s == "AAA" or s == "BBB":\n print ("No")\nelse:\n print ("Yes")'] | ['Runtime Error', 'Accepted'] | ['s711080100', 's435022230'] | [2940.0, 2940.0] | [17.0, 18.0] | [75, 77] |
p02753 | u150664457 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | [' s = input()\n if s[0] == s[1] and s[1] == s[2]:\n print("No")\n else:\n print("Yes")\n', 'S = input() \n\nif S[0] == S[1] and S[1] == S[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s995844678', 's971557507'] | [2940.0, 2940.0] | [17.0, 18.0] | [105, 115] |
p02753 | u150985282 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nfor i in range(2):\n if S == "AAA" or S == "BBB"\n print("No")\n else:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s279070657', 's569792072'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 75] |
p02753 | u152554456 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s229330558', 's691649891'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 79] |
p02753 | u152614052 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=list(input())\nif s[0] != s[1] or s[1] != s[2]:\n print("Yes)\nelse:\n print("No)', 's=input().split()\nif s[0] != s[1] or s[1] != s[2]:\n print("Yes)\nelse:\n print("No)', 's=list(input())\nif s[0] != s[1] or s[1] != s[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s154247979', 's448394318', 's757350972'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [87, 87, 87] |
p02753 | u152891327 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nc = S.count('A') \nif s == 3 or s == 0:\n print('No')\nelse:\n print('Yes')", "S = input()\nc = S.count('A') \nif c == 3 or c == 0:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s932936899', 's250024111'] | [2940.0, 2940.0] | [17.0, 18.0] | [85, 86] |
p02753 | u158583803 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a,b=(int(x) for x in input().split())\n#print(a)\n#print(b)\n\nam=int(100/8*a)\nal=int(100/8*(a+1))\nif ((a+1)%4)==0:\n al=al-1\n\nbm=int(10*b)\nbl=int(10*(b+1))-1\n\n#print (am,al)\n#print (bm,bl)\nfor ia in range(am,al):\n for ib in range(bm,bl):\n \t\tif ia==ib:\n \t\t\tprint (ia)\n \t\t\texit()\nelse:\n print(-1)', 'a,b=(int(x) for x in input().split())\nprint(a)\nprint(b)\n\nam=int(100/8*a)\nal=int(100/8*(a+1))\nif (a%4)==0:\n al=al-1\n\nbm=int(10*b)\nbl=int(10*(b+1))-1\n\n#print (am,al)\n#print (bm,bl)\nfor ia in range(am,al+1):\n for ib in range(bm,bl+1):\n \t\tif ia==ib:\n \t\t\tprint (ia)\n \t\t\texit()\n \nprint -1', 'str=input()\nif str=="AAA" or str=="BBB":\n print ("No")\nelse:\n print ("Yes")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s110691080', 's361101817', 's110053535'] | [3064.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0] | [321, 317, 78] |
p02753 | u161164709 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nQ = int(input())\n\nlS = ''\nfor _ in range(Q):\n query = input().split()\n if query[0] == '1':\n lS, S = S, lS\n else:\n if query[1] == '1':\n lS += query[2]\n else:\n S += query[2]\n\nprint(lS[::-1] + S)", "s = input()\n\ns_count_A = s.count('A')\n\nif s_count_A == 0 or s_count_A == 3:\n ans = 'No'\nelse:\n ans = 'Yes'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s191466528', 's680761512'] | [9020.0, 8948.0] | [24.0, 28.0] | [256, 124] |
p02753 | u163320134 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s=input()\nif s=='AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "s=input()\nif s=='AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s375225248', 's288672176'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 69] |
p02753 | u165268875 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['\nS = input()\n\npritn("Yes" if S.count(A)==2 and S.count(B)==2 else "No")\n', '\n\nS = input()\n\nprint("Yes" if S.count("A")==2 and S.count("B")==2 else "No")\n', '\nS = input()\n\npritn("Yes" if S.count("A")==2 and S.count("B")==2 else "No")\n', '\nS = input()\n\nprint("Yes" if S.count("A")==2 or S.count("B")==2 else "No")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s291012362', 's293819077', 's814712211', 's736213642'] | [2940.0, 2940.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0, 17.0] | [72, 77, 76, 75] |
p02753 | u165368960 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import math\n\nN, A, B = map(int, input().split())\nx = math.floor(N // (A + B))\ny = N % (A + B)\n\nprint(A * x + min(A, y))', 'S = input()\nif N[1] == N[2] and N[2] == N[3]:\n print("No")\nelse:\n print("Yes")', 'S = input()\na = S.count(S[0])\nif a ==3:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s133867153', 's464473083', 's200763566'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [119, 80, 74] |
p02753 | u166621202 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['A,B = map(int,input().split())\nans = -1\n\nfor i in range(1,10**4+1):\n if int(i * 0.08) == A and int(i * 0.10) == B:\n ans = i\n break\nprint(ans)\n\n', "S = str(input())\nif S == 'AAA' or S == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s705025984', 's566078466'] | [2940.0, 2940.0] | [17.0, 17.0] | [160, 84] |
p02753 | u167205647 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s == 'AAA'or 'BBB':\n print('No')\nelse :\n print('Yes')", "s = input()\nif s == 'AAA'or s =='BBB':\n print('No')\nelse :\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s862828104', 's348577794'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 79] |
p02753 | u168474884 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nvis_a = 0\nvis_b = 0\n\nfor i in s:\n if i == \'A\':\n vis_a = 1\n if i == \'B\':\n vis_b = 1\n\nif vis_a and vis_b:\n print("Yes")\nelse\n print("No")\n', 's = input()\nvis_a = 0\nvis_b = 0\n\nfor i in s:\n if s == \'A\':\n vis_a = 1\n if s == \'B\':\n vis_b = 1\n\nif vis_a and vis_b:\n print("Yes")\nelse\n print("No")', 's = input()\nvis_a = 0\nvis_b = 0\n\nfor i in s:\n if i == \'A\':\n vis_a = 1\n if i == \'B\':\n vis_b = 1\n\nif vis_a and vis_b:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s712551065', 's995406519', 's033627035'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [158, 157, 163] |
p02753 | u169042722 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import sys\nstr=input()\nif str == "AAA" or str == "BBB":\n print ("NO")\nelse:\n print ("YES")\n\n', 'import sys\nstr=input()\nif str == "AAA" or str == "BBB":\n print ("No")\nelse:\n print ("Yes")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s970043014', 's422215958'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 98] |
p02753 | u169350228 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['n, a, b = map(int,input().split())\nprint((n//(a+b))*a+min([a,n%(a+b)]))\n', 's = input()\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s922031595', 's329469939'] | [2940.0, 2940.0] | [17.0, 18.0] | [72, 77] |
p02753 | u170960568 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['str = input()\na = False\nb = False\nfor ch in str:\n if ch == \'A\':\n a = True\n else:\n b = True\nif a and b:\n print("YES")\nelse:\n print("NO")\n', 'str = input()\na = False\nb = False\nfor ch in str:\n if ch == \'A\':\n a = True\n else:\n b = True\nif a and b:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s943841842', 's913967688'] | [2940.0, 2940.0] | [17.0, 17.0] | [163, 163] |
p02753 | u173363299 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["if __name__== '__main__':\n s = input('>>')\n for i in range(2):\n if s[i] == 'A':\n print('Yes')\n elif s[i] == 'B':\n \tprint('Yes')\n else:\n print('No')\n ", "if __name__== '__main__':\n s = input('>>')\n if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':\n \tprint('Yes')\n elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':\n \t\tprint('Yes')\n else:\n \tprint('No')\n \n", "if __name__== '__main__':\n s = input('>>')\n if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':\n \tprint('No')\n elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':\n \t\tprint('No')\n else:\n \tprint('Yes')\n \n", "if __name__== '__main__':\n s = input()\n if s[0] == 'A' and s[1] == 'A' and s[2] == 'A':\n \tprint('No')\n elif s[0] == 'B' and s[1] == 'B' and s[2] == 'B':\n \t\tprint('No')\n else:\n \tprint('Yes')\n \n"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s038826667', 's082856026', 's618579935', 's589251495'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0] | [188, 225, 224, 220] |
p02753 | u175217658 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['N,A,B = map(int, input().split())\nans = 0\nS = A+B\nT = N//S\nU = N%S\n\n\nif(A == 0):\n ans = 0\nelse :\n if(0< U < A):\n ans = A*T+U\n elif(U == 0):\n ans = A*T\n elif(U >= A):\n ans = A*T+A\n \nprint(ans)\n', 'a = list(map(int,input().split()))\nN = a[0]\nblue = a[1]\nred = a[2]\nans = 0\nA = blue + red\nX = N // A\nY = N % A\nif Y <= blue:\n ans = blue * X + Y\nelse:\n ans = blue * X + blue\nprint(ans)', "S = list(input())\nans = 0\n\nfor i in range(0,2):\n if(S[i] != S[i+1]):\n ans = 1\n break\n else :\n ans = 0\n\nif(ans == 1):\n print('Yes')\nelif(ans == 0):\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s269672098', 's394837497', 's388984493'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [228, 190, 192] |
p02753 | u175590965 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\ns.sort()\nif s[0] != s[1] or s[1] != s[2]:\n print("Yes")\nelse:\n print("No")', 's = input()\nif len(set(s)) ==2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s170838386', 's077671086'] | [8840.0, 9088.0] | [26.0, 27.0] | [92, 70] |
p02753 | u175746978 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = int(input())\nif N == AAA or N == BBB:\n print(No)\nelse:\n print(Yes)\n', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s916665025', 's241115585'] | [2940.0, 2940.0] | [17.0, 18.0] | [73, 76] |
p02753 | u179304833 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nif S[0]==S[1]orS[1]==S[2]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nif S[0]==S[1] and S[0]==S[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s621225789', 's596651649'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 76] |
p02753 | u182139295 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['# -*- coding: utf-8 -*-\n#import math\n\n\nstation = input()\n\nif(station[0] != station[1] || station[0] != station[2]):\n print("No")\nelse:\n print("Yes")\n', '# -*- coding: utf-8 -*-\n#import math\n\n\nstation = input()\n\nif(station[0] != station[1] or station[0] != station[2]):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s702150589', 's219836277'] | [2940.0, 2940.0] | [17.0, 18.0] | [168, 168] |
p02753 | u182594853 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\nif s =="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 's=str(input())\nif s =="AAA":\n print("No")\nelif s == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s723610662', 's157246675'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 101] |
p02753 | u182898140 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s=str(input())\n\nif s[0]==s[1] and s[1]==s[2]:\n print('Yes')\nelse:\n print('No')", "s=str(input())\n\nif 'A' in s and 'B' in s:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s910383470', 's288085689'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 76] |
p02753 | u183966781 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s=input()\nif s =='AAA' or s == 'BBB':\n print('Yes')\nelse:\n print('No')", "s=input()\nif s =='AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s517594517', 's111185888'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 76] |
p02753 | u185405877 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['x,y= list(map(int, input().split()))\ni = list(map(int, input().split()))\ni.sort(reverse=True)\nk=sum(i)\nflag=0\nfor j in range(x):\n if i[j]<(k/(4*(j+1))):\n pass\n else:\n flag+=1\nif flag!=y:\n print("No")\nelse:\n print("Yes")', 'n=input()\nif n=="AAA" or n=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s769410151', 's807795832'] | [3064.0, 2940.0] | [17.0, 17.0] | [245, 73] |
p02753 | u186121428 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nprint("Yes" if S == "AAA" or S == "BBB" else "No")', 'S = input()\nprint("No" if S == "AAA" or S == "BBB" else "Yes")'] | ['Wrong Answer', 'Accepted'] | ['s607755854', 's290448468'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 62] |
p02753 | u187995923 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\nif s[0]==s[1]==s[2]:\n print("Yes")\nelse:\n print("No")', 's=input()\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s154899249', 's967248198'] | [2940.0, 2940.0] | [19.0, 18.0] | [69, 69] |
p02753 | u188827677 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = list(input())\n\nif s.count('A') > 0 and s.count('B') > 0:\n print('YES')\nelse:\n print('No')\n\n", 's = input()\nprint("Yes" if s.count("A") > 0 and s.count("B") > 0 else "No")'] | ['Wrong Answer', 'Accepted'] | ['s431696778', 's019362717'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 75] |
p02753 | u190178779 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import sys\nS = input()\n\nif not ( len(S) == 3 and ( "A" in S or "B" in S)): sys.exit()\n\nprint(\'No\') if S = \'AAA\' or S = \'BBB\' else print(\'Yes\')', 'import sys\nS = input()\n\nif not ( len(S) == 3 and ( "A" in S or "B" in S)): sys.exit()\n\nprint(\'No\') if S == \'AAA\' or S == \'BBB\' else print(\'Yes\')'] | ['Runtime Error', 'Accepted'] | ['s489179255', 's919044698'] | [9016.0, 8920.0] | [21.0, 31.0] | [142, 144] |
p02753 | u190616335 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['#!/usr/bin/python3\n# -*- coding: utf-8 -*-\nn = input()\nif n == "aaa" or == "bbb":\n print("No")\nelse:\n print("Yes")\n\n\n', '#!/usr/bin/python3\n# -*- coding: utf-8 -*-\nn = input()\nif n == "AAA" or n == "BBB":\n print("No")\nelse:\n print("Yes")\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s056761332', 's850029509'] | [2940.0, 3060.0] | [18.0, 19.0] | [124, 125] |
p02753 | u190735555 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=input()\nif S=='AAA' or S=='BBB':\n print ('Yes')\nelse:\n print ('No')", "S=input()\nif S=='AAA' or S=='BBB':\n print ('No')\nelse:\n print ('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s082416655', 's009362522'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 75] |
p02753 | u192042624 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['# import module\nimport sys\nimport math\nimport numpy as np\n\nS = input()\n\nif S.find(A) != -1 and S.find("B") != 0:\n print("Yes")\nelse:\n print("No")', '# import module\nimport sys\nimport math\nimport numpy as np\n\nS = input()\n\nif S.find("A") != -1 and S.find("B") != -1:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s886762911', 's521430985'] | [12504.0, 12504.0] | [150.0, 150.0] | [151, 154] |
p02753 | u194637581 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input().split()\nif len(S)==3 and S.count('A')==2 or S.count('B')==2:\n print('Yes')\nelse:\n print('No')", "S = input()\nif len(S)==3 and S.count('A')==2 or S.count('B')==2:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s716285484', 's200295207'] | [2940.0, 2940.0] | [18.0, 18.0] | [111, 103] |
p02753 | u201082459 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a,b = map(int,input().split())\nfor x in range(b * 10,(b + 1) * 10):\n if int(x * 0.08) == a and int(x * 0.1) == b:\n print(x)\n break\nelse:\n print(-1)', "s = str(input())\nif s == 'BBB' or s == 'AAA':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s360020015', 's679473974'] | [2940.0, 3064.0] | [17.0, 18.0] | [167, 84] |
p02753 | u201387466 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['N,A,B = map(int,input().split())\nif A ==0 :\n print(0)\nelif B==0:\n print(N)\nelse:\n m = N % (A+B)\n n = N // (A+B)\n ans = A * n\n if m > A:\n print(ans+A)\n else:\n print(ans+m)\n\n', 'S = list(input())\nif S[0] == "A" and S[1] == "A" and S[2] == "A":\n print("No")\nelif S[0] == "B" and S[1] == "B" and S[2] == "B":\n print("No")\nelse:\n print("Yes")\n '] | ['Runtime Error', 'Accepted'] | ['s653232776', 's080285441'] | [2940.0, 2940.0] | [17.0, 17.0] | [207, 174] |
p02753 | u201928947 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s == 'AAA' or s == 'ABA':\n print('No')\nelse:\n print('Yes')", "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s339892043', 's796673411'] | [3060.0, 2940.0] | [20.0, 17.0] | [79, 80] |
p02753 | u204260373 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=input()\nA,B=map(str,input().split())\nlist=[0,1,2]\n\nif list[0]==A and list[1]==A and list[2]==A or list[0]==B and list[1]==B and list[2]==B:\n print('No')\nelse:\n print('Yes')", 'def yesno(S)\n\nif S=="AAA" or S=="BBB":\n return("No")\nelse:\n return("Yes")\nS=input()\nprint(yesno(S))\n', 'def yesno(S):\n\nif S=="AAA" or S=="BBB":\n return("No")\nelse:\n return("Yes")\nS=input()\nprint(yesno(S))\n', 'def yesno(S)\n\nif S=="AAA" or S=="BBB":\n return "No"\nelse:\n return "Yes"\nS=input()\nprint(yesno(S))\n', "def yesno(S)\n\nif S=='AAA' or S=='BBB':\n return('No')\nelse:\n return('Yes')\nS=input()\nprint(yesno(S))", "a,b=map(str,input().split())\ns=str(input())\n\nif s==aaa or s=bbb:\n print('No')\n \nelse:\n print('Yes')", "def yesno(S)\nS=int(input())\nif S=='AAA' or S=='BBB':\n return('No')\nelse:\n return('Yes')\nprint(yesno(S))\n ", 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s385938095', 's632937671', 's740059199', 's772662167', 's907076922', 's969976104', 's999587933', 's226423766'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [176, 102, 103, 100, 101, 102, 108, 69] |
p02753 | u205087376 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "s = str(input())\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s775695690', 's214985551'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 86] |
p02753 | u207137484 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\nif s=ABA:\n\tprint("Yes")\nelse:\n\tprint()', 's=input()\nif s==ABA:\n\tprint("Yes")\nelse:\n\tprint()', 's=input()\na=s[0]\nb=s[1]\nc=s[2]\nif a== b and b==c:\n\tprint("No")\nelse:\n\tprint("Yes")\n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s185910913', 's588665160', 's639489656'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [48, 49, 84] |
p02753 | u207576418 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["n = list(input())\ns = 'S'\nans = 'NO'\nfor i in range(3):\n s = n[i]\n if i <= 1:\n if s != n[i+1]:\n ans = 'YES'\nprint(ans)\n \n", "n = list(input())\ns = 'S'\nans = 'No'\nfor i in range(3):\n s = n[i]\n if i <= 1:\n if s != n[i+1]:\n ans = 'Yes'\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s251388594', 's047110285'] | [2940.0, 2940.0] | [17.0, 17.0] | [132, 128] |
p02753 | u208947104 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['list=input()\nif list[0]==list[1]==list[2]:\n print("Yes")\nelse:\n print("No")\n', 'st=input()\nif st[0]==st[1]==st[2]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s771966388', 's441240361'] | [2940.0, 2940.0] | [18.0, 17.0] | [91, 73] |
p02753 | u209275335 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a = list(input().count("A"))\nif a == 3:\n print("No")\nelif a == 0:\n print("No")\nelse:\n print("Yes")', 'a = list(input().count("A"))\nif a = 3:\n print("No")\nelif a = 0:\n print("No")\nelse:\n print("Yes")', 's = input()\nif s == "BBB" or s == "AAA":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s942788930', 's958702573', 's503373077'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 19.0] | [101, 99, 79] |
p02753 | u209299893 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["\n\ns = input()\n\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "\n\ns = input()\n\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s859816299', 's431747950'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 82] |
p02753 | u211277872 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input().strip()\nif(S[0] == S[1]):\n p = 0\nelse:\n p = 1\nif (S[1] == S[2]):\n q = 0\nelse:\n q = 1\nprint(p + q)', 'S = input().strip()\nif(S[0] == S[1] and S[1] == S[2]):\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s144672836', 's864670991'] | [3060.0, 2940.0] | [17.0, 17.0] | [121, 93] |
p02753 | u212263866 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["bus = input()\n\nif not 'A' in bus:\n print( 'Yes' )\nif not 'B' in bus:\n print( 'Yes' )\nelse\n print( 'No' )\n ", 'a = input()\nq = int(input())\n\nfflag = 0\nfor i in range(q):\n qi = input()\n if( qi == "1"):\n fflag += 1 \n else:\n if( fflag%2 == 0 ):\n if( qi[2] == "2" ):\n a += qi[4]\n else:\n a = qi[4] + a\n else:\n if( qi[2] == "2" ):\n a = qi[4] + a\n else:\n a += qi[4] \n \nif( fflag%2==0 ):\n print( a )\nelse:\n print( a[::-1] )\t', 'a = input()\nq = int(input())\n\nfflag = 1\nfor i in range(q):\n qi = input()\n if( qi == "1"):\n fflag *= -1 \n else:\n if( fflag == 1 ):\n if( qi[2] == "2" ):\n a += qi[4]\n else:\n a = qi[4] + a\n else:\n if( qi[2] == "2" ):\n a = qi[4] + a\n else:\n a += qi[4] \n \nif( fflag == 1 ):\n print( a )\nelse:\n print( a[::-1] )\t', "bus = input()\nif not( 'A' in bus):\n print( 'No')\nelif not( 'B' in bus):\n print( 'No' )\nelse:\n print( 'Yes' )"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s047945987', 's645376897', 's681380677', 's555677362'] | [2940.0, 3064.0, 3064.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [110, 375, 374, 111] |
p02753 | u215203926 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input("")\ns = list(s)\n\nif s[0] != s[1] or s[1] != s[2]:\n print("YES")\nelse:\n print("NO")\n', '"""\nrami dior ball.\nworking on atcoder beginner contest 158\n"""\n\ns = input("")\ns = list(s)\n\nif s[0] != s[1] or s[1] != s[2]:\n print("YES")\nelse:\n print("NO")\n', 's = input("")\ns = list(s)\n\nif s[0] != s[1] or s[1] != s[2]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s037572641', 's861785563', 's218698110'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [99, 164, 95] |
p02753 | u215286521 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['nums = list(map(int, input().split()))\nn = nums[0]\na = nums[1]\nb = nums[2]\n\nif a == 0:\n print(0)\nelif b == 0:\n print(n)\nelse:\n print(n / (a+b) * a)', 'list = list(input())\n\nif list[0] != list[1] and list[1] != list[2]:\n print(\'YES\')\nelif list[0] != list[2] and list[1] != list[2]:\n print(\'YES\')\nelse :\n print("NO")', 'list = str(input())\n\nif list is not "AAA" and list is not "BBB" :\n print("No")\nelse : \n print("Yes")\n', 'list = str(input())\n\nif list is "AAA" or list is "BBB" or len(list(list)) is not 3:\n print("No")\nelse : \n print("Yes")\n', 'list = str(input())\n\nif list == \'AAA\' or list == \'BBB\' or len(list) != 3:\n print("No")\nelse : \n print("Yes")\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s199518264', 's350372901', 's440550522', 's996711659', 's097618095'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 18.0, 17.0] | [155, 172, 107, 125, 115] |
p02753 | u217303170 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s[1]!=s[2] and s[2]!=s[3]:\n print('Yes')\nelse:\n print('No')", "s = input()\nif not s[1]==s[2] and s[2]==s[3]:\n print('No')\nelse:\n print('Yes')", "s = input()\nif not s[1]==s[2]==s[3]:\n print('No')\nelse:\n print('Yes')", "s = input()\nif s=='AAA' or s==s'BBB:\n print('No')\nelse:\n print('Yes')", "s = input()\nif s=='AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s020043428', 's518603390', 's615801876', 's700622411', 's960603379'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0, 18.0] | [80, 84, 75, 75, 75] |
p02753 | u217556271 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import math\nimport string\nimport itertools\nimport fractions\nimport heapq\nimport collections\nimport re\nimport array\nimport bisect\nimport sys\nimport random\nimport time\ninf = 10**9\n\n\ndef main():\n s = input()\n if s == \'AAA\' or s == \'BBB\':\n print("Yes")\n else:\n print(\'No\')\n\n\nif __name__ == \'__main__\':\n main()\n', 'import math\nimport string\nimport itertools\nimport fractions\nimport heapq\nimport collections\nimport re\nimport array\nimport bisect\nimport sys\nimport random\nimport time\ninf = 10**9\n\n\ndef main():\n s = input()\n if s == \'AAA\' or s == \'BBB\':\n print("No")\n else:\n print(\'Yes\')\n\n\nif __name__ == \'__main__\':\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s286529814', 's140314423'] | [5424.0, 5420.0] | [40.0, 40.0] | [332, 332] |
p02753 | u217836256 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import math as mt\nK = input().split(" ")\nA = int(K[0])\nB = int(K[1])\na = float(A*12.5)\nt = float((A+1)*12.5)\nt1 = mt.ceil(t)\nb = B*10\na1 = mt.ceil(a)\nA_data = []\nB_data = []\nfor i in range(b,b+10):\n A_data.append(i)\nfor i in range(a1,a1+t1):\n B_data.append(i)\nA_set = set(A_data)\nB_set = set(B_data)\nAB_set = A_set & B_set\nif AB_set:\n P = min(AB_set)\n print(P)\nelse:\n print(-1)\n \n\n', 'S = input()\nif S == "AAA" or S =="BBB":\n print(\'No\')\nelse:\n print(\'Yes\')'] | ['Runtime Error', 'Accepted'] | ['s823683424', 's757789814'] | [3064.0, 2940.0] | [18.0, 18.0] | [399, 78] |
p02753 | u217936379 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a = input()\nQ = int(input())\nQy = [list(map(str,input().split())) for i in range(Q)]\n\nfor i in range(Q):\n if Qy[i][0] == "1":\n a = a[::-1]\n elif Qy[i][1] == "1":\n a = Qy[i][2] + a\n else :\n a += Qy[i][2]\nprint(a)', 'S = input() \n\nif S.replace("A" ,"") == "" or S.replace("B", "") == "":\n print("No")\nelse:\n print("YES")', 'S = input() \n\nif S.replace("A" ,"") == "" or S.replace("B", "") == "":\n print("No")\nelse:\n print("YES")', 'S = input() \n\nif S.replace("A" ,"") == "" or S.replace("B", "") == "":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s309844423', 's476627019', 's793165298', 's842981169'] | [3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [241, 109, 109, 109] |
p02753 | u218834617 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s=input()\nprint('YES' if len(set(s))>1 else 'NO')\n", "s=input()\nprint('Yes' if len(set(s))>1 else 'No')\n"] | ['Wrong Answer', 'Accepted'] | ['s863875508', 's213548870'] | [8944.0, 9080.0] | [31.0, 33.0] | [50, 50] |
p02753 | u223574877 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a=input()\nif a == "AAA" or a == "BBB":\n\tprint("No")\nelse:\n\tprint("yes")', 'a=input()\nif a == "AAA" or a == "BBB":\n\tprint("No")\nelse:\n\tprint("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s692149615', 's502019652'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 73] |
p02753 | u224119985 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['N,A,B=map(int,input().split())\ni=N//((A+B)*(10**100))*A\nif N%((A+B)*(10**100))>A:\n i=i+A\nelse:\n i=i+(N%(A+B)*(10**100))\nprint(i)\n', 'N, A, B = [int(i) for i in input().split()]\ni=(N//(A+B))*A\nif N%(A+B)>A:\n i=i+A\nelse:\n i=i+(N%(A+B))\nprint(i)', "def judge(S):\n if (S[1]==S[2] and S[1]==S[3]):\n print('No')\n else:\n print('Yes')", "(A,B)=map(int, input().split())\n \nfor x in range(10000):\n if (int(x*0.08)==A and int(x*0.1)==B):\n print(x)\n break\n else:\n print('-1')", "def judge(S):\n S=input()\n if (S[0]==S[1] and S[0]==S[2]):\n print('No')\n else:\n print('Yes')\n", "def judge(S):\n S=input()\n if (S[1]==S[2] and S[1]==S[3]):\n print('No')\n else:\n print('Yes')", 'N,A,B=map(int,input().split())\ni=N//(A+B)*A\nif N%(A+B)>A:\n i=i+A\nelse:\n i=i+(N%(A+B))\nprint(i)', 'N,A,B=map(int,input().split())\ni=(N//((A+B)*(10**100)))*A\nif N%((A+B)*(10**100))>A:\n i=i+A\nelse:\n i=i+(N%(A+B)*(10**100))\nprint(i)\n', 'N,A,B=map(int,input().split())\ni=(N//(A+B))*A\nif N%(A+B)>A:\n i=i+A\nelse:\n i=i+(N%(A+B))\nprint(i)', 'N,A,B=map(int,input().split())\ni=((A+B)*(10**100)//N)*A\nif ((A+B)*(10**100))%N>A:\n i=i+A\nelse:\n i=i+((A+B)*(10**100)%N)\nprint(i)', 'N,A,B=map(int,input().split())\ni=N//((A+B)*(10**100))*A\nif N%((A+B)*(10**100))>A:\n i=i+A\nelse:\n i=i+(N%(A+B)*(10**100))\nprint(i)', 'N,A,B=map(int,input().split())\ni=(N//(A+B))*A\nif N%(A+B)>A:\n i=i+A\nelse:\n i=i+(N%(A+B))\nprint(i)', "S=input()\nif (S[0]==S[1]==S[2]):\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s033583021', 's100027532', 's142482912', 's247122397', 's284301825', 's483293105', 's707988788', 's709262417', 's762479955', 's768187914', 's772978376', 's856865618', 's790896799'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0] | [135, 115, 100, 160, 115, 114, 100, 137, 102, 134, 134, 102, 72] |
p02753 | u228026606 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["# coding: utf-8\n \n \ndef main():\n \n in_data = input()\n \n if (in_data == 'AAA' or\n in_data == 'BBB'):\n print('NO')\n else:\n print('YES')\n \n return 0\n \n \nif __name__ == '__main__':\n main()\n", "# coding: utf-8\n \n \ndef main():\n \n in_data = input()\n \n if (in_data == 'AAA' or\n in_data == 'BBB'):\n print('No')\n else:\n print('Yes')\n \n return 0\n \n \nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s791438722', 's749345230'] | [2940.0, 2940.0] | [17.0, 17.0] | [223, 223] |
p02753 | u228636605 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nfg = 0\nfor i in range(2):\n if s[i] != s[i+1]:\n fg = 1\nif fg == 1:\n print("YES")\nelse:\n print("No")', 'import math\n\na , b = map(int , input().split())\n\nfor i in range(10000):\n if math.floor(i * 0.08) == a and math.floor(i* 0.1) == b:\n print(i)\n break\n\nprint(-1)', 's = input()\nfg = 0\nfor i in range(2):\n if s[i] != s[i+1]:\n fg = 1\nif fg == 1:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s154208073', 's785730167', 's773629232'] | [2940.0, 3064.0, 2940.0] | [18.0, 17.0, 17.0] | [126, 175, 126] |
p02753 | u229429359 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nL = [S[i] for i in range(3)]\n\nT = "No"\nfor i in range(3):\n if S[i] not in L:\n T = "Yes"\nprint(T)', 'S = input()\n\nv = S[0]\n\nT = "No"\n\nif v != S[1] or v != S[2]:\n T = "Yes"\nprint(T)'] | ['Wrong Answer', 'Accepted'] | ['s963746495', 's264942360'] | [2940.0, 2940.0] | [18.0, 17.0] | [113, 80] |
p02753 | u229518917 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=input()\nstation=set(S)\nif len(station)>1:\n print('No')\nelse:\n print('Yes')", "S=input()\nstation=set(S)\nif len(station)>1:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s649161352', 's382484185'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p02753 | u231229291 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif len(set(s)) == 1:\n print(False)\nelse:\n print(True)', 's = input()\nif len(set(s)) == 1:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s859942253', 's069442608'] | [2940.0, 2940.0] | [18.0, 17.0] | [71, 71] |
p02753 | u233517118 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['\nif S == "AAA" or S == "BBB":\n print("NO")\nelse:\n print("YES")', 'if S[0] == S[1] and S[1] == S[2]:\n print("NO")\nelse:\n print("YES")', 'string = input()\nif string == "AAA" or string == "BBB":\n print("NO")\nelse:\n print("YES")', 'if len(set(S)) != 2:\n print("NO")\nelse:\n print("YES")', 'S = input()\nif len(set(S)) != 2:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s090995316', 's203849935', 's719759744', 's898810040', 's164685025'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0] | [68, 68, 94, 55, 67] |
p02753 | u234733300 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['str = input()\nif str.find(\'A\') and str.find(\'B\'):\n\tprint("Yes")\nelse :\n \tprint("No")', 'str = input()\ncount_A = str.count(\'A\')\ncount_B = str.count(\'B\')\nif count_A > 0 and count_B > 0:\n print(\'Yes\')\nelse :\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s200710702', 's390660003'] | [2940.0, 2940.0] | [18.0, 17.0] | [85, 131] |
p02753 | u235783479 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['\nS = input()\nQ = int(input())\n\n# print(S, Q)\n\nqueries = []\nfor i in range(Q):\n query = input()\n queries.append(query)\n\nfrom collections import deque\nslist = deque()\nslist.append(S)\nisReversed = False\nfor query in queries:\n if query == "1":\n isReversed = not isReversed\n else:\n t, f, c = query.split()\n if f == \'1\':\n if isReversed:\n slist.append(c)\n else:\n slist.appendleft(c)\n else:\n if isReversed:\n slist.appendleft(c)\n else:\n slist.append(c)\n# slist = list(slist)\nif isReversed:\n slist.reverse()\n\nprint("".join(slist))\n# print(S)', 'S = input()\nif S == "AAA" or S=="BBB":\n print("No")\nelse:print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s418805845', 's967182781'] | [3064.0, 2940.0] | [17.0, 17.0] | [678, 73] |
p02753 | u236823931 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | [' s = input()\n print("no" if s == "AAA" or s == "BBB" else "yes")', "if __name__ == '__main__':\n s = input()\n print('Yes' if s == 'AAA' or s == 'BBB' else 'No')\n", 'if __name__ == \'__main__\':\n (a,b,c) = input()\n print("no" if a == b == c else "yes")', 'if __name__ == \'__main__\':\n (a,b,c) = input()\n print("no" if a == b or b == c else "yes")', "if __name__ == '__main__':\n s = input()\n n = int(input())\n for _ in range(n):\n q = input().split()\n if q[0] == '1':\n s = s[::-1]\n else:\n if q[1] == '1':\n s = q[2]+s\n else:\n s = s+q[2]\n print(s)", 'if __name__ == \'__main__\':\n s = input()\n print("no" if s == "AAA" or s == "BBB" else "yes")', 'if __name__ == \'__main__\':\n i = input()\n print("yes" if len(set(i)) != 1 else "no")', "if __name__ == '__main__':\n s = input()\n print('No' if s == 'AAA' or s == 'BBB' else 'Yes')\n"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s062967842', 's104678631', 's198875432', 's213761770', 's372633095', 's416823402', 's926452213', 's878865530'] | [2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0, 18.0, 18.0, 18.0, 17.0] | [70, 98, 90, 95, 289, 97, 89, 98] |
p02753 | u237601489 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s == AAA :\n print("Yes")\nelif s == ABB :\n print("Yes")\nelif s == AAB :\n print("Yes")\nelif s == ABA :\n print("Yes")\nelif s == BAA :\n print("Yes")\nelif s == BBA :\n print("Yes")\nelif s == BAB :\n print("Yes")\nelse :\n print("No")', 's=input()\nif s == ABB :\n print("Yes")\nelif s == AAB :\n print("Yes")\nelif s == ABA :\n print("Yes")\nelif s == BAA :\n print("Yes")\nelif s == BBA :\n print("Yes")\nelif s == BAB :\n print("Yes")\nelse :\n print("No")\n', 's=input()\nif s == AAA :\n print("Yes")\nelif s == ABB :\n print("Yes")\nelif s == AAB :\n print("Yes")\nelif s == ABA :\n print("Yes")\nelif s == BAA :\n print("Yes")\nelif s == BBA :\n print("Yes")\nelif s == BAB :\n print("Yes")\nelse :\n print("No")\n', 's=input()\nif s == "ABB" :\n print("Yes")\nelif s == "AAB" :\n print("Yes")\nelif s == "ABA" :\n print("Yes")\nelif s == "BAA" :\n print("Yes")\nelif s == "BBA" :\n print("Yes")\nelif s == "BAB" :\n print("Yes")\nelse :\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s111416174', 's756617667', 's779750236', 's066250037'] | [3060.0, 3064.0, 2940.0, 3060.0] | [18.0, 18.0, 18.0, 18.0] | [263, 229, 262, 241] |
p02753 | u238084414 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nif S.count("A") == 3 or S.count("B") == 3:\n print("Yes")\nelse:\n print("No")', 'S = input()\nA = False\nB = False\n\nfor s in S:\n if s == "A":\n A = True\n else:\n B = True\n\nif A == True and B == True:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s107525280', 's224715205'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 158] |
p02753 | u241026150 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["N = str(input())\nif N == 'AAA' or N == 'BBB':\n print('Yes')\nelse:\n print('No')", "N = str(input())\nif N == 'AAA' or N == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s502849057', 's510768237'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p02753 | u246127272 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a, b = map(int, input().split())\na = float(a)\nb = float(b)\nfor i in range(-7000, 7000):\n\tif float(i) * 0.08 == a and float(i) * 0.1 == b:\n\t\tprint(i)\n\t\texit(0)\nprint(-1)\n', "a = input()\nprint('Yes' if 'A' in a and 'B' in a else 'No')\n"] | ['Runtime Error', 'Accepted'] | ['s374655056', 's801429545'] | [2940.0, 2940.0] | [17.0, 17.0] | [169, 60] |
p02753 | u246343119 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import math\n\nA, B = map(int, input().split())\nans = -1\na1 = math.ceil(A*12.5)\na2 = (A+1)*12.5\n\na = [i for i in range(a1, int(a2)) if i < a2]\n\nb1 = B*10\nb2 = (B+1)*10\n\nb = list(range(b1, b2))\n\nfor i in a:\n if i in b:\n ans = i\n break\n\nprint(ans)\n\n\n', "s = input()\n\nans = 'Yes'\n\nif (s[0] == s[1] == s[2]):\n ans = 'No'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s814996394', 's805865496'] | [3064.0, 2940.0] | [18.0, 17.0] | [263, 79] |
p02753 | u246809151 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=str(input())\n\nif S[0] == S[1] == S[2]:\n print('Yes')\nelse :\n print('No')", "S=input()\n\nif S[0] == S[1] == S[2]:\n print('Yes')\nelse :\n print('No')", "S=input()\n\nif S[0] == S[1] == S[2]:\n print('Yes')\nelse :\n print('No')\n", "S=str(input())\n\nif S[0] == S[1] == S[2]:\n print('No')\nelse :\n print('Yes')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s000387031', 's029727021', 's504710688', 's736061560'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [80, 75, 76, 81] |
p02753 | u246895837 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\n\nif s[0] == s[1] == s[2]:\n print('Yes')\nelse:\n print('No')", "s = input()\n\nif s[0] == s[1] == s[2]:\n print('Yes')\nelse:\n print('No')", "S = input()\n\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s581642943', 's663601068', 's392508471'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 76, 76] |
p02753 | u247680229 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a=str(input())\n\nif "a" and "b" in a:\n print("Yes")\n \nelse:\n print("No")', 'S=str(input())\nif S=="AAA" :\n print("No")\nelif S=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s749310758', 's303758406'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 98] |
p02753 | u247830763 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = int(input())\nif s in "AAA-BBB":\n print("No")\nelse:\n print("Yes")\n', 's = input()\nif s in "AAA-BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s787865958', 's698916896'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 70] |
p02753 | u250381674 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nif S == "AAA" or S == "BBB":\n print("no")\n \nelse:\n print("yes")\n', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("No")\n \nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s234702101', 's156886917'] | [2940.0, 2940.0] | [18.0, 18.0] | [80, 79] |
p02753 | u250944591 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s=input()\nif A,B in s:\n print('Yes')\nelse:\n print('No')", "s=input()\nif 'A','B' in s:\n print('Yes')\nelse:\n print('No')", "s=input()\nif 'A' in s and 'B' in s:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s090547468', 's107052376', 's216357598'] | [8860.0, 8820.0, 8948.0] | [23.0, 24.0, 30.0] | [57, 61, 70] |
p02753 | u253481827 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nans = 'Yes'\n\nif(s == 'AAA' || s == 'BBB'):\n ans = 'No'\n\nprint(ans)", "s = input()\nans = 'Yes'\n\nif(s == 'AAA' or s == 'BBB'):\n ans = 'No'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s160301688', 's500477492'] | [8872.0, 9080.0] | [26.0, 29.0] | [81, 81] |
p02753 | u254221913 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nif S in 'A' and S in 'B':\n print('Yes')\nelse:\n print('No')", "S = input()\nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s405855153', 's901157291'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 76] |
p02753 | u256833330 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a,b=map(int,input().split())\nif a>80:\n print(-1)\nelif a==b:\n if a<=3:\n print(25*a//2)\n else:\n print(-1)\nelse:\n if -(-25*a//2) <= 10*b and -(-25*a//2) > 9*b:\n print(25*a//2)\n else:\n print(-1)\n\n', "s=input()\nprint('Yes' if 'A' in s and 'B' in s else 'No')\n"] | ['Runtime Error', 'Accepted'] | ['s786792837', 's638988790'] | [2940.0, 2940.0] | [18.0, 17.0] | [235, 58] |
p02753 | u256921850 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')", "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s652375144', 's867939101'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 80] |
p02753 | u257084573 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\na = count("A")\nif a == 3:\n print("No")\nelse:\n print("Yes")', 'S = input()\na = S.count("A")\n\nif a == 3 or a == 0:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s090926999', 's505672158'] | [2940.0, 2940.0] | [18.0, 17.0] | [76, 89] |
p02753 | u258815449 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['def yesno(S):\n if S==AAA or S==BBB:\n return No\n else:\n return Yes\n \nprint(yesno(S))', 'def yesno(S):\n if S=="AAA" or S=="BBB":\n return "No"\n else:\n return "Yes"\n \nS=input()\nprint(yesno(S))\n'] | ['Runtime Error', 'Accepted'] | ['s643160713', 's968969513'] | [3064.0, 2940.0] | [17.0, 17.0] | [92, 111] |
p02753 | u259268066 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['x = input()\nprint(["Yes","No"][x == "AAA" | x == "BBB"])', 'x = input()\nprint(["Yes","No"][(x == "AAA") | (x == "BBB")])\n'] | ['Runtime Error', 'Accepted'] | ['s738978701', 's454342430'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 61] |
p02753 | u261103969 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\n\nnum = len(set(s)) \n\nif num > 1:\n print("No")\nelse:\n print("Yes")', 's = input()\n\nnum = len(set(s)) \n\nif num == 1:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s002366100', 's659813496'] | [2940.0, 2940.0] | [17.0, 17.0] | [167, 168] |
p02753 | u265118937 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s[0] == s[1] == s[2]:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s == "AAA" or s == "BBB":\n print("Yes")\nelse:\n print("No")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s362211994', 's547217510', 's683825320'] | [2940.0, 8940.0, 9020.0] | [17.0, 28.0, 29.0] | [71, 79, 79] |
p02753 | u267029978 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nif S = "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 'a = input()\nif a=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s268668515', 's626091499', 's460722816'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [70, 69, 76] |
p02753 | u268674745 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = inputu()\nif s[0] == s[1] and s[0] = s[2] and s[1] == s[2]:\n print("No")\nelse:\n print("Yes")', 's = input()\nif s[0] == s[1] and s[0] == s[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s318046376', 's444466406'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 80] |
p02753 | u269724549 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a,b=map(int,input().split())\nfor i in range(100):\n if(i//12.5==a and i//10==b):\n print(i)\n else:\n print("-1")', 's=input()\nif(s.count(\'A\')==0 or s.count(\'B\')==0):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s542756218', 's674773227'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 84] |
p02753 | u270983294 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nif s == 'AAA':\n print 'No'\nelif s == 'BBB':\n print 'No'\nelse:\n print 'Yes'", "s = input()\nif s == 'AAA':\n print('No')\nelif s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s490470654', 's787494551'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 92] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.