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 | u428891594 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['#!/usr/bin/env python3\n\ndef main():\n A, B = map(int, open(0).read().split())\n\n ans_A = []\n for i in range(int(12.5 * A), int(12.5 * A + 12.5 + 1)):\n ans_A.append(i)\n ans_B = []\n for i in range(int(10*B), int(10*B + 10 + 1)):\n ans_B.append(i)\n ans = set(ans_A) & set(ans_B)\n if len(ans) == 0:\n print(-1)\n else:\n print(min(list(ans)))\n\n\nmain()', '#!/usr/bin/env python3\n\ndef main():\n *S, = map(str, open(0).read().split())\n S = S[0]\n if (S == "AAA" or S == "BBB"):\n print("No")\n else:\n print("Yes")\n\n\nmain()'] | ['Runtime Error', 'Accepted'] | ['s065400530', 's912629438'] | [3064.0, 2940.0] | [17.0, 17.0] | [393, 186] |
p02753 | u429029348 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nsame=["AAA","BBB"]\nif S in same:\n print("Yes")\nelse:\n print("No")', 'S=input()\nsame=["AAA","BBB"]\nif S in same:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s975628584', 's729765985'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 81] |
p02753 | u432453907 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = str(input())\n\nif s in "A":\n if s in "B":\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 's = str(input())\n\nif "A" in s:\n if "B" in s:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s299185612', 's597636758'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 120] |
p02753 | u434296044 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\n\nif s[0]!==s[1] or s[1]==s[2]:\n print("Yes")\n \nelse :\n print("No")\n', 's=input()\n\nfor i in range(0,1):\n if s[i]!=s[i+1]:\n X=Yes\n break\n else :\n X=No\n\nprint(X)\n', 's=input()\n\nfor i in range(0,2):\n if s[i]!=s[i+1]:\n X=Yes\n break\n else :\n X=No\n\nprint(X)\n', 's=input()\nif s[0]=s[1] and s[1]==s[2]:\n print("Yes")\n \nelse :\n print("No")\n', 's=input()\n\nfor i in range(0,1):\n if s[i]!=s[i+1]:\n X=Yse\n break\n else :\n X=No\n\nprint(X)\n', 's=input()\n\nfor i in range(3):\n if s[i]==s[i+1]:\n print("Yes")\n else :\n print("No")', 's=input()\n\nfor i in range(0,2):\n if s[i]!=s[i+1]:\n X=True\n break\n else :\n X=None\n\nprint(X)\n', 's=input()\nif s[0]==s[1] and s[1]==s[2]:\n print("Yes")\n \nelse :\n print("No")\n', 's=input()\nif s[0]==s[1] and s[1]==s[2]:\n print("No")\n \nelse :\n print("Yes")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s001949739', 's442049559', 's486726780', 's595629732', 's606340615', 's769243485', 's943650039', 's967458725', 's807299724'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0, 17.0] | [80, 115, 115, 78, 115, 90, 118, 79, 79] |
p02753 | u434311880 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nif S = "AAA" or S = "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s825946019', 's963819614'] | [2940.0, 3060.0] | [17.0, 19.0] | [77, 80] |
p02753 | u437351386 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 (A not in s) or (B not in s):\n print("No")\nelse:\n print("Yse")', 'a,b=list(map(float,input().split()))\nimport sys\nfor i in range(100000):\n if int(i*8/100)==a and int(i*10/100)==b:\n print(i)\n sys.exit()\nprint(-1)\n\n \n ', 's=list(input())\nif ("A" not in s) or ("B" not in s):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s262590577', 's837294587', 's141257290'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [83, 159, 87] |
p02753 | u443577878 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\na=A+B\nx=N//a\ny=N%a\nif y<=A:\n print(x*A+y)\nelse:\n print(x*(A+1))\n', 'S=input()\nif S[0]==S[1]==S[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s496536091', 's222347808'] | [2940.0, 2940.0] | [18.0, 18.0] | [101, 69] |
p02753 | u445670279 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\tprint("No")\nelse:\n\tprint("Yes")', 'S=input()\nif S==AAA or S==BBB:\n\tprint("No")\nelse:\n\tprint("Yes")', 'S=input()\nif S=="AAA" or S=="BBB":\n\tprint("No")\nelse:\n\tprint("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s204051585', 's749809507', 's008371874'] | [2940.0, 2940.0, 2940.0] | [17.0, 16.0, 17.0] | [63, 63, 67] |
p02753 | u446371873 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["a,b = map(int,input().split())\nfor i in range(1, 1001):\n if floor(i * 0.08) == a and floor(i * 0.1) == b:\n print(i)\nelse:\n print('-1')\n", 'n,a,b = map(int,input().split())\nans = int(n / (a + b))\nrem = n % (a + b)\nif rem > a:\n print(ans * a + a)\nelse:\n print(ans * a + rem)', "s = input()\nf = False\nif s[0] != s[1]:\n f = True\nelif s[1] != s[2]:\n f = True\n \nif f == True:\n print('Yes')\nelse\n print('No')", "s = input()\nf = False\nfor i in range(0,2):\n if s[i] != s[i+1]:\n f = True\n break\n \nif f:\n print('YES')\nelse:\n print('NO')", "s = input()\nfor i in range(0,2):\n if s[i] != s[i+1]:\n print('YES')\n break\nelse:\n print('NO')", "s = input()\nfor i in range(0,2):\n if s[i] != s[i+1]:\n print('Yes')\n break\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s005009336', 's143102029', 's449704086', 's607111506', 's921047379', 's667125525'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [140, 139, 130, 132, 112, 100] |
p02753 | u446711904 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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('NYoe s'[len(set(input().split()))==2::2])", "print('NYoe s'[len(set(input()))==2::2])"] | ['Wrong Answer', 'Accepted'] | ['s094381321', 's089683123'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 40] |
p02753 | u447456419 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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'] | ['s313697693', 's538676442'] | [3060.0, 2940.0] | [18.0, 17.0] | [77, 78] |
p02753 | u448659077 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\n\ns = set(list(input()))\nprint(s)\nprint("Yes") if len(s) == 2 else print("No")\n\n', '#A\n\ns = set(list(input()))\n\nprint("Yes") if len(s) == 2 else print("No")\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s257700895', 's125401573'] | [2940.0, 2940.0] | [17.0, 18.0] | [82, 75] |
p02753 | u449473917 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\n\nif s=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 's=input()\n\na=0\nb=0\n\nfor i in s:\n if i=="A":\n a=a+1\n else:\n b=b+1\n\nif a==0 or b==0:\n print("No")\nelse:\n print("Yes")\n \n '] | ['Wrong Answer', 'Accepted'] | ['s318172956', 's534873055'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 155] |
p02753 | u451973336 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['input_line = input()\n\nif input_line == "AAA" or input_line == "BBB"\n print("No")\nelse:\n print("Yes")', 's1,s2,s3 = input().split()\n\nif s1 == s2 and s1 == s3:\n print("No")\nelse:\n print("Yes")\n\n', 'input_line = input()\n\nif input_line == "AAA" or input_line == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s257526087', 's363624288', 's530619967'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [106, 94, 107] |
p02753 | u453623947 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nif S.count(A) >= 1 and S.count(B) >= 0 :\n print("Yes")\nelse :\n print("No")', 'S = input()\n\nif S.count(A) >= 1 and S.count(B) >= 1 :\n print("Yes")\nelse :\n print("No")', 'S = input()\n\nif S.count("A") >= 1 and S.count("B") >= 1 :\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s401843939', 's882395756', 's675825089'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [93, 93, 97] |
p02753 | u454472984 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['N,P=map(int,input().split())\nS=str(input())\nS=S[::-1]\nSi=[]\ncount=0\nsum=0\nif P==2:\n for i in range(N):\n if int(S[i])%2==0:\n count+=N-i\nelif P==5:\n for i in range(N):\n if S[i]=="0" or S[i]=="5":\n count+=N-i\nelse:\n listS=[int(i) for i in S]\n mod=[(k*10**j)%P for j,k in enumerate(listS)]\n for m in mod:\n sum+=m\n Si.append(sum%P)\n \n for start in range(N):\n if Si[start]==0:\n count+=1 \n for end in range(start+1,N):\n if Si[start]==Si[end]:\n count+=1\nprint(count)', 'import re\nptr=["A{3}|B{3}"]\nstr=input()\n\nfor valueptr in ptr:\n pattern=re.compile(valueptr)\n res=pattern.search(str)\n if res is None:\n print("Yes")\n else:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s718906644', 's915149801'] | [3064.0, 3188.0] | [17.0, 22.0] | [595, 193] |
p02753 | u458590500 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["#coding utf-8\n\nS=str(input())\n\nif S=='AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')\n \n", "#coding utf-8\n\nS=str(input())\n\nif S=='AAA':\n print('No')\nelse:\n if S=='BBB':\n print('No')\n else:\n print('Yes')\n \n"] | ['Wrong Answer', 'Accepted'] | ['s650109468', 's544965571'] | [2940.0, 2940.0] | [18.0, 17.0] | [91, 123] |
p02753 | u460229551 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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("Yess")', 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s805560883', 's482167208'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 73] |
p02753 | u463602788 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = len(set([x for x in input().split()]))\nif (x>1):\n print('Yes')\nelse:\n print('No')", "x = set(list(input()))\nif (len(x)>1):\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s962746041', 's670419536'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 81] |
p02753 | u465652095 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\n\nif S == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\n\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s972086355', 's994963697'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 80] |
p02753 | u468972478 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 len(set(input()) == 1 else "Yes")', 'n = input()\nprint("No" if n.count("A") == 3 or n.count("B") == 3 else "Yes")'] | ['Runtime Error', 'Accepted'] | ['s817891770', 's034873370'] | [8936.0, 9092.0] | [19.0, 25.0] | [47, 76] |
p02753 | u470504018 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 && 'B' in S\n print('Yes')\nelse\n print('No')\n ", "S = input()\n \nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s972705807', 's222400585'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 74] |
p02753 | u470618774 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import numpy as np\na = list(map(int,input().split()))\nb = a[0]/0.08\nc = (a[0]+1)/0.08\nd = a[1]/0.1\ne = (a[1]+1)/0.1\nf=20000\nif b<d:\n min=b\nelse :\n min =d\ng=int(np.ceil(min))\nfor i in range(g,10001):\n if i>=b and i<=c:\n if i>=d and i<=e:\n f = i\n break\nif f==20000:\n print(-1)\nelse:\n print(f)', "a = input()\nb = list(a)\nif b[0]=='A' and b[1]=='A' and b[2]=='A':\n print('No')\nelif b[0]=='B' and b[1]=='B' and b[2]=='B':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s487490869', 's834790468'] | [19260.0, 3060.0] | [1097.0, 17.0] | [334, 164] |
p02753 | u474925961 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['if input()=="AAA" or input()=="BBB":\n print("No")\nelse:\n print("Yes")', 'import sys\n\nif sys.platform ==\'ios\':\n sys.stdin=open(\'input_file.txt\')\na=input()\n\nif a=="AAA" or a=="BBB":\n print("No")\nelse:\n print("Yes")\n \n'] | ['Runtime Error', 'Accepted'] | ['s613421342', 's277856749'] | [2940.0, 2940.0] | [17.0, 18.0] | [71, 148] |
p02753 | u475189661 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s878739061', 's123289942'] | [9024.0, 9036.0] | [29.0, 25.0] | [70, 80] |
p02753 | u476038506 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nsort(S)\na = 'Yes'\nif S[0] == S[-1]:\n a = 'No'\nprint(a)", "S = input()\nS = sorted(S)\na = 'Yes'\nif S[0] == S[-1]:\n a = 'No'\nprint(a)"] | ['Runtime Error', 'Accepted'] | ['s529770042', 's754615920'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 73] |
p02753 | u476225888 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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")'] | ['Wrong Answer', 'Accepted'] | ['s268000785', 's918566001'] | [2940.0, 2940.0] | [18.0, 18.0] | [69, 69] |
p02753 | u477319617 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a,b =map(int,input().split())\nfor i in range(1,1002):\n if a == int(i*0.08) and b == int(i*0.1):\n print(i)\n break\nelse:\n print(-1)', 'a,b =map(int,input().split())\nfor i in range(1,1002):\n if a == int(i*0.08) and b == int(i*0.1):\n print(i)\n break\nelse:\n print(-1)', 's = input()\nans = "No"\npre = s[0]\nfor i in range(1,3):\n if(s[i] != pre):\n ans = "Yes"\n break\n pre = s[i]\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s851101112', 's855128692', 's966538778'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [149, 149, 135] |
p02753 | u477320129 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\n"] | ['Wrong Answer', 'Accepted'] | ['s682856737', 's159868427'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 49] |
p02753 | u478709114 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['\nimport argparse\n\ndef main(s: str):\n if s[0] == s[1] == s[2]:\n return "No"\n else:\n return "Yes"\n\nif __name__ == "__main__":\n parser = argparse.ArgumentParser()\n parser.add_argument("s", type=str)\n args = parser.parse_args()\n print(main(args.s))', 'import argparse\n\ndef main(s: str):\n if s[0] == s[1] == s[2]:\n return "No"\n else:\n return "Yes"\n\nif __name__ == "__main__":\n s = input()\n print(main(s))'] | ['Runtime Error', 'Accepted'] | ['s376240886', 's859278146'] | [4724.0, 4336.0] | [162.0, 33.0] | [276, 177] |
p02753 | u479484272 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\nl = list(N)\nif(l[0]==l[1]):\n if(l[1]==l[2]):\n print("NO")\nelse:\n print("YES")', 'N = input()\nl = list(N)\nif(l[0]==l[1]):\n if(l[1]==l[2]):\n print("NO")\n else:\n print("YES")', 'N = input()\nl = list(N)\nif(l[0]==l[1]):\n if(l[1]==l[2]):\n print("No")\n else:\n print("Yes")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s512844174', 's653242421', 's402023771'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [102, 98, 133] |
p02753 | u479638406 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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().split())\n\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')", "s = list(input())\n\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s284901426', 's105198576'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 88] |
p02753 | u479835943 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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.find(\'A\') > 0 and s.find(\'B\') > 0:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s.find(\'A\') and s.find(\'B\'):\n print("Yes")\nelse:\n print("No")', 's = input()\nif s.find(\'A\') != -1 and s.find(\'B\') != -1:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s019766621', 's179849286', 's881295230'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 22.0] | [86, 78, 90] |
p02753 | u482522932 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = str(input())\nif s="AAA" or s="BBB":\n print("No")\nelse:\n print("No") ', 's = str(input())\nif s is "AAA" or s is "BBB":\n print("No")\nelse:\n print("No")', 's = str(input())\nif s == "AAA":\n print("No")\nelif s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s041082160', 's085854741', 's511837712'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [75, 79, 97] |
p02753 | u483331319 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nprint('No' if S == 'AAA' or 'BBB' else 'Yes')\n", "S = input()\nprint('No' if (S == 'AAA' or S == 'BBB') else 'Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s406827285', 's385392001'] | [2940.0, 2940.0] | [17.0, 18.0] | [58, 65] |
p02753 | u485349322 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S=str(input())\nif len(set(S))=1:\n print("No")\n else:\n print(Yes)', 'S=str(input())\nif len(set(S))==1:\n print("No")\nelse:\n print("Yes")\n '] | ['Runtime Error', 'Accepted'] | ['s537464377', 's214841768'] | [8820.0, 9028.0] | [30.0, 25.0] | [66, 71] |
p02753 | u486841494 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['# -*- coding: utf-8 -*-\ns = input()\ns1 = int(s[0])\ns2 = int(s[1])\ns3 = int(s[2])\n\nif s1==s2:\n\tif s1==s3:\n\t\tprint("No")\n\telse:\n\t\tprint("Yes")\nelse:\n\tprint("Yes")\n', '# -*- coding: utf-8 -*-\ns = input()\ns1 = s[0]\ns2 = s[1]\ns3 = s[2]\n\nif s1==s2:\n\tif s1==s3:\n\t\tprint("No")\n\telse:\n\t\tprint("Yes")\nelse:\n\tprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s641461430', 's724736320'] | [2940.0, 2940.0] | [17.0, 17.0] | [161, 145] |
p02753 | u487044452 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['a = str(input())\nq = int(input())\ns = [input().split() for i in range(q)]\nfor i in range(q):\n if int(s[i][0]) == 1 and len(a)>1:\n a = a[::-1]\n elif int(s[i][0])== 2 and int(s[i][1])==1:\n a=s[i][2]+a\n else:\n a=a+s[i][2]\nprint(a)', "a = str(input())\nif a == 'AAA' or a == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s293274223', 's365833389'] | [3064.0, 2940.0] | [17.0, 17.0] | [257, 84] |
p02753 | u487288850 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["x=input()\n\nif x=='AAA' or x=='BBB':\n print('Yes')\nelse :\n print('No')", "x=input()\n\nif x=='AAA' or x=='BBB':\n print('No')\nelse :\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s274252735', 's249463208'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 75] |
p02753 | u488219351 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 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'] | ['s592094141', 's077485875'] | [8964.0, 9020.0] | [24.0, 31.0] | [59, 69] |
p02753 | u488884575 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nif S == 'AAA' and S == 'BBB':\n print('No')\nelse:\n print('No')", "S = input()\nif S = 'AAA' and S = 'BBB':\n print('No')\nelse:\n print('Yes')", "S = input()\nif S = 'AAA' or S = 'BBB':\n print('No')\nelse:\n print('Yes')", "S = input()\nif S = 'AAA' and S = 'BBB':\n print('No')\nelse:\n print('No')", "S = input()\nif S == 'AAA' or S == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s111805332', 's155038339', 's834579293', 's962352348', 's702391570'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 17.0] | [75, 74, 73, 73, 75] |
p02753 | u490489966 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['import sys\na,b=map(int,input().split())\nf=True\nfor i in range(1,1010):#max_a=1\n if int(i*0.08)==a and int(i*0.1)==b:\n ans=i\n f=False\n break\nif f:\n print(-1)\nelse:\n print(ans)\n', 'import sys\na,b=map(int,input().split())\nfor i in range(1,1100):#max_a=1\n if int(i*0.08)==a and int(i*0.1)==b:\n ans=i\n break\n if i==1099:\n ans=-1\n\nprint(ans)\n', 'a=list(input())\nif a[0]==a[1]==a[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s053836012', 's065006934', 's035869861'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [201, 184, 71] |
p02753 | u491762407 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\n\nif s == "AAA":\n print("No")\nelif s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s124729479', 's889274409'] | [2940.0, 2940.0] | [18.0, 17.0] | [74, 99] |
p02753 | u493318999 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\ncount = n//(a+b)*a\nadd = min(n%(a+b),a)\nsum = count + add\nprint(sum)', "a,b,c = input()\nif a==b==c:\n\tprint('No')\nelse:\n\tprint('Yes')"] | ['Runtime Error', 'Accepted'] | ['s468350461', 's169025316'] | [2940.0, 2940.0] | [18.0, 17.0] | [99, 60] |
p02753 | u496280557 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nif S == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "S = str(input())\nif S == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "S = input()\nif S == 'AAA' or S == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s203990834', 's478080876', 's421577595'] | [9024.0, 9108.0, 9080.0] | [26.0, 28.0, 31.0] | [74, 79, 79] |
p02753 | u496812085 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nrem = N % (A + B)\nans += min(rem,A)\nprint(ans)', "s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s200570358', 's489384816'] | [2940.0, 2940.0] | [18.0, 18.0] | [104, 84] |
p02753 | u497188176 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=int(input())\nif S[0]==S[1]:\n print('Yes')\nelif S[1]==S[2]:\n print('Yes')\nelif S[0]==S[2]:\n print('Yes')\nelse:\n print('No')\n \n", "S=input()\nif S[0]!=S[1]:\n print('Yes')\nelif S[1]!=S[2]:\n print('Yes')\nelif S[0]!=S[2]:\n print('Yes')\nelse:\n print('No')\n \n"] | ['Runtime Error', 'Accepted'] | ['s287866299', 's087243704'] | [2940.0, 2940.0] | [17.0, 17.0] | [142, 137] |
p02753 | u498699271 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['n=input()\nif \'A\' in n and \'B\' in n:\n print("YES")\nelse: \n print("NO")', 'n=input()\nif A in n and B in n:\n print("YES")\nelse:\n print("NO")', 'a = input()\nif \'A\' in a and \'B\' in a:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s011827495', 's322741939', 's223454935'] | [2940.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0] | [71, 66, 76] |
p02753 | u500297289 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] or S[1] != S[2]:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s316149989', 's122610940'] | [2940.0, 2940.0] | [17.0, 18.0] | [86, 85] |
p02753 | u500944229 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\n \nif (S == 'AAA') or (S=='BBB'):\n print 'No'\nelse:\n print 'Yes'\n", "S = input().strip()\n\nif S == 'AAA' or 'BBB':\n return 'No'\nelse:\n return 'Yes'", "S = input()\n \nif S == 'AAA' or 'BBB':\n print 'No'\nelse:\n print 'Yes'", "S = input()\n \nif (S == 'AAA') or (S=='BBB'):\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s473003624', 's866061180', 's961450703', 's960071149'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [78, 79, 70, 80] |
p02753 | u500990280 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\n\nif S[0] == S[1] = S[2]:\n print('No')\nelse:\n print('Yes')", "S = input()\n\nif S[0] == S[1] == S[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s837787267', 's946558560'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 73] |
p02753 | u504267639 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['li = input().split()\n\nN=int(li[0])\nA=int(li[1])\nB=int(li[2])\n\ndef firstcheck():\n sum=A+B\n count=A\n if(A>=N or A+B>=N):\n return A\n\n while True:\n if(i%2==0):\n sum+=A\n if(sum>=N):\n count+=(A-(sum-N))\n return count\n else:\n count+=A\n continue\n else:\n sum+=B\n if(sum>=N):\n return count\n\n\nres=firstcheck()\nprint(res)\n\n', 's=input()\n\nif(\'A\' in s and \'B\' in s):\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s933730964', 's510173355'] | [3064.0, 2940.0] | [18.0, 18.0] | [474, 77] |
p02753 | u506671931 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nx = -1\n\nxa = 0\nxb = 0\n\na_arr = []\nb_arr = []\n\nfor temp_a in range(10001):\n xa = temp_a * 0.08\n if xa // 1 == a:\n a_arr.append(temp_a)\n\nfor temp_b in range(10001):\n xb = temp_b * 0.1\n if xb // 1 == b:\n b_arr.append(temp_b)\n\nfor aa in a_arr:\n if aa in b_arr:\n print(aa)\n exit(0)\n\nprint('-1')\n", "s = input()\n\nss = set(s)\n\nif len(ss) == 1:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s502440142', 's095838823'] | [3060.0, 2940.0] | [19.0, 17.0] | [367, 81] |
p02753 | u507145838 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\n\nif A in s and B in s:\n print("Yes")\nelse:\n print("No")', 's = input()\n \nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s086071768', 's838692824'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 74] |
p02753 | u507171466 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['intxt = input()\np = ""\nok = 0\nfor i in range(0,3):\n if intxt[i] != p:\n ok += 1\n p = intxt[i]\nif ok == 1:\n print("Yes")\nelse:\n print("No)', 'intxt = input()\np = ""\nok = 0\nfor i in intxt:\n if i != p:\n ok += 1\n p = i\nif ok == 2:\n print("Yes")\nelse:\n print("No)', 's = input()\nif s[0] == s[1] and s[1] = s[2]:\n print("No")\nelse:\n print("Yes")', 'intxt = input()\np = ""\nok = 0\nfor i in intxt:\n if i != p:\n ok += 1\n p = i\nif ok == 1:\n print("Yes")\nelse:\n print("No)', 's = input()\nif s[0] == s[1] and s[1] == s[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s137614477', 's230287385', 's366149863', 's941737997', 's299202649'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [143, 124, 79, 124, 80] |
p02753 | u507351902 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["# To add a new cell, type '# %%'\n# To add a new markdown cell, type '# %% [markdown]'\n\n# %%\none = lst[0][0]\ntwo = lst[0][1]\nthree = lst[0][2]\n\n\n# %%\none_two = one == two\ntwo_three = two == three\nthree_one = three == one\n\n\n\n\n# %%\nif any([one_two, two_three, three_one]):\n print('Yes')\nelse:\n print('No')\n\n\n# %%\n\n\n", "# To add a new cell, type '# %%'\n# To add a new markdown cell, type '# %% [markdown]'\n\n# %%\none = lst[0][0]\ntwo = lst[0][1]\nthree = lst[0][2]\n\n\n# %%\none_two = one == two\ntwo_three = two == three\nthree_one = three == one\n\n\n# %%\nany([one_two, two_three, three_one])\n\n\n# %%\nif any([one_two, two_three, three_one]):\n print('Yes')\nelse:\n print('No')\n\n\n# %%\n\n\n", "# To add a new cell, type '# %%'\n# To add a new markdown cell, type '# %% [markdown]'\n\n# %%\nlst = input().split()\n\n# %%\none = lst[0][0]\ntwo = lst[0][1]\nthree = lst[0][2]\n\n\n# %%\none_two = one != two\ntwo_three = two != three\nthree_one = three != one\n\n\n# %%\nany([one_two, two_three, three_one])\n\n\n# %%\nif any([one_two, two_three, three_one]):\n print('Yes')\nelse:\n print('No')\n\n\n# %%\n\n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s386513641', 's548266612', 's985255956'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [318, 360, 388] |
p02753 | u508061226 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input();\n\nif S == "AAA" or "BBB":\n print("No");\nelse:\n print("Yes");\n', 'S = input();\n\nif S == "AAA" or "BBB":\n print("No");\nelse:\n print("Yes");', 'S = input();\n\nif S == "AAA" or S == "BBB":\n print("No");\nelse:\n print("Yes");'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s463228084', 's926037966', 's248598579'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [75, 74, 79] |
p02753 | u508164527 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nif S == "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s457045164', 's153261659'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 75] |
p02753 | u508842013 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['sta = input()\n\ns1 = sta[0]\ns2 = sta[1]\ns3 = sta[2]\n\nif :\n pass\nif s1 == s2 and s2 == s3:\n print("Yes")\nelse:\n print("No")', 'sta = input()\n\ns1 = sta[0]\ns2 = sta[1]\ns3 = sta[2]\n\nif s1 == s2 and s2 == s3:\n print("Yes")\nelse:\n print("No")', 'sta = input()\n\ns1 = sta[0]\ns2 = sta[1]\ns3 = sta[2]\n\nif s1 == s2 == s3:\n print("Yes")\nelse:\n print("No")', 'sta = input()\n\ns1 = sta[0]\ns2 = sta[1]\ns3 = sta[2]\n\nif s1 == s2 and s2 == s3:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s117822341', 's308010274', 's799996357', 's734743698'] | [2940.0, 2940.0, 2940.0, 3064.0] | [18.0, 18.0, 17.0, 18.0] | [130, 116, 109, 116] |
p02753 | u508972438 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\n\nif(s=="BBB" or s="AAA"):\n print("No")\nelse:\n print("Yes")\n\n', 's = input()\n\nif(s=="BBB" or s=="AAA"):\n print("No")\nelse:\n print("Yes")\n\n'] | ['Runtime Error', 'Accepted'] | ['s787703804', 's693812706'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 79] |
p02753 | u509392332 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\nQ_list = list()\nfor i in range(Q):\n Q_list.append(input().split())\n\nfrom collections import deque\ndef operate(i):\n global count, str_list\n if Q_list[i][0] == '1':\n count += 1\n else:\n if count % 2 == 0:\n if Q_list[i][1] == '1':\n str_list.appendleft(Q_list[i][2])\n else:\n str_list.append(Q_list[i][2])\n else:\n if Q_list[i][1] == '1':\n str_list.append(Q_list[i][2])\n else:\n str_list.appendleft(Q_list[i][2])\n\ncheck = 0\nfor i in range(Q):\n if Q_list[i][0] == '1':\n check += 1\n\nif check % 2 == 1:\n S_list = list(reversed(S_list))\n\nstr_list = deque()\nstr_list.append(S)\ncount = check%2\nfor i in range(Q):\n operate(i)\nprint(''.join(str_list))\n", "S = list(i for i in input())\n \nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s792569787', 's696891583'] | [3064.0, 2940.0] | [17.0, 17.0] | [818, 91] |
p02753 | u509725329 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\tprint("No")\nelse:\n\tprint(\'Yes\')\n', 's = input()\nif s == \'AAA\' or s == \'BBB\':\n\tprint("No")\nelse:\n\tprint(\'Yes\')\n'] | ['Wrong Answer', 'Accepted'] | ['s112635218', 's623225548'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 74] |
p02753 | u511449169 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = [i for i in input()]\ns0 = s[0]\nfor j in s[1:]:\n if s0 != j:\n print("No")\n exit()\n s0 = j\nprint("Yes")', 's = [i for i in input()]\ns0 = s[0]\nfor j in s[1:]:\n if s0 != j:\n print("Yes")\n exit()\n s0 = j\nprint("No")'] | ['Wrong Answer', 'Accepted'] | ['s624545905', 's503273316'] | [2940.0, 2940.0] | [17.0, 21.0] | [113, 113] |
p02753 | u511854420 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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" and 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', 'Accepted'] | ['s148602725', 's473711015'] | [2940.0, 2940.0] | [17.0, 18.0] | [101, 101] |
p02753 | u512099209 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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'] | ['s169686387', 's536158869'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 77] |
p02753 | u514118270 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["A = input()\nif A[1] == A[2] or A[2] == A[3] or A[1] == A[3]:\n print('Yes')\nelse:\n print('No')", "A = input()\nif A[0] != A[1] or A[1] != A[2]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s397228915', 's839808627'] | [2940.0, 2940.0] | [18.0, 17.0] | [95, 79] |
p02753 | u515740713 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 \nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nS = readline().decode().split()\nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')", "import sys \nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nS = readline().decode()\nif 'A' in S and 'B' in S:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s279628823', 's054371752'] | [8964.0, 8960.0] | [30.0, 26.0] | [213, 205] |
p02753 | u516927307 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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')\n\nelse print('Yes')\n", "s = input()\nif s == 'AAA' or s = 'BBB'\n print('No')\n\nelse print('Yes')", "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\n\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s897748706', 's955893454', 's393170603'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [73, 71, 76] |
p02753 | u516949135 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['def judge(S):\n if S=="AAA" or S=="BBB":\n return "Yes"\n else: \n return "No"\nS=input()\nprint(judge(S))', 'def judge(S):\n if S=="AAA" or S=="BBB":\n return "No"\n else: \n return "Yes"\nS=input()\nprint(judge(S))'] | ['Wrong Answer', 'Accepted'] | ['s769130284', 's627785215'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 108] |
p02753 | u519968172 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\nprint("No" if s=="AAA" or s="BBB" else "Yes")', 's=input()\nprint("No" if s=="AAA" or s=="BBB" else "Yes")'] | ['Runtime Error', 'Accepted'] | ['s943204565', 's307981038'] | [8952.0, 8992.0] | [20.0, 28.0] | [55, 56] |
p02753 | u520331522 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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()\ni = 0\nfor i in range(len(S))\n if S[i] != S[i+1]:\n print('Yes)\n else:\n print('No')\n ", "S = input()\ncount = 0\nfor i in range(len(S)-1):\n if S[i] != S[i+1]:\n count+=1\n else:\n continue\nif count>=1:\n print('Yes')\nelse:\n print('No')\n \n"] | ['Runtime Error', 'Accepted'] | ['s998538333', 's708880514'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 164] |
p02753 | u521271655 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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[2]:\n print("Yes)\nelse:\n print("No")', 'S = list(input())\nif S[0] == S[1] == S[2]:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s765913932', 's904179148'] | [2940.0, 2940.0] | [17.0, 20.0] | [76, 78] |
p02753 | u521323621 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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())\ndir=True\nans=s\nquery=[]\nfor i in range(q):\n temp=input()\n if temp[0] == "1":\n dir = dir ^ True\n if temp[0] == "2":\n t,f,c = temp.split()\n\n if (f == "1" and dir) or (f=="2" and not dir):\n ans=c+ans\n else:\n ans=ans+c\ndef reverse(s):\n t=""\n for i in range(len(s)-1,-1,-1):\n t+=s[i]\n return t\n\nif dir:\n print(ans)\nelse:\n print(reverse(ans))\n', 's = input()\n\nif s.count("A") == 3 or s.count("B") == 3:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s817526139', 's437289206'] | [3064.0, 2940.0] | [18.0, 17.0] | [395, 90] |
p02753 | u521679253 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['from math import ceil, floor\n\na, b = [int(c) for c in input()]\nA = ceil(a / 0.08)\nB = ceil(b/ 0.1)\n \nif (A < B):\n if (floor(B * 0.08) == a):\n print(B)\n else:\n print(-1)\nelif (B < A):\n if (floor(A*0.1) == b):\n print(A)\n else:\n print(-1)\nelse:\n print(-1);\n', 'from math import ceil, floor\n \na, b = [int(c) for c in input().split(" ")]\nA = ceil(a / 0.08)\nB = ceil(b/ 0.1)\n \nif (A < B):\n if (floor(B * 0.08) == a):\n print(B)\n else:\n print(-1)\nelif (B < A):\n if (floor(A*0.1) == b):\n print(A)\n else:\n print(-1)\nelse:\n print(-1);', 'code = input()\nreturn len(set(list(code))) != 1;', 'a, b = [int(c) for c in input().split(" ")]\nS = input()\ncount = 0\nfor i in range(1, a):\n for j in range(0, a):\n if (j+i <= a+1):\n subStr = S[j:j+i]\n if (len(subStr) == i):\n if (int(subStr) % b == 0):\n count+=1\nif (int(S) % b == 0):\n count+=1\nprint(count)\n ', 'code = input()\nif (len(set(list(code))) != 1):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s108258019', 's383033829', 's660725247', 's867193208', 's766747081'] | [3064.0, 3064.0, 2940.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 18.0, 17.0] | [271, 282, 48, 312, 82] |
p02753 | u523545435 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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'] | ['s765698799', 's665971220'] | [2940.0, 2940.0] | [18.0, 17.0] | [78, 79] |
p02753 | u523957440 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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'] | ['s606476940', 's096775530'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 73] |
p02753 | u524489226 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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] and s[2] == s[0]:\n print("No")\n exit()\n \nprint("Yes")', 's = input()\nif s[0] == s[1] and s[1] == s[2] and s[2] == s[0]:\n print("No")\n exit()\n \nprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s686646477', 's831297533'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 101] |
p02753 | u526818929 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = str(input())\nif S[0] == S[1] == S[2]:\n print("Yes")\nelse:\n print("No")', 'S = str(input())\nif S[0] == S[1] == S[2]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s204878542', 's825307635'] | [9008.0, 9088.0] | [26.0, 29.0] | [80, 80] |
p02753 | u529106146 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nans1 = int(A *100// 8) \nans2 = int(B *100 // 10)\n\nif ans1 = ans2:\n print(ans1)\n\nelif ans1 > ans2:\n ans2_2 = int((B+1) *100 // 10)\n list = [int(ans2)]\n\n for i in range(ans2+1,ans2_2):\n list.append(int(i)) \n \n if int(ans1) in list:\n print(ans1)\n else:\n print(-1)\nelif ans1 < ans2:\n ans1_2 = int((A+1) *100 // 8)\n list = [int(ans1)]\n\n for i in range(ans1+1,ans1_2):\n list.append(int(i)) \n \n if int(ans2) in list:\n print(ans2)\n else:\n print(-1)', 'S = str(input())\nif S[0] != S[1] or S[1] != S[2]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s968335335', 's628403263'] | [2940.0, 2940.0] | [19.0, 17.0] | [555, 88] |
p02753 | u529500825 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['SSS = input()\nKKK = "NO"\nNNN = []\nNNN = list(SSS)\nif NNN[0] != NNN[1] or NNN[0] != NNN[2]:\n KKK = "YES"\nprint(KKK)', 'SSS = input()\nKKK = "No"\nNNN = []\nNNN = list(SSS)\nif NNN[0] != NNN[1] or NNN[0] != NNN[2]:\n KKK = "Yes"\nprint(KKK)'] | ['Wrong Answer', 'Accepted'] | ['s235996946', 's656663394'] | [2940.0, 2940.0] | [18.0, 17.0] | [117, 117] |
p02753 | u530169312 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 "AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s306086239', 's287108900'] | [8896.0, 8944.0] | [24.0, 31.0] | [66, 76] |
p02753 | u531456543 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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 = intput()\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'] | ['s390361346', 's257800520'] | [9024.0, 9088.0] | [26.0, 28.0] | [76, 75] |
p02753 | u531599639 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nprint('Yes' if len(set(s)==2 else 'No')", "s = input()\nprint('Yes' if len(set(s))==2 else 'No')\n"] | ['Runtime Error', 'Accepted'] | ['s775145196', 's527676837'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 53] |
p02753 | u531631168 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s = input()\nif s[0] == s[1] and s[1] == s[2]:\n print("Yes")\nelse:\n print("No")', 's = input()\nif s[0] == s[1] and s[1] == s[2]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s948776212', 's486552064'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p02753 | u531813438 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["ÍS = str(input())\nif S == 'AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')", "S = str(input())\nif S == 'AAA' or S=='BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s588000886', 's393670664'] | [3064.0, 2940.0] | [18.0, 18.0] | [87, 82] |
p02753 | u534308356 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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, blue_count, red_count = map(int, input().split())\n\nif blue_count >= n:\n print(n)\nelif blue_count + red_count > n:\n print(blue_count)\nelse:\n set_count = blue_count + red_count\n\n margin = 0\n if n % set_count == 0:\n c = n // set_count\n else:\n c = n // set_count\n margin = n % set_count\n\n \n if margin > blue_count:\n margin = blue_count\n \n print(blue_count * c + margin )\n', 's = input()\nif s.count("A") == 3 or s.count("B") == 3:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Accepted'] | ['s695953634', 's633316886'] | [3060.0, 3064.0] | [18.0, 17.0] | [512, 90] |
p02753 | u536642030 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = list(input())\n\nif len(list(set(s)):\n print('Yes')\nelse:\n print('No')", 'import math\na,b = map(int,input().split())\na_min = math.ceil(a / 0.08)\na_max = math.floor((a + 1) / 0.08)\nb_min = math.ceil(b / 0.1)\nb_max = math.floor((b + 1) / 0.1)\n\nif a_max < b_min or b_max < a_min:\n print(-1)\nelse:\n result = b_min if a_min < b_min else a_min\n print(result)', 'import math\na,b = map(int,input().split())\na_min = math.ceil(a / 0.08)\na_max = math.floor((a + 1) / 0.08)\nb_min = math.ceil(b / 0.1)\nb_max = math.floor((b + 1) / 0.1)\n\nif a_max < b_min or b_max < a_min:\n print(-1)\nelse:\n result = b_min if a_min <= b_min else a_min\n print(result)', "s = input()\nif len(list(set(s))) == 2:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s458629404', 's463336846', 's899291261', 's991794755'] | [2940.0, 3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [84, 281, 282, 73] |
p02753 | u537550206 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['n, a, b = map(int, input().split())\nans = n // (a + b) * a\nx = n % (a + b)\nans += min(a, x)\nprint(ans)', 's = input()\nif "A" in s and "B" in s:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s107574471', 's887025118'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 76] |
p02753 | u539367121 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S=input()\nprint('No' if S=='AAA' or S==='BBB' else 'Yes')", "S=input()\nprint('No' if S=='AAA' or S=='BBB' else 'Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s628903863', 's338982420'] | [8956.0, 8976.0] | [24.0, 26.0] | [57, 57] |
p02753 | u541806319 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["S = input()\nN,A,B = S.split(' ')\nN = int(N)\nA = int(A)\nB = int(B)\nans = N //(A+B) * A\nleft = N % (A+B)\nif left > A:\n ans += A\nelse:\n ans += left\nprint(ans)", "S = str(Input())\nif S.count('AB') is 0 and S.count('BA') is 0:\n print('No')\nelse:\n print('Yes')", "S = Input()\nif S.count('AB') is 0 and S.count('BA') is 0:\n print('No')\nelse:\n print('Yes')", "S = Input()\nif S.count('AB') is 0 and S.count('BA') is 0:\n print('No')\nelse:\n print('Yes')", "S = input()\nif S.count('AB') is 0 and S.count('BA') is 0:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s072194659', 's085826056', 's168853118', 's729716637', 's474445359'] | [3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0, 17.0] | [161, 101, 96, 96, 96] |
p02753 | u546104065 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['abc=str(input())\na=abc[0]\nb=abc[1]\nc=abc[2]\n\n\n\nif a == b and b==c and c==a:\n print("Yes")\nelse:\n print("No")', 'abc=str(input())\na=abc[0]\nb=abc[1]\nc=abc[2]\n\n\n\nif a == b and b==c and c==a:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s238959880', 's013491520'] | [3064.0, 3060.0] | [17.0, 18.0] | [114, 114] |
p02753 | u550535134 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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" len(set(S)) ==2 else "No")', 'S = input()\nprint("Yes" if len(set(S)) ==2 else "No")'] | ['Runtime Error', 'Accepted'] | ['s394097677', 's635607336'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 53] |
p02753 | u555829857 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['s=input()\nif s==AAA,s==BBB:\n print("No")\nelse:\n print("Yes")', 's=input()\nif s=="AAA"or s=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s232343526', 's170722042'] | [2940.0, 2940.0] | [18.0, 17.0] | [62, 68] |
p02753 | u556069480 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, 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\nans=-1\nnums=input().split(" ")\nt8,t10=int(nums[0]),int(nums[1])\nvalue=t8*100/8\nvalue_f=math.ceil(value*1.2)\nwhile True:\n\ttax8,tax10=math.floor(value_f*0.08),math.floor(value_f*0.1)\n\tif tax8== t8 and tax10==t10:\n\t\tans=value_f\n\t\tvalue_f-=1\n\telif tax8<t8 or tax10<t10:\n\t\tprint(ans)\n\t\tbreak\n\telse:\n\t\tvalue_f-=1\n\tif value_f==0:\n\t\tprint(ans)\n\t\tbreak', 'import math\nans=-1\nnums=input().split(" ")\nt8,t10=int(nums[0]),int(nums[1])\nvalue_f=max(math.ceil(t8*100/8),math.ceil(t10*10))\nwhile value_f>=0:\n\ttax8,tax10=math.floor(value_f*0.08),math.floor(value_f*0.1)\n\tif tax8==t8 and tax10==t10:\n\t\tans=value_f\n\telif tax8<t8 or tax10<t10:\n\t\tprint(ans)\n\t\tbreak\n\tvalue_f-=1', 'letter=input()\nn=int(input())\nfor i in range(n):\n ope=input().split(" ")\n o1=int(ope[0])\n if o1 ==1:\n letter="".join(list(reversed(letter)))\n else:\n o2,o3_s=int(ope[1]),ope[2]\n if o2==1:\n letter=o3_s+letter\n else:\n letter=letter+o3_s\nprint(letter)', 'letter=list(input())\nn=int(input())\nfor i in range(n):\n ope=input().split(" ")\n o1=int(ope[0])\n if o1 ==1:\n letter.reverse()\n else:\n o2,o3_s=int(ope[1]),ope[2]\n if o2==1:\n for j in range( 1,len(o3_s)+1):\n letter.insert(0,o3_s[len(o3_s)-j])\n else:\n for j in range(len(o3_s)):\n letter.append(o3_s[j])\nprint("".join(letter))', 'import math\nans=-1\nnums=input().split(" ")\nt8,t10=int(nums[0]),int(nums[1])\nvalue_f=max(round(t8*100/8),round(t10*100/10))+1\nwhile value_f>=0:\n\ttax8,tax10=value_f*8/100,value_f*10/100\n\tif tax8>=t8 and tax8<t8+1 and tax10>=t10 and tax10<t10+1:\n\t\tans=value_f\n\telif tax8<t8 or tax10<t10:\n\t\tprint(ans)\n\t\tbreak\n\tvalue_f-=1', 'ans=-1\nnums=input().split(" ")\nt8,t10=int(nums[0]),int(nums[1])\nvalue_f=int(max(round(t8*100/8),round(t10*100/10))+1)\nwhile True:\n tax8,tax10=value_f*8/100,value_f*10/100\n if tax8>=t8 and tax8<t8+1 and tax10>=t10 and tax10<t10+1:\n ans=value_f\n elif tax8<t8 or tax10<t10:\n print(ans)\n break\n value_f-=1\n if value_f<0:\n break', 'ans=-1\nnums=input().split(" ")\nt8,t10=int(nums[0]),int(nums[1])\nvalue=max(round(t8*100/8),round(t10*100/10))+1\nfor i in range(value):\n v=value-i\n tax8=v*8/100\n tax10=v*10/100\n if tax8>=t8 and tax8<t8+1 and tax10>=t10 and tax10<t10+1:\n ans=v\n elif tax8<t8 or tax10<t10:\n break\nprint(ans)', 'letter=input()\nif "A" not in letter:\n print("No")\nelif "B" not in letter:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s044285338', 's151549555', 's245634435', 's403030063', 's599497703', 's613556518', 's760157665', 's167851477'] | [3064.0, 3064.0, 3060.0, 3064.0, 3064.0, 3064.0, 3064.0, 2940.0] | [18.0, 20.0, 17.0, 17.0, 19.0, 17.0, 19.0, 17.0] | [355, 309, 309, 413, 317, 340, 297, 109] |
p02753 | u556161636 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['inp=list(map(int,input().split()))\nS=inp[0]\nB=inp[1]\nR=inp[2]\nif B==0:\n print(0)\nelse:\n ans=B+(S-B-R)\n print(ans)', 'inp=list(map(int,input().split()))\nS=inp[0]\nB=inp[1]\nR=inp[2]\nx=S//(B+R)\ny=S//(B+R)\nprint(B*x+y)', "inp=input()\nif inp=='AAA'or inp=='BBB':\n print('Yes')\nelse:\n print('NO')", 'inp=list(map(int,input().split()))\nS=inp[0]\nB=inp[1]\nR=inp[2]\nx=S//(B+R)\ny=S%(B+R)\nprint(B*x+y)', 'inp=list(map(int,input().split()))\nS=inp[0]\nB=inp[1]\nR=inp[2]\nx=S//(B+R)\ny=S%(B+R)\n\nprint(B*x+min(y,B))', "inp=input()\nif inp=='AAA'or inp=='BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s064476933', 's246126971', 's750721860', 's778962401', 's787266452', 's181324793'] | [2940.0, 2940.0, 2940.0, 3060.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 18.0, 18.0, 17.0] | [116, 120, 74, 119, 127, 74] |
p02753 | u559196406 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['n,p = map(int,input().split())\ns = input()\ncount = 0\n\nif p == 2 or p == 5:\n for i in range(n):\n if int(s[i])%p == 0:\n count += i+1\nelse:\n u = [0]*p\n u[0] += 1\n for i in range(n):\n u[int(s[i:])%p] += 1\n \n for i in u:\n count += i*(i-1)//2\n \nprint(count)', "s = input()\n\nif s[0]==s[1] and s[0]==s[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s576846877', 's712864479'] | [3064.0, 2940.0] | [17.0, 17.0] | [304, 81] |
p02753 | u559891647 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['if input() == "AAA" or "BBB":\n print("No")\nelse:\n print("yes")', 'AB = input()\nif AB == "AAA" or AB == "BBB":\n print("No")\nelse:\n print("yes")', 'AB = input()\nif AB == "AAA" or AB == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s406617167', 's440384289', 's035718643'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [64, 78, 78] |
p02753 | u561358604 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ["s = input()\nprint('Yes' if s == 'AAA' or s== 'BBB' else 'No')", "s = input()\nprint('No' if s == 'AAA' or s== 'BBB' else 'Yes')"] | ['Wrong Answer', 'Accepted'] | ['s678689203', 's769484544'] | [9024.0, 8956.0] | [26.0, 24.0] | [61, 61] |
p02753 | u566787760 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['S = input()\nif S == "AAA" or S == "BBB":\n print("Yes")\nelse:\n print("No")\n', 'S = input()\nif S == "AAA" or S == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s608527535', 's146688141'] | [2940.0, 2940.0] | [18.0, 18.0] | [80, 80] |
p02753 | u570944601 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve the transportation condition, for each pair of a station operated by Company A and one operated by Company B, there will be a bus service connecting them. Determine if there is a pair of stations that will be connected by a bus service. | ['print("YNeos"[3-len(set(input()))::2])', 'print("YNeos"[len(set(input()))-1::2])', 'N=int(input());R,d,f,s,x=sorted(list(map(int,input().split()))for i in range(N))+[(2e9,0)],[0]*N+[1],[0]*N,1,N\nfor i in range(N-1,-1,-1):\n\twhile R[x][0]<sum(R[i]):x=f[x]\n\td[i]=s=(s+d[x])%998244353;f[i],x=x,i\nprint(s)', 'print("YNeos"[2-len(set(input()))::2])'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s521608893', 's603001205', 's834373078', 's738215617'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 19.0, 17.0] | [38, 38, 216, 38] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.