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
u711238850
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nfrom collections import deque\ndef main():\n n,p = tuple([int(t)for t in input().split()])\n \n s = input()[::-1]\n subs = [0]*p\n counter =0\n for i in range(0,n):\n subs[int(s[0:i+1])%p] +=1\n \n counter+=subs[0]\n \n for i in range(p//2):\n counter+= subs[i]*subs[-i-1]\n \n \n counter+=subs[0]*(subs[0]-1)//2\n \n print(counter)\n \nif __name__ == "__main__":\n main()', 'import math\nfrom collections import deque\ndef main():\n s = set(input())\n\n print("Yes" if len(s) == 2 else "No")\n\n\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s190046437', 's597928524']
[3316.0, 3436.0]
[22.0, 25.0]
[407, 158]
p02753
u712893765
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nprint('YES' if len(Counter(input())) > 1 else 'NO')", "from bisect import bisect_left as bl\nfrom bisect import bisect_right as br\nfrom heapq import heappush,heappop\nimport math\nfrom collections import *\nfrom functools import reduce,cmp_to_key\nimport sys\ninput = sys.stdin.readline\n\nM = mod = 998244353\ndef factors(n):return sorted(set(reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0))))\ndef inv_mod(n):return pow(n, mod - 2, mod)\n\ndef li():return [int(i) for i in input().rstrip('\\n').split()]\ndef st():return input().rstrip('\\n')\ndef val():return int(input().rstrip('\\n'))\ndef li2():return [i for i in input().rstrip('\\n')]\ndef li3():return [int(i) for i in input().rstrip('\\n')]\n\nprint('Yes' if len(Counter(st())) > 1 else 'No')"]
['Wrong Answer', 'Accepted']
['s296730344', 's118410902']
[3316.0, 3572.0]
[21.0, 23.0]
[83, 708]
p02753
u713456268
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['x = input()\nif x in "A" and "B":\n print("Yes")\nelse:\n print("No")', 'x = list(input())\nif "A" in x and "B" in x:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s426224745', 's467638960']
[2940.0, 2940.0]
[17.0, 17.0]
[67, 78]
p02753
u714732628
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s060060748', 's099433631']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 75]
p02753
u717162155
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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)', "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')\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s030412855', 's783882144', 's926054477', 's639883055']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[80, 79, 80, 81]
p02753
u717671569
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\ns = int(n / (a + b))\n\nif n % (a + b) == 0:\n print(a * s)\nelse:\n rem = n % (a + b)\n if rem <= a:\n ans = a * s + rem\n else:\n ans = a * s + a\n print(ans)\n\n\n', 's = list(input())\n\n\nif len(list(set(s))) == 1:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s044223033', 's106157607']
[2940.0, 2940.0]
[17.0, 17.0]
[201, 82]
p02753
u718411265
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\ncount=0\nfor i in range(3):\n S[i]==S[i+1]\n count+=1\nif count==2:\n print("No")\nelse:\n print("Yes")', 'S=input()\ncount=0\nfor i in range(2):\n S[i]==S[i+1]\n count+=1\n bleak\nif count==2:\n print("No")\nelse:\n print("Yes")', 'S=input()\ncount=0\nfor i in range(2):\n S[i]==S[i+1]\n count+=1\n bleak\nif count==2:\n print("No")\nelse:\n print("Yes")', 'S=input()\ncount=0\nfor i in range(2):\n S[i]==S[i+1]\n count+=1\nif count==2:\n print("No")\nelse:\n print("Yes")', 'S=input()\ncount=0\nfor i in range(2):\n S[i]==S[i+1]\n count+=1\n bleak\nif count==2:\n print("No")\nelse:\n print("Yes")', 'S=input()\nif S = AAA or BBB:\n print("No")\nelse:\n print("Yes")', 'S=input()\nif S == AAA or BBB:\n print("No")\nelse:\n print("Yes")', 'S=input()\nif S.count("A")==3 or S.count("B")==3:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s348965606', 's451355869', 's491006950', 's515294316', 's561038994', 's874103077', 's915269342', 's994931831']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 18.0]
[110, 118, 118, 110, 118, 63, 64, 83]
p02753
u719238648
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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=[]\na=input()\nfor i in a:\n s.append(i)\nif len(list(set(s)))==3:\n print("Yes")\nelse:\n print("No")', 's=[]\na=input()\nfor i in a:\n s.append(i)\nif len(list(set(s)))==2:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s190868761', 's955505853']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 106]
p02753
u721970149
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nif S = "AAA" or "BBB" :\n print("Yes")\nelse :\n print("No")\n', 'import sys\ninput = sys.stdin.readline\nS = input()\nif S == "AAA" or S == "BBB" :\n print("Yes")\nelse :\n print("No")\n', 'S = input()\nprint(S)\nif S == "AAA" or S == "BBB" :\n print("No")\nelse :\n print("Yes")\n', 'S = input()\nif S == "AAA" or S == "BBB" :\n print("No")\nelse :\n print("Yes")\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s599305061', 's669076753', 's714485501', 's759730015']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[114, 120, 91, 82]
p02753
u726154863
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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:1]==S[1:2]==S[2:3]:\n print('Yes')\nelse:\n print('No')", "S=input()\nif S[0:1]==S[1:2]==S[2:3]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s120406777', 's396561937']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 75]
p02753
u728483880
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\ntmp1,tmp2=divmod(n,a+b)\n\nblue=tmp1*a\nif(tmp2>a):\n blue=blue+a\nelse:\n blue=blue+tmp2\n \nprint(blue)', 'S=list(input())\n\nif(S[0]==S[1] and S[1]==S[2]):\n print("No")\n \nelse:\n print("Yes")\n ']
['Runtime Error', 'Accepted']
['s899689244', 's430563710']
[2940.0, 2940.0]
[17.0, 18.0]
[132, 88]
p02753
u729836751
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\n", "S = input()\n\nif S == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')\n", "S = input()\n\nif S == 'AAA' or '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"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s113697029', 's133356963', 's813881894', 's906720914']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[76, 76, 76, 82]
p02753
u731436822
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['list(map(int,input().split()))', "s = input()\n\nif ('A' in s) and ('B' in s):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s025063125', 's130646406']
[2940.0, 2940.0]
[17.0, 17.0]
[30, 81]
p02753
u733581231
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nn , a , b = map(int, input().split())\nif a >= n : exit(print(n))\nans = n//(a+b)\n#print("ans",ans)\nprint(ans*a+(n-ans*a-ans*b))', 'import math\nn , a , b = map(int, input().split())\nif a >= n : exit(print(n))\nans = n//(a+b)\n#print("ans",ans)\nprint(ans*a+(n-ans*a-ans*b))', 'import math\nn , a , b = map(int, input().split())\nif a >= n : exit(print(n))\nif a == 0: exit(print(0))\nans = n//(a+b)\n#print("ans",ans)\nprint(ans*a+(n-ans*a-ans*b))\n', 'import math\nn , a , b = map(int, input().split())\nif a >= n : exit(print(n))\nans = n/(a+b)\nprint(math.floor(ans*a))', 'import math\nn , a , b = map(int, input().split())\nif b == 0: exit(print(n))\nif a >= n : exit(print(n))\nif a == 0: exit(print(0))\nans = n//(a+b)\n#print("ans",ans)\nprint(ans*a+(n-ans*a-ans*b))\n', 's = list(input())\nif len(set(s)) == 1:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s045604331', 's148625222', 's589351360', 's599929970', 's767040199', 's566126801']
[2940.0, 3064.0, 2940.0, 2940.0, 3060.0, 2940.0]
[18.0, 19.0, 21.0, 18.0, 17.0, 17.0]
[139, 139, 166, 116, 192, 78]
p02753
u733738237
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nl=[]\nfor i in range(len(s)):\n\tl.append(s[i])\ns_l=set(l)\nprint('YES' if len(s_l)==2 else 'NO')", "s=input()\nl=[]\nfor i in range(len(s)):\n\tl.append(s[i])\ns_l=set(l)\nprint('Yes' if len(s_l)==2 else 'No')"]
['Wrong Answer', 'Accepted']
['s472917970', 's921571050']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 103]
p02753
u735175408
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S=str(input())\nif S==AAA or S==BBB:\n print('No')\nelse:\n print('Yes')", "S=str(input())\nif S=='AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s233306429', 's791864428']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 78]
p02753
u735335967
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['a,b = map(int, input().split())\n\nfor i in range(1, 1001):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n exit()\nprint(-1)\n', 's = input()\n\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s337436585', 's772785541']
[2940.0, 2940.0]
[17.0, 17.0]
[149, 78]
p02753
u735654057
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['tmp = ""\n\nfor s in list(input()):\n if tmp == "":\n tmp = s\n continue\n if tmp != s:\n print("YES")\n exit()\n\nprint("NO")\n', 'tmp = ""\n\nfor s in list(input()):\n if tmp == "":\n tmp = s\n continue\n if tmp != s:\n print("Yes")\n exit()\n\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s139362459', 's929838273']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 151]
p02753
u744048957
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 s in S:\n if s==S[0]:\n flg=0\n else:\n print("yes")\n flg=1\n break\nif flg == 0:\n print("No")', 'S=input()\nflg=0\nfor s in S:\n if s==S[0]:\n flg +=1\n else:\n print("yes")\n break\nif flg == 3:\n print("No")', 'n,a,b=map(int,input().split())\n\nlist_a=[]\nfor i in range(a):\n list_a+="a"\nlist_b=[]\nfor i in range(b):\n list_a+="b"\n\nlist=[]\nfor i in range(10**100):\n if len(list)>=n:\n break\n else:\n if i%2==0:\n list+=list_a\n else:\n list+=list_b\nans=0\nfor i in range(n):\n if list[i]=="a":\n ans+=1\n else:\n ()\nprint(*list)\nprint(ans)', 'S=input()\nlist=[]\nans=[\'*\', \'*\', \'*\']\nfor s in S:list+="*" if s==S[0] else s\n\nif list==ans :\n print(\'No\')\nelse :\n print(\'Yes\')']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s292744712', 's829408482', 's994312456', 's680021298']
[2940.0, 2940.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[139, 133, 389, 132]
p02753
u744920373
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nQ = int(input())\nflag=0\n\nfor i in range(Q):\n r = sys.stdin.readline().strip('\\n')\n if r == '1':\n S = S[::-1]\n else:\n ni, f, c = r.split()\n if f=='1':\n S = c + S\n else:\n S+=c\n\nprint(S)", "N = input()\n \n#A = map(int,input().split())\n \nif N[0]==N[1]==N[2]:\n print('No')\n exit()\nprint('Yes')"]
['Runtime Error', 'Accepted']
['s926184110', 's896183581']
[2940.0, 2940.0]
[17.0, 17.0]
[267, 106]
p02753
u745802292
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['#!/usr/bin/env python3 ## -*- python -*-\n\ns = input()\nq = int(input())\n\nfor i in range(q):\n d = input()\n if d[:1] == "1":\n if not s[:1] == s[-1:1]:\n s = s[::-1]\n else: # 2\n dd = d.split()\n f = int(dd[1])\n c = dd[2]\n if f == 1:\n s = c + s\n else: # f == 2\n s = s + c\n\nprint(s)', '#!/usr/bin/env python3 ## -*- python -*-\n\ns = input()\n\nif "AB" in s:\n print("Yes")\nelif "BA" in s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s136418945', 's484744283']
[2940.0, 2940.0]
[17.0, 16.0]
[358, 134]
p02753
u748311048
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S=str(input())\nif S='AAA' or S='BBB':\n print('No')\nelse:\n print('Yes')", "S=str(input())\nif S=='AAA' or S='BBB':\n print('No')\nelse:\n print('Yes')", "S=str(input())\nif S='AAA' or S='BBB':\n print('No')\nelse:\n print('Yes')", "S=str(input())\nif S=='AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s239080642', 's593881350', 's896242131', 's411902514']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[72, 73, 72, 74]
p02753
u751539777
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nans = n // (a + b)\nans *= a\n\nif n % (a + b) != 0:\n ans += min(a, n % (a + b))\n\nprint(ans)', 's = input()\n\nif "A" and "B" not in s:\n\tprint("NO")\n\nelse:\n print("YESA")', 's = input()\n\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")\n\t']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s445825700', 's459869450', 's302682926']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[129, 75, 79]
p02753
u754511616
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 all(n=='A' or n=='B'):\n print('No')\nelse :\n print('Yes')", "N=input()\nif all(n=='A' for n in N):\n print('No')\nelif all(n=='B' for n in N):\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s138740050', 's917037636']
[9020.0, 8916.0]
[24.0, 27.0]
[72, 116]
p02753
u756420279
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['#!/usr/bin/env python3\n\nN, A, B = map(int, input().split())\n\nprint((N//(A+B))*A + min(A, (N%(A+B))))', '#!/usr/bin/env python3\n\nN, A, B = map(int, input().split())\n\nif N%(A+B) <= A:\n print((N//(A+B))*A + (N%(A+B)))\nelse:\n print((N//(A+B))*A + A)', '#!/usr/bin/env python3\n\nS = input()\nprint("Yes" if "A" in S and "B" in S else "No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s577115578', 's611320439', 's873352693']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[100, 147, 83]
p02753
u756518089
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['value = input()\nif value == "AAA" or "BBB" or "ABB" or "BAA":\n print("No")\nelse:\n print("Yes")', 'value = input()\nif value == "AAA" or "BBB":\n print("No")\n else:\n print("Yes")', 'value = input()\nif value == "AAA" or "BBB" or "ABA" or "BAB":\n print("No")\nelse:\n print("Yes")', 'value = input()\nif value == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'value = input()\n\nif value == "AAA" or value == "BBB":\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s141830580', 's325621898', 's352099255', 's649182344', 's570182954']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 18.0]
[96, 79, 96, 78, 88]
p02753
u756693875
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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':\n print('No')\nelif s == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s846454798', 's054159181']
[2940.0, 2940.0]
[18.0, 17.0]
[74, 98]
p02753
u760104760
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 collections\n\ns = input()\ns_set = set(s)', 's = input()\ns_set = set(s)\n\nif len(s_set) == 1:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s813799638', 's789101898']
[3444.0, 2940.0]
[95.0, 17.0]
[46, 86]
p02753
u762424840
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nA, B = map(int, input().split())\n\na = int(A*100/8)\nb = int(B*100/10)\n\nx = int(a*0.10)\ny = int(b*0.08)\n\nif x == B and y == A:\n if a < b:\n print(a)\n else:\n print(b)\nelif x == B:\n print(a)\nelif y == A:\n print(b)\nelse:\n print(-1)\n', '# -*- coding: utf-8 -*-\n\nS = input()\n\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s029280888', 's801615468']
[3060.0, 3064.0]
[18.0, 17.0]
[280, 106]
p02753
u762540523
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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("YNeos"[len(set(input())>1)::2])', 'print("YNeos"[len(set(input()))>1::2])', 'print("YNeos"[len(set(input()))<2::2])']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s422528148', 's834865482', 's286266806']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[38, 38, 38]
p02753
u763177133
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a8, a10 = input().split(' ')\na8 = int(a8)\na10 = int(a10)\n \nvalue1 = int(a8 / 0.08)\nvalue2 = int(a10 / 0.1)\nif int(value1 * 0.1) == a10:\n if value1 > value2:\n print(value1)\n else:\n print(value1)\nelif int(value2 * 0.08) == a8:\n if value1 > value2:\n print(value1)\n else:\n print(value1)\nelse:\n print(-1)", "a8, a10 = input().split(' ')\na8 = int(a8)\na10 = int(a10)\n \nvalue1 = int(a8 / 0.08)\nvalue2 = int(a10 / 0.1)\nif int(value1 * 0.1) == a10:\n print(value1)\nelif int(value2 * 0.08 == a8):\n print(value2)\nelse:\n print(-1)", "a8, a10 = input().split(' ')\na8 = int(a8)\na10 = int(a10)\n \nvalue1 = int(a8 / 0.08)\nvalue2 = int(a10 / 0.1)\nif int(value1 * 0.1) == a10:\n print(value1)\nelif int(value2 * 0.08 == a8):\n print(value2)\nelse:\n print(-1)", "s = input()\n\nif 'A' in s and 'B' in s:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s044664305', 's325790983', 's379416148', 's749599362']
[3064.0, 3060.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0, 18.0]
[316, 216, 216, 73]
p02753
u763881112
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["m=input()\nm2=[m[:1],m[1:2],m[2:]]\n\nif ['A','B']in m2:\n print('Yes')\n \nelse:\n print('No')", "\nm=input()\nm2=[m[:1],m[1:2],m[2:]]\n\nif 'A'in m2:\n if 'B'in m2:\n print('Yes')\n else:\n print('No')\n \nelse:\n print('No')\n "]
['Wrong Answer', 'Accepted']
['s515654550', 's648440048']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 130]
p02753
u764531064
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s003681001', 's133890728']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 45]
p02753
u767304716
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 q1(s):\n #reverse\n return s[::-1]\ndef q2(s,f,char):\n if int(f) == 1:\n s = char + s\n else:\n s= s + char\n return s\n\n\ns = input()\nq = int(input())\nfor i in range(q):\n query = input().split()\n if len(query)==1:\n s=q1(s)\n else:\n s=q2(s,query[1],query[2])\nprint(s)', "s=input()\nif s == 'AAA' or s == 'BBB':\n ans = 'No'\nelse:\n ans = 'Yes'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s459925215', 's217835848']
[3060.0, 2940.0]
[17.0, 17.0]
[313, 86]
p02753
u767438459
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['# -*- coding: utf-8 -*-\nS = input()\na = "AAA"\nb = "BBB"\nif S == a:\n print("NO")\nelif S == b:\n print("NO")\nelse:\n print("YES")', '# -*- coding: utf-8 -*-\nS = input()\na = "AAA"\nb = "BBB"\nif S == a:\n print("No")\nelif S == b:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s230485479', 's227867396']
[2940.0, 2940.0]
[19.0, 17.0]
[134, 134]
p02753
u773440446
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = 0\nfor i in range(2):\n if q != 0:\n print('Yes')\n exit()\n if s[2] != s[i]:\n q += 1\n \nprint('No')\n", "s = input()\nq = min(s.count('A'),s.count('B'))\n\nif q == 0:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s285133684', 's625222916']
[8960.0, 8828.0]
[26.0, 27.0]
[125, 93]
p02753
u773686010
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['moji = str(input())\nprint(("No","yes")[("B" in moji) and ("A" in moji)])', 'moji = str(input())\nprint(("No","Yes")[("B" in moji) and ("A" in moji)])']
['Wrong Answer', 'Accepted']
['s158864958', 's288579165']
[9040.0, 9032.0]
[27.0, 30.0]
[72, 72]
p02753
u777241657
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['a,b=(int(x) for x in input().split())\n \nimport math \n \ni=0\nwhile i<10001:\n i++\n if math.float(i)==a and math.float(i)==b:\n print(i)\n break\nelse:\n print(-1)', 'a,b=(int(x) for x in input().split())\n \nfor i in range(10000):\n if i//100*8==a and i//100*10==b:\n print(i)\n else:\n print(-1)', "S = input()\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s046103325', 's454719363', 's242094730']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[164, 132, 71]
p02753
u779728630
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")\n']
['Runtime Error', 'Accepted']
['s271640945', 's523514740']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 77]
p02753
u780346073
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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, b, r = map(int, input().split())\nans = N // (b + r) * b\nN = N % (b + r)\nif b > N:\n ans += N\nelse:\n ans += b\nprint(ans)', "l = list(input())\nif 'A'in l and 'B' in l:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s018580387', 's268466277']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 81]
p02753
u780565479
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["i=input();'YNeos'[i=='AAA' or i=='BBB'::2]", "i=input();print('YNeos'[i=='AAA' or i=='BBB'::2])"]
['Wrong Answer', 'Accepted']
['s352600434', 's841830102']
[2940.0, 2940.0]
[17.0, 17.0]
[42, 49]
p02753
u785573018
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['H, W = map(int, input().split())\nh, w = map(int, input().split())\nprint((H-h)*(W-w))', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s542656121', 's444147684']
[2940.0, 2940.0]
[17.0, 18.0]
[84, 79]
p02753
u788337030
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nq = int(input())\nt = 0\nfor i in range(q):\n Q = input()\n if Q == "1":\n t += 1\n else:\n a, f, c = Q.split()\n f = int(f)\n if (t + f) % 2 == 0:\n s = \'\'.join([s, c])\n else:\n s = \'\'.join([c, s])\nif t % 2 == 1:\n print(s[::-1])\nelse:\n print(s)', 'import math\na, b = map(int, input().split())\na_min = a / 0.08\na_max = (a + 1) / 0.08\nb_min = b / 0.1\nb_max = (b + 1) / 0.1\nif a_min > b_min:\n min = a_min\nelse:\n min = b_min\nif a_max < b_max:\n max = a_max\nelse:\n max = b_max\nmin = math.ceil(min)\nif math.floor(max) == max:\n max = max - 1 \nelse:\n max = math.floor(max)\nif min <= max:\n print(min)\nelse:\n print(-1)', 'a = input()\nif not (a == "AAA" or a =="BBB"):\n print("Yes")\nelse:\n print("No")\n ']
['Runtime Error', 'Runtime Error', 'Accepted']
['s236927267', 's373158586', 's392448176']
[3064.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0]
[276, 367, 83]
p02753
u789836448
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["from sys import stdin\n#T = int(stdin.readline())\nS = stdin.readline()\n\nif S == 'AAA' or S == 'BBB':\n return False\nelse\n return True\n", 'from sys import stdin\n#T = int(stdin.readline())\nS = stdin.readline()\n\nif S == \'AAA\' or S == \'BBB\':\n print("No")\nelse\n print("Yes")', 'from sys import stdin\n#T = int(stdin.readline())\nS = stdin.readline().strip()\nprint(S)\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")', 'from sys import stdin\n#T = int(stdin.readline())\nS = stdin.readline().strip()\nprint(S)\nif S == "AAA" or S == "BBB":\n print(\'No\')\nelse:\n print(\'Yes\')', 'from sys import stdin\n#T = int(stdin.readline())\nS = stdin.readline().strip()\n\nif S == "AAA" or S == "BBB":\n print(\'No\')\nelse:\n print(\'Yes\')']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s072991791', 's129848159', 's263273814', 's281711827', 's717545303']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0]
[138, 137, 154, 154, 146]
p02753
u793666115
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\ns = split(s)\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")', 's = input()\n\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s264832215', 's324442039']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 69]
p02753
u796044734
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['x = str(input())\n\nif x="AAA" or x="BBB":\n print("Yes")\nelse:\n print("No")\n \n', 'x = input()\n\nif x[0] == x[1] and x[1]==x[2]:\n print("Yes")\nelse:\n print("No")\n ', 'x = list(input())\n\nif x[0] == x[1] and x[1]==x[2]:\n print("Yes")\nelse:\n print("No")\n \n', 'x = input()\n\nif x[0]==x[1]==x[2]:\n print("Yes")\nelse:\n print("No")\n \n', 'x = input()\n\nif x[0]==x[1]==x[2]:\n print("No")\nelse:\n print("Yes")\n \n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s217930483', 's245602957', 's433087991', 's535590600', 's503414040']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[79, 82, 89, 72, 72]
p02753
u797421335
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nstr_list = list(str)\n\nif str_list[0] == str_ list[2]:\n print("Yes")\nelse:\n print("No")', 'str = input()\nstr_list = list(str)\n \nif str_list[0] =! str_list[1]:\n print("Yes")\nelif str_list[1] =! str_list[2]:\n print("Yes")\nelse:\n print("No")', 's = input()\ns_list = list(str)\n \nif str_list[0] == str_list[2]:\n print("Yes")\nelse:\n print("No")', 'str = input()\nstr_list = list(str)\n \nif str_list[0] =! str_list[1]:\n print("Yes")\nelif str_list[1] == str_list[1]:\n print("Yes")\nelse:\n print("No")', 'str = input()\nstr_list = list(str)\n \nif str_list[0] != str_list[1]:\n print("Yes")\nelif str_list[1] != str_list[2]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s041864185', 's748328684', 's866160316', 's972101011', 's234194198']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 20.0, 17.0, 18.0, 17.0]
[102, 150, 98, 150, 150]
p02753
u798543098
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['import numpy as np\n\ngrid = []\n\narray = list(map(int,input().strip().split()))\n# grid.append(array)\n#print(array)\na = array[0]\nb = array[1]\n\nmin8 = a/0.08\nmax8 = (a+1)/0.08\nmin10 = b/0.1\nmax10 = (b+1)/0.1\n\ndef lists(a,b):\n if a%1==0:\n a2 = a\n else:\n a2 = int(a)+1\n if b%1==0:\n b2 = b-1\n else:\n b2 = int(b)\n return np.arange(a2,b2+1)\n\nlist8 = lists(min8,max8)\nlist10 = lists(min10,max10)\n#print(list8,list10)\nhosii = list(set(list8)&set(list10))\nif len(hosii)>0:\n print(int(np.min(hosii)))\nelse:\n print(-1)', 'import numpy as np\n\nbus = input()\n\nif bus == "AAA":\n print("No")\nelif bus == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s719361458', 's967248199']
[12500.0, 21536.0]
[152.0, 1997.0]
[575, 126]
p02753
u798675549
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 len(set(input()))==1:\n print('Yes')\nelse:\n print('No')", "if not len(set(input()))==1:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s600378713', 's599242435']
[2940.0, 2940.0]
[17.0, 18.0]
[59, 64]
p02753
u800073564
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] or =s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")', 's=input()\nif s[0]==s[1]==s[2] or s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s355377436', 's313484379']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 85]
p02753
u802570471
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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(S) == 3 and S.count('A')==2 or S.count('B')==2:\n print('Yes')\n else:\n print('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')"]
['Runtime Error', 'Accepted']
['s216757068', 's768718266']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 105]
p02753
u804711544
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s511939409', 's130903525']
[9000.0, 8908.0]
[28.0, 27.0]
[74, 76]
p02753
u805552010
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\nif S[0] == S[1] and S[1]== S[2]:\n print("no")\nelse:\n print("yes")\n', '\ns = input()\nif s == "AAA" or s === "BBB":\n print("no")\nelse:\n print("yes")\n ', 'S = input()\nif S[0] == S[1] == S[2] == S[3]:\n print("no")\nelse:\n print("yes")\n', 's = input()\nif s == "AAA" or s == "BBB":\n print("no")\nelse:\n print("yes")\n', 's = input()\nif s == "AAA" or s === "BBB":\n print("no")\nelse:\n print("yes")\n ', 's = input()\nif s == "AAA" or s === "BBB":\n print("no")\nelse:\n print("yes")\n', '\nS = input()\nif S[0] == S[1] and S[1]== S[2] == :\n print("no")\nelse:\n print("yes")\n', 'S = input()\nif S[0] == S[1] and S[1]== S[2]:\n print("no")\nelse:\n print("yes")\n', '//入力部分以外わからなかった。\n\nS = input()\nif S[0] == S[1] == S[2] == :\n print("no")\nelse:\n print("yes")\n', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s152784555', 's275133793', 's441836411', 's536850559', 's567610478', 's603246530', 's655830582', 's748081586', 's954953583', 's044387603']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
[84, 86, 84, 80, 85, 81, 89, 84, 126, 80]
p02753
u809541036
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\n"]
['Wrong Answer', 'Accepted']
['s559795312', 's859259162']
[2940.0, 2940.0]
[18.0, 18.0]
[80, 81]
p02753
u810066979
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] and s[1]==s[2]):\n\tprint("Yes")\nelse:\n\tprint("No")', 's=input()\n\nif(s[0]==s[1] and s[1]==s[2]):\n\tprint("No")\nelse:\n\tprint("Yes")']
['Wrong Answer', 'Accepted']
['s963106522', 's137795154']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 74]
p02753
u810092294
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=input().split()\nif len(set(s))==1:\n print("No")\nelse:\n print("Yes")', 'n, a, b=map(int,input().split())\nif n==a+b:\n print(a)\nelse:\n if a==0:\n print(0)\n else:\n print((n//(a+b))*a + min(n%(a+b), a))', 'a, b = map(int, input().split())\nx=a*100//8\ny=b*10\ni=1\nf=False\nwhile(i<=1250):\n if i*8//100 == x and i//10 == y:\n print(i)\n f=True\n break\n i+=1\nif not f:\n print(-1)', 's=list(input())\nif len(set(s))==1:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s102762199', 's105936347', 's764008182', 's219635886']
[2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 18.0, 18.0, 17.0]
[71, 134, 176, 69]
p02753
u813286880
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['def main():\n S = input()\n\n cnt_A, cnt_B = 0\n\n for i in range(len(S)):\n if S[i] == "A":\n cnt_A += 1\n else:\n cnt_B += 1\n\n if cnt_A == 3 or cnt_B == 3:\n print(\'{}\'.format(\'No\'))\n else:\n print(\'{}\'.format(\'Yes\'))\n\n\nif __name__ == \'__main__\':\n main()', 'def main():\n S = input()\n\n cnt_A = 0\n cnt_B = 0\n\n for i in range(len(S)):\n if S[i] == "A":\n cnt_A += 1\n else:\n cnt_B += 1\n\n if cnt_A == 3 or cnt_B == 3:\n print(\'{}\'.format(\'No\'))\n else:\n print(\'{}\'.format(\'Yes\'))\n\n\nif __name__ == \'__main__\':\n main()']
['Runtime Error', 'Accepted']
['s892200879', 's078884754']
[3064.0, 3060.0]
[18.0, 18.0]
[313, 320]
p02753
u814271993
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nl = ['AAA','BBB']\n\nif S in l:\n print('No')\nif S not in l:\n print('No')", "S=input()\nl = ['AAA','BBB']\n\nif S in l:\n print('No')\nif S not in l:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s601923889', 's782867419']
[9040.0, 9016.0]
[30.0, 27.0]
[86, 87]
p02753
u815218584
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S=input()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('yes')", "s=input()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('yes')", "s=input()\n\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s073376629', 's812231845', 's619064517']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[82, 82, 83]
p02753
u816631826
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")', 'railway_companies = [\'A\', \'B\']\nservices = []\n\nfor i in railway_companies:\n for j in railway_companies:\n for k in railway_companies:\n services.append(str(i) + str(j) + str(k))\n\ndef check_service(service):\n no_service = [\'AAA\', \'BBB\']\n if service in no_service:\n return "No"\n return "Yes"\n\nprint(services)\nfor i in services:\n print(check_service(i))', 'if "a" and "b" in input():\n print("yes")\nelse:\n print("no")', 's = input()\nx = s.count(\'A\') ; y = s.count(\'B\')\nif (x == 1 and y == 2) or (x == 2 and y == 1):\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s438956789', 's708705078', 's912036367', 's986968167']
[2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[76, 387, 65, 134]
p02753
u821265215
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = input().split() # a = result * 0.08, b = result * 0.1\na, b = int(a), int(b)\n \nresult_a = int(a / 0.08)\nresult_b = int(b / 0.1)\n \nif result_a > result_b:\n if int(result_a * 0.08) == a:\n result_a += 1\n c = int(result_a * 0.1)\n if b == c:\n print(result_a)\n else:\n print(-1)\nelse:\n c = int(result_b * 0.08)\n if a == c:\n print(result_b)\n else:\n print(-1)', 'S = input()\n\nflag_a = 0\nflag_b = 0\nfor i in range(3):\n if S[i] == "A":\n flag_a += 1\n else:\n flag_b += 1\nif flag_a and flag_b:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s445272288', 's991247178']
[3064.0, 2940.0]
[17.0, 17.0]
[378, 168]
p02753
u821471074
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['import numpy as np\ndata = input()\ndata = data.split(" ")\nans = 0\ndataset = np.zeros(int(data[0]), dtype=np.int)\ncont = int(data[1])\nif int(data[1]) == 0:\n ans = 0\n\nelse:\n for i in range(int(data[0])):\n dataset[i] = 1\n print(cont, data)\n for i in range(int(data[0])):\n #print(i)\n if i == cont:\n print("px")\n dataset[cont:int(data[2]) + cont] = 2\n cont = i + int(data[2]) + int(data[1])\n\n\nprint(int(np.count_nonzero(dataset == 1)))', 'import numpy as np\ndata = input()\ndata = data.split(" ")\nans = 0\ndataset = np.zeros(int(data[0]), dtype=np.int)\ncont = int(data[1])\nif int(data[1]) == 0:\n ans = 0\n\nelse:\n for i in range(int(data[0])):\n dataset[i] = 1\n for i in range(int(data[0])):\n if i == cont:\n dataset[cont:int(data[2]) + cont] = 2\n cont = i + int(data[2]) + int(data[1])\n\nprint(int(np.count_nonzero(dataset == 1)))', 'data = input()\nif (data.count("A") == 3) or (data.count("B") == 3):\n ans = "No"\nelse:\n ans = "Yes"\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s499084844', 's772017455', 's284683874']
[12484.0, 12492.0, 2940.0]
[148.0, 149.0, 17.0]
[556, 430, 115]
p02753
u823885866
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = sys.stdin.readline()\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "import sys\ns = sys.stdin.readline()\nif s = 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "\ns =\u3000input()\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')\n", 'import sys\nn, a, b = map(int, sys.stdin.readline().split())\nballs = n // (a+b) * a\nif n % (a+b) <= a:\n balls += n % (a+b)\nelse:\n balls += a\nprint(balls)\n', "import sys\ns = sys.stdin.readline().rstrip()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s270761986', 's505016150', 's622528014', 's875366009', 's780054257']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[94, 93, 74, 155, 109]
p02753
u825541307
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = str(input())\nif S == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "S = str(input())\nif S == 'AAA':\n print('No')\nelif S == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s787259897', 's331166220']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 103]
p02753
u827261928
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S=input()\nif S in 'A' and S in 'B':\n print('Yes')\nelse:\n print('No')", "S=list(input())\nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s698552686', 's968176687']
[9072.0, 9040.0]
[30.0, 25.0]
[74, 80]
p02753
u828139046
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a = input()\n\tif a == 'AAA':\n \tprint('NO')\n elif a == 'BBB':\n \tprint('NO')\n else:\n \tprint('YES')", "bus = input()\nif bus == 'AAA' or bus == 'BBB':\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Accepted']
['s612463065', 's037801145']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 79]
p02753
u829406396
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s = input().split()\nif s[0] == s[1] and s[1] == s[2]:\n print('No'):\nelse:\n print('Yes')", "s = input().split()\nn = 0\nfor i in range(len(s) - 1):\n if s[i] != s[i + 1]:\n n += 1\nif n == 0:\n print('No')\nelse:\n print('Yes')", "s = input().split()\nn = 0\nfor i in range(len(s) - 1):\n if s[i] != s[i + 1]:\n n += 1\nif n >= 1:\n print('Yes')\nelse:\n print('No')", "s = input().split()\nn = 0\nfor i in range(len(s) - 1):\n if s[i] != s[i + 1]:\n n += 1\nif n >= 1:\n print('Yes')\nelse:\n print('No')", "s = input().split()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')\n", "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s008023158', 's506790426', 's513759086', 's580550058', 's754915420', 's951267623']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 20.0, 18.0, 17.0, 17.0, 17.0]
[89, 133, 133, 133, 89, 80]
p02753
u830087664
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")\n else:\n print("Yes")\n \n\n', 'S=input()\nif S=="AAA"or"BBB":\n print("No")\nelse:\n print("Yes")\n \n\n', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")\n \n\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s828129257', 's838556788', 's291367653']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[81, 79, 84]
p02753
u830742419
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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# Input of 3 stations\nstations = input() # i.e. ABA\n\ndef needBus(s):\n '''<str> s: 3 stations'''\n return ((s[0] != s[1]) or (s[1] != s[2]))\n\n# Output\nprint(needBus(stations))", "# -*- coding: utf-8 -*-\n# Input of 3 stations\nstations = input() # i.e. ABA\n\ndef needBus(s):\n '''<str> s: 3 stations'''\n if ((s[0] != s[1]) or (s[1] != s[2])):\n return 'Yes'\n else:\n return 'No'\n \n# Output\nprint(needBus(stations))\n"]
['Wrong Answer', 'Accepted']
['s634729588', 's071121444']
[2940.0, 2940.0]
[18.0, 17.0]
[199, 240]
p02753
u831336344
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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]:\nprint('No')\nelse:\nprint('Yes')", "#include <stdio.h>\n\nint main() {\n S = input()\n if S[0] == S[1] and S[1] == S[2]:\n print('No')\n else:\n print('Yes')\n \n \n \n \n\treturn 0;\n}", "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s038406818', 's200442940', 's066028150']
[9008.0, 9004.0, 9096.0]
[24.0, 25.0, 25.0]
[76, 162, 78]
p02753
u831835224
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["from math import floor\n\ndef dostuff():\n a, b = (int(x) for x in input().split(' '))\n\n x = b * 10\n # print(x)\n for i in range(x, x + 10):\n if floor(i * 0.08) == a:\n print(i)\n return\n print(-1)\n\ndostuff()", 'n = input()\n\nx = n[0]\nanswer = True\n\nfor i in n:\n if x != i:\n answer = False\n \nprint("YES" if answer else "NO")', 'n = input()\n\nif n == "AAA" or n "BBB":\n print("NO")\nelse:\n print("YES")', 'n = input()\n \nx = n[0]\nanswer = True\n \nfor i in n:\n if x != i:\n answer = False\n \nprint("YES" if not answer else "NO")', 'n = input()\n\nif n == "AAA" or n == "BBB":\n print("NO")\nelse:\n print("YES")', "from math import floor\n\ndef dostuff():\n a, b = (int(x) for x in input().split(' '))\n\n x = b * 10\n i = x\n for i in range(x, x + 10):\n if floor(i * 0.08) == a:\n print(i)\n return\n print(-1)\n\ndostuff()", "from math import floor\n\ndef dostuff():\n a, b = (int(x) for x in input().split(' '))\n\n x = b * 10\n # print(x)\n i = x\n for i in range(x, x + 10):\n if floor(i * 0.08) == a:\n print(i)\n return\n print(-1)\n\ndostuff()", 'n = input()\n\nif n == "AAA" or n == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s083352464', 's152558866', 's192101110', 's410032962', 's431752517', 's499063046', 's607153710', 's336994331']
[3056.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0]
[246, 118, 73, 124, 76, 241, 256, 76]
p02753
u832184497
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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(" "))\nlist_a = [i for i in range(round(a/0.08+0.5)-1, round((a+1)/0.08 +0.5))]\nlist_b = [i for i in range(round(b/0.1 +0.5)-1,round((b+1)/0.1 +0.5))]\nlist_and = list(set(list_a) & set(list_b))\nif list_and == []:\n print("-1")\nelse:\n print(min(list_and))', 'a = input()\nif ("B" in a) & ("A" in a):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s438322202', 's393741409']
[3060.0, 2940.0]
[17.0, 17.0]
[287, 78]
p02753
u833492079
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nans='No'\nif s=='AAA': ans='Yes'\nif s=='BBB': ans='Yes'\n\nprint(ans)\n", "s = input()\n\nans='Yes'\nif s=='AAA': ans='No'\nif s=='BBB': ans='No'\n\nprint(ans)\n"]
['Wrong Answer', 'Accepted']
['s116167362', 's023566527']
[3064.0, 2940.0]
[18.0, 18.0]
[80, 79]
p02753
u837677955
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nq = int(input())\nquery = []\nlead = \'\'\nend = \'\'\ninversion_flg = False\n \nfor j in range(q):\n i = input().split()\n if i[0] == "1":\n if inversion_flg:\n inversion_flg = False \n else:\n inversion_flg = True\n else:\n if inversion_flg:\n if i[1] == "1":\n i[1] = "2"\n else:\n i[1] = "1"\n if i[1] == "1":\n lead+=i[2]\n else:\n end+=i[2]\n \nlead = lead[::-1]\ns = lead+s+end\nif inversion_flg:\n s = s[::-1]\nprint(s)', "S = input()\n\nif (S[0] == S[1]) and (S[1] == S[2]):\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s552904448', 's184212880']
[3064.0, 2940.0]
[17.0, 17.0]
[550, 89]
p02753
u838178977
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nif len(sys.argv) < 2: \n print("No argument given!")\n exit(0)\n\nstring = sys.argv[1]\nif string == "AAA": print("No")\nelif string == "BBB": print("No")\nelse: print("Yes")', 'import sys\n\nstring = input()\nif string == "AAA": print("No")\nelif string == "BBB": print("No")\nelse: print("Yes")']
['Wrong Answer', 'Accepted']
['s316989818', 's059402658']
[2940.0, 2940.0]
[17.0, 17.0]
[185, 113]
p02753
u839082469
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 -*-\na = str(input())\n\nif a in "AB" or a in "BA":\n\tprint("Yes")\nelse:\n\tprint("No")\n', '# -*- coding: utf-8 -*-\na = str(input())\n\nif a.find("AB") != 0 :\n\tprint("Yes")\nelse:\n\tprint("No")\n', '# -*- coding: utf-8 -*-\na = str(input())\n\nif "AB" in a or "BA" in a:\n\tprint("Yes")\nelse:\n\tprint("No")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s744501122', 's918923222', 's591296682']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[102, 98, 103]
p02753
u839188633
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 in ("AAA", "BBB"):\n print("Yes")\nelse:\n print("No")\n', 'S = input()\n\nif S in ("AAA", "BBB"):\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s526611225', 's194780008']
[2940.0, 2940.0]
[18.0, 17.0]
[76, 76]
p02753
u843135954
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nstdin = sys.stdin\nsys.setrecursionlimit(10**9)\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnn = lambda: list(stdin.readline().split())\nns = lambda: stdin.readline().rstrip()\n\nss = nn()\na = 'No' if ss[0] == ss[1] and ss[1] == ss[2] else 'Yes'\nprint(a)", 'import sys\nstdin = sys.stdin\nsys.setrecursionlimit(10**9)\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnn = lambda: list(stdin.readline().split())\nns = lambda: stdin.readline().rstrip()\n\nn,p = na()\ns = ns()\ns = list(s)\nans = 0\n\nseenRemainders = [[] for k in range(n)] \nfor i in range(n):\n remainder = 0\n prefixesFound = 0\n for j in range(i,n):\n remainder = (10 * remainder + int(s[j])) % p\n if remainder in seenRemainders[j]:\n break\n seenRemainders[j].append(remainder)\n if remainder == 0:\n prefixesFound+=1\n ans += prefixesFound * (prefixesFound + 1) // 2\n\nprint(ans)', "import sys\nstdin = sys.stdin\nsys.setrecursionlimit(10**9)\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnn = lambda: list(stdin.readline().split())\nns = lambda: stdin.readline().rstrip()\n\ns = ns()\nss = list(s)\na = 'No' if ss[0] == ss[1] and ss[1] == ss[2] else 'Yes'\nprint(a)"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s209837767', 's910027246', 's877036621']
[2940.0, 3064.0, 3060.0]
[18.0, 17.0, 17.0]
[294, 670, 306]
p02753
u843545660
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['A = str(input())\n\nif A=="AAA":\n print("NO")\n \nif A=="BBB":\n print("NO")\n\n\nif A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":\n print("YES")', 'A = str(input())\n\nif A=="AAA"or"BBB":\n print("NO")\n \n\nelse:\n print("YES")', 'A = str(input())\n\nif A=="AAA""BBB":\n print("NO")\n \nif A=="BBB":\n print("NO")\n\n# else:\n# print("YES")\n\nif A =="AAB"or"ABA"or"BAA"or"BBA"or"BAB":\n print("YES")', 'A=str(input()\n\nif A[0]==A[1] and A[1]==A[2]:\n print("No")\nif A[0]!=A[1] or A[1]!=A[2]:\n print("Yes")', '# coding: utf-8\nA=input()\n\nif A[0]==A[1] and A[1]==A[2]:\n print("No")\nif A[0]!=A[1] or A[1]!=A[2]:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s492236589', 's512067367', 's548425859', 's828846302', 's824763446']
[3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0]
[133, 76, 163, 107, 119]
p02753
u844028869
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 == \'B\'*len(s) or s == \'A\'*len(s):\n print("NO")\nelse:\n print("YES")', 's = input()\nif s == \'B\'*len(s) or s == \'A\'*len(s):\n print("No")\nelse:\n print("Yes")\n\n']
['Wrong Answer', 'Accepted']
['s987488634', 's604816605']
[2940.0, 2940.0]
[18.0, 17.0]
[85, 87]
p02753
u845847173
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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(str, input())\n\nif a and b in s:\n print("Yes")\nelse:\n print("No")', 's = str(input())\n\nif \'A\' in s and \'B\' in s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s639907392', 's326469878']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 78]
p02753
u845937249
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['\nimport sys\nimport os\nif sys.platform=="darwin":\n\tbase = os.path.dirname(os.path.abspath(__file__))\n\tname = os.path.normpath(os.path.join(base, \'../atcoder/input.txt\'))\n\tsys.stdin = open(name)\n\nl = list(input())\n#print(l)\nset_l = set(l)\nif len(set_l)==1:\n print("Yes")\nelse:\n print("No")\n\n\n', '\nimport sys\nimport os\nif sys.platform=="darwin":\n\tbase = os.path.dirname(os.path.abspath(__file__))\n\tname = os.path.normpath(os.path.join(base, \'../atcoder/input.txt\'))\n\tsys.stdin = open(name)\n\nl = list(input())\n#print(l)\nset_l = set(l)\nif len(set_l)==1:\n print("No")\nelse:\n print("Yes")\n\n\n']
['Wrong Answer', 'Accepted']
['s110048493', 's207830217']
[9052.0, 9112.0]
[30.0, 25.0]
[318, 318]
p02753
u846226907
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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,m = map(int,input().split())\n\n\nprint( (n-1)*n/2+(m-1)*m/2)\n', 's = input()\n\nfor i in range(1,len(s)):\n if s[i] != s[i-1]:\n print("Yes")\n exit()\n\nprint("No")']
['Runtime Error', 'Accepted']
['s778299336', 's485016928']
[2940.0, 2940.0]
[17.0, 18.0]
[61, 110]
p02753
u846922835
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s438700098', 's123979035']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 80]
p02753
u847692421
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\n\nIN=[int(x) for x in a if x != " "]\nN=IN[0]\nA=IN[1]\nB=IN[2]\n\nTimes = N // (A + B)\nrest = N - Times * (A + B)\n\nif rest < A:\n ans = A * Times + rest\nelse:\n ans = A * Times + A\n\nprint(ans)', 'import sys\n\nargs=sys.argv\nS=args[1]\nif S[0] == S[1]:\n if S[1] == S[2]:\n print("No")\n else:\n print("Yes")\nelse:\n print("Yes")', 'a=list(input())\n\nIN=[int(x) for x in a if x != " "]\nN=IN[0]\nA=IN[1]\nB=IN[2]\n\nALL=A+B\n\ncnt=0\nnum=N\nwhile True:\n num = num - ALL\n if num > 0:\n cnt += 1\n else:\n break\n\nif ALL - num > A:\n ans = A * cnt + A\nelse:\n ans = A * cnt + ALL - num\n\nprint(ans)', '\n\nimport sys\n\nargs=sys.argv\nS=args[1]\nif S[0] == S[1]:\n if S[1] == S[2]:\n print("No")\n else:\n print("Yes")\nelse:\n print("Yes")', 'S=list(input())\n\nif S[0] == S[1]:\n if S[1] == S[2]:\n print("No")\n else:\n print("Yes")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s247814878', 's788306683', 's788839898', 's993061713', 's372911518']
[3064.0, 2940.0, 3064.0, 2940.0, 3064.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[215, 175, 311, 201, 156]
p02753
u848462327
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['flag = 1\n\nif (S[0] == S[1]) & (S[1] == S[2]):\n \tprint("No")\nelse: \n\tprint("Yes")', 'str = input()\n\nif (str[0] == str[1]) & (str[1] == str[2]):\n \tprint("Yes")\nelse:\n \tprint("No") ', 'S', 'str = input()\n \nif (str[0] == str[1]) & (str[1] == str[2]):\n \tprint("No")\nelse:\n \tprint("Yes") ']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s030434734', 's420777722', 's815982729', 's758989192']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[81, 96, 1, 97]
p02753
u848647227
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['a = input()\nif a == "AAA" or b == "BBB":\n print("No")\nelse:\n print("Yes")', 'a = input()\nif a == "AAA" or a == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s015514843', 's785671873']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 76]
p02753
u853728588
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\n\nif a == b and b== c and a==c:\n print("No")\nelse:\n print("Yes")', 's = input()\nfor i in s:\n if "A" not in i:\n print("No")\n elif "B" not in i:\n print("No")\nelse:\n print("Yes")', 's = input()\nif "A" not in s or "B" not in s:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s009711640', 's472450110', 's022025215']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[91, 117, 79]
p02753
u854158039
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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[3]\nS[1]=input()\nS[2]=input()\nS[3]=input()\nif not S[1]==S[2]and S[2]==S[3]:\n\tprint('No')\nelse:\n\tprint('Yes')", "S=input()\nif not S[1]==S[2]and S[2]==S[3]:\n\tprint('No')\nelse:\n\tprint('Yes')", "S=input()\nif S[0]==S[1]and S[1]==S[2]:\n\tprint('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s450726425', 's523702597', 's011970421']
[2940.0, 3064.0, 2940.0]
[18.0, 17.0, 18.0]
[109, 75, 71]
p02753
u854612823
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s = input()\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "s = input()\nif s == AAA or BBB:\n print('No')\nelse:\n print('Yes')", "s = input()\nif s == 'AAA':\n print('No')\nelif s == 'BBB':\n print('No')\nelse: \n print('Yes')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s215159781', 's870761222', 's914198457']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[70, 66, 93]
p02753
u857330600
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s=str(input())\nif s=='AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "s=str(input())\nif s== 'AAA' or s=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s279984946', 's560332711']
[2940.0, 3064.0]
[17.0, 17.0]
[71, 75]
p02753
u857673087
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nprint('No' if S == 'AAA' or 'BBB' else 'Yes')", "S = input()\n\nprint('No' if S == 'AAA' or S== 'BBB' else 'Yes')\n"]
['Wrong Answer', 'Accepted']
['s547099939', 's559536684']
[2940.0, 2940.0]
[18.0, 20.0]
[58, 63]
p02753
u858436319
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nc = 0\nd = a+b\nif a==0 and b==0:\n print(0)\nelif a==0:\n print(0)\nelif b==0:\n print(a)\nelse: \n q, mod = divmod(n, d) \n print(q*a + mod)', "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s420645330', 's917462192']
[3060.0, 2940.0]
[17.0, 18.0]
[190, 80]
p02753
u859241851
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()#.strip()\n\nif S[0] == S[1] == S[2]: #and S[0] == S[2]:\n print("Yes")\nelse:\n print("No")\n#print(S[0])', '# coding: utf-8\n# Your code here!\n\nS = input()#.strip()\n\nif S[0] == S[1] == S[2]: #and S[0] == S[2]:\n print("No")\nelse:\n print("Yes")\n#print(S[0]']
['Wrong Answer', 'Accepted']
['s772466659', 's838079889']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 151]
p02753
u859987056
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\nif S = "AAA" or S = "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s577514020', 's949494110']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 75]
p02753
u860966226
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['data = input().split()\n \na = int(data[0])\nb = int(data[1])\n \npricea = a // 0.08\npriceb = b // 0.1\n \nif pricea == priceb:\n ans = pricea\nelif pricea + 1 == priceb:\n ans = priceb\nelif pricea == priceb + 1:\n ans = pricea\nelse:\n ans = -1\n \nprint(ans)\n', 'com = input()\nif com[0] == com[1] and com[1] == com[2] and com[2] == com[0]:\n print("No")\nelse:\n print("yes")\n', 'com = input()\nif com[0] == com[1] == com[2]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s265827761', 's817565789', 's828970223']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[251, 112, 80]
p02753
u863370423
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 check_service(service):\n no_service = [\'AAA\', \'BBB\']\n if service in no_service:\n return "No"\n return "Yes"', 'def check_service(service):\n no_service = [\'AAA\', \'BBB\']\n if service in no_service:\n print("No")\n print("Yes")', 'S=input()\nif S[0]==S[1] and S[1]==S[2]:\n print("no")\nelse:\n print("yes")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s432331931', 's477254614', 's749742814', 's075979040']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[126, 126, 78, 75]
p02753
u864711178
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a = input()\n\nif a == 'AAA' or a == 'BBB':\n print('Yes')\nelse:\n print('No')", 'n,a,b = list(map(int, input().split()))\n\nq=n//(a+b)\nmod=n%(a+b)\nans=a*q\nif a < mod:\n ans+=a\nelse:\n ans+=mod\nprint(ans)', "\na = input()\n\nif a == 'AAA' or a == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s496387541', 's978914931', 's885834371']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[80, 124, 81]
p02753
u866746776
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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().rstrip()\n\nif len(set(s)) == 1:\n print("Yes")\nelse:\n print("No")\n', 's = input().rstrip()\n\nif len(set(s)) == 2:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s328308695', 's973339540']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 82]
p02753
u867616076
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = raw_input()\nif(s == \'AAA\' or s == \'BBB\'):\n print("No")\nelse:\n print("Yes") \n', 's = input()\nif(s == \'AAA\' or s == \'BBB\'):\n print("No")\nelse:\n print("Yes") \n']
['Runtime Error', 'Accepted']
['s754789428', 's226192811']
[8940.0, 8972.0]
[24.0, 29.0]
[89, 85]