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
u017415492
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 or len(s)==0:\n print("No")\nelse:\n print("Yes")', 's=input()\nif "A" in s:\n if s.count("A")==3:\n print("No")\n else:\n print("Yes")\nelse:\n if s.count("B")==3:\n print("No")\n else:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s001318711', 's681097611']
[2940.0, 2940.0]
[18.0, 17.0]
[71, 154]
p02753
u018597853
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['situation = input()\n\nif situation == AAA or situation == BBB:\n print(No)\nelse:\n print(Yes)', 'if AAA or BBB:\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")\n ', 'S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print("No")\nelse:\n print("Yes")\n \n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s224584007', 's438946990', 's931885707', 's888041134']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0, 17.0]
[92, 45, 83, 85]
p02753
u018679195
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['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 print("No")\n print("Yes")\n\nprint(services)\nfor i in services:\n print(check_service(i))', 'stations = set(str(input()))\nif len(stations) == 1:\n print ("No")\nelse:\n print ("Yes")\n']
['Wrong Answer', 'Accepted']
['s747182724', 's402346586']
[2940.0, 2940.0]
[17.0, 17.0]
[387, 93]
p02753
u019113646
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['n = list(map(input().split()))\nif len(set(n)) == 3:\n print("No")\nelse:\n print("Yes")', 'n = list(map(input().split()))\nif len(set(n)) == 2:\n print("No")\nelse:\n print("Yes")', 'n = list(map(input().split()))\nif len(set(n)) == 1:\n print("No")\nelse:\n print("Yes")', 'n = input()\ns = list(n)\nif len(set(s)) == 1:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s029277611', 's220145921', 's441223879', 's799433091']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 16.0, 17.0, 18.0]
[90, 90, 90, 83]
p02753
u019685451
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 set(input()) == 2 else 'No')", "print('Yes' if len(set(input())) == 2 else 'No')"]
['Wrong Answer', 'Accepted']
['s776465339', 's073667449']
[9068.0, 9008.0]
[29.0, 28.0]
[43, 48]
p02753
u020801333
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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" || s == "BBB":\n print("No")\nelse:\n print("Yes")', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s150606375', 's106346817']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 80]
p02753
u020812754
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 in 'A' and s in 'B':\n print('Yes')\nelse:\n print('No')", "s = input()\nif 'A' in s and 'B' in s:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s364568452', 's414753476']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 72]
p02753
u021084184
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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_n, r_n = input().split()\nb= "b" * int(b_n)\nr = "r" * int(r_n)\n\ntotal = (b + r) * int(n)\ntotal = total[:int(n)]\n\nb_n2 = 0\nfor _ in total:\n if _ == "b":\n b_n2 += 1\n \nprint(str(b_n2))', 'total = input()\na = total[0]\nb = total[1]\nc = total[2]\nif a != b:\n print("Yes")\nelif b != c:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s329181136', 's418011859']
[3060.0, 2940.0]
[17.0, 17.0]
[190, 128]
p02753
u023229441
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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=int(input())\nif a in ["AAA","BBB"]:\n print("No")\nelse:\n print("Yes")', 'a=input()\nif a in ["AAA","BBB"]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s803210602', 's616631317']
[2940.0, 2940.0]
[17.0, 19.0]
[72, 68]
p02753
u023516753
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nif s.count("A") > 0 and s.count("B") > 0:\n print("YES")\nelse:\n print("NO")', 's = input()\nif s.count("A") > 0 and s.count("B") > 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s988304216', 's619341498']
[2940.0, 2940.0]
[18.0, 17.0]
[92, 92]
p02753
u023540496
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nadd_head = ""\nadd_tail = ""\n\nfor _ in range(q):\n query = input().split()\n if query[0] == "1":\n add_head, add_tail = add_tail,add_head\n else:\n if query[1] == "1":\n add_head = query[2] + add_head\n else:\n add_tail = add_tail + query[2]\n \nprint(add_head[::-1] + s + add_tail)', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s783713444', 's319794494']
[3060.0, 2940.0]
[18.0, 17.0]
[367, 79]
p02753
u023762741
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\ninput_line = int(input())\n\nflag0 = ""\nflag1 = ""\nflag = 0\n\n\nfor i in range(input_line):\n action = list(input())\n # print(flag0,flag1)\n # print(action)\n if action[0]=="1":\n if flag == 0:\n flag = 1\n else:\n flag = 0\n else:\n # print("check")\n if action[2] == "2":\n \n if flag == 0:\n flag0 = flag0 + action[4]\n elif flag ==1:\n flag1 = action[4] + flag1\n else:\n if flag == 0:\n flag0 = action[4] + flag0\n \n elif flag == 1:\n flag1 += action[4]\n \nS = flag0 + S + flag1\nif flag == 1:\n S = S[::-1]\n \nprint(S)', 'Line = set(list(input()))\n\nif len(Line) == 2:\n print("Yes")\nelse:\n print("No")\n ']
['Runtime Error', 'Accepted']
['s478363833', 's287743089']
[3064.0, 2940.0]
[17.0, 17.0]
[727, 89]
p02753
u024890678
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 a == c:\n print('No')\nelse:\n print('Yes)", "a = input()\n \nif a[0] == a[1] and a[0] == a[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s325715267', 's527638826']
[8976.0, 8836.0]
[26.0, 27.0]
[80, 82]
p02753
u025526973
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nwhile True:\n inp=raw_input()\n a= set(inp)\n if(a==""):\n break\n elif(len(a)==1):\n print("No")\n else:\n print("Yes")\n ', '#! /usr/bin/env python3\n\ns=set(input())\nprint("Yes") if len(s)==2 else print("No")\n ']
['Runtime Error', 'Accepted']
['s334498553', 's305367600']
[2940.0, 2940.0]
[17.0, 17.0]
[134, 84]
p02753
u026002792
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nans = \'Yes\'\n\nif s == "AAA" or a == "BBB":\n ans = "No"\n\nprint(ans)\n', 's = input()\nans = \'Yes\'\n\nif s == "AAA" or s == "BBB":\n ans = "No"\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s487504614', 's669928345']
[2940.0, 2940.0]
[18.0, 17.0]
[79, 78]
p02753
u027547861
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\n\na = s[0]\nfor i in range(1, 3) :\n print(s[i])\n if(s[i] != a) :\n print("Yes")\n exit()\nprint("No")', 's = input()\n\na = s[0]\nfor i in range(1, 3) :\n if(s[i] != a) :\n print("YES")\n exit()\nprint("NO")', 's = input()\n\na = s[0]\nfor i in range(1, 3) :\n if(s[i] != a) :\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s643638945', 's868763249', 's973800426']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[116, 102, 102]
p02753
u027561659
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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" or "B")):\n print("Yes")\nelse:\n print("No")', 'A,B=map(int,input().split())\nmin_a=12.5*A;max_a=(100a+1)/8\nmin_b=10*B;max_b=min_b+1\nif(max_b<min_a or max_a<min_b):\n print(-1)\nelse:\n print(int(round(max(12.5*A,10*B)+0.4999999,0)))\n', 'S=input()\nif("AAA"==S or S=="BBB"):\n print("Yes")\nelse:\n print("No")\n', 'S,A,B=map(int,input().split())\nprint((S//(A+B))*A+min(A,S%(A+B)))', 'S=input()\nif(("A"in S and "B"in S):\n print("Yes")\nelse:\n print("No")\n', 'A,B=map(int,input().split())\nmin_a=12.5*A;max_a=(100a+1)/8\nmin_b=10*b;max_b=min_b+1\nif(max_b<min_a or max_a<min_b):\n print(-1)\nelse:\n print(int(round(max(min_a,min_b)+0.4999999,0)))', 'S=input()\nif(S in ("A"and"B")):\n print("Yes")\nelse:\n print("No")', 'S=input()\nif("AAA"==S or S=="BBB"):\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s081808114', 's085129952', 's292593559', 's493495111', 's598633819', 's702129732', 's961715539', 's948421774']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0]
[67, 184, 71, 65, 71, 183, 66, 71]
p02753
u028014940
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\na = int(s.count("A"))\nb = int(s.count("B"))\n\nif a or b == 3:\n print("No")\n\nelse:\n print("Yes")', 's = input()\na = s.count("A")\nb = s.count("B")\n\nif a or b ==3:\n print("No")\n\nelse:\n print("Yes")', 's = input()\na = int(s.count("A"))\nb = int(s.count("B"))\n\nif a == 3 or b == 3:\n print("No")\n\nelse:\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s071098423', 's831638966', 's177991550']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[112, 101, 117]
p02753
u030278108
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = str(input())\n\nc = S[0]\nd = S[1]\ne = S[2]\n\nprint(c + d + e)\n\nif c == d == e:\n print("No")\nelse:\n print("Yes")', 'S = str(input())\n\nc = S[0]\nd = S[1]\ne = S[2]\n\nif c == d == e:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s461608251', 's301307425']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 100]
p02753
u033183216
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 print('Yes')\nelse:\n print('No')\n", "S = input()\n\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s568840736', 's707496258']
[2940.0, 2940.0]
[18.0, 17.0]
[86, 86]
p02753
u035603241
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nif "A" in s and "B" in s:\n print("YES")\nelse:\n print("NO")', 's = input()\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s330760336', 's805567849']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p02753
u038021590
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a = input()\nif a == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "a = input()\nif a[0] == a[1] == a[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s567928255', 's603733577']
[2940.0, 2940.0]
[18.0, 17.0]
[70, 71]
p02753
u038819082
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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:print("Yes")', 'S=input()\nif s="AAA" or s="BBB":\n print("No")\nelse:print("Yes")\n', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:print("Yes")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s898602178', 's929026065', 's981782233']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[64, 65, 67]
p02753
u038887660
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nif s == "AAA":\n yn = "Yes"\nelif s == "BBB":\n yn = "Yes"\nelse:\n yn = "No"\nprint(yn)\n ', 's = input()\nif s == "AAA":\n yn = "No"\nelif s == "BBB":\n yn = "No"\nelse:\n yn = "Yes"\nprint(yn)\n ']
['Wrong Answer', 'Accepted']
['s777611391', 's444036501']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 107]
p02753
u039934639
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = int(input())\nif S = AAA or BBB:\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 'S = int(input())\nif S == AAA or BBB:\n print("No")\nelse:\n print("Yes")\n', 'S = int(input())\nif S == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s226044181', 's543593994', 's707722627', 's809572663', 's836079882']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[70, 71, 72, 75, 75]
p02753
u040151503
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = str(input("S = "))\n\nlen(s)==3\n\nif ((\'A\') not in s) and ((\'B\') not in s):\n sys.exit()\n\nelif (s == ("AAA")) or (s ==("BBB")):\n print ("No")\n\nelse:\n print ("Yes")\n', 'S = str(input("S = "))\n\nif len(S)!=3:\n print ("The number of strings should be 3")\n\nelif ((\'A\') not in S) and ((\'B\') not in S):\n print ("You can use only A or B")\n\nelif S[0] == S[1] and S[1] == S[2]:\n print ("No")\n\nelse:\n print ("Yes")\n', 's = str(input("S = "))\n\nif len(s)!=3:\n print ("The number of strings should be 3")\n\nelif ((\'A\') not in s) and ((\'B\') not in s):\n print ("You can use only A or B")\n\nelif (s == ("AAA")) or (s ==("BBB")):\n print ("No")\n\nelse:\n print ("Yes")', 'S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print ("No")\nelse:\n print ("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s000411494', 's364881616', 's496401588', 's581209997']
[2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[182, 244, 245, 84]
p02753
u043623523
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\n\nsum=0\n\nif A==0:\n print(0)\nelse:\n a=N//(A+B)\n b=N%(A+B)\n\n # print(a)\n # print(b)\n if b>A:\n sum=A*a+A\n print(sum)\n else:\n sum=A*a+b\n print(sum)', 'S=list(map(str,input()))\n\nif S[0]!=S[1]:\n print("Yes")\n\nelif S[0]!=S[2]:\n print("Yes")\n\nelif S[1]!=S[2]:\n print("Yes")\n\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s740551312', 's810951506']
[3060.0, 2940.0]
[17.0, 18.0]
[223, 150]
p02753
u044138790
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] == n[1] and s[1] == s[2]:\n print('Yes')\nelse:\n print('No')\n", "n = input()\nif n[0] ==n[1] and n[1] == n[2]:\n print('Yes')\nelse:\n print('No')\n", "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print('Yes')\nelse:\n print('No')\n", "S = input()\nif S == AAA or S == BBB:\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')", "n = input()\nif n[0] ==n[1] and n[1] == n[2]:\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s125674313', 's485013228', 's875773256', 's902531600', 's988628465', 's714478890']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 18.0, 17.0]
[81, 80, 81, 71, 80, 80]
p02753
u044220565
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = list(input())\nif S[0] == S[1] & S[1] == S[2]:\n print(\'No\')\nelse:\n print("Yes")', "# coding: utf-8\nS = input()\nif (S[0] == S[1]) & (S[1] == S[2]):\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s314501796', 's810352780']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 102]
p02753
u046158516
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nflag=1\nif S[0]==S[1]:\n if S[1]==S[2]:\n flag=0\nif flag==0:\n print('Yes')\nelse:\n print('No')", 'N, A, B=map(int, input().split())\nK=(N-N%(A+B))/(A+B)\nans=(K*A+min(A,N%(A+B))\nprint(int(round(ans)))\n', 'N, A, B=map(int, input().split())\nans=(N-N%(A+B))*A/(A+B)+min(A,N%(A+B))\nprint(int(round(ans)))\n', 'S=input()\n# Python3 program to Split string into characters \ndef split(word): \n return [char for char in word] \ndef convert(s): \n \n # initialization of string to "" \n new = "" \n \n # traverse in the string \n for x in s: \n new += x \n \n # return string \n return new \n \n \n# Driver code \nword = S\nsplits=split(S)\nQ=int(input())\nflipcounter=0\nfor i in range(0,Q):\n inputforround=input()\n if inputforround==\'1\':\n flipcounter=flipcounter+1\n else:\n T,F,C=map(str,inputforround.split())\n if (int(F)+flipcounter)%2==1:\n splits.insert(0,C)\n else:\n splits.append(C)\nif flipcounter%2==1:\n splits.reverse()\nans=convert(splits)\nprint(ans)\n', "S = str(input())\nflag=1\nif S[0]==S[1]:\n if S[1]==S[2]:\n flag=0\nif flag==1:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s196566750', 's333272391', 's387942046', 's506468888', 's257930605']
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0]
[18.0, 18.0, 18.0, 17.0, 17.0]
[123, 101, 96, 694, 124]
p02753
u049182844
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nbox = ''\nfor i in range(n//(a+b)+1):\n box += ('b' * a)\n box += ('r' * b)\nprint(len([i for i in box[0:n] if i == 'b']))", "S = list(input())\n\nif len(set(S)) == 1:\n print('No')\nelse:\n print('Yes')\n \n#ABA\n#BBA\n#BBB"]
['Runtime Error', 'Accepted']
['s488908319', 's621871063']
[9032.0, 2940.0]
[28.0, 17.0]
[153, 92]
p02753
u049725710
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=input()\ns=list(s)\nprint(s)\nif "A" not in s or "B" not in s:\n print("No")\nelse:\n print("Yes")', 's=map(str,input().split())\nif A not in s or B not in s:\n print("No")\nelse:\n print("Yes")', 's=input()\ns=list(s)\nif "A" not in s or "B" not in s:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s289349236', 's984984702', 's330663232']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[96, 90, 87]
p02753
u051331793
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')"]
['Runtime Error', 'Accepted']
['s256764845', 's956101208']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 75]
p02753
u051843295
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\na=0\nfor i in n:\n if i=="A":\n a+=1\nif a%3==0:\n print(\'Yes\')\nelse:\n print(\'NO\')\n', 'n=input()\na=0\nfor i in n:\n print(i)\n if i=="A":\n a+=1\nif a%3!=0:\n print(\'Yes\')\nelse:\n print(\'NO\')\n', 'n=input()\na=0\nfor i in n:\n if i=="A":\n a+=1\nif a%3!=0:\n print(\'Yes\')\nelse:\n print(\'No\')\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s472262524', 's874033634', 's602054959']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[104, 117, 104]
p02753
u055687574
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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) * A\ntemp = N % (A + B)\nif temp < A:\n ans += temp\nelse:\n ans += A\nprint(ans)', 'S = input()\n\nif len(set(S)) == 2:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s814059882', 's043721590']
[2940.0, 2940.0]
[17.0, 17.0]
[137, 73]
p02753
u057362336
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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(\'Yes\')\nelse:\n print(\'No\')', 's=input()\nif s=="AAA" or s=="BBB":\n print(\'No\')\nelse:\n print(\'Yes\')']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s104027684', 's490035030', 's836889080']
[8848.0, 9020.0, 9076.0]
[31.0, 33.0, 27.0]
[68, 69, 69]
p02753
u060012100
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\nelse\nprint('No')", "S = input()\nif len(S)==3 and S.count('A')==2 or S.count('B')==2:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s942374478', 's012026489']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 99]
p02753
u060793972
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a = input()\nif a='AAA' or a='BBB':\n print('No')\nelse:\n print('Yes')", "a = input()\nif a=='AAA' or a=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s218111311', 's338761953']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 71]
p02753
u061566631
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nimport math\ninput = sys.stdin.readline\n\n\ndef main():\n A, B = map(int, input().split())\n assert A <= 100\n assert B <= 100\n for i in range(1000):\n if math.floor((i+1) * 0.08) == A and math.floor((i+1) * 0.1) == B:\n print(i+1)\n exit()\n print("-1")\n\n\nif __name__ == \'__main__\':\n main()\n', 'import sys\nimport math\ninput = sys.stdin.readline\n\n\ndef main():\n A, B = map(int, input().split())\n for i in range(10000):\n if math.floor((i+1) * 0.08) == A and math.floor((i+1) * 0.1) == B:\n print(i+1)\n exit()\n print("-1")\n\n\nif __name__ == \'__main__\':\n main()\n', 'import sys\ninput = sys.stdin.readline\n\n\ndef main():\n S = input().strip()\n print("No") if S == "AAA" or S == "BBB" else print("Yes")\n\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s165986103', 's740709575', 's918295919']
[3060.0, 3060.0, 2940.0]
[18.0, 18.0, 17.0]
[340, 301, 178]
p02753
u062491608
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\na = 3\nb = sys.argv\n\nprint(a)\nprint(b)', 'A = input()\nif A[0] == A[1] and A[1] == A[2]:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s402897515', 's841690877']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 80]
p02753
u062808720
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\n\nif ( s == \'AAA\' or s == "BBB" ) :\n print("NO")\nelse :\n print("YES")\n', '# -*- coding: utf-8 -*-\n\ns = input()\n\nif ( s == \'AAA\' or s == \'BBB\' ) :\n print("No")\nelse :\n print("Yes")\n\n']
['Wrong Answer', 'Accepted']
['s920112233', 's073643279']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 113]
p02753
u063073794
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")\n']
['Wrong Answer', 'Accepted']
['s036184025', 's995452820']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 87]
p02753
u063703408
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s976878317', 's402783865']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 75]
p02753
u064728503
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["states = input()\n\nif states.find('A') < 0 or states.find('B') < 0:\n print('Yes')\nelse:\n print('No')", "states = input()\nif states.find('A') < 0 or states.find('B') < 0:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s697392263', 's490198417']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 104]
p02753
u065578867
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s = list(input())\nif s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:\n print('Yes')\nelse:\n print('No') \n", "s = list(input())\nif s[0] == s[1] and s[1] == s[2] and s[0] == s[2]:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s551440578', 's735476056']
[2940.0, 2940.0]
[18.0, 17.0]
[112, 108]
p02753
u065994196
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\ndict1={}\nfor i in s:\n\tif i in dict1:\n\t\tdict1[i]+=1\n\telse:\n\t\tdict1[i]=0\nif(dict1[\'A\'] > 0 and dict1[\'B\'] > 0):\n\tprint("Yes")\nelse:\n\tprint("No")', 's=input()\ndict1={}\nif(\'A\' in s and \'B\' in s):\n\tprint("Yes")\nelse:\n\tprint("No")']
['Runtime Error', 'Accepted']
['s274016240', 's419409567']
[2940.0, 2940.0]
[17.0, 17.0]
[152, 78]
p02753
u066551652
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = str(input())\n\nif s == "AAA" or S == "BBB":\n print(\'No\')\nelse:\n print(\'Yes\')', 's = str(input())\n \nif s == "AAA" or s == "BBB":\n print(\'No\')\nelse:\n print(\'Yes\')']
['Runtime Error', 'Accepted']
['s405798452', 's920800707']
[2940.0, 2940.0]
[17.0, 17.0]
[81, 82]
p02753
u068036576
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['S = input()\n\nif S == "AAA" or S == "BBB":\n print("NO")\n\nif S != "AAA" or S != "BBB":\n print("YES")', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("NO")\n\nif S != "AAA" and S != "BBB":\n print("YES")', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("NO");\n\nif S != "AAA" or S != "BBB":\n print("YES");', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("No")\n\nif S != "AAA" and S != "BBB":\n print("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s557972293', 's705913482', 's765338071', 's692396432']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[104, 105, 106, 105]
p02753
u068142202
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nq = n // (a + b)\nmod = n % (a + b)\nif mod <= a:\n print(a * q + mod)\nelse:\n print(a * q)', 's = input()\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s084015765', 's174847212']
[2940.0, 2940.0]
[17.0, 17.0]
[125, 72]
p02753
u068750695
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\na,b=map(int,input().split())\nflag=True\nfor i in range(10**6):\n if math.floor(i*0.08)==a and math.floor(i*0.1)==b:\n print(i)\n flag=False\n exit()\nif flag:\n print(-1)', 's=input()\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Accepted']
['s272053079', 's166037422']
[3060.0, 2940.0]
[17.0, 17.0]
[202, 69]
p02753
u069744971
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 b(i == "A" for i in a) or b(i == "B" for i in a):\n print("No")\nelse:\n print("Yes")', "a = str(input())\nif a == 'AAA' or a == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s657090513', 's922779157']
[2940.0, 2940.0]
[18.0, 17.0]
[105, 84]
p02753
u070201429
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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().rstrip()\nq = int(sys.stdin.readline().rstrip())\n\nfor _ in range(q):\n t = sys.stdin.readline().rstrip()\n if t == '1':\n s = s[::-1]\n else:\n t, f, c = t.split()\n if f == '1':\n s = c + s\n else:\n s = s + c\n\nprint(s)", "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s456433793', 's657905662']
[3060.0, 2940.0]
[17.0, 17.0]
[305, 79]
p02753
u071361440
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=set(input())\nif not len(s)%2==0:\n\tprint("NO")\nelse:\n\tprint("YES")', 's=set(input())\nif not len(s)%2==0:\n\tprint("No")\nelse:\n\tprint("Yes")']
['Wrong Answer', 'Accepted']
['s824917406', 's222203311']
[2940.0, 2940.0]
[18.0, 17.0]
[67, 67]
p02753
u073139376
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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("No" if input() == "AAA" or "BBB" else "Yes")', 's = input()\nprint("No" if (s == "AAA" or s == "BBB") else "Yes")']
['Wrong Answer', 'Accepted']
['s226956143', 's932740532']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 64]
p02753
u074687136
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s282683318', 's944910486']
[8952.0, 9000.0]
[23.0, 28.0]
[74, 76]
p02753
u076303440
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = 0 \nafter = ""\nS = input().split()\nA = list("A","A","A")\nB = list("B","B","B")\nif(set(S) == set(A) or set(S) ==set(B)):\n print("No")\nelse:\n print(print("Yes")', 'import sys\nFlag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'A\',\'A\',\'A\'])\nB = list([\'B\',\'B\',\'B\'])\nprint(SA)\nif(set(S) == set(A) or set(S) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'import sys\nFlag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'AAA\'])\nB = list([\'BBB\'])\nprint(SA)\nif(set(S) == set(A) or set(S) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'Flag = 0 \nafter = ""\nS = input().split()\nif(all(S)):\n print("No")\nelse:\n print(print("Yes")', 'Flag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'A\',\'A\',\'A\'])\nB = list([\'B\',\'B\',\'B\'])\nprint(SA)\nif(set(SA) == set(A) and set(SA) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', '\nFlag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'A\',\'A\',\'A\'])\nB = list([\'B\',\'B\',\'B\'])\nprint(SA)\nif(set(S) == set(A) and set(S) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'import sys\nFlag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'A\',\'A\',\'A\'])\nB = list([\'B\',\'B\',\'B\'])\nprint(SA)\nif(set(S) == set(A) and set(S) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'Flag = 0 \nS = input()\nSA = [str(c) for c in S]\n#A = list([\'A\',\'A\',\'A\'])\n#B = list([\'B\',\'B\',\'B\'])\nS1 = SA[1]\nS2 = SA[2]\nS3 = SA[3]\nif(S1 == S2 == S3):\n print("No")\nelse:\n print("Yes")', 'Flag = 0 \nafter = ""\nS = input().split()\nA = list(["AAA"])\nB = list(["BBB"])\nprint(S)\nif(set(S) == set(A) or set(S) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'Flag = 0 \nS = input()\nSA = [str(c) for c in S]\nA = list([\'A\',\'A\',\'A\'])\nB = list([\'B\',\'B\',\'B\'])\nprint(SA)\nif(set(SA) == set(A) or set(SA) ==set(B)):\n print("No")\nelse:\n print("Yes")\n', 'Flag = 0 \nS = input()\nSA = [str(c) for c in S]\n#A = list([\'A\',\'A\',\'A\'])\n#B = list([\'B\',\'B\',\'B\'])\nS1 = SA[0]\nS2 = SA[1]\nS3 = SA[2]\nif(S1 == S2 == S3):\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s092670698', 's094148240', 's216035361', 's229316678', 's272463535', 's299181278', 's733645650', 's766310097', 's837507523', 's870384228', 's675129592']
[2940.0, 3060.0, 3060.0, 2940.0, 3060.0, 3060.0, 3064.0, 3060.0, 2940.0, 3060.0, 3060.0]
[18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[171, 197, 185, 98, 189, 188, 198, 189, 167, 188, 189]
p02753
u078957995
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())) == 2:\n\tprint('yes')\nelse:\n\tprint('No')", "if set(input()) == 2:\n\tprint('yes')\nelse\n\tprint('No')\n \n", "if len(set(input())) >= 2:\n\tprint('yes')\nelse:\n\tprint('No')", "if len(set(input())) == 2:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s506866898', 's701876419', 's787459114', 's653395709']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[59, 57, 59, 59]
p02753
u081193942
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s928474460', 's464934295']
[2940.0, 3064.0]
[17.0, 17.0]
[75, 76]
p02753
u082122024
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['text = input()\nif text == "AAA" or text == "BBB":\n print("NO")\nelse:\n print("YES")', 'text = str(input())\nif text == "AAA" or text == "BBB":\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s982831349', 's508955117']
[3068.0, 2940.0]
[18.0, 18.0]
[88, 93]
p02753
u082978753
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nunique_n = len(set([S[0], S[1], S[2]]))\n\nif unique_n == 1:\n ans="Yes"\nelse :\n ans = "No"\nprint(ans)', 'S = input()\nunique_n = len(set([S[0], S[1], S[2]]))\n\nif unique_n == 1:\n ans="No"\nelse :\n ans = "Yes"\nprint(ans)']
['Wrong Answer', 'Accepted']
['s212344433', 's926524825']
[3064.0, 2940.0]
[18.0, 18.0]
[117, 117]
p02753
u083874202
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["import math\n\n\n#H, W = map(int, input().split())\n\n#str = input()\n\nA,B,C = input().split()\n\nif A == B == C:\n print('No')\nelse:\n print('Yes')", "S = input()\ntList = list(S)\n\nfirstStation = tList[0]\nMonopoly = 0\n\nfor str in tList:\n if(str == firstStation):\n Monopoly = 0\n\n else:\n Monopoly = 1\n break\n\nif(Monopoly == 0):\n print('NO')\nelse:\n print('YES')", "S = input()\ntList = list(S)\n\nfirstStation = tList[0]\nMonopoly = 0\n\nfor str in tList:\n if(str == firstStation):\n Monopoly = 0\n\n else:\n Monopoly = 1\n break\n\nif(Monopoly == 0):\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s003417660', 's995255179', 's737284055']
[2940.0, 3060.0, 2940.0]
[18.0, 19.0, 20.0]
[217, 239, 240]
p02753
u084261177
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\n", "s = input()\nif 'A' in s and 'B' in s:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s964434572', 's348100449']
[2940.0, 2940.0]
[17.0, 18.0]
[77, 77]
p02753
u084963909
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['word = input()\na,b = 0\n\nfor i in word:\n if i == "A":\n a=a+1\n elif i == "B":\n b=b+1\n\nif a==0 or b==0:\n print("No")\nelse:\n print("Yes")\n', 'word = input()\n\nif word[0] == word[1] and word[1] == word[2] and word[0] == word[2]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s299013108', 's649069880']
[9108.0, 8988.0]
[25.0, 29.0]
[160, 124]
p02753
u088115428
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = list(s)\nfor i in range(0,len(l)-1):\n if(l[i]!= l[i+1]):\n print("Yes")\n break()\n else:\n print("No")\n ', 's = input()\nl = list(s)\nans= "No"\nfor i in range(0,len(l)-1):\n if(l[i]!= l[i+1]):\n ans = "Yes"\n break\nprint(ans)\n \n']
['Runtime Error', 'Accepted']
['s583121781', 's734556952']
[2940.0, 2940.0]
[17.0, 17.0]
[128, 123]
p02753
u089230684
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")', "station = [char for char in input()]\n\nstation_set = set(station)\nif len(station_set) == 2:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s764188163', 's575385448']
[2940.0, 2940.0]
[18.0, 17.0]
[76, 129]
p02753
u089376182
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = set(list(input()))\n\nprint('Yes' if len(x)==1 else 'No')", "x = set(list(input()))\nprint('No' if len(x)==1 else 'Yes')"]
['Wrong Answer', 'Accepted']
['s451237123', 's213329002']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 58]
p02753
u089504174
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['from collections import deque\ns=deque(input())\nq=int(input())\ndirection=1\nfor i in range(q):\n k=deque(input().split())\n if k[0]==\'1\':\n direction*=(-1)\n if k[0]==\'2\':\n if k[1]==\'1\':\n if direction==1:\n s.appendleft(k[2])\n else:\n s.append(k[2])\n if k[1]==\'2\':\n if direction==1:\n s.append(k[2])\n else:\n s.appendleft(k[2])\nif direction==-1:\n s.reverse()\nprint("".join(list(s)))', "s=input()\nz=0\nfor i in range(2):\n if s[i]==s[i+1]:\n z+=1\nif z==2:\n print('No')\nelif z<2:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s407084071', 's159679535']
[3316.0, 2940.0]
[20.0, 17.0]
[433, 108]
p02753
u089786098
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = set(input())\ndef i():\n if S = [AAA]\n print('No')\n elif S = [BBB]\n print('No')\n else:\n print('Yes')\n return\n\ndef i()", "input_line = input()\nX = str(input_line)\nif (X) == ('AAA'):\n print('No')\nelif (X) == ('BBB'):\n print('No')\nelse:\n\tprint('Yes')"]
['Runtime Error', 'Accepted']
['s615899021', 's609819382']
[2940.0, 2940.0]
[17.0, 17.0]
[128, 130]
p02753
u092387689
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["s = input()\na = s.count('A')\nb = s.count('B')\n\nif(a==3):\n print('Yes')\nelif(b==3):\n print('Yes')\nelse:\n print('No')", "s = input()\na = s.count('A')\nb = s.count('B')\n\nif(a==3):\n print('No')\nelif(b==3):\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s934571412', 's607089761']
[2940.0, 2940.0]
[17.0, 17.0]
[124, 123]
p02753
u093041722
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = (str(x) for x in input().split())\nif a == b == c:\n print('No')\nelse:\n print('Yes')", 'a,b,c = (str(x) for x in input().split())\nif a == b == c:\n print("No")\nelse:\n print("Yes")', 'a,b,c = (str(x) for x in input().split())\nif a == b == c:\n print(No)\nelse:\n print(Yes)', 'a,b,c = (str(x) for x in input().split())\nif a == b == c\n print(No)\n else\n print(Yes)', "S = input()\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s204959592', 's389829819', 's411594556', 's864067248', 's947330622']
[2940.0, 2940.0, 3064.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0]
[96, 96, 92, 98, 75]
p02753
u094191970
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nprint('Yes' if a==b==c else 'No')", "a,b,c=input()\nprint('No' if a==b==c else 'Yes')"]
['Wrong Answer', 'Accepted']
['s592988069', 's693605623']
[2940.0, 2940.0]
[17.0, 17.0]
[47, 47]
p02753
u098569005
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] == 'A' and S[1] == 'A' and S[2] == 'A':\n print('NO')\nelif S[0] == 'B' and S[1] == 'B' and S[2] == 'B':\n print('NO')\nelse:\n print('YES')", "S = input()\nif S[0] == 'A' and S[1] == 'A' and S[2] == 'A':\n print('No')\nelif S[0] == 'B' and S[1] == 'B' and S[2] == 'B':\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s224443196', 's392894305']
[2940.0, 3060.0]
[17.0, 21.0]
[164, 164]
p02753
u099907919
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['test_input = str(input())\nif test_input.count("A") == 3 or test_input.count("B") == 3:\n print ("FALSE")\nelse:\n print("TRUE")\n\n', 'test_input = str(input())\nif test_input.count("A") == 3 or test_input.count("B") == 3:\n print ("No")\nelse:\n print("Yes")\n\n']
['Wrong Answer', 'Accepted']
['s118691289', 's628209093']
[2940.0, 2940.0]
[17.0, 18.0]
[132, 128]
p02753
u101350975
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nloop = N // (A + B)\namari = N % (A + B)\nblue = A * loop + min(A, amari)\nprint(blue)\n', "S = str(input())\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Accepted']
['s022145529', 's119218354']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 81]
p02753
u101513660
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["initInput = input()\ntmpList = initInput.split()\ninputN = int(tmpList[0])\ninputA = int(tmpList[1])\ninputB = int(tmpList[2])\narrayList = []\nnum = 0\narrayNum = 0\nblueballNum = 0\nwhile len(arrayList) < inputN:\n if num % 2 == 0:\n for a in range(inputA):\n arrayList = arrayList + ['a']\n arrayNum = arrayNum + 1\n blueballNum = blueballNum + 1\n else:\n for b in range(inputB):\n arrayList = arrayList + ['b']\n arrayNum = arrayNum + 1\n\n num += 1\n\nblueballNum = blueballNum - (len(arrayList) - inputN)\n \nprint(blueballNum)", "strStation = input()\n\nif strStation == 'AAA' or strStation == 'BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s756561336', 's037689365']
[3064.0, 2940.0]
[17.0, 17.0]
[594, 107]
p02753
u103520789
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['P8, P10 = map(int, input().split())\n\n\nimport math\nprice1_min = math.ceil(P8/0.08)\n\nprice1_max = math.floor((P8+1)//0.08)\n\nprice2_min = math.ceil(P10/0.10)\n\nprice2_max = math.floor((P10+1)//0.10)\n\n\n\nif (price1_max >= price2_min) and (price2_max >= price1_min):\n print(max(price2_min, price1_min))\nelse: \n print(-1)', 'P8, P10 = map(int, input().split())\n\nimport math\n\n\nprice1_min = math.floor(P8/0.08)\n\nprice1_max = math.floor((P8+1)/0.08)-1\n\nprice2_min = math.floor(P10/0.10)\n\nprice2_max = math.floor((P10+1)/0.10)-1\n\n\n\nif (price1_max >= price2_min) and (price2_max >= price1_min):\n print(max(price2_min, price1_min))\nelse: \n print(-1)', 'stations = input()\nif (not "A" in stations) or ("B" in stations):\n print("No")\nelse:\n print("Yes")', 'stations = input()\nif (not "A" in stations) or (not "B" in stations):\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s799364671', 's875742269', 's879927109', 's283978608']
[3060.0, 3060.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0]
[319, 324, 100, 104]
p02753
u103826705
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\ntax1,tax2 = map(int,input().split())\ntax_max1 = tax1+1 \nif int(tax_max1%0.08) != 0:\n subtraction1 = int((tax_max1/0.08)) - math.ceil(tax1/0.08)\n store1 = []\n beggining1 = math.ceil(tax1/0.08)\n for num in range(subtraction1+1):\n price = beggining1 + num\n store1.append(price)\nelse:\n subtraction1 = int((tax_max1/0.08)-1) - math.ceil(tax1/0.08)\n store1 = []\n beggining1 = math.ceil(tax1/0.08)\n for num in range(subtraction1+1):\n price = beggining1 + num\n store1.append(price)\ntax_max2 = tax2+1\nsubtraction2 = int((tax_max2/0.10)-1) - math.ceil(tax2/0.10)\nstore2 = []\nbeggining2 = math.ceil(tax2/0.10)\nfor num in range(subtraction2+1):\n price = beggining2 + num\n store2.append(price)\ncommon = list(set(store1)&set(store2))\nif len(common)>0:\n print(common[0])\nelse:\n print(-1)', 's = input()\nif \'A\' in s and "B" in s:\n print(\'Yes\')\nelse:\n print(\'No\')']
['Runtime Error', 'Accepted']
['s936683405', 's846889640']
[3064.0, 2940.0]
[17.0, 17.0]
[848, 76]
p02753
u103902792
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["S = input()\ns = set(input())\nprint('Yes' if len(s)>1 else 'No')\n\n", "s = set(input())\nprint('Yes' if len(s)>1 else 'No')\n\n"]
['Runtime Error', 'Accepted']
['s377465332', 's848713005']
[2940.0, 2940.0]
[17.0, 18.0]
[65, 53]
p02753
u105659451
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nrest = N-A-B\nif A ==0:\n print(0)\nelif N>A+B:\n answer = A + rest\n print(answer)\nelif A<=N<=A+B:\n print(A)', 'N,A,B=map(int,input().split())\nrest = N-A-B\nif A ==0:\n print(0)\nelif N>A+B:\n answer = A + rest\n print(answer)\nelif A<=N<=A+B:\n print(A)\nelif A>=N:\n print(N)', 'S =list(input())\nif S[0] =="B" and S[1]=="B" and S[2]=="B":\n print("No")\nelif S[0] =="A" and S[1]=="A" and S[2]=="A":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s256340041', 's921828213', 's868745030']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[147, 171, 159]
p02753
u106181248
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s191982464', 's232287884']
[2940.0, 2940.0]
[17.0, 18.0]
[74, 77]
p02753
u111263303
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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']
['s351358366', 's543964166']
[2940.0, 2940.0]
[17.0, 18.0]
[73, 75]
p02753
u112247039
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nlow = int(min(a//0.08,b//0.1))\nhigh = int(max((a+1)//0.08,(b+1)//0.1))\nfor i in range(low,high+1):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i); break\nelse:\n print(-1)', "s = input() \nprint('No' if (s == 'BBB' or s == 'AAA') else 'Yes')"]
['Runtime Error', 'Accepted']
['s271498967', 's121770336']
[9012.0, 2940.0]
[22.0, 17.0]
[215, 65]
p02753
u113310313
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nseen = set()\n\nfor s in S:\n seen.add(s)\n\nprint( True if len(seen) == 2 else False)\n', "S = input()\nseen = set()\n\nfor s in S:\n seen.add(s)\n\nprint( 'Yes' if len(seen) == 2 else 'No' )\n"]
['Wrong Answer', 'Accepted']
['s135584991', 's051357591']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 98]
p02753
u113341986
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["args = input()\nif 'A' not in args:\n print('No')\n return\nif 'B' not in args:\n print('No')\n return\nprint('yes')\n \n", " args = input()\n print(args)\n if 'A' in args:\n if 'B' in args:\n print('Yes')\n exit()\n print('No')", "args = input()\nif 'A' in args:\n if 'B' in args:\n print('Yes')\n exit()\nprint('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s374150684', 's707498538', 's842847741']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[117, 114, 88]
p02753
u113991073
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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="AAB"or s="ABA"or s="ABB"or s="BBA"or s="BAB"or s="BBA":\n print("Yes")\nelse:\n print("No")', 's=input()\nif s="AAA","AAB","ABA","ABB","BBA","BAB","BBA":\n print("Yes")\nelse:\n print("No")', 's=input()\nif s[0]==s[1]==s[2]:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s495470849', 's803169606', 's068931919']
[3064.0, 2940.0, 3060.0]
[17.0, 18.0, 18.0]
[120, 96, 69]
p02753
u114053864
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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" || a=="BBB"):\n print("No")\nelse:\n print("Yes")', 'a=input()\nflag=False\nif a[0]!=a[1]:\n flag=True\nif a[1]!=a[2]:\n flag=True\n\nif flag:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s919351460', 's260980118']
[2940.0, 2940.0]
[18.0, 18.0]
[75, 128]
p02753
u115877451
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["a=input()\nif a=='AAA'or'BBB':\n print(No)\nelse:\n print(Yes)", "a=input()\nif a=='AAA'or a=='BBB':\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s064743732', 's233523452']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 68]
p02753
u116038906
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 \n\nx = A/0.08\nx_1 =(A+1)/0.08\ny = B/0.1\ny_1 = (B+1)/0.1\n\nx_2 = {i for i in range(int(x),int(x_1) +1) }\ny_2 = {i for i in range(int(y),int(y_1) +1) }\nmoto_nedan = x_2 & y_2\nif len(moto_nedan) == 0:\n print("-1")\nelse:\n print(min(moto_nedan))\nprint(x_2)\nprint(y_2)\nprint(38*0.08)\n', '\nN,A,B = (int(x) for x in input().split(" "))\n\n\nretu = ""\nfor j in range(10100):\n for i in range(A):\n retu += "b"\n for i in range(B):\n retu += "r"\n\nb_num = retu[:N].count("b")\nprint(b_num)', '\nS = input()\n\n\ns_list =[i for i in S]\nif s_list[0] == s_list[1] and s_list[1] ==s_list[2]:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s170688791', 's282790734', 's997894947']
[3064.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[348, 245, 195]
p02753
u116967964
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nS = \'BAB\'\n\nif S == \'AAA\' or S== \'BBB\':\n print("NO")\n \nelse:\n print("YES")', 'S = input()\n \nif S == \'AAA\' or S== \'BBB\':\n print("No")\n \nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s612731571', 's950287408']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 86]
p02753
u117193815
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s=set(list(input()))\n\nif les(s)==1:\n print("Yes")\nelse:\n print("No")', 's=set(list(input()))\n\nif len(s)==1:\n print("Yes")\nelse:\n print("No")', 's=set(list(input()))\n\nif len(s)==1:\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s222707764', 's578191171', 's138720286']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[74, 74, 74]
p02753
u118211443
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")\n', 's=input()\nif s==\'AAA\' or s==\'BBB\':\n print("No")\nelse:\nprint("Yes")', 's = input()\n\nif s == \'AAA\' or s == \'BBB\':\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s822253856', 's872374943', 's678253574']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[81, 67, 81]
p02753
u119148115
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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,A,B = map(int,input().split())\nQ = N//(A + B)\nif N - Q * (A + B) > A:\n print(Q * A + A)\nelse:\n print(Q * A + N - Q * (A + B))', "S = input()\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s690084312', 's704041749', 's725747218']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[86, 129, 81]
p02753
u121698457
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
["if S=='AAA' or S=='BBB':\n print('No')\nelse\n print('Yes')\n \n", "if S=='AAA' or S='BBB':\n print('No')\nelse\n print('Yes')\n ", "S = input()\nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s238033141', 's685738701', 's143557252']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0]
[62, 60, 76]
p02753
u121953215
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\n\nif S[0] == S[1] and S[1] == S[2]:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s938164373', 's656585217']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 81]
p02753
u122428774
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\npritn("Yes" if "AB" in S or "BA" in S else "No")', 'S = input()\nprint("Yes" if "AB" in S or "BA" in S else "No")']
['Runtime Error', 'Accepted']
['s033591965', 's301992314']
[2940.0, 2940.0]
[17.0, 17.0]
[60, 60]
p02753
u123525541
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['s = input()\nprint("Yes" if s.count("A") == 0 or s.count("B") == 0 else "No")', 's = input()\nprint("No" if s.count("A") == 0 or s.count("B") == 0 else "Yes")']
['Wrong Answer', 'Accepted']
['s923138446', 's975777938']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 76]
p02753
u129961029
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nlen=len(a)\na_cnt=0\nb_cnt=0\nfor i in range(len):\n if a[i]='A':\n a_cnt+=1\n else :\n b_cnt+=1\nif a_cnt>0 and b_cnt>0:\n print('Yes')\nelse :\n print('No')\n", "a=input()\nlen=len(a)\na_cnt=0\nb_cnt=0\nfor i in range(len):\n if a[i]=='A':\n a_cnt+=1\n else :\n b_cnt+=1\nif a_cnt>0 and b_cnt>0:\n print('Yes')\nelse :\n print('No')\n"]
['Runtime Error', 'Accepted']
['s333135763', 's894767369']
[2940.0, 2940.0]
[18.0, 18.0]
[184, 185]
p02753
u131453093
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 "A" in S and "B" in S:\n prnt("Yes")\nelse:\n ptint("No")', 'S = input()\n\nif "A" in S and "B" in S:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s489860574', 's431316384']
[9052.0, 9024.0]
[23.0, 28.0]
[72, 73]
p02753
u131464432
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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_1,S_2,S_3 = input().split()\nif S_1 == S_2 && S_2 == S_3:\n print("No")\nelse:\n print("Yes")', 's_1,s_2,s_3 = input().split()\nif s_1 == s_2 && s_2 == s_3:\n print("No")\nelse:\n print("Yes")', 's_1,s_2,s_3 = input().split()\nif s_1 == s_2 == s_3:\n print("No")\nelse:\n print("Yes")\n ', 'S_1,S_2,S_3 = input().split()\nif s_1 == s_2 && s_2 == s_3:\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s051523529', 's455676705', 's591616312', 's790897466', 's320662682']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 18.0]
[93, 93, 89, 93, 75]
p02753
u131881594
2,000
1,048,576
In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service.
['d=input()\nif d.count("A")==3 or d.count("B")==3: print("Yes")\nelse: print("No")', 'd=input()\nif d.count("A")==3 or d.count("B")==3: print("No")\nelse: print("Yes")\n']
['Wrong Answer', 'Accepted']
['s966148532', 's012394238']
[9036.0, 9016.0]
[28.0, 29.0]
[79, 80]