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 | u271752821 | 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())\nlist1 = []\nlist2 = []\nflag = 1\nfor i in range(q):\n in_line = input().split()\n if in_line[0] == "1":\n flag *= -1\n else:\n if in_line[1] == "1":\n if flag == 1:\n list1.append(in_line[2])\n else:\n list2.append(in_line[2])\n else:\n if flag == 1:\n list2.append(in_line[2])\n else:\n list1.append(in_line[2])\nif flag == 1:\n print("".join(list1[::-1]) + s + "".join(list2))\nelse:\n print("".join(list2[::-1]) + s + "".join(list1))\n', 'a, b = map(int, input().split())\nfor i in range(1,1009):\n if int(i*0.08) == a and int(i*0.1) == b:\n print(int(i))\nprint("-1")', 's = input()\nq = int(input())\nlist1 = []\nlist2 = []\nflag = 1\nfor i in range(q):\n in_line = input().split()\n if in_line[0] == "1":\n flag *= -1\n else:\n if in_line[1] == "1":\n if flag == 1:\n list1.append(in_line[2])\n else:\n list2.append(in_line[2])\n else:\n if flag == 1:\n list2.append(in_line[2])\n else:\n list1.append(in_line[2])\nif flag == 1:\n print("".join(list1[::-1]) + s + "".join(list2))\nelse:\n print("".join(list2[::-1]) + s + "".join(list1))\n', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s267414250', 's343738207', 's600867008', 's972175094'] | [3064.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [586, 135, 586, 79] |
p02753 | u273496671 | 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().split(" ")\nN = int(list[0])\nA = int(list[1])\nB = int(list[2])\n\nnum1 = N // (A + B)\nnum2 = N % (A + B)\nif num2 <= A:\n print(num1 * A + num2)\nelse:\n print(num1 * A + A)', 'S = input()\nif S == "AAA":\n print("No")\nelif S == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s720711623', 's495245377'] | [3060.0, 2940.0] | [18.0, 18.0] | [187, 98] |
p02753 | u274841648 | 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 "BBB":\n print("No")\nelse:\n print("Yes") ', 's = input()\n\nif s == "AAA" or "BBB":\n print("NO")\nelse:\n print("Yes") ', 's = input()\n\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes") '] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s684637041', 's729715333', 's444102821'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 76, 81] |
p02753 | u276686572 | 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 = "BBB" or s = "AAA": print("No")\nelse: print("Yes")', 's = input()\n\nif s == "BBB" or s == "AAA": print("No")\nelse: print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s700713056', 's189273197'] | [8940.0, 8944.0] | [23.0, 30.0] | [70, 73] |
p02753 | u277236383 | 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 ANS = "No"\nelse:\n ANS = "Yes"\n \nprint(ANS)', 'S = input()\nif S == "AAA"or S =="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s948371977', 's981340162'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 73] |
p02753 | u277641173 | 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. | ['print(["Yes","No"][input()=="BBB"or"AAA"])', 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s756467332', 's423350651'] | [2940.0, 2940.0] | [18.0, 18.0] | [42, 69] |
p02753 | u281796054 | 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=input()\nif n[0]==n[1] and n[1]==n[2]:\n print("Yes")\nelse:\n print("No")', '=input()\nif S=="BBB" or S=="AAA":\n print("No")\nelse:\n print(\'Yes\')', 'S=input()\nif S=+"BBB" or S=="AAA":\n print("No")\nelse:\n print(\'Yes\')', 'S=input()\nif S=="BBB" or S=="AAA":\n print("No")\nelse:\n print(\'Yes\')\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s345691902', 's450035060', 's773367210', 's720288564'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [74, 68, 69, 70] |
p02753 | u282657760 | 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'\nif S = 'AAA' or S = 'BBB':\n ans = 'No'\nprint(ans)", "S = input()\nans = 'Yes'\nif S == 'AAA' or S == 'BBB':\n ans = 'No'\nprint(ans)\n"] | ['Runtime Error', 'Accepted'] | ['s768144161', 's070160688'] | [3064.0, 2940.0] | [17.0, 17.0] | [74, 77] |
p02753 | u283605799 | 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\nimport sys\n\ndef prob_a(args):\n s = args[1]\n chars = list(s)\n tmpc = chars[0]\n for c in chars[1:]:\n if c == tmpc:\n continue\n else:\n print('Yes')\n return 0\n print('No')\n\nif __name__ == '__main__':\n args = input()\n prob_a(args)\n", "# -*- coding: utf-8 -*-\n\nimport sys\n\ndef prob_a(args):\n s = args[1]\n chars = list(s)\n tmpc = chars[0]\n for c in chars[1:]:\n if c == tmpc:\n continue\n else:\n print('Yes')\n return 0\n print('No')\n\nif __name__ == '__main__':\n args = sys.argv\n prob_a(args)\n", "# -*- coding: utf-8 -*-\n\nimport sys\n\ndef prob_a(s):\n chars = list(s)\n tmpc = chars[0]\n for c in chars[1:]:\n if c == tmpc:\n continue\n else:\n print('Yes')\n return 0\n print('No')\n\nif __name__ == '__main__':\n s = input()\n prob_a(s)\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s258493993', 's318556339', 's736812475'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [318, 319, 293] |
p02753 | u283853418 | 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()\ng=input()\nf = list(g)\nh =set(f)\nif len(h)==1:\n print('No')\nelse :\n print('Yes')", "S = input()\ng=input()\nf = list(g)\nprint(f)\nh =set(f)\nk = list(h)\nif len(k)==1:\n print('Yes')\nelse :\n print('No')", "S = input()\nS = int(S)\ng=input()\nf = list(g)\nif len(f) == S:\n h =set(f)\n k = list(h)\n if len(h)==1:\n print('No')\n else :\n print('Yes')\nelse:\n pass", "S = input()\ng=input()\nf = list(g)\nprint(f)\nh =set(f)\nif len(h)=1:\n print('Yes')\nelse :\n print('No')", "S = input()\ng=input()\nf = list(g)\nh =set(f)\nk = list(h)\nif len(h)==1:\n print('No')\nelse :\n print('Yes')", "g=input()\nf = list(g)\nh =set(f)\nk = list(h)\nif len(h)==1:\n print('No')\nelse : \nprint('Yes')", "g=input()\nf = list(g)\nh =set(f)\nk = list(h)\nif len(h)==1:\n print('No')\nelse : \n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s298715465', 's381455958', 's437572153', 's476746250', 's481828936', 's640451837', 's739220362'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 18.0, 18.0, 17.0, 17.0] | [93, 114, 157, 101, 105, 93, 95] |
p02753 | u285265363 | 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 = input().split()\n\nn = int(N / (A + B))\n\nif(N <= A+B):\n print(A)\nelse:\n print(N - B*n)', 'N, A, B = map(int, input().split())\n\nn = int(N / (A + B))\n\nif(N <= A + B):\n print(A)\nelse:\n print(N - B * n)', 'N, A, B = map(int, input().split())\n\nn = int(N / (A + B))\n\nif(N < A+B):\n print((n+1)*A)\nelif(N == A+B):\n print(A)\nelse:\n print(N -B*n)', 'S = input()\n\nif(S == "AAA"):\n print(\'No\')\nelif(S == "BBB"):\n print(\'No\')\nelse:\n print(\'Yes\')'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s450405822', 's744293890', 's840431232', 's393929507'] | [2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [100, 114, 143, 101] |
p02753 | u285497176 | 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())\nj = -1\nfor t in range(1009):\n if int(t*0.08) == a and int(t*0.1) == b:\n j = t\n break\n\nprint(j)\n', 'n, a, b = map(int, input().split())\n \nl = ""\nflag = True\ncount = 0\nwhile True:\n if flag == True:\n for x in range(a):\n l += "b"\n flag = False\n else:\n for y in range(b):\n l += "r"\n flag = True\n\n if len(l) >= n:\n break\n \nfor c in l:\n if c == "b":\n count += 1\n\nprint(count)\n', 'sta = input("station:")\n\nwhile len(sta) == 3:\n judge = ""\n count = 0\n result = ""\n for s in sta:\n if count == 0:\n judge = s\n count += 1\n else:\n if s == judge:\n result = "No"\n else:\n result = "Yes"', 'sta = input("station:")\njudge = ""\ncount = 0\nresult = ""\nfor s in sta:\n if count == 0:\n judge = s\n count += 1\n else:\n if s == judge:\n result = "No"\n else:\n result = "Yes"', 's = input("station:")\njudge = ""\ncount = 0\nresult = ""\nsta = [s[0], s[1], s[2]]\nprint(sta)\nfor s in sta:\n if count == 0:\n judge = s\n \n else:\n if s == judge:\n result = "No"\n else:\n result = "Yes"\n \n count = 1\nprint(result)\n\n\n', 'n, a, b = map(int, input().split())\n \nl = ""\nflag = True\ncount = 0\nwhile True:\n if flag == True:\n for x in range(a):\n l += "b"\n if len(l) == n:\n break\n flag = False\n else:\n for y in range(b):\n l += "r"\n if len(l) == n:\n break\n flag = True\n\n if len(l) >= n:\n break\n \nfor c in l:\n if c == "b":\n count += 1\n\nprint(count)\n', 's = input("station:")\njudge = ""\ncount = 0\nresult = ""\nsta = [s[0], s[1], s[2]]\nprint(sta)\nfor s in sta:\n if count == 0:\n judge = s\n else:\n if s == judge:\n result = "No"\n else:\n result = "Yes"\n break\n \n count = 1\nprint(result)\n\n\n', 'while True:\n sta = input()\n if len(sta) == 3:\n break\n\njudge = ""\ncount = 0\nresult = ""\nstation = [sta[0], sta[1], sta[2]]\nfor ss in station:\n if count == 0:\n judge = ss\n else:\n if ss == judge:\n result = "No"\n else:\n result = "Yes"\n break\n \n count = 1\nprint(result)\n\n\n'] | ['Runtime Error', 'Runtime Error', 'Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s129089981', 's306038177', 's337117642', 's343493211', 's397853428', 's526749261', 's899563132', 's316859297'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 3064.0, 3060.0, 3060.0] | [18.0, 17.0, 2104.0, 18.0, 17.0, 18.0, 17.0, 17.0] | [144, 357, 296, 226, 294, 457, 303, 354] |
p02753 | u285595848 | 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(10000):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n exit()\nprint(=1)', 's = input()\nif (\'A\' in s) and (\'B\' in s):\n print("Yes")\nelse: print("No")'] | ['Runtime Error', 'Accepted'] | ['s039493181', 's433760848'] | [2940.0, 2940.0] | [17.0, 17.0] | [136, 74] |
p02753 | u288430479 | 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,c=map(int,input().split())\n\nsum = b + c\n\n\nset = int(a / sum)\n#print(set)\n\n\nblue_1 = set * b \n#print(blue_1)\n\n\namari = a % sum\n#print(amari)\n\nif amari <= b:\n print(blue_1 + amari)\n \nelse :\n print(blue_1 + b)', "a,b,c = input()\nif a==b==c:\n print('No')\n \nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s612180422', 's635449729'] | [2940.0, 2940.0] | [18.0, 17.0] | [318, 64] |
p02753 | u290784570 | 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. | ["stations = input()\ns = stations.split()\n\nif len(s) != 3:\n pass\nelif (s[0] == s[1] == s[2]):\n print('No')\nelif (s[0] != s[1] != s[2]):\n print('No')\nelse:\n print('Yes')\n", "stations = input()\ns = stations.split()\n\nif (s[0] == s[1] == s[2]):\n print('No')\nelif (s[0] != s[1] != s[2]):\n print('No')\nelse:\n print('Yes')\n ", "s = input()\n\nif (s[0] == s[2]) and (s[0] != s[1]):\n print('Yes')\nelif (s[1] == s[2]) and (s[0] != s[2]):\n print('Yes')\nelif (s[0] == s[1]) and (s[0] != s[2]):\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s065511981', 's814217878', 's616268856'] | [2940.0, 3060.0, 3060.0] | [17.0, 19.0, 17.0] | [179, 157, 204] |
p02753 | u291132512 | 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()\nif len(x) == len(set(x)):\n print("NO")\nelse:\n print("YES")\n ', 'x = input()\nif len(set(x))==1:\n print("NO")\nelse:\n print("YES")\n', 'x = input()\nif len(x) == set(x):\n print("NO")\nelse:\n print("YES")', 'x = input()\nif len(set(x))==1:\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s341041525', 's461621551', 's533905981', 's592062744'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [81, 70, 71, 70] |
p02753 | u296101474 | 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(' '))\n\nif a == 0:\n print(0)\nelif b == 0:\n print(n)\nelse:\n blue = (n // (a + b)) * a\n amari = n % (a+b)\n if amari > a:\n blue += a\n else:\n blue += amari\n\n print(blue)\n", "a = input()\nif len(set(a)) > 1:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s322247654', 's606827600'] | [3060.0, 2940.0] | [17.0, 17.0] | [233, 71] |
p02753 | u297089927 | 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())\nList=""\nwhile len(List) < N:\n List=+="b"*A+"r"*B\nif len(List) >= N:\n ans=List[:N]\n print(ans.count("b"))\n', 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s756868838', 's632296941'] | [2940.0, 3064.0] | [17.0, 17.0] | [141, 69] |
p02753 | u299791633 | 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())\nlead = \'\'\nend = \'\'\ninversion_flg = -1\n\nfor j in range(q):\n query = input().split()\n if query[0] == "1":\n inversion_flg *= -1\n else:\n if inversion_flg == 1:\n if query[1] == "1":\n query[1] = "2"\n else:\n query[1] = "1"\n if query[1] == "1":\n lead += query[2]\n else:\n end += query[2]\n\nlead = lead[::-1]\ns = lead + s + end\nif inversion_flg == 1:\n s = s[::-1]\nprint(s)\n', "a = input()\nif a.count('A') == 2 or a.count('B') ==2:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s165440533', 's092362717'] | [3064.0, 2940.0] | [17.0, 18.0] | [505, 92] |
p02753 | u301624971 | 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\nprint('Yes') if(S[0]!=S[2]) else print('No')", "\nS=input()\n\nprint('Yes') if(S[0]!=S[2] or S[1]!=S[2]) else print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s780098193', 's024018973'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 71] |
p02753 | u302435631 | 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 = imput ()\nif s [0] == s[1] or s[1] == s[2]:print('No')\nelse: print('Yes')", "s = input()\nif s[0] == s[1] or s[1] == s[2]: print('No')\n else: print('Yes')", "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse: \n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s015590604', 's407438990', 's265552563'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 77, 81] |
p02753 | u302697704 | 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,b,c = str.split()\nif a == b:\n if b == c:\n print ('No')\n else print ('Yes')\nelse print ('Yes')", "txt = input()\na,b,c = list(txt)\nif a == b:\n if b == c:\n print('No')\n else:\n print('Yes')\nelse :\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s901825966', 's348753161'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 118] |
p02753 | u303117012 | 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. | ['word = input()\n\nif word[0:0] == word[1:1] and word[0:0] == word[2:2] :\n print("No")\n \nelse : print("Yes")', 'word = input().split()\n\nx = 0\ni = 0\n\nfor i in range(3) :\n if word[i] != word[i+1] : x = x + 1\n \nif x == 0 : print("No")\n\nelse : print("Yes")', 'word = input().split()\n\nx = 0\n\nif word[1] != word[2] :\n x = x+1\n \nif word[2] != word[3] :\n x = x+1\n \nif word[3] != word[1] :\n x = x+1\n \nif x == 0 : print("No")\n \nelse : print("Yes")', 'word = input()\n\nif word[0:1] == word[1:2] and word[0:1] == word[2:] :\n print("No")\n \nelse : print("Yes")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s036899487', 's231095055', 's855244382', 's719822320'] | [2940.0, 2940.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0, 18.0] | [111, 144, 188, 110] |
p02753 | u303305161 | 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'\n else: print 'yes'", "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print 'no'\n else: print 'yes'", "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print ('No')\nelse: \n print ('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s480909053', 's900672760', 's743011959'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [82, 82, 87] |
p02753 | u303943871 | 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("No" if s == "AAA" or "BBB" else "Yes")', 's = input()\nprint("No" if s == "AAA" or s == "BBB" else "Yes")'] | ['Wrong Answer', 'Accepted'] | ['s884347030', 's268240281'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 62] |
p02753 | u305885563 | 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'] | ['s290868933', 's978066061'] | [3064.0, 2940.0] | [17.0, 17.0] | [71, 71] |
p02753 | u306497037 | 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()\n\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s862815793', 's223020098'] | [2940.0, 3064.0] | [17.0, 17.0] | [69, 72] |
p02753 | u306516971 | 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":\n print("No")\nelif S = "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\n \nif S = "AAA":\n print("No")\nelif S = "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\n \nif S == "AAA":\n print("No")\nelif S == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s175765607', 's264972883', 's914793695'] | [2940.0, 3188.0, 2940.0] | [17.0, 18.0, 17.0] | [91, 98, 100] |
p02753 | u306878731 | 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] or s[0] != s[2]):\n print("yes")\nelse:\n print("no")', 's = input()\n\nif (s[0] != s[1] or s[0] != s[2]):\n print("Yes")\nelse:\n print("No")\n '] | ['Wrong Answer', 'Accepted'] | ['s172154736', 's054338097'] | [3064.0, 2940.0] | [17.0, 17.0] | [86, 90] |
p02753 | u307418002 | 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():\n S =list(map(int,input().split()))\n if S[0] == S[1] and S[0] == S[2]\n print("No")\n else \n print("Yes")\n\n\nmain()\n ', 'def main():\n S =list(map(int,input().split()))\n if S[0] == S[1] and S[0] == S[2]:\n print("No")\n else :\n print("Yes")\n\n\nmain()\n ', 'def main():\n S =input()\n\n if S[0] == S[1] and S[0] == S[2]:\n\n print("No")\n else :\n print("Yes")\n\n\nmain()\n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s447932784', 's528287368', 's944438724'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [155, 157, 136] |
p02753 | u309120194 | 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 'BBB': print('No')\nelse: print('Yes')", "S = input()\n \n\nif S[0] == S[1] and S[1] == S[2]: print('No')\nelse: print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s134920360', 's744030376'] | [8948.0, 9096.0] | [30.0, 25.0] | [66, 119] |
p02753 | u309423187 | 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())\n\nfor i in range(10000):\n if a * 0.08 == b * 0.1:\n print(a)\n exit(0)\n else:\n print('-1')\n \n", "s = input()\n\nif s == 'AAA' or 'BBB':\n\tprint('No')\n\nelif s == 'AAB' or 'ABB' or 'BAA' or 'BBA' or 'BAB' or'ABA':\n\tprint('Yes')\n \n \n", "s = input()\n\nif s == 'AAA' or 'BBB':\n\tprint('No')\n\nelse:\n\tprint('Yes')\n \n ", 'a, b = map(int, input().split())\n\nfor i in range(10000):\n if i * 0.08 == a and i * 0.1 == b:\n print(i)\n exit(0)\nelse:\n print(-1)\n \n \n', "a, b = map(int, input().split())\n\nfor i in range(10000):\n if i == a * 0.08 and i == b * 0.1:\n print(i)\n exit(0)\nprint('-1')\n \n", "a, b = map(int, input().split())\n\nfor i in range(10000):\n if i == a * 0.08 and i == b * 0.1:\n print(i)\n exit(0)\n else:\n print('-1')\n \n", "a, b = map(int, input().split())\n\nfor i in range(10000):\n if i == a * 0.08 and i == b * 0.1:\n print(i)\n else:\n print('-1')\n \n", "s = input()\n\nif s == 'AAA' or s == 'BBB':\n print('No')\n \nelse:\n print('Yes')"] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s053304582', 's184065697', 's197977274', 's268235435', 's788193100', 's850221056', 's856082178', 's441698574'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 18.0, 19.0, 18.0, 17.0, 18.0] | [138, 134, 78, 148, 138, 150, 138, 85] |
p02753 | u311928787 | 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 input() == \'AAA\' or input() == \'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'] | ['s577086799', 's928382966'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 76] |
p02753 | u312907447 | 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())\nQ = int(input())\n\nqs = [input().split() for i in range(Q)]\n\nfor q in qs:\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\nprint(S)", "S = input()\n\n\nif ('AB' in S) | ('BA' in S):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s620977063', 's043104225'] | [2940.0, 3064.0] | [18.0, 17.0] | [237, 82] |
p02753 | u313317027 | 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\n \nN, A, B = map(int,input().split())\n \nans = 0\n \nif N < A:\n print(N)\n sys.exit()\n \nif N < A+B:\n print(A)\n sys.exit()\n\nif N%(A+B) <A:\n print((A*(N//(A+B))) + (N%(A+B)))\nelse:\n print((A*(N//(A+B))) + A)\n', 's = input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s061293376', 's693018763'] | [3060.0, 2940.0] | [18.0, 18.0] | [218, 71] |
p02753 | u314585898 | 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 = set(list(s))\nif len(s) == 1:\n print('Yes')\nelse:\n print('No')", "s = input()\ns = set(s)\nif len(s) == 1:\n print('Yes')\nelse:\n print('No')", "s = input()\ns = set(list(s))\nif len(s) != 1:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s512252390', 's716825554', 's964921034'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 77, 83] |
p02753 | u317423698 | 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\nprint('Yes' if set(sys.stdin.read().strip()) >= 2 else 'No')", "import sys\nprint('Yes' if len(set(sys.stdin.read().strip())) >= 2 else 'No')"] | ['Runtime Error', 'Accepted'] | ['s878403942', 's402283357'] | [8992.0, 9012.0] | [24.0, 29.0] | [71, 76] |
p02753 | u323045245 | 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 int(A/0.08*0.1) == B :\n print(round(A/0.08))\nelse:\n print(-1)\n', 'A, B = map(int, input().split())\nif int(A/0.08*0.1) == B :\n print(int(A/0.08))\nelse:\n print(-1)\n', 'S = input()\nif S.find("A") == -1 or S.find("B") == -1:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s036834719', 's707013405', 's846585491'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [104, 102, 94] |
p02753 | u324865921 | 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\na = False\nfor i in range(len(s)):\n if s[i] == "A":\n a = True\n break\n\nb = False\nfor i in range(len(s)):\n if s[i] == "B":\n b = True\n break\n\nprint(a and b)', 's = input()\n\n a = False\n for i in range(len(s)):\n if s[i] == "A":\n a = True\n break\n\n b = False\n for i in range(len(s)):\n if s[i] == "B":\n b = True\n break\n\n print(a and b)', '# -*- coding: utf-8 -*-\n\nT = 0\nF = 2\nC = 4\n\ns = input()\nq = int(input())\n\ncnt = 0\n\nfront = ""\nback = ""\n\nfor i in range(q):\n query = input()\n\n if query[T] == "1":\n cnt += 1\n continue\n\n \n if cnt % 2 == 0:\n if query[F] == "1":\n front = query[C] + front\n else:\n back = query[C] + back\n\n \n else:\n if query[F] == "1":\n back = query[C] + back\n else:\n front = query[C] + front\n\n\n# print(cnt)\n# print(front)\n# print(s)\n# print(back)\n\nmoji = front+s+back\n\nif cnt % 2 == 0:\n # print(s)\n pass\nelse:\n moji = moji[::-1]\n # print(s[::-1])\n\n# front = front[::-1]\n\n# print(front,s,back)\n\nprint(moji)\n', 's = input()\n\na = False\nfor i in range(len(s)):\n if s[i] == "A":\n a = True\n break\n\nb = False\nfor i in range(len(s)):\n if s[i] == "B":\n b = True\n break\n\nif a and b:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s308972714', 's725395017', 's736542961', 's092228147'] | [2940.0, 2940.0, 3064.0, 3064.0] | [17.0, 18.0, 17.0, 17.0] | [199, 243, 736, 235] |
p02753 | u325119213 | 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. | ['package main\n\nimport (\n\t"fmt"\n)\n\nfunc answer158A(s string) string {\n\tif s == "AAA" || s == "BBB" {\n\t\treturn "No"\n\t} else {\n\t\treturn "Yes"\n\t}\n}\n\nfunc main() {\n\tvar s string\n\tfmt.Scan(&s)\n\t\n\tfmt.Println(answer158A(s))\n}\n', 'def actual(n, a, b):\n n_op_least = n // (a + b)\n\n n_blue_least = a * n_op_least\n adjustment = min(n % (a + b), a)\n\n return n_blue_least + adjustment\n\nn, a, b = map(int, input().split())\nprint(actual(n, a, b))\n', 'import math\n\n\ndef actual(n, a, b):\n _少なくとも必要な操作回数_もしかすると1回足りない = n // (a + b)\n _少なくとも存在する青ボールの数 = a * _少なくとも必要な操作回数_もしかすると1回足りない\n\n \n \n\n _端数 = min(n % (a + b), a)\n\n return _少なくとも存在する青ボールの数 + _端数\n\nn, a, b = map(int, input().split())\nprint(actual(n, a, b))\n', "s = input()\n\nif 'A' in s and 'B' in s:\n \tprint('Yes')\nelse:\n \tprint('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s069625265', 's197790243', 's444557734', 's607057535'] | [8936.0, 3064.0, 3060.0, 2940.0] | [27.0, 17.0, 17.0, 17.0] | [218, 221, 586, 75] |
p02753 | u328628400 | 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 == 'AAA' or s == 'BBB':\n print('No')\n \n else:\n print('Yes')", "s=input()\nif s=='AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s282264725', 's739202260', 's715939199'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [82, 82, 73] |
p02753 | u329307703 | 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. | ['stdin = input()\nif len(set(stdin)) == 1:\n print("No")\nelse:\n print("yes")\n', 'stdin = input()\nif len(set(stdin)) == 1:\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s643855504', 's453828380'] | [2940.0, 2940.0] | [17.0, 18.0] | [76, 76] |
p02753 | u331997680 | 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()\nY = X.count("A")\nZ = X.count("B")\nif (Y == 3 or X ==3):\n print("Yes")\nelse\n print("No")', 'X = input()\nY = X.count("A")\nZ = X.count("B")\nif (Y == 3 or Z ==3):\n print("Yes")\nelse:\n print("No")', 'X = input()\nY = len(X)\nif (Y = 3):\n print("Yes")\nelse\n print("No")', 'X = input()\nY = X.count("A")\nZ = X.count("B")\nif (Y == 3 or Z ==3):\n print("Yes")\nelse\n print("No")', 'X = input()\nY = len(X)\nif (Y == 3):\n print("Yes")\nelse\n print("No")', 'X = input()\nY = X.count("A")\nZ = X.count("B")\nif (Y == 3 or Z == 3):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s066602949', 's071500617', 's296818668', 's838207110', 's851784394', 's348091560'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [101, 102, 68, 101, 69, 103] |
p02753 | u342563578 | 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())\nimport math\nq = 0\nfor i in range(math.ceil(12.5*A),int(12.5*(A+1))):\n if 10*B <= i < 10*(B+1):\n q = i\n break\nif q != 0:\n print(i)\nelse:\n print(-1)', "S = input()\ns = list(S)\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s973549610', 's788242138'] | [3060.0, 2940.0] | [17.0, 18.0] | [200, 96] |
p02753 | u344888046 | 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. | ['from math import floor as f\nA, B = map(int, input().split(" "))\n\nans = []\nfor c in range(10000):\n a = f(c * 0.08)\n b = f(c * 0.1)\n if a == A and b == B:\n print(c)\n break\nelse:\n print("-1")', 'from math import floor as f\nA, B = map(int, input().split(" "))\n\nfor c in range(10000):\n a = f(c * 0.08)\n b = f(c * 0.1)\n if a == A and b == B:\n print(c)\n break\nelse:\n print("-1")', 'from math import floor as f\nA, B = map(int, input().split(" "))\n\nans = []\nfor c in range(10000):\n a = f(c * 0.08)\n b = f(c * 0.1)\n if a == A and b == B:\n print(c)\n break\nelse:\n print("-1")', 'S = list(input())\nif S.count(S[0]) == 3:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s055298985', 's064250151', 's849677831', 's754338490'] | [3060.0, 3060.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [214, 205, 214, 75] |
p02753 | u345483150 | 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=input()\nif s==="A" or "B":\n print(\'Yes\')\nelse:\n print("No")', "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')"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s323661801', 's911771504', 's934324921', 's262185809'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [70, 63, 66, 69] |
p02753 | u346761236 | 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":\n print("No")\nif b == "BBB":\n print("No")\nelse:\n print("Yes")', 'a = input()\nif a == "AAA":\n print("No")\nelse:\n if a == "BBB":\n print("No")\n else:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s334508537', 's412616413'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 104] |
p02753 | u350093546 | 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 ('Yes') \n", "s=input()\nif s=='AAA' or s=='BBB':\n print ('No')\nelse ('Yes') \n", "s=input()\nif s='AAA' or 'BBB':\n print ('No')\nelse ('Yes') ", "s=input()\nif s=='AAA' or s=='BBB':\n print ('No')\nelse:\n print('Yes') \n"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s164335549', 's170826142', 's176831152', 's174299567'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [68, 65, 60, 73] |
p02753 | u353919145 | 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" in S and "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")'] | ['Wrong Answer', 'Accepted'] | ['s109178398', 's086599819'] | [2940.0, 2940.0] | [17.0, 18.0] | [76, 76] |
p02753 | u354126779 | 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,p=map(int,input().split())\ns=input()\n\ncount=0\nif p==2:\n for i in range(n):\n if int(s[i])%2==0:\n count+=i+1\nelif p==5:\n for i in range(n):\n if int(s[i])%5==0:\n count+=i+1\nelse:\n u=[]\n num=0\n for i in range(n):\n u.append(int(s[i:n]%p))\n u.append(0)\n for i in range(n):\n for j in range(i,n):\n if (u[i]-u[j+1])%p==0:\n count+=1\nprint(count)', 'seq=input()\na=0\nb=0\nfor i in range(3):\n if seq[i]=="A":\n a+=1\n else:\n b+=1\nif a>=1 and b>=1:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s733517488', 's504953366'] | [3064.0, 2940.0] | [20.0, 17.0] | [434, 151] |
p02753 | u355154595 | 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=input()\nif S=='AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s812604029', 's390824694'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 74] |
p02753 | u356499208 | 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()\n\nif a == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "a = input()\n\nif a == 'BBB':\n print('No')\nelif a == 'AAA':\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s549074796', 's669428812'] | [2940.0, 2940.0] | [18.0, 17.0] | [75, 100] |
p02753 | u357230322 | 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'] | ['s802832881', 's607224442'] | [2940.0, 2940.0] | [18.0, 17.0] | [66, 69] |
p02753 | u357751375 | 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())\n\nC = A / 0.08\nD = B / 0.1\n\nif int(C * 0.1) == B:\n if int(D * 0.08) == A:\n print(min(int(C),int(D)))\n else:\n print(int(C))\nelif int(D * 0.08) == A:\n print(int(D))\nelse:\n print(-1)', "s = input()\nif s[0] == s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s122616231', 's212379907'] | [3060.0, 2940.0] | [17.0, 18.0] | [235, 75] |
p02753 | u358747500 | 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 and s = BBB :\n print('No')\nelse:\n print('Yes')", "s = input()\nif (s[0] != s[1] or s[0] != s[2]):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s739283415', 's240389818'] | [2940.0, 2940.0] | [17.0, 18.0] | [75, 85] |
p02753 | u360085167 | 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("No" if S.count(A) == 3 or S.count(B) ==3 else "Yes")', 'S = input()\nprint("No" if S.count("A") == 3 or S.count("B") ==3 else "Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s535981087', 's824690509'] | [2940.0, 2940.0] | [18.0, 17.0] | [72, 77] |
p02753 | u360515075 | 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. | ['print ("Yes" if input() in ("AAA", "BBB") else "No")', 'print ("No" if input() in ("AAA", "BBB") else "Yes")'] | ['Wrong Answer', 'Accepted'] | ['s404698408', 's961899653'] | [2940.0, 2940.0] | [18.0, 18.0] | [52, 52] |
p02753 | u362771726 | 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 numpy as np\nimport math\n\ndef main():\n a, b = map(int, input().split())\n\n # print(a/0.08)\n\n a_ans = np.array([i for i in range(math.ceil(a/0.08), int((a+1)/0.08))])\n b_ans = np.array([j for j in range(math.ceil(b/0.1), int((b+1)/0.1))])\n\n # print(a_ans)\n # print(b_ans)\n #\n \n \n\n ans = set(a_ans) & set(b_ans)\n\n # print(ans)\n\n if ans == set():\n print(-1)\n else:\n print(min(ans))\n\nif __name__ == '__main__':\n main()", "def main():\n s = input()\n if s == 'AAA' or s== 'BBB':\n print('No')\n else:\n print('Yes')\n\nif __name__ == '__main__':\n main()"] | ['Runtime Error', 'Accepted'] | ['s014284843', 's550851380'] | [12448.0, 2940.0] | [149.0, 17.0] | [516, 149] |
p02753 | u362855700 | 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. | ["input()\n\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')", "S = input()\n\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s179180592', 's606567125'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 86] |
p02753 | u363970341 | 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. | ['in = input()\nstr = list(in)\n\nbef = str[0]\nfor i in range(3):\n if bef != str[i]:\n print("Yes")\n exit()\nprint("No")', 'in = input()\nstr = list(in)\n\nca = str.count("A")\ncb = str.count("B")\n\nif ca == 3 or cb == 3:\n print("No")\nelse:\n print("Yes")\n', 's = input()\nstr = list(s)\n \nca = str.count("A")\ncb = str.count("B")\n \nif ca == 3 or cb == 3:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s411187856', 's924171029', 's062404028'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [120, 128, 127] |
p02753 | u364318561 | 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().split()\nif a[0] == a[1] == a[2]:\n print('No')\nelse:\n print('Yes')", "a = input()\nif a[0] == a[1] and a[1] == a[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s061621842', 's617969776'] | [2940.0, 2940.0] | [17.0, 18.0] | [79, 80] |
p02753 | u366928732 | 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,c = input()\nif a == b && b == c:\n print(No)\nelse:\n print(Yes)', 'a,b,c = input()\nif a == b == c:\n print(\'No\')\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s691461839', 's746210024'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 66] |
p02753 | u366963613 | 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 -*-\nS = (input())\n\n\nif(S[0] == s[1] == s[2]):\n print('No')\nelse:\n print('Yes')\n", "# -*- coding: utf-8 -*-\nS = (input())\n\n\nif(S[0] == S[1] == S[2]):\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s956672079', 's196129168'] | [2940.0, 2940.0] | [19.0, 17.0] | [130, 130] |
p02753 | u366974168 | 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'] | ['s261584085', 's846468059'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 69] |
p02753 | u367147039 | 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'] | ['s256720369', 's086079190'] | [8924.0, 8944.0] | [26.0, 30.0] | [71, 74] |
p02753 | u368348632 | 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. | ['tax = [int(n) for n in input().split()]\n\nmax_8tax = (tax[0]+1) / .08\nmin_8tax = int((tax[0]) / .08)\nmax_10tax = int((tax[1]+1) / .1) - 1\nmin_10tax = int((tax[1]) / .1)\n\nr = -1\n\n\n\n\nfor i in range(min_10tax, max_10tax):\n if min_8tax <= i and i <= max_8tax:\n r = i\n break\n\nprint(r)', "s = input()\n\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s264707823', 's273497514'] | [3060.0, 2940.0] | [17.0, 17.0] | [349, 76] |
p02753 | u368563078 | 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 == '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'] | ['s881614841', 's116582924'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 79] |
p02753 | u370331385 | 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('Yes')\nelse:\n print('No')", 'N,A,B = map(int,input().split())\n\nans = (N//(A+B))*A\ntmp = N - (N//(A+B))*(A+B)\nif(tmp <= A): ans += tmp\nelse: ans += tmp\nprint(ans)', "S = input()\nif((S[0] == S[1])and(S[1] == S[2])):\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s840673194', 's969090389', 's502090606'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [83, 132, 83] |
p02753 | u370721525 | 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[0]==S[1] and S[1]==S[2]:\n print('Yes')\nelse:\n print('No')", "S = str(input())\n\nif S[0]==S[1] and S[1]==S[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s955455359', 's169576987'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 83] |
p02753 | u371385198 | 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\ninput = sys.stdin.readline\n\nS = input().strip()\n\nprint('No') if S == 'AAA' or 'BBB' else print('Yes')\n", "S=input()\nprint('No' if S=='BBB' or S=='AAA' else 'Yes')"] | ['Wrong Answer', 'Accepted'] | ['s898710289', 's077089979'] | [2940.0, 2940.0] | [17.0, 18.0] | [113, 56] |
p02753 | u373047809 | 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, _, q = open(0)\ng = ""\nfor q in q:\n p, f, c = q.split()\n if p == "1":\n g, s = s, g\n else:\n if f == "1":\n g += c\n else:\n s += c\nprint(g[::-1] + s)', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\n exit()\nprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s543124960', 's385098968'] | [3060.0, 2940.0] | [17.0, 17.0] | [169, 80] |
p02753 | u374531474 | 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. | ["print('Yes' if S != 'AAA' and S != 'BBB' else 'No')", "S = input()\nprint('Yes' if S != 'AAA' and S != 'BBB' else 'No')"] | ['Runtime Error', 'Accepted'] | ['s538887281', 's750530511'] | [9080.0, 9020.0] | [26.0, 27.0] | [51, 63] |
p02753 | u374802266 | 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()\nprint('Yes' if a=='AAA' or a=='BBB' else 'No')", "s=input()\nprint('Yes' if s.count('A')!=3 and s.count('B')!=3 else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s451343999', 's389984195'] | [8916.0, 2940.0] | [24.0, 18.0] | [56, 71] |
p02753 | u374815848 | 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. | ['from sys import stdin\n\nA, B = [int(x) for x in stdin.readline().rstrip().split()]\n\nmin_eight_ex_tax = float(A / 0.08)\nmax_eight_ex_tax = float((A + 1) / 0.08)\nmin_ten_ex_tax = int(B / 0.1)\nmax_ten_ex_tax = int((B + 1) / 0.1)\n\nres = float(-1)\nfor x in range(min_ten_ex_tax, max_ten_ex_tax, 1):\n if min_eight_ex_tax <= x < max_eight_ex_tax:\n res = float(x)\n break\n\nprint(int(res))', "from sys import stdin\n\ns = stdin.readline().rstrip()\n\ncount = 0\nif s[0] == 'A':\n if s[1] == 'B':\n count += 1\nif s[1] == 'A':\n if s[2] == 'B':\n count += 1\nif s[0] == 'B':\n if s[1] == 'A':\n count += 1\nif s[1] == 'B':\n if s[2] == 'A':\n count += 1\nif count > 0:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s868862839', 's235230084'] | [3064.0, 3060.0] | [18.0, 17.0] | [469, 337] |
p02753 | u374841433 | 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")', 's=input()\nprint("Yes" if lens(set(s))==1 else "No")', 'print("Yes" if len(set(input()))==2 else "No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s353269462', 's919980173', 's221633006'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [50, 51, 46] |
p02753 | u375193358 | 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())\n\npricemax_A = math.floor((A+1)/0.08)\npricemin_A = math.floor(A/0.08)\n\npricemax_B = math.floor((B+1)/0.1)\npricemin_B = math.floor(B/0.1)\n\nif pricemin_A >= pricemax_B or pricemax_A =< pricemin_B:\n print(-1)\nelif pricemin_A >= pricemin_B:\n print(pricemin_A)\nelif pricemin_A < pricemin_B:\n print(pricemin_B)', "S = list(input())\n\nif (S[0] == S[1]) and (S[0] == S[2]) and (S[1] == S[2]):\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s311787209', 's606941345'] | [2940.0, 2940.0] | [18.0, 17.0] | [357, 115] |
p02753 | u376450099 | 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 "BBB":\n print("No")\nelse:\n print("Yes")', 'a=input()\nif a=="AAA" or a=="BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s859443797', 's478667825'] | [2940.0, 2940.0] | [17.0, 18.0] | [66, 70] |
p02753 | u378782369 | 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\nzikkou= [0,2]\n\nisto = False\n\nfor n in zikkou:\n if S[n:n+1] == "AB" or S[n:n+1] == "BA":\n isto = True\n\n\nif isto:\n print("Yes")\nelse:\n print("No")\n', 'a', 'S = input()\n\nzikkou= [0,2]\n\nisto = True\n\nfor n in zikkou:\n if S.count("A") == 3 or S.count("B") == 3:\n isto = False\n\n\nif isto:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s350316248', 's871527239', 's215196216'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 19.0] | [173, 1, 176] |
p02753 | u379142263 | 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\nn,a,b = map(int,input().split())\nif a == 0:\n print(0)\nelif b == 0:\n print(n)\nelif a + b>n:\n print(a)\nelse:\n c = n//(a+b)\n d = n%(a+b)\n if a>d:\n print(c*a+d)\n else:\n print(c*a + a)', 's = input()\nl = set(s)\nif len(l) == 1:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s585958917', 's798053167'] | [3060.0, 2940.0] | [17.0, 18.0] | [225, 78] |
p02753 | u381585104 | 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")\n'] | ['Wrong Answer', 'Accepted'] | ['s993261592', 's927142235'] | [9000.0, 9016.0] | [25.0, 26.0] | [66, 70] |
p02753 | u383508661 | 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[1]==a[2]==a[3]\n print("No")\nelse:\n print("Yes")', 'N,B,R=map(int,input().split())\nb=0\ntotal=0\n\nfor i in range(10**100):\n total+=B\n b+=1\n if total>N:\n break\n total+=R\n if total>N:\n break\nif B==0:\n print(0)\n\nelse:\n print(B*b-(total-N))\n', 'a=input()\nif a[0]==a[1]==a[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s381855326', 's842046382', 's176505090'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [64, 218, 65] |
p02753 | u384684355 | 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().strip())\nx=s.count(s[0])\nif x==0 or x==3:\n print('NO')\nelse:\n print('YES')", "s=list(input().strip())\nx=s.count(s[0])\nif x==0 or x==3:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s439026267', 's557364146'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 95] |
p02753 | u388370899 | 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/env python3\n# -*- coding: utf-8 -*-\n\n\ndef main():\n s = input().strip()\n if s == "aaa" or s == "bbb":\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == \'__main__\':\n main()\n', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\ndef main():\n s = input().split()\n if s == "aaa" or s == "bbb":\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == \'__main__\':\n main()\n', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\ndef main():\n s = input().strip()\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', 'Wrong Answer', 'Accepted'] | ['s539805706', 's865430262', 's629885242'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [209, 209, 209] |
p02753 | u391390380 | 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\nst = input().split()\n\nfor i in range(1000):\n \n a = int(i * 0.08)\n b = int(i * 0.1)\n if(a == int(st[0]) and b == int(st[1])):\n print(i)\n break;\n elif(i == 999):\n print('-1')", '# -*- coding: utf-8 -*-\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'] | ['s696517044', 's079622572'] | [3060.0, 2940.0] | [17.0, 17.0] | [269, 155] |
p02753 | u391819434 | 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. | ["unkoujyokyo=input()\nif unkoujyokyo == 'AAA':\n print('Yes')\nelif unkoujyokyo == 'BBB':\n print('Yes')\nelse:\n print('No')", "unkoujyokyo=input()\nif unkoujyokyo == 'AAA':\n print('No')\nelif unkoujyokyo == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s481515637', 's348811073'] | [2940.0, 2940.0] | [17.0, 17.0] | [121, 120] |
p02753 | u394040864 | 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())\n\nNumberOfRotations = int(n/(a+b))\nsurplus = n%(a+b)\n\nans = 0\n\nif NumberOfRotations == 0:\n if a > n:\n print(surplus)\n else:\n print(a)\nelse:\n ans = a*NumberOfRotations\n if a > n - ((a+b)*NumberOfRotations):\n print(ans+surplus)\n else:\n print(ans+a)', 'n, a, b = map(int, input().split())\n\nNumberOfRotations = int(n/(a+b))\nsurplus = n%(a+b)\n\nans = 0\n\nif NumberOfRotations == 0:\n if a > n:\n print(surplus)\n exit\n else:\n print(a)\n exit\n\nans = a*NumberOfRotations\nif a > n - ((a+b)*NumberOfRotations):\n print(ans+surplus)\nelse:\n print(ans+a)', 's = str(input())\n\ndef solve():\n if s =="AAA" or s == "BBB":\n print("No")\n else:\n print("Yes")\n\nif __name__ == "__main__":\n solve()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s403318544', 's703192598', 's187279463'] | [3060.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [324, 325, 153] |
p02753 | u394731058 | 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[0] == 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")'] | ['Wrong Answer', 'Accepted'] | ['s590610232', 's729023081'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 76] |
p02753 | u395816772 | 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 numpy as np\nS = input()\n\nQ = int(input())\n\nA = np.array([S])\n\nfor i in range(Q):\n s = input().split()\n if len(s) == 1:\n A = np.flip(A)\n else:\n if s[1] == '1':\n A = np.insert(A,0,np.array([s[2]]))\n else:\n A = np.append(A,np.array([s[2]]))\n\nprint('%s' % ''.join(A))\n\n", "S = input()\nif S[0] == S[1] and S[0] == S[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s127570548', 's913464594'] | [19104.0, 2940.0] | [272.0, 17.0] | [324, 84] |
p02753 | u399481362 | 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(\' \')\ns = set(s)\nif len(s) == 1:\n print("No")\nelse:\n print("Yes")', 's = str(input())\ns = set(s)\nif len(s) == 1:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s208988527', 's704133793'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 82] |
p02753 | u405012111 | 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 in ['AAA', 'BBB']:\n print('Yes')\nelse:\n print('No')", "s = str(input())\n\nif s in ['AAA', 'BBB']:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s556394946', 's124128780'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p02753 | u406546804 | 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=input()\nif n=='AAA' or n=='BBB':\n print('No')\nelse:\n pritn('Yes')\n", "n=input()\nif n=='AAA' or n=='BBB':\n\tprint('No')\nelse:\n\tpritn('Yes')\n", "n=input()\nif n=='AAA' or n=='BBB':\n\tprint('No')\nelse:\n\tpritn('Yes')\n", 'n,a,b=map(int, input().split())\n\nx=int(n/(a+b))\nif x*(a+b)+a <= n:\n\tprint(a*(x+1))\nelse:\n\tprint(n-b*x)', 'n,a,b=map(int, input().split())\n\nx=int(n/(a+b))\nif x*(a+b)+a <= n:\n print(a*(x+1))\nelse:\n print(n-b*x)\n', "n=input()\nif n=='AAA' or n=='BBB':\n\tprint('No')\nelse:\n\tprint('Yes')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s044483072', 's297880977', 's760831753', 's896390820', 's998961908', 's913114014'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [70, 68, 68, 102, 105, 68] |
p02753 | u408148811 | 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\ncnt = [0]*(q+5)\narr=[]\nl=0\nr=0\n\nfor i in range(q):\n t=input().split()\n if t[0]==\'1\':\n r+=1\n cnt[0]+=1 \n cnt[l]-=1 \n else:\n arr.append([t[2],int(t[1])])\n l+=1 \nif r%2==1:\n s=s[::-1]\nsm=0\nfor i in range(len(arr)):\n sm+=cnt[i]\n if sm%2==1:\n if arr[i][1]==1:arr[i][1]=2\n elif arr[i][1]==2:arr[i][1]=1 \nans1=""\nans2=""\nfor i in range(len(arr)):\n if arr[i][1]==1:\n ans1+=arr[i][0]\n\n else:ans2+=arr[i][0]\nprint("%s%s%s"%(ans1[::-1],s,ans2)) \n \n \n \n \n ', 's=input()\nif s.count("A")>0 and s.count("B")>0:\n print("Yes")\nelse:\n print("No")\n '] | ['Runtime Error', 'Accepted'] | ['s757379763', 's120970134'] | [3064.0, 2940.0] | [18.0, 17.0] | [577, 91] |
p02753 | u408791346 | 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 "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', 'Wrong Answer', 'Accepted'] | ['s537881854', 's665796254', 's380230743'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [75, 75, 80] |
p02753 | u416011173 | 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\nS = input()\n\n\nresult = str()\nif S == "AAA" or S == "BBB":\n result = "Yes"\nelse:\n result = "No"\n\n\nprint(result)\n', '# -*- coding: utf-8 -*-\n\n\ndef get_input() -> str:\n \n S = input()\n\n return S\n\n\ndef main(S: str) -> None:\n \n result = str()\n if S == "AAA" or S == "BBB":\n result = "No"\n else:\n result = "Yes"\n\n \n print(result)\n\n\nif __name__ == "__main__":\n S = get_input()\n main(S)\n'] | ['Wrong Answer', 'Accepted'] | ['s765798423', 's768310258'] | [2940.0, 3060.0] | [17.0, 18.0] | [193, 474] |
p02753 | u423193302 | 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" | s=="BBB":\n print("No")\nelse: \n print("Yes")', 's = input()\nif (s in "AAA") | (s in "BBB"):\n print("No")\nelse: \n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s783795016', 's123073787'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 83] |
p02753 | u425236751 | 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. | ["s1,s2,s3 = input()\nif(s1==s2 and s2==s3):\n print('NO')\nelif:\n print('YES')", 'n,a,b =map(int,input().split())\nc = a+b\n\nsum1 = n//c\nl = n%c\nif a>l:\n sum2 = l\nelse:\n sum2 = a\n \nprint(sum1+sum2)', 'n,a,b =map(int,input().split())\nc = a+b\n\nsum1 = c/n\nl = c%n\nif a>l:\n sum2 = l\nelse:\n sum2 = a\n \nprint(sum1+sum2)', "a,b =map(int,input().split())\n\nans = b * 10\nstatus = ''\nfor i in range(10):\n 8*(ans + i)//100\n if(a == 8*(ans + i)//100):\n ans += i\n status = 'ok'\n break;\n\nif status =='ok':\n print(ans)\n \nelse:\n print(-1)", 'n,a,b =map(int,input().split())\nc = a+b\n\nans = n//c\nl = n%c\nif a>l:\n ans += l\nelse:\n ans += a\n \nprint(ans)', 'a,b,c=input()\nif a==b and b==c:\n print("YES")\nelse:\n print("NO")\n ', 'a,b,c=input()\nif a==b and b==C:\n print("YES")\nelse:\n print("NO")', 'a,b,c=input()\nif a==b and b==c:\n print("NO")\nelse:\n print("YES")\n ', "isReversed = False\ns = input()\nq = int(input())\nfor i in range(q):\n t = list(input().split())\n if t[0] =='1':\n isReversed = not bool(isReversed)\n else:\n if (t[1] =='1' and isReversed == False) or (t[1] =='2' and isReversed == True) :\n s = t[2] +s\n else:\n s = s + t[2]\n \n \nif isReversed:\n s = s[::-1]\n \nprint(s)", 'a,b,c=input()\nif a==b and b==c:\n print("No")\nelse:\n print("Yes")\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s174343720', 's315956595', 's345021361', 's354879237', 's595961878', 's643594239', 's714073316', 's821599397', 's931050969', 's125055523'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [76, 116, 115, 218, 109, 69, 66, 69, 388, 69] |
p02753 | u426506117 | 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")', 'S = input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s646801226', 's798706458', 's809317780'] | [8924.0, 8928.0, 9008.0] | [28.0, 23.0, 25.0] | [70, 70, 72] |
p02753 | u427163848 | 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 = int((A/0.08)+0.5)\nY = int((B/0.1)+0.5)\nmin = 0\n\nif X > Y:\n if int(X*0.1) == B:\n min = X\n else :\n min = -1\nelif X < Y:\n if int(Y*0.08) == A:\n min = Y\n else :\n min = -1\nelse :\n min = X\n\nprint(min)', 'A,B = map(int, input().split())\nX = int((A/0.08)+0.5)\nY = int((B/0.1)+0.5)\nmin = 0\nif X == Y:\n min = X\nelif X > Y:\n if int(X*0.1) == B:\n min = X\n else :\n min = -1\nelif X < Y:\n if int(Y*0.08) == A:\n min = Y\n else :\n min = -1\n\nprint(min)', 'A,B = map(int, input().split())\nX = int((A/0.08)+0.5)\nY = int((B/0.1)+0.5)\nmin = 0\nif X == Y:\n min = X\nelif X > Y:\n if int(X*0.1) == B:\n min = X\n else :\n min = -1\nelif X < Y:\n if int(Y*0.08) == A:\n min = Y\n else :\n min = -1\nelse :\n min = -1\n\nprint(min)', "S = input()\nif S == 'AAA' or S == 'BBB':\n print('No')\nelse :\n print('Yes')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s216424661', 's312878428', 's906558741', 's842897719'] | [3064.0, 3064.0, 3064.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [273, 278, 298, 81] |
p02753 | u428341537 | 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'] | ['s614637956', 's885963794'] | [9000.0, 8812.0] | [30.0, 25.0] | [68, 69] |
p02753 | u428416104 | 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()\nflag = 0\n\nprint(s)\nfor i in range(3):\n for j in range(3):\n if s[i] != s[j]:\n flag =1\n\nif flag ==1 :\n print("Yes")\nelse:\n print("No")', 's = input()\nflag = 0\n\nfor i in range(3):\n for j in range(3):\n if s[i] != s[j]:\n flag =1\n\nif flag ==1 :\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s146292917', 's752297152'] | [2940.0, 2940.0] | [18.0, 17.0] | [171, 162] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.