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
u867826040
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())\nqaws = ""\nc = 0\nwhile(N > len(qaws)):\n qaws = qaws + "B"*A\n qaws = qaws + "R"*B\n c += 1\nprint(qaws[:N].count("B"))', 's = input()\nif s[0] == s[1] == s[2]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s529113595', 's934751762']
[2940.0, 9088.0]
[18.0, 25.0]
[150, 76]
p02753
u869917163
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()\ncnt = 0\nfor i in len(S):\n if S[i] == 'A':\n cnt = cnt +1\n\nif cnt == 3 or cnt == 0:\n print('No')\nelse:\n print('Yes')", "S = input()\ncnt = 0\nfor i in range(3):\n if S[i] == 'A':\n cnt = cnt +1\n \nif cnt == 3 or cnt == 0:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s825010624', 's723509429']
[3064.0, 2940.0]
[17.0, 17.0]
[132, 135]
p02753
u871841829
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\n\nif S == "AAA" or S == "BBB":\n print("Yes")\nelse:\n print("No")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s144547278', 's968103440']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 80]
p02753
u872271866
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.
['\ndef main():\n s = input()\n if s[0]==s[1]==s[2]:\n print("Yes")\n else:\n print("No")\n\nif __name__ == "__main__":\n main()', '\ndef main():\n s = input()\n if s[0]==s[1]==s[2]:\n print("No")\n else:\n print("Yes")\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s960166972', 's466058718']
[9036.0, 8940.0]
[27.0, 30.0]
[143, 143]
p02753
u875541136
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()\nn = int(input())\nprint(n)\nfor i in range(n):\n li = input().split()\n if(li[0] == '1'):\n s = s[::-1]\n else:\n if(li[1] == '1'):\n s = li[2] + s\n else:\n s = s + li[2]\nprint(s)", 'n, p = map(int,input().split())\nD = input()\ncount = [0] * p\nout = 0\n\nif 10 % p == 0:\n for i in range(n):\n if int(D[i]) % p == 0:\n out += i + 1\nelse:\n ten = 1\n count[0] = 1\n for i in range(n):\n mod = (mod + int(D[n-i-1]) * ten) % p\n count[mod] += 1\n ten *= 10\n for c in count:\n out += (c * (c - 1)) // 2\nprint(out)', 'A = False\nB = False\ns=input()\nfor char in s:\n if char == "A":\n A = True\n if char == "B":\n B = True\nif(A and B):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s136050530', 's324961595', 's753332011']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[234, 374, 170]
p02753
u879248892
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())\nr=-1\nfor i in range(1001):\n if i*8//100==a and i*10//100==b:\n r=i\n break\nprint(r)', 's = input()\nif s == "AAA":\n print("No")\nelif s == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s030211463', 's659670363']
[2940.0, 2940.0]
[18.0, 18.0]
[127, 93]
p02753
u884601206
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[0] == s[1] and s[1] == s[2] and s[0] == s[2]:\n print('No')\nelse:\n print('Yes')\n", "s=str(input())\nif s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:\n print('No')\nelse:\n print('Yes')\n\n\n"]
['Runtime Error', 'Accepted']
['s354068035', 's756145034']
[2940.0, 2940.0]
[18.0, 17.0]
[101, 103]
p02753
u889914341
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 len(set(input())) == 1 else "No")', 'print("Yes" if len(set(input())) != 1 else "No")']
['Wrong Answer', 'Accepted']
['s410709809', 's345563109']
[2940.0, 2940.0]
[17.0, 17.0]
[48, 48]
p02753
u890416508
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = list(input())\nif len(set(S))==2 :\n print('Yse')\nelse:\n print('No')", "S = list(input())\nif len(set(S))==2:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s786512987', 's657654674']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 75]
p02753
u890601274
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\nS = input()\nQ = int(input())\n\nlr = 'left'\n\ndef reverse_list(lr):\n if lr == 'right':\n return 'left'\n else:\n \treturn 'right'\n\ndef moji_tuika(S, f, c, lr):\n if f == 1 and lr == 'left':\n return c + S\n elif f == 1 and lr == 'right':\n return S + c\n elif f == 2 and lr == 'left':\n return S + c\n else:\n return c + S\nq = []\nfor i in range(Q):\n temp = input().split()\n if len(temp) == 1:\n q.append(1)\n else:\n q.append(temp)\n\nfor i in q:\n if type(i) == int:\n lr = reverse_list(lr)\n elif int(i[0]) == 2:\n S = moji_tuika(S,int(i[1]),i[2],lr)\n\nif lr == 'right':\n S = list(S)\n S.reverse()\n S = ''.join(S)\n\n\nprint(S)\n", 'import math\n\nA, B = map(int, input().split())\n\nA_min = int(math.ceil(A/0.08))\nA_max = int(math.floor((A+1)/0.08)\n\nB_min = int(math.ceil(B/0.1))\nB_max = int(math.floor((B+1)/0.1)\n\n\nA_list = list(range(A_min,A_max+1))\nB_list = list(range(B_min,B_max+1))\n\nans_list = list(set(A_list) & set(B_list))\n\nif len(ans_list) > 1:\n print(min(ans_list))\nelif len(ans_list) == 0:\n print(-1)\nelse:\n print(min(ans_list))\n', "S = input()\n\nif S.count('A') > 0 and S.count('B') > 0:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s732725150', 's861301368', 's247622100']
[3064.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[721, 408, 93]
p02753
u891125728
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.
['l = list(map(int,input().split()))\n\nif l[1] == 0:\n ans = 0\nelse:\n q, mod = divmod(l[0], (l[1]+l[2]))\n qq, modd = divmod(mod, l[1])\n if qq == 0 :\n ans = l[1] * q + modd\n else:\n ans = l[1] * (q + qq)\n\nprint(ans)', "S = input()\na,b,c = list(S)\n\nif a == b == c:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s877558924', 's388017403']
[3060.0, 2940.0]
[17.0, 19.0]
[238, 83]
p02753
u891945807
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 S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')", "S = list(input())\n\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s002237625', 's919141902']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 78]
p02753
u897328029
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" if s in ["AAA", "BBB"] else "No"\nprint(ans)\n', 's = input()\nans = "No" if s in ["AAA", "BBB"] else "Yes"\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s625139497', 's055798238']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 68]
p02753
u899929023
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 in ["AAA" ,"BBB"]:\n print("No")\nelse:\n print("Yes")\n \n']
['Wrong Answer', 'Accepted']
['s692693328', 's228114508']
[3060.0, 2940.0]
[21.0, 18.0]
[71, 74]
p02753
u901598613
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 "BBB":\n print("No")\nelse:\n print("Yes")', 'n=input()\nif n=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'n=input()\nif n=="AAA" or n=="BBB":\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s067570205', 's866057912', 's548057977']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[70, 66, 73]
p02753
u904081717
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\ns = input()\n\nif s = 'AAA' or s = 'BBB':\n print('No')\n sys.exit()\n \nprint('Yes')", "import sys\n\ns = input()\n\nif s == 'AAA' or s == 'BBB':\n print('No')\n sys.exit()\n\nprint('Yes')\n"]
['Runtime Error', 'Accepted']
['s585253661', 's949309021']
[2940.0, 3064.0]
[17.0, 17.0]
[93, 99]
p02753
u904995051
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.
['#ABC158\ns = input()\nprint("Yes" if len(set(s))== else "No")', '#ABC158\ns = input()\nprint("Yes" if len(set(s))==2 else "No")']
['Runtime Error', 'Accepted']
['s645535485', 's924483887']
[8952.0, 8988.0]
[24.0, 28.0]
[59, 60]
p02753
u906501980
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 set(S) == 2:\n print("Yes")\nelse:\n print("No")', 'S = list(input())\nif set(S) == 2:\n print("Yes")\nelse:\n print("No")', 'S = input()\nif len(set(S)) == 2:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s529522819', 's922259962', 's349059779']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[66, 72, 71]
p02753
u909815117
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']
['s938833530', 's005139306']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p02753
u910426639
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\n# A = list.map(int, input().split())\n\n\nA = input()\n\nif A[0] == A[1] and A[1] == A[2]:\n print("Yes")\nelse:\n print("No")\n\n', '\n\n# A = list.map(int, input().split())\n\n\nA = input()\n\nif A[0] == A[1] and A[1] == A[2]:\n print("No")\nelse:\n print("Yes")\n\n']
['Wrong Answer', 'Accepted']
['s004112993', 's387653556']
[2940.0, 3064.0]
[18.0, 17.0]
[162, 162]
p02753
u911567364
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 1<=A<=B<=100:\n A_a=A+1\n B_b=B+1\n A_1=A*(100/8)\n B_1=B*(100/10)\n A_1a=A_a*(100/8)\n B_1b=B_b*(100/10)\n if (A_1<B_1b)and(B_1<A_1a):\n if A_1<B_1:\n A_2=int(A_1)\n print(A_2)\n else:\n B_2=int(B_1)\n print(B_2)\n else:\n print(-1)\nelse:\n None', 'S=input()\nS=str(S)\nif "AAA" in S:\n print("No")\nelif "BBB" in S:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s183174246', 's623997339']
[3064.0, 2940.0]
[19.0, 17.0]
[354, 105]
p02753
u912672208
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()\np1=a[0]\np2=a[1]\np3=a[3]\n \nif p1==p2==p3:\n\tprint("No")\nelse:\n\tprint("Yes")', 'a=input()\np1=a[0]\np2=a[1]\np3=a[3]\n\nif p1==p2==p3:\n print("No")\nelse:\n print("Yes")', 'a=input()\np1=a[0]\np2=a[1]\np3=a[3]\n \nif p1==p2==p3:\n print("No")\nelse:\n print("Yes")', 'a=input()\np1=a[-1]\np2=a[0]\np3=a[1]\n \nif p1==p2==p3:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s137908566', 's800172617', 's821103301', 's459846019']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[83, 84, 83, 86]
p02753
u913461467
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\ns = input()\n\nif a[0] == a[1] == a[2]:\n print("Np")\nelse:\n print("Yse")', 'import sys\ninput = sys.stdin.readline\n\ns = [import()] \n\nif a[0] == a[1] == a[2]:\n\tprint("Yes")\nelse:\n\tprint("No")', 'import sys\ninput = sys.stdin.readline\ns = input()\n\nif s[0] == s[1] == s[2]:\n print("Yes")\nelse:\n print("No")', 'import sys\ninput = sys.stdin.readline\ns = input()\n\nif s[0] == s[1] == s[2]:\n print("No")\nelse:\n print("Yes")\n ']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s137512649', 's774440913', 's865295311', 's555331294']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[115, 114, 115, 120]
p02753
u913863402
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.
['station = list(input())\nmessage = ""\n\nprint(station)\nfor i in range(0, len(station)-1):\n if (station[i] != station[i + 1]):\n message = \'Yes\'\n break\n else:\n message = \'No\'\n\n\nprint(message)\n', 'station = list(input())\nmessage = ""\n\nprint(station)\nfor i in range(0, len(station)-1):\n if (station[i] != station[i + 1]):\n message = \'Yes\'\n break\n else:\n message = \' No\'\n\n\nprint(message)\n\n', 'station = list(input())\nmessage = ""\n\nfor i in range(0, len(station)-1):\n if (station[i] != station[i + 1]):\n message = \'Yes\'\n break\n else:\n message = \'No\'\n\n\nprint(message)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s683273060', 's820360856', 's007824438']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[215, 217, 200]
p02753
u915879510
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\n\nif s=="AAA" or s=="BBB":\n print "No"\nelse:\n print "Yes"', 's = input()\n \nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s845237766', 's132563879']
[2940.0, 3060.0]
[18.0, 19.0]
[70, 73]
p02753
u916560554
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())\nprint(S)\nif S[0] == S[2] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')", "S = list(input())\nprint(S)\nif S[0] == S[2] and S[1] == S[2]:\n print('NO')\nelse:\n print('YES')", "S = list(input())\nif S[0] == S[2] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s143235486', 's532596876', 's194974436']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[99, 99, 90]
p02753
u916662650
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\nfor i in range(len(S)-1):\n if s[i] != s[i+1]:\n print("Yes")\n else:\n print("No")', 'S = list(input())\n\nresult = True\n\nfor i in range(len(S)-1):\n \n if S[i] != S[i+1]:\n result = True\n break\n elif S[i] == S[i+1]:\n result = False\n\n\nif result == False:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s433497432', 's020186033']
[3064.0, 3060.0]
[17.0, 17.0]
[114, 232]
p02753
u917444023
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\nprint(No)\n else print(YES)', "S=input()\nif S == 'AAA' or S == 'BBB':\n\tprint('No')\nelse:\n\tprint('YES')", "S=input()\nif S == 'AAA' or S == 'BBB':\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s178735586', 's883891454', 's031811244']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[53, 71, 71]
p02753
u920103253
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=input()\nprint("Yes" if s[0]==s[1]==s[2] else "No")', 's=input()\nprint("No" if s[0]==s[1]==s[2] else "Yes")']
['Wrong Answer', 'Accepted']
['s783261013', 's861986271']
[2940.0, 2940.0]
[17.0, 17.0]
[52, 52]
p02753
u920694585
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())\ns.sort()\nprint(s)\nif s[0] == s[2]:\n print('No')\nelse:\n print('Yes')", "s = list(input())\ns.sort()\nif s[0] == s[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s469602486', 's467863460']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 82]
p02753
u923010184
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\n ', 'S = input()\nif S == "AAA":\n print("No")\nelse:\n if S == "BBB":\n print ("No")\n else:\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s532132415', 's797942514']
[3064.0, 2940.0]
[17.0, 17.0]
[80, 120]
p02753
u923712635
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']
['s670177884', 's575970586']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 66]
p02753
u924273546
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 -*-\nst = str(input())\nwhile(True):\n if(st == "AAA"):\n print("Yes")\n break\n elif(st == "BBB"):\n print("Yes")\n break\n else:\n print("No")\n break\n ', '# -*- coding: utf-8 -*-\nst = str(input())\nwhile(True):\n if(st == "AAA"):\n print("No")\n break\n elif(st == "BBB"):\n print("No")\n break\n else:\n print("Yes")\n break']
['Wrong Answer', 'Accepted']
['s750151446', 's880217606']
[2940.0, 3060.0]
[17.0, 17.0]
[185, 181]
p02753
u925353288
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 = str(input())\n\nif S == 'AAA':\n print('Yes')\nelif S == 'BBB':\n print('Yes')\nelse:\n print('No')", "\nS = str(input())\n\nif S == 'AAA':\n print('No')\nelif S == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s934879165', 's994980130']
[9084.0, 9092.0]
[27.0, 29.0]
[106, 105]
p02753
u927282564
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().split()\nif a==b and a==c:\n print(No)\nelse:\n print(Yes)', 'a,b,c=input().split()\nif a==b and a==c:\n print("No")\nelse:\n print("Yes")', 'a=input()\nif a[0]==a[1] and a[0]==a[2]:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s367209495', 's487788853', 's092031721']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[70, 74, 74]
p02753
u934052933
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.
['\ndef main():\n n, a, b = map(int, input().split())\n \n ball = [0]*n\n count = 0\n flag = True\n if a == 0 :\n print(0)\n exit(0)\n\n while flag:\n while flag:\n ball[count]="b"\n count += 1\n if count == n:\n flag = False\n if count % a == 0:\n break\n \n while flag:\n ball[count]="r"\n count += 1\n if count == n:\n flag = False\n if count % (a + b) == 0:\n break\n \n \n\n print(ball.count("b"))\n\n\nif __name__ == "__main__":\n main()', '\ndef main():\n S = input()\n\n flag = False\n for i in range(2):\n tmp = S[i]\n if tmp != S[i+1]:\n flag = True\n if flag : print("Yes")\n else: print("No")\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s046502143', 's766605639']
[3064.0, 2940.0]
[18.0, 17.0]
[628, 226]
p02753
u936285815
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 = map(int, input().sprit)\n\nfor i in range(len(s)):\n if s[i] in s:\n print('Yes')\n break\n else: \n print('No')\n", "s =input()\n\nfor i in range(len(s)):\n if s[i] not in s:\n print('Yes')\n break\n else: \n print('No')\n break", 'for n in range(0,10000):\n if n * 0.08 == n * 0.1:\n print(n)\n break\n else:\n print(-1)', 's =input()\n\nc = s.count(\'A\')\n\nif c == 3:\n print("No")\nelif c == 0:\n print(\'No\')\nelse: \n print(\'Yes\')\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s374948147', 's563998258', 's634885815', 's819240155']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[137, 137, 111, 110]
p02753
u937782958
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 n in range(0, 10000):\n a2 = int(n * 8 / 100)\n b2 = int(n * 8 / 100)\n if a2 == a and b2 == b:\n print(n)\n exit()', "a = input()\n\nif 'A' in a and 'B' in a:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s761456980', 's646850000']
[2940.0, 2940.0]
[17.0, 17.0]
[157, 77]
p02753
u939775002
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']
['s256155734', 's734548182']
[2940.0, 2940.0]
[17.0, 18.0]
[70, 75]
p02753
u941644149
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=set(input().split())\nif len(s)==2:print('Yes')\nelse:print('No')\n", "s=set(input().split(''))\nif len(s)==2:print('Yes')\nelse:print('No')\n", "s=set(input())\nif len(s)==2:print('Yes')\nelse:print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s225811785', 's968406183', 's182125626']
[8836.0, 9060.0, 9088.0]
[27.0, 26.0, 26.0]
[66, 68, 57]
p02753
u942356554
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())\nif b!=0:\n k=a//(b+c)\n h=k*b\n t=a-b*k-c*k\n print(t+h)\nelse:\n print(0)', 'a,b,c=input()\nif a==b==c:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s944788201', 's985048295']
[2940.0, 2940.0]
[18.0, 17.0]
[114, 64]
p02753
u942697937
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\n\nif S == "AAA" or S = "BBB":\n print("No")\nelse:\n print("Yes")\n', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s414846931', 's366176257']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 81]
p02753
u944643608
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['import sys\nS = input()\nQ = int(input())\npin = 0\nfor i in range(Q):\n t = list(sys.stdin.readline().split())\n if int(t[0]) == 1:\n if pin == 1:\n pin = 0\n else:\n pin = 1\n else:\n if int(t[1]) % 2 == pin :\n S = S + t[2]\n else:\n S = t[2] + S\nif pin == 1:\n S = S[::-1]\nprint(S)\n', "S = input()\nif S[0] == S[1] and S[1] == S[2] :\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s480167614', 's399640343']
[3060.0, 2940.0]
[17.0, 17.0]
[306, 81]
p02753
u944886577
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())\nlis=""\nans=0\nfor i in range(n):\n for b in range(a):\n ans+=1\nprint(ans)', 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s337411436', 's949146344']
[9168.0, 8812.0]
[28.0, 25.0]
[102, 69]
p02753
u946110577
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['# -*- coding: utf-8 -*-\n\n\ndef bus(stations):\n a = np.array(("","",""))\n for i in range(3):\n a[i] = stations[i]\n s = np.unique(a)\n if len(s)==1:\n return "No"\n elif len(s) > 1:\n return "Yes"\n else:\n return "Problem"\n \nmy_strings = np.array(("AAA","AAB","ABA","BAA","ABB","BBA","BBB"))\nfor i in my_strings:\n print(i)\n print(bus(i))\n', '# -*- coding: utf-8 -*-\n\n\ndef bus(stations):\n a = np.array(("","",""))\n for i in range(3):\n a[i] = stations[i]\n s = np.unique(a)\n if len(s)==1:\n return "No"\n elif len(s) > 1:\n return "Yes"\n else:\n return "Problem"\n \n\n \ni = input()\n#print(i)\nprint(bus(i))\n', '# -*- coding: utf-8 -*-\n\n\ndef bus(stations):\n a = np.array(("","",""))\n for i in range(3):\n a[i] = stations[i]\n s = np.unique(a)\n if len(s)==1:\n return "No"\n elif len(s) > 1:\n return "Yes"\n else:\n return "Problem"\n \n\n \ni = input("give station: ")\nprint(i)\nprint(bus(i))\n', '# -*- coding: utf-8 -*-\n\nimport numpy as np\n\ndef bus(stations):\n a = np.array(("","",""))\n for i in range(3):\n a[i] = stations[i]\n s = np.unique(a)\n if len(s)==1:\n return "No"\n elif len(s) > 1:\n return "Yes"\n else:\n return "Problem"\n \n\n \ni = input()\n#print(i)\nprint(bus(i))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s511144612', 's738130270', 's921129487', 's262680304']
[3064.0, 3060.0, 3064.0, 12388.0]
[17.0, 18.0, 17.0, 150.0]
[407, 456, 471, 475]
p02753
u946996108
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 = 0\n\nN, A, B = [int(i) for i in input().split()]\n\nn += int(N/(A+B)) * A\n\namari = N % (A+B)\nn += min(amari, A)\n\nprint(n)', 'n = 0\n\nN, A, B = [int(i) for i in input().split()]\n\nn += int(N/(A+B)) * A\n\namari = N % (A+B)\nn += min(amari, A)\n\nprint(n)\n', 'A, B = [int(i) for i in input().split()]\n\nif A<0 or B<0:\n print("-1")\n exit()\n\nminA = int(A/0.08)\nmaxA = int((A+1)/0.08)\nminB = int(B/0.1)\nmaxB = int((B+1)/0.1)\n\nfor i in range(minA, maxA):\n if i >= minB and i < maxB:\n print(i)\n exit()\n\nprint("-1")', 's = input()\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s403979000', 's499693922', 's798039939', 's711275923']
[2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 18.0, 18.0, 17.0]
[121, 122, 271, 76]
p02753
u948050032
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\nS = list(stdin.readline().rstrip())\nprint('No' if S == 'AAA' or 'BBB' else 'Yes')", "from sys import stdin\nS = stdin.readline().rstrip()\nprint('No' if S == 'AAA' or S == 'BBB' else 'Yes')\n"]
['Wrong Answer', 'Accepted']
['s503451826', 's901123532']
[2940.0, 2940.0]
[17.0, 18.0]
[103, 103]
p02753
u948911484
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nif s == "AAA" or s == "BBB":\n print("Yes")\nelse:\n print("No")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s145834843', 's113599248']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 75]
p02753
u950337877
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a=list(input())\nif a[0]==a[1]==a[2]:\n\tprint('no')\nelse:\n print('yes')", "a= list(input())\n\nif a[0]==a[1]==a[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s248587162', 's228908065']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 73]
p02753
u951814007
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.
["c = sorted(list(input().split()))\n \nif c[0]=='A' and c[2]=='B':\n print('Yes')\nelse:\n print('No')", "c = sorted(list(map(int, input())))\n\nif c[0]==A and c[2]==B:\n print('Yes')\nelse:\n print('No')\n\n", "c = sorted(input())\n \nif c[0]=='A' and c[2]=='B':\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s648903934', 's703557211', 's243223407']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[98, 97, 84]
p02753
u952467214
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 = s[0]\nif a == s[1] and a == s[2]:\n print('Yes')\nelse:\n print('No')\n", "s = input()\n\na = s[0]\nif a == s[1] and a == s[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s401420924', 's379087924']
[2940.0, 2940.0]
[17.0, 20.0]
[89, 88]
p02753
u952854963
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["str = input()\nif str.count('A') % 2 == 1:\n print('Yes')\nelse:\n print('No')", "str = input()\nif str.count('A') == 3 or str.count('A') == 0:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s229384429', 's651795562']
[2940.0, 2940.0]
[17.0, 18.0]
[80, 99]
p02753
u956547804
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())\nw='z'*a+'x'*b\nf=''\nfor i in range(1000):\n f+=w\n d=f[:n]\nprint(d.count('z'))", "s=input()\nif s =='AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s250405098', 's584282030']
[3060.0, 2940.0]
[19.0, 17.0]
[112, 74]
p02753
u957055646
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 judgeServe(strs: str) -> str:\n if s.count('A') > 0 and s.count('A') < 3:\n return 'Yes'\n else:\n return 'No'\n\nstrs = input()\nprint(judgeServe(strs))\n \n ", "strs = input()\ncount_A = strs.count('A')\nif count_A > 0 and count_A < 3:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s919394332', 's775602181']
[2940.0, 2940.0]
[17.0, 17.0]
[166, 107]
p02753
u957098479
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')", "if S == AAA or BBB:\n print('No')\nelse:\n print('Yes')", "S = input()\n \nif S == 'AAA' or 'BBB':\n print('No')\nif S == 'AAB' or 'ABA' or 'ABB' or 'BAA' or 'BBA' or 'BAB':\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', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s634362342', 's784945160', 's828832013', 's868762476', 's895242952']
[2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 26.0, 17.0]
[76, 58, 130, 71, 85]
p02753
u959340534
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']
['s320150719', 's038580088']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 75]
p02753
u960570220
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[1] + S[2] == 'A':\n print('Yes')\nelif S[2] + S[3] == 'B':\n print('Yes')\nelse:\n print('No')", "S = str(input())\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s558258771', 's608888116']
[8904.0, 8964.0]
[24.0, 29.0]
[120, 89]
p02753
u961945062
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = str(input())\n\nif S[0] == S[1] == S[2]:\n print("Yes")\nelse:\n print("No")', 'i = list(map(int, input().split()))\n\nN = int(i[0])\nA = int(i[1])\nB = int(i[2])\n\ncount_blue = 0\n\nsyou = N // (A + B)\namari = N % (A + B)\n\nif amari > A:\n count_blue = A * syou + A\nelse:\n count_blue = A * syou + amari\n \nprint(count_blue)', 'from decimal import *\nimport math\n\ni = list(map(int, input().split()))\nA = Decimal(i[0])\nB = Decimal(i[1])\n\nA_min = A // Decimal("0.08")\nA_max = math.ceil(Decimal(A + 1) / Decimal("0.08"))\nB_min = B // Decimal("0.1")\nB_max = math.ceil(Decimal(B+1) / Decimal(0.1))\n\nif A_max < B_min:\n print(-1)\nelif A_min > B_max:\n print(-1)\nelif A_min < B_min:\n print(B_min)\nelse:\n print(A_min)', 'i = list(map(int, input().split()))\n\nN = int(i[0])\nA = int(i[1])\nB = int(i[2])\n\ncount_blue = 0\n\nsyou = N // (A + B)\namari = N % (A + B)\n\nif amari > A:\n count_blue = A * syou + A\nelse:\n count_blue = A * syou + amari\n \ncount_blue', 'S = str(input())\n \nif S[0] == S[1] == S[2]:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s002590016', 's226145694', 's658411166', 's711324396', 's334184747']
[2940.0, 3064.0, 5076.0, 3064.0, 2940.0]
[17.0, 17.0, 34.0, 17.0, 17.0]
[77, 242, 390, 236, 78]
p02753
u962423738
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=input()\n\nif s.count("A")==3 or s.count("B")==3:\n\tprint("Yes")\n \nelse:\n\tprint("No")', 's=input()\n \nif s.count("A")==3 or s.count("B")==3:\n\tprint("No")\n \nelse:\n\tprint("Yes")']
['Wrong Answer', 'Accepted']
['s499301215', 's006697038']
[9032.0, 9044.0]
[28.0, 28.0]
[87, 88]
p02753
u962718741
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] 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', 'Wrong Answer', 'Accepted']
['s467394812', 's470103526', 's925153699']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[73, 81, 81]
p02753
u962944068
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['A,B=map(int,input().split())\nfor x in range(10*B,10*B+10):\n if A*100/8<=x<A*100/8+100/8:\n print(x)\n exit()\nprint("-1")', 'A,B=map(int,input().split())\nfor x in range(10*B,10*B+10):\n if A*100/8<=x<=A*100/8+100/8:\n print(x)\n exit()\nprint("-1")', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s318140495', 's343925263', 's734357223']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[135, 136, 73]
p02753
u963128036
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=str(input())\n\nif s=="AAA" or s="BBB":\n print("No")\nelse:\n print("Yes")', '# coding: utf-8\n\ns=str(input())\n\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s195975546', 's872651125']
[2940.0, 2940.0]
[19.0, 17.0]
[95, 96]
p02753
u963164554
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\nq = int(N / (A+B))\nr = N%(A+B)\n\nprint(q*A + min(A, r))', "S = input()\nQ = int(input())\nhanten = 1\nfront = []\nback = []\nfor _ in range(Q):\n q = list(map(str, input().split()))\n if q[0]=='1':\n hanten *= -1\n else:\n if hanten==1:\n if q[1]=='1':\n front.append(q[2])\n else:\n back.append(q[2])\n else:\n if q[1]=='1':\n back.append(q[2])\n else:\n front.append(q[2])\n\n\nif hanten==1:\n print(''.join(list(reversed(front)) + list(S) + back))\nelse:\n print(''.join(list(reversed(back+list(S)))+front))", "S = input()\nQ = int(input())\nfor _ in range(Q):\n q = list(map(str, input().split()))\n if q[0]=='1':\n list(S).reverse()\n S = ''.join(S)\n else:\n if q[1]=='1':\n S = q[2] + S\n else:\n S = S + q[2]\n\nprint(S)", "print('Yes' if len(set(input()))==2 else 'No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s154212302', 's490730306', 's819206815', 's218446800']
[2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[124, 566, 260, 46]
p02753
u963764813
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_number = int(input())\nreverse_flag = 1\nfor i in range(q_number):\n temp = input().split()\n if temp[0] == "1": \n reverse_flag = reverse_flag * -1\n else:\n if int(temp[1])*reverse_flag == 1 or int(temp[1])*reverse_flag == -2:\n s = temp[2] + s\n else:\n s = s + temp[2] \n \nif reverse_flag == -1:\n s = s[::-1]\nprint(s)', 's = input()\nq_number = int(input())\nreverse_flag = 1\nhead = ""\ntail = ""\nfor i in range(q_number):\n temp = input().split()\n if temp[0] == "1": \n reverse_flag = reverse_flag * -1\n else:\n headstails = int(temp[1])*reverse_flag \n if headstails == 1 or headstails == -2:\n head = temp[2] + head\n else:\n tail = tail + temp[2]\n \nif reverse_flag == 1:\n print(head+s+tail)\nelse:\n print(tail[::-1]+s[::-1]+head[::-1])\n \n ', 's = input()\nq_number = int(input())\n \nqueries = [input().split() for dummy in range(q_number)]\nflag = 1\ncount = 0\nfor i in range(q_number):\n if queries[i][0] == "1": \n flag = flag * -1\n count += 1\n else:\n if int(queries[i][1])*flag == 1 or -2:\n s = queries[i][2] + s\n else:\n s = s + queries[i][2] \n\n \nif flag == -1:\n s = s[::-1]\n\nprint(s)', 'a = input()\nif "A" in a and "B" in a:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s074931900', 's241187045', 's319029739', 's482795898']
[3060.0, 3064.0, 3064.0, 2940.0]
[18.0, 17.0, 18.0, 17.0]
[357, 456, 373, 72]
p02753
u964521959
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\n\nlist_S = list(S)\n\nAorB = S_list[0]\ncounter = 0\nfor i in range(len(S_list)):\n if(AorB == S_list[i]):\n counter =+ 1\n\nif(counter == len(S_list)):\n print("No")\nelse:\n print("Yes")', '\nS = input()\n \n\nS_list = list(S)\n \nAorB = S_list[0]\ncounter = 0\nfor i in range(len(S_list)):\n if(AorB == S_list[i]):\n counter = counter + 1\n \nif(counter == len(S_list)):\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s098778468', 's966577189']
[3060.0, 2940.0]
[17.0, 18.0]
[248, 260]
p02753
u964966380
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = input()\n\nif S == 'AAA' or S == 'BBB':\n print('NO')\nelse:\n print('YES')", 'n,a,b = map(int, input().split())\nm = 0\nans = 0\nc = 0\n\nwhile m < n:\n if c == 0:\n if m + a <= n:\n ans = ans + a\n else:\n ans = ans + n - m\n c = 1\n m = m + a\n else:\n c = 0\n m = m + b\n \nprint(ans)', "S = input()\n\nif S == 'AAA' or S == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s282446928', 's312039721', 's427086124']
[2940.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0]
[81, 265, 80]
p02753
u965011012
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 random\nimport numpy as np\nA = 1\nB = 2\nS =[A,B]\nx = np.random.choice(S)\ny = np.random.choice(S)\nz = np.random.choice(S)\nif x == y == z:\n print("Yes")\nelse:\n print("No")', 'S = input()\nif S == str("AAA"):\n print("No")\nelif S == str("BBB"):\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s978416465', 's506448190']
[13120.0, 2940.0]
[165.0, 17.0]
[180, 108]
p02753
u967822229
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = input()\n\nif S.count('A') or S.count('B') == 3:\n print('No')\nelse:\n print('Yes')", "S = input()\n\nif S.count('A') or S.count('B') == 3:\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']
['s081428362', 's814894467', 's046819900']
[9028.0, 8912.0, 8992.0]
[28.0, 30.0, 26.0]
[89, 89, 76]
p02753
u969080040
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")', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s344228027', 's628200839', 's837867245', 's859508658']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[63, 67, 65, 69]
p02753
u969236097
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')", "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s846255995', 's634168363']
[3060.0, 2940.0]
[20.0, 18.0]
[84, 84]
p02753
u969848070
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()\nc = 'No'\nfor i in range(2):\n if a[i] == a[i+1]:\n c = 'Yes'\n break\nprint(c)", "a = input()\nc = 'No'\nfor i in range(2):\n if a[i] != a[i+1]:\n c = 'Yes'\n break\nprint(c)"]
['Wrong Answer', 'Accepted']
['s599783487', 's337173968']
[2940.0, 3064.0]
[18.0, 18.0]
[93, 93]
p02753
u971096161
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = input()\n\nif S=='AAA' or S=='BBB':\n print('Yes')\nelse:\n print('No')", "S = input()\n\nif S=='AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s103113398', 's629826345']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p02753
u971124021
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = input()\n\nif (s=='AAA') or (S=='BBB'):\n print('No')\n exit()\nelse:\n print('Yes')", "s = input()\n\nif (s == 'AAA' ) or (s == 'BBB') :\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s503726459', 's136912354']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 82]
p02753
u972906674
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())\nprint('Yes' if S[2]==S[3] and S[4]==S[5] else 'No')", "S = input()\n\nif len(S)==3 and S.count('A')==2 or S.count('B')==2:\n print('Yes')\n\nelse:\n print('No')\n "]
['Runtime Error', 'Accepted']
['s430660283', 's222688788']
[2940.0, 2940.0]
[18.0, 17.0]
[68, 110]
p02753
u973108807
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 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']
['s318809625', 's623263629']
[2940.0, 2940.0]
[18.0, 18.0]
[63, 75]
p02753
u974792613
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\n\nif s[0]==s[1]==s[2]:\n print("Yes")\nelse:\n print("No")', 's = input()\n\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s272554392', 's674447399']
[2940.0, 2940.0]
[17.0, 18.0]
[68, 68]
p02753
u974935538
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\nif (S=="AAA")or(S=="BBB"):\n print("Yes")\nelse:\n print("No")', 'S = input()\nif (S=="AAA")or(S=="BBB"):\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s038504031', 's568651020']
[2940.0, 2940.0]
[18.0, 17.0]
[77, 77]
p02753
u976795333
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#include <string>\n#include <algorithm>\nusing namespace std;\n\nstring S[3];\nint N;\n\nfor(i=0; i<N; i++) cin >> S[i];\nif(S[0] == S[1] == S[2]);\n print("Yes")\nelse;\n print("No)\n', 'S = input()\nif(S[0] == S[1] and S[1] == S[2]):\n print("No")\n \nelse:\n print(\'Yes\')']
['Runtime Error', 'Accepted']
['s652329285', 's345451856']
[2940.0, 2940.0]
[17.0, 18.0]
[194, 83]
p02753
u977506075
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('S')\nif S[0]==S[1] and S[1]==S[2]:\n print('No')\nelse:\n print('Yes')", "S=input()\nif S[0]==S[1] and S[1]==S[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s034376962', 's791913767']
[2940.0, 2940.0]
[17.0, 17.0]
[81, 78]
p02753
u981206782
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=input()\nif s.count("A")==3 or s.count("B")==3:\n print("Yes")\nelse:\n print("No")', 's=input()\nif s.count("A")==3 or s.count("B")==3:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s074960502', 's918848132']
[2940.0, 2940.0]
[18.0, 17.0]
[87, 87]
p02753
u981309686
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 Collections import Counter\ns=input()\nc=Counter(s)\nif(len(c.keys())==1):\n print ("No")\nelse:\n print ("Yes")', 'from collections import Counter\ns=input()\nc=Counter(s)\nif(len(c.keys())==1):\n print ("No")\nelse:\n print ("Yes")']
['Runtime Error', 'Accepted']
['s373478038', 's581743411']
[2940.0, 3316.0]
[17.0, 20.0]
[113, 117]
p02753
u982762220
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 collections import deque\nS = deque(list(input().strip()))\nQ = int(input().strip())\nflag = 1\nfor i in range(Q):\n line = input().strip()\n if len(line) == 1:\n flag = 1 - flag\n else:\n _, F, C = line.strip().split()\n if flag:\n if int(F) == 1:\n S.appendleft(C)\n else:\n S.append(C)\n else:\n if int(F) == 1:\n S.append(C)\n else:\n S.appendleft(C)\n\nif flag:\n print(''.join(S))\nelse:\n print(''.join(S[::-1]))\n ", "print('Yes' if len(set(input().strip())) > 1 else 'No')"]
['Runtime Error', 'Accepted']
['s666445326', 's343528259']
[3316.0, 2940.0]
[21.0, 17.0]
[470, 55]
p02753
u984276646
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")\n']
['Runtime Error', 'Accepted']
['s734791095', 's669387371']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 76]
p02753
u984710045
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 fun():\n cin=str(input())\n if cin[1] == cin[2] and cin[0] == cin[1]:\n return False\n else:\n return True\nfun()', "i = input()\nif i=='AAA' or i=='BBB':\n print('no')\nelse:\n print('yes')", "i = input()\nif i=='AAA' or i=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s008031598', 's515701284', 's128151139']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[134, 71, 71]
p02753
u985419292
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 in 'A' and N in 'B':\n print('Yes')\nelse:\n print('No')\n", "N = input()\nif N in A and N in B:\n print('Yes')\nelse:\n print('No')", "N = input()\nif 'A' in N and 'B' in N:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s589989375', 's800420453', 's562644679']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[73, 68, 74]
p02753
u987170100
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\nfor _ in range(int(input())):\n l = input().split()\n if len(l) == 1:\n S = S[::-1]\n else:\n if l[1] == "1":\n S = l[2] + S\n else:\n S = S + l[2]\nprint(S)', 'if len(set(input())) == 1:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s693755605', 's713435439']
[2940.0, 2940.0]
[17.0, 17.0]
[212, 66]
p02753
u987326700
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\nA,B = map(int,input().split())\nif A<13:\n print(-1)\n sys.exit()\nlast = 2000\n\nfor i in range(last):\n mA = int(i*0.08)\n mB = int(i*0.10)\n print(mA,mB,i)\n\n \n if mA==A and mB==B:\n print("match")\n print(i)\n break\n if i==last-1:\n print("-1")', 's = input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s595350191', 's080638937']
[3060.0, 2940.0]
[17.0, 17.0]
[265, 71]
p02753
u987637902
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.
['# ABC158\n# A Station and Bus\nimport re\ns = input()\nx = s[0]\nm = re.match(x+x+x,s)\nif m:\n print("Yes")\n exit()\nprint("No")\n', 'import re\ns = input()\nx = s[0]\nm = re.match(x+x+x,s)\nif m:\n print("No")\n exit()\nprint("Yes")\n']
['Wrong Answer', 'Accepted']
['s349698502', 's751743314']
[9760.0, 9800.0]
[36.0, 38.0]
[128, 99]
p02753
u988191897
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\nLine1 = ("b"*A+"r"*B)\nLine2 = ("b"*A+"r"*B)\nCnt = 0\nwhile Cnt < N/(A+B):\n\tLine2 += Line1\n\tCnt += 1\n\nprint(Line2[:N].count("b"))\n', 'N,A,B = map(int,input().split())\nOne_line = ""\nLine = ("b"*A+"r"*B)\nCnt = 0\nwhile Cnt < N:\n\tOne_line += Line\n\tCnt += (A + B)\n\nprint(One_line[:N].count("b"))\n', 'S = input()\nif S == "AAA" or S == "BBB":\n\tprint("No")\nelse:\n\tprint("Yes")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s143171017', 's257650268', 's828406019']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 18.0]
[162, 157, 74]
p02753
u989089752
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s = input()\nif s == 'AAA':\n\tprint('Yes')\nif s == 'BBB'\n\tprint('Yes')\nelse:\n\tprint('No')\n \n", "s = input()\n\nif s == 'AAA':\n\tprint('No')\n elif s == 'BBB':\n print('No')\n else:\n print('Yes')\n", "s = input()\n\nif s == 'AAA':\n\tprint('No')\nelif s == 'BBB':\n\tprint('No')\nelse:\n\tprint('Yes')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s147937301', 's820522810', 's162451161']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[93, 105, 91]
p02753
u989157442
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nif len(set(s)) == 1:\n print("Yes")\nelse:\n print("No")\n', 's = input()\nif len(set(s)) == 1:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s935079316', 's995393230']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 67]
p02753
u993656019
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.
['chaine = input()\nrepA = 0\nrepB = 0\n\nfor i in chaine:\n if i==\'A\':\n repA += 1 \n else: \n repB += 1 \n\nif repB==3 or repA==3:\n print("No")\nelse:\n print("yes")', 'chaine = input()\nrepA = 0\nrepB = 0\n\nfor i in chaine:\n if i==\'A\':\n repA += 1 \n else: \n repB += 1 \n\nif repB==3 or repA==3:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s601352662', 's733749856']
[2940.0, 2940.0]
[17.0, 18.0]
[163, 163]
p02753
u996731299
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())\nwhich=0\nfront=""\nback=""\nfor i in range(Q):\n a=list(map(str,input().split()))\n if a==["1"]:\n which+=1\n which%=2\n continue\n else:\n if which==0:\n if a[1]=="1":\n front=a[2]+front\n if a[1]=="2":\n back+=a[2]\n if which==1:\n if a[1]=="1":\n back+=a[2]\n if a[1]=="2":\n front=a[2]+front\nS=front+S+back\nif which==1:\n print(S[::-1])\nif which==0:\n print(S)', 'check=str(input())\nif check=="AAA" or check=="BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s561831138', 's302647966']
[3064.0, 2940.0]
[17.0, 17.0]
[527, 90]
p02753
u997393081
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()\ncnta=0\ncntb=0\nfor e in n:\n if e=="A":\n cnta+=1\n elif e=="B":\n cntb+=1\nif cnta==3 or cntb==3:\n print(\'Yes\')\nelse:\n print(\'No\')', 'n=input()\ncnta=0\ncntb=0\nfor e in n:\n if e=="A":\n cnta+=1\n elif e=="B":\n cntb+=1\nif cnta==0 or cntb==0:\n print(\'No\')\nelse:\n print(\'Yes\')']
['Wrong Answer', 'Accepted']
['s480555054', 's207251668']
[3060.0, 3060.0]
[17.0, 17.0]
[145, 145]
p02753
u999482355
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("YNeos"[s=="AAA" or s=="BBB"])', 's=input()\nprint("YNeos"[s=="AAA" or s=="BBB"::2])']
['Wrong Answer', 'Accepted']
['s019333552', 's598747235']
[2940.0, 2940.0]
[18.0, 17.0]
[46, 49]
p02754
u000085263
2,000
1,048,576
Takahashi has many red balls and blue balls. Now, he will place them in a row. Initially, there is no ball placed. Takahashi, who is very patient, will do the following operation 10^{100} times: * Place A blue balls at the end of the row of balls already placed. Then, place B red balls at the end of the row. How many blue balls will be there among the first N balls in the row of balls made this way?
['n, a, b = map(int, input().split())\nx="b"*a+"r"*b\nx= x*(10**100)\nstrx = x[0:n]\ndef split(w):\n return [all for all in w]\ndef countX(lst, x): \n return lst.count(x) \nlistx = split(strx)\nprint(countX(listx))', 'n, a, b = map(int, input().split())\nx="b"*a+"r"*b\nx= x*(10**5)\nstrx = x[0:n]\ndef split(w):\n return [all for all in w]\ndef countX(lst, x): \n return lst.count(x) \nlistx = split(strx)\nprint(countX(listx))', 'n,a,b = map(int,input().split())\nx = n//(a+b)\nif n - x*(a+b) > a:\n Y =a\nelse:\n Y=n - x*(a+b)\nprint(a*x+Y)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s177304290', 's803495526', 's902291068']
[9172.0, 1010976.0, 9072.0]
[26.0, 2230.0, 31.0]
[209, 207, 111]
p02754
u001834182
2,000
1,048,576
Takahashi has many red balls and blue balls. Now, he will place them in a row. Initially, there is no ball placed. Takahashi, who is very patient, will do the following operation 10^{100} times: * Place A blue balls at the end of the row of balls already placed. Then, place B red balls at the end of the row. How many blue balls will be there among the first N balls in the row of balls made this way?
['N,A,B=map(int,input().split())\nif A==0:\n print(0)\nelif N==A+B:\n print(A)\nelif N<=A:\n print(N)\nelse N>A+B:\n print(N-B)', 'N,A,B=map(int,input().split())\nprint(N//(A+B)*A+min(N%(A+B),A))']
['Runtime Error', 'Accepted']
['s803506724', 's367306133']
[2940.0, 2940.0]
[18.0, 17.0]
[130, 63]
p02754
u016901717
2,000
1,048,576
Takahashi has many red balls and blue balls. Now, he will place them in a row. Initially, there is no ball placed. Takahashi, who is very patient, will do the following operation 10^{100} times: * Place A blue balls at the end of the row of balls already placed. Then, place B red balls at the end of the row. How many blue balls will be there among the first N balls in the row of balls made this way?
['n,a,b=map(int,input().split())\nif n-a<=0:\n print(n)\nelse:\n print(a)\n', 'n,a,b=map(int,input().split())\nif n%(a+b)<a:\n print((n//(a+b))*a+n%(a+b))\nelse:\n print(((n//(a+b))*a+a))\n\n']
['Wrong Answer', 'Accepted']
['s376767195', 's491166093']
[2940.0, 2940.0]
[17.0, 18.0]
[74, 112]
p02754
u019113646
2,000
1,048,576
Takahashi has many red balls and blue balls. Now, he will place them in a row. Initially, there is no ball placed. Takahashi, who is very patient, will do the following operation 10^{100} times: * Place A blue balls at the end of the row of balls already placed. Then, place B red balls at the end of the row. How many blue balls will be there among the first N balls in the row of balls made this way?
['n, blue, red = map(int,input().split())\nsum = blue + red\nif blue == 0:\n print(0)\n exit()\nif sum > n:\n plus = n - sum\n print(blue + plus)\n', 'n, blue, red = map(int,input().split())\nsum = blue + red\n\ncount = n // (blue + red)\namari = n % (blue + red)\n\nif amari > blue:\n amari = blue\n\nprint(amari + count * blue)']
['Wrong Answer', 'Accepted']
['s025496744', 's153599788']
[2940.0, 2940.0]
[18.0, 17.0]
[149, 172]
p02754
u021217230
2,000
1,048,576
Takahashi has many red balls and blue balls. Now, he will place them in a row. Initially, there is no ball placed. Takahashi, who is very patient, will do the following operation 10^{100} times: * Place A blue balls at the end of the row of balls already placed. Then, place B red balls at the end of the row. How many blue balls will be there among the first N balls in the row of balls made this way?
['n,a,b=map(int,input().split())\nx=a+b\nr=int(n/x)\nif n%x!=0:\n\ts=a*r+(n%x-b)\nelse:\n s=a*r\n \nprint(s)\n', 'n, a, b = map(int, input().split())\nm = int(n / (a+b))\ns=n%(a+b)\nif a>=s:\n print(m*a + (n - m * (a+b)))\nelse:\n print(m*a+a)\n \n']
['Wrong Answer', 'Accepted']
['s815810367', 's733610196']
[2940.0, 2940.0]
[18.0, 17.0]
[100, 129]