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 | u573144253 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['A,B = map(int, input().split())\nans = []\n\ntaxfree = A/0.08\nwhile taxfree*0.08 < A+1:\n if B <= taxfree*0.1 < B+1:\n ans.append(int(taxfree))\n break\n taxfree += 1\n\ntaxfree = B/0.1\nwhile taxfree*0.1 < B+1:\n if B <= taxfree*0.08 < A+1:\n ans.append(int(taxfree))\n break\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s013895989', 's134428267', 's994649567', 's208319952'] | [3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [376, 86, 86, 108] |
p02753 | u573900545 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = list(input())\nif S.count('A') == 3 or S.count('A') == 0:\n print('Yes')\nelse:\n print('No')", "S = list(input())\nif S.count('A') == 3 or S.count('A') == 0:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s014037567', 's086852112'] | [8860.0, 8936.0] | [29.0, 28.0] | [99, 99] |
p02753 | u574380888 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = input()\n\nif s == "AAA" or "BBB":\n\tprint("No")\nelse:\n\tprint("Yes")', 's = input()\nl = list(s)\n\nif l[0] == l[1] == l[2]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s912856930', 's506722405'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 88] |
p02753 | u579746769 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S=str(input())\nif S.count('A')>=1:\n print('yse')\nelse:\n print('No')", "S=str(input())\nif S.count('A')>=1:\n print('Yse')\nelse:\n print('No')", "S=str(input())\nif S.count('A')>0 and S.count('B')>0:\n print('Yse')\nelse:\n print('No')", "S=(str(input())\nif S.count('A')>=1:\n print('Yse')\nelse:\n... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s140886052', 's204000830', 's635923655', 's651968599', 's726395388', 's920412937', 's937758017'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [71, 71, 89, 72, 66, 88, 99] |
p02753 | u583507988 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input()\n\nif s == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "s = input()\nn = []\nfor i in s:\n n.append(i)\n \nif 'A' not in n:\n print('No')\nelif 'B' not in n:\n print('No')\nelif 'A' and 'B' in n:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s894294620', 's231052151'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 149] |
p02753 | u584387635 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['n, a, b = map(int,input().split())\ncount = 0\nif 1 <= (n/(a+b)):\n if a < n%(a+b):\n print ((n/(a+b)*a) +a)\n else:\n print (int(n/(a+b)*a) + int(n%(a+b)))\nelse:\n if a < n%(a+b):\n print (a)\n else:\n print (n%(a+b))', "status = input()\nif 'AB' in status or 'BA' in status:\... | ['Runtime Error', 'Accepted'] | ['s911447915', 's009954178'] | [3060.0, 2940.0] | [17.0, 17.0] | [248, 92] |
p02753 | u585963734 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["i=input()\nj=i[0]\nk=0\n\nfor n in range(2):\n if i[n+1]!=j:\n\tprint('Yes')\n\tk=1\n \nif k=0:\n print('No')", "i=input()\nj=i[0]\nk=0\n\nfor n in range(2):\n\tif i[n+1]!=i[0]:\n\t\tk=1\nif k==0:\n\tprint('No')\nelse:\n\tprint('Yes')"] | ['Runtime Error', 'Accepted'] | ['s415029783', 's899368965'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 106] |
p02753 | u589578850 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = input()\n\na = s.count("a")\nb = s.count("b")\n\nif a * b == 0:\n print("No")\nelse:\n print("Yes")', 's = input()\n\na = s.count("A")\nb = s.count("B")\n\nif a * b == 0:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s779453973', 's505163617'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 101] |
p02753 | u592035627 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['N,A,B = [int(x) for x in input().split()]\nn = 0\nblue = 0\nif A == 0:\n print(0)\nelse:\n for i in range(10**5):\n n = n + A\n blue = blue + A\n if n >= N:\n blue = blue - (n-N)\n break\n else:\n n = n + B\n if n >= N:\n bre... | ['Runtime Error', 'Accepted'] | ['s924279663', 's366652010'] | [3060.0, 2940.0] | [17.0, 17.0] | [321, 139] |
p02753 | u596297663 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s=input()\nif s[0]=s[1] and s[1]=s[2]:\n print("Yes"\nelse:\n print("No"', 's = input()\nif s == "AAA" or "BBB":\n\tprint("No")\nelse:\n\tprint("Yes")', 's = input()\nif s[0]==s[1] and s[1]==s[2]:\n print("Yes")\nelse:\n print("No")\n ', 's = input()\nif s == "AAA" or "BBB":\n\tprint("No")\nelse:\n\tprint("Yes")... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s343136347', 's395191271', 's452367008', 's632465377', 's796796540', 's803299888', 's956646924', 's512420112'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [70, 68, 79, 68, 69, 70, 68, 98] |
p02753 | u596536048 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["print(('Yes', 'No')[input() in 'AAA' or 'BBB'])", "string = input()\nif string == 'AAA' or string == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s679761201', 's402975580'] | [8932.0, 8992.0] | [25.0, 29.0] | [47, 94] |
p02753 | u601980345 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S = input().split()\n\nif S[0] == S[1] and S[1] == S[2]:\n print("No")\nelse:\n print("Yes")', 'S = input()\n\nif S[0] == S[1] and S[1] == S[2]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s017898501', 's609693172'] | [2940.0, 2940.0] | [17.0, 18.0] | [93, 85] |
p02753 | u602500004 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input().split()\nx1=s[0][0]\nx2=s[0][1]\nx3=s[0][2]\nflag = False\nA = 'A'\nB = 'B'\nif x1==A and x2==A and x3==A:\n flag = True\nelif x1==B and x2==B and x3==B:\n flag = True\nelse:\n flag = False\nprint(flag)", "s = input().split()\nx1=s[0][0]\nx2=s[0][1]\nx3=s[0][2]\nflag = False\nA = 'A'\nB = 'B'\nif... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s173227630', 's176621717', 's669406767'] | [9060.0, 9088.0, 9068.0] | [28.0, 27.0, 27.0] | [210, 266, 266] |
p02753 | u603324902 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = str(input())\n\nif "B" in s and "A" in s:\n print("No")\nelse:\n print("Yes")', 's = str(input())\n\nif "B" in s and "A" in s:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s156534476', 's494856566'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p02753 | u603939330 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["\nN, A,B = map(int, input().split())\nstr = []\nfor j in range(N//(A+B)+1):\n for i in range(A):\n if i==N+1:\n break\n str.append('b')\n\n for i in range(B):\n if i==N+1:\n break\n str.append('r')\nprint(str)\ncount = 0\nfor k in range(N):\n if str[k] == 'b'... | ['Runtime Error', 'Accepted'] | ['s130764878', 's334337760'] | [3060.0, 2940.0] | [17.0, 17.0] | [334, 158] |
p02753 | u604055101 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["n, a, b = list(map(int, input().split(' ')))\ntmp = 0\ncount = 0\nif a == 0:\n print(0)\nwhile count < 10**100:\n n -= a\n tmp += a\n if n <= 0:\n print(tmp + n)\n break\n n -= b\n if n <= 0:\n print(tmp)\n break\n ", 's = list(input())\nif s[0] == s[1] == s[2]:\n p... | ['Runtime Error', 'Accepted'] | ['s779633997', 's837264697'] | [2940.0, 2940.0] | [17.0, 17.0] | [249, 81] |
p02753 | u604114648 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['n,a,b=map(int,input().split())\nt=0\nr=0\nfor _ in range(10^100):\n if n <= t:\n print(r)\n break\n elif n >= a+t:\n t+=a+b\n r+=a\n else:\n r+=min(n-t,a)\n t+=a+b', 's=input()\ntmp=""\nfor i in s:\n if tmp != "":\n if tmp != i:\n print("Yes")\n ... | ['Runtime Error', 'Accepted'] | ['s337717621', 's809820455'] | [3060.0, 2940.0] | [17.0, 17.0] | [202, 135] |
p02753 | u604269317 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a, b, c = input()\ns=set([a, b, c])\nif len(s)==1:\n print("NO")\nelse:\n print("YES")', 'data=set([input() for i in range(3)])\nif len(data)==1:\n print("NO")\nelse:\n print("YES")', 'a, b, c = input()\ns=set([a, b, c])\nif len(s)==1:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s507953399', 's920631281', 's268829750'] | [2940.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0] | [83, 89, 83] |
p02753 | u607558942 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['n, a, b = map(int, input().split())\n\nf = n // (a+b)\ng = n % (a+b)\n\nif g <= a:\n print(a * f + g)\n \nelse:\n print(a * (f+1))', "s = input()\n\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s113879290', 's034372825'] | [2940.0, 9012.0] | [17.0, 26.0] | [130, 81] |
p02753 | u608432532 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['N,A,B = map(int,input().split())\n\nT = int(N/(A+B))\nS = N%(A+B)\n\n\nif S<A:\n\tprint(T*A+S)\nelse:\n\tprint(T*A+A)\n\n', 'N = list(input())\nif N[0] == N[1] == N[2]:\n\tprint("No")\nelse :\n\tprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s509078936', 's044247466'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 76] |
p02753 | u609093494 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input()\nif S = 'AAA' or S = 'BBB':\n print('No')\nelse:\n print('Yes')\n ", "S = input()\nif (S == AAA) or (S == BBB):\n print('No')\nelse:\n print('Yes')\n \n", "S = input()\nif S = AAA or S = BBB:\n print('No')\nelse:\n print('Yes')\n \n", "S = input()\nif (S == 'AAA') or (S == 'BBB'):\n print('No')\... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s009157609', 's625644011', 's673350358', 's699969947'] | [2940.0, 2940.0, 2940.0, 2940.0] | [16.0, 17.0, 17.0, 17.0] | [76, 79, 73, 83] |
p02753 | u610326327 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input()\nif len(s) != 3:\n print('no')\nif s.upper() == 'AAA' or s.upper() == 'BBB' :\n print('no')\nelse:\n print('yes')", "s = input()\nif len(s) != 3:\n print('No')\nif s.upper() == 'AAA' or s.upper() == 'BBB' :\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s003474852', 's995979914'] | [2940.0, 2940.0] | [18.0, 16.0] | [128, 128] |
p02753 | u610856690 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['t = input()\nl = [i for i in t]\nprint(l)\nif "A" in l and "B" in l:\n print("Yes")\nelse:\n print("No")\n', 't = input()\nl = [i for i in t]\nif "A" in l and "B" in l:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s883848191', 's250768771'] | [2940.0, 2940.0] | [18.0, 17.0] | [105, 96] |
p02753 | u611090896 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input()\nprint('Yes' len(set(S)) == 2 else 'No')", "S = input()\nprint('Yes' if len(set(S)) == 2 else 'No')"] | ['Runtime Error', 'Accepted'] | ['s559151372', 's010677070'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 54] |
p02753 | u612895604 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["i = input()\nif i == ('AAA' or 'BBB'):\n print('Yes')\nelse:\n print('No')", "i = input()\nif i == 'AAA' or i== 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s347676665', 's623355253'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 75] |
p02753 | u616542081 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = inpit()\n\nans = 'Yes'\n\nif (S == 'AAA') or (S=='BBB'):\n ans = 'No'\n \nprint(ans)", "S = input()\n\nans = 'Yes'\n\nif (S == 'AAA') or (S=='BBB'):\n ans = 'No'\n \nprint(ans)\n"] | ['Runtime Error', 'Accepted'] | ['s788424294', 's952493176'] | [9092.0, 9020.0] | [26.0, 24.0] | [83, 84] |
p02753 | u617103038 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | [' n,a, b = map(int, input().split())\n ans = n //(a+b) *a\n ans += min(n%(a+b),a)\n print(ans)\n', 'S = input()\n\nif S == "AAAA" or S == "BBB":\n print("Yes")\nelse:\n print("No")\n', 'n,a, b = map(int, input().split())\nl = []\nfor i in range(10 ^100):\n l.extend([1]*a)\n l.extend([0]*b)\n\np... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s287726428', 's326746259', 's821629612', 's656639280'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [103, 82, 125, 81] |
p02753 | u617225232 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["a = input()\nif a = 'AAA' or b = 'BBB':\n print('Yes')\nelse:\n print('No')", "a = input()\nif a == 'AAA' or a == 'BBB':\n print('Yes')\nelse:\n print('No')\n", "a = input()\nif a == 'AAA' or a == 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s231263845', 's750447042', 's402434232'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [73, 76, 76] |
p02753 | u617953889 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = input()\nif s == \'AAA\' or s== \'BBB\':\n print("NO")\nelse:\n print("YES")\n ', 's = input()\nif s == \'AAA\' or s == "BBB":\n print("NO")\nelse:\n print(\'YES\')\n ', 's = input()\n\nif s == \'AAB\' or s == "ABA" or s == \'ABB\' or s == \'BAA\' or s =="BAB" or s=="BBA":\n print("YES")\nelse:\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s277872828', 's427126617', 's935814594', 's624295318'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [77, 84, 138, 138] |
p02753 | u619398783 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["a = input()\nif a = 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "a = input()\nif a == 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "a = input()\nif a in ('AAA','BBB'):\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s757571670', 's978870992', 's414562884'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [69, 70, 69] |
p02753 | u619718142 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["input = input().split()\nN = int(input[0])\nA = int(input[1])\nB = int(input[2])\narr = []\nfor index in range(A):\n arr.append('a')\nfor index in range(B):\n arr.append('b')\n\nfor index in range(0,N):\n if arr[index] == 'b':\n print(index)\n break\n elif index + 1 == N:\n print(N)\n break\n ", "s... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s656111066', 's816240838', 's345756120'] | [3060.0, 3060.0, 2940.0] | [19.0, 17.0, 17.0] | [296, 124, 124] |
p02753 | u622847899 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['A,B = [int(i) for i in input().split()]\n\nflag=0\nfor i in range(1,10000):\n if int(i*0.08)==A and int(i*0.1)==B:\n ans = i\n flag=1\n break\n\nif flag==1:\n print(ans)\nelse:\n print(-1)\n', 'A,B = map(int,input().split())\nj=0\nfor i in range(1,100001):\n if int(i*0.08) == A and in... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s056031717', 's484817618', 's732310299', 's753581833', 's015680784'] | [2940.0, 3060.0, 2940.0, 3056.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [207, 194, 206, 206, 75] |
p02753 | u624533266 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input()\nif s == 'AAA' or s == 'BBB':\n print('Yes')\nelse:\n print('No')", "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s759385267', 's109428032'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 79] |
p02753 | u624613992 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s=input()\n\nif "A" in s:\n if "B" in s:\n print("YES")\n else:\n print("NO")\nelse:\n print("NO")', 's=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'] | ['s453319103', 's612379139'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 113] |
p02753 | u625864724 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['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'] | ['s225033792', 's306954195'] | [9012.0, 8976.0] | [25.0, 25.0] | [75, 78] |
p02753 | u626011428 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["x = input()\nif x =='AAA':\n print(No)\n elif x =='BBB':\n print(No)\n else:\n print(Yes)\n ", "x = str(input())\nif x =='AAA':\n print(No)\n elif x =='BBB':\n print(No)\n else:\n print(Yes)", "x = input()\nif x =='AAA':\n print('No')\nelif x == 'BBB':\n print('No')\nelse:\n print('Y... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s433420002', 's463646446', 's309206975'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [103, 101, 91] |
p02753 | u626684023 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S = input()\nif S.count(\'A\') == 3 or S.count(\'B\') == 3:\n print("NO")\nelse:\n print("YES")', 'S = input()\nif S.count(\'A\') == 3 or S.count(\'B\') == 3:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s541465860', 's624893542'] | [9044.0, 9096.0] | [26.0, 26.0] | [93, 93] |
p02753 | u627213696 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a,b,c = map(input().split())\nprint("No" if a == b == c else "Yes")', 'print("No" if str(input()) == "AAA" or "BBB" else "Yes")', 'M = input()\nprint(\'No\' if M[0] == M[1] == M[2] else "Yes")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s074933280', 's794235004', 's532616676'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [66, 56, 58] |
p02753 | u629607744 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s=input().split()\na=0\nfor i in range(3):\n\tif s[i]==A:\n\t\ta+=1\nif a==0 or a==3:\n\tprint('No')\nelse:\n\tprint('Yes')", "s=list(input())\na=0\nfor i in range(3):\n\tif s[i]=='A':\n\t\ta+=1\nif a==0 or a==3:\n\tprint('No')\nelse:\n\tprint('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s852355862', 's875396954'] | [3064.0, 2940.0] | [18.0, 17.0] | [110, 111] |
p02753 | u630211216 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['str=imput()\nif(str[0]!=atr[1]||str[1]!=str[2]):\n print("Yes")\nelse:\n print("No")', 'S=input()\nif (S[0]!=S[1])|(S[2]!=S[1]) :\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s720287933', 's988119336'] | [2940.0, 2940.0] | [18.0, 17.0] | [82, 80] |
p02753 | u631998785 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S=map(str,input())\nif "A" in S:\n print("yes")\nelse :\n print("no")', 'S=map(str,input())\nif "A" in S:\n print("Yes")\nelif :\n S="AAA"\nelse :\n print("No")', 'S=map(str,input())\nif "A" in S:\n print("Yes")\nelif :\n S="AAA"\n print("No")\nelse :\n print("No")', "\n\n\n\ns = input()\n\... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s115492102', 's688248738', 's718723074', 's126683060'] | [3064.0, 3064.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [71, 90, 106, 80] |
p02753 | u634046173 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["print('Yes'if input() in ['AAA', 'BBB'] else 'No')", "print('No'if input() in ['AAA', 'BBB'] else 'Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s199611526', 's854653735'] | [9024.0, 8988.0] | [28.0, 26.0] | [50, 51] |
p02753 | u634576930 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a,b=map(int,input().split())\n\nfor i in range(1100):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n exit()\nprint(-1)', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s266267316', 's496626832'] | [2940.0, 2940.0] | [17.0, 17.0] | [134, 73] |
p02753 | u635540732 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["a=list(input().split())\nif a[1]==a[2]==a[3]:\n print('No')\nelse:\n print('Yes')\n", "a=list(map(int,input().split()))\nif a[1]==a[2]==a[3]:\n print('No')\nelse:\n print('Yes')", "a=list(input())\nif a[0]==a[1]==a[2]:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s144871932', 's145500259', 's012969927'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [80, 88, 71] |
p02753 | u636665812 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = str(input())\n\nprint("No") if s=="AAA" or s=="BBB" else print("No")', 's = str(input())\n\nprint("No") if s=="AAA" or s=="BBB" else print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s041557261', 's933636252'] | [2940.0, 2940.0] | [18.0, 17.0] | [70, 72] |
p02753 | u638033979 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['from collections import deque\n\nd = deque()\nS = input()\nd.append(S)\nQ = int(input())\nFlag = True\n \nfor i in range(Q):\n Query = input()\n if Query[0] == "1":\n Flag = not Flag\n else:\n QueryList = Query.split()\n if Flag:\n if QueryList[1] =="1":\n d.app... | ['Runtime Error', 'Accepted'] | ['s358787310', 's728294610'] | [3316.0, 2940.0] | [21.0, 17.0] | [627, 88] |
p02753 | u639340617 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | [" #n,m = list(map(int,input().split()))\n s = input()\n \n if s[0] == s[1] == s[2]:\n print('No')\n else:\n print('Yes')", "#n,m = list(map(int,input().split()))\ns = input()\n\nif s[0] == s[1] == s[2]:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s098732851', 's962242500'] | [2940.0, 2940.0] | [17.0, 17.0] | [139, 111] |
p02753 | u646244131 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["inputs = list(input())\nprint(inputs)\nif inputs[0] == inputs[1] and inputs[1] == inputs[2]:\n\tprint('No')\nelse:\n\tprint('Yes')", "inputs = list(input())\nif inputs[0] == inputs[1] and inputs[1] == inputs[2]:\n\tprint('No')\nelse:\n\tprint('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s901563053', 's939921496'] | [2940.0, 2940.0] | [18.0, 17.0] | [123, 109] |
p02753 | u652656291 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["A =str(input())\nif A == 'AAA' or A == 'BBB':\n print('Yes')\nelse:\n print('No')", "x = input()\nif x == 'AAA' or x == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s735894269', 's866891967'] | [3060.0, 2940.0] | [19.0, 17.0] | [79, 75] |
p02753 | u654386293 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a = input()\nif a == "BBB" or a == "AAA":\n print("Yes")\nelse:\n print("No")', 'a = input()\nif a == "AAA" or a == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s774167010', 's050589194'] | [2940.0, 2940.0] | [18.0, 18.0] | [75, 75] |
p02753 | u654949547 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['print(\'Yes\' if "A" in input() and "B" in input() else "No")', 's=input()\nprint(\'Yes\' if "A" in s and "B" in s else "No")'] | ['Runtime Error', 'Accepted'] | ['s169693666', 's184821959'] | [2940.0, 2940.0] | [19.0, 17.0] | [59, 57] |
p02753 | u657786757 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['#include <bits/stdc++.h>\n#define INF 1050000000\n\n#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))\nusing namespace std;\nusing ll = long long;\nusing P = pair<int,int>;\n\nint main() {\n string s, flag="No";\n cin >> s;\n rep(i, ARRAY_LENGTH(s)-1){\n if (s[i]!=s[i+1]) flag = "Yes";\n ... | ['Runtime Error', 'Accepted'] | ['s054765766', 's073514692'] | [3064.0, 2940.0] | [17.0, 17.0] | [395, 81] |
p02753 | u660018248 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['def A():\n S = input()\n s = "Yes"\n if S=="AAA" or S=="BBB":\n s = "No"\n return s\n\n\nif __name__ == \'__main__\':\n A()', 'def A():\n S = input()\n s = "Yes"\n if (S=="AAA") or (S=="BBB"):\n s = "No"\n print(s)\n return s\n\n\nif __name__ == \'__main__\':\n A()\n'] | ['Wrong Answer', 'Accepted'] | ['s345278960', 's535888520'] | [2940.0, 2940.0] | [17.0, 17.0] | [134, 152] |
p02753 | u660245210 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = int(input())\nif not s[0] == s[1] == s[2]:\n print('No')\nelse: print('Yes')", "s = input()\nif not s[0] == s[1] == s[2]:\n print('No')\nelse: print('Yes')\n", "s = input()\nif s[0] == s[1] == s[2]:\n print('No')\nelse: print('Yes')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s728925406', 's973406258', 's051044883'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [80, 76, 72] |
p02753 | u660899380 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['buses = input()\nfirst = buses[0]\ncount = 0\nfor i in buses:\n\tif i == first:\n count += 1\nif count == len(buses):\n print("No")\nelse:\n print("Yes")', 'buses = input()\nfirst = buses[0]\ncount = 0\nfor i in buses:\n\tif (i == first):\n \t count += 1\nif count == len(buses):\n\tprint("No")\nelse:\n\tp... | ['Runtime Error', 'Accepted'] | ['s420506630', 's029854485'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 152] |
p02753 | u663710122 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input()\n\nif len(set(list(S))) !BBA\n= 1:\n print('Yes')\nelse:\n print('No')\n", "S = input()\n\nif len(set(list(S))) == 1:\n print('Yes')\nelse:\n print('No')\n ", "S = input()\n\nif len(set(list(S))) != 1:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s108439084', 's285755496', 's401275452'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 83, 79] |
p02753 | u667084803 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['cuts = []\nfor i in range(2000):\n cuts+= [[int(i*0.08), int(i*0.10)]]\n \nA, B = map(int,input().split())\n\nfor i in range(1,2000):\n if [A, B] == cuts[i]:\n print(i)\n break\nelse:\n print(0)', 's = input()\nif s == "AAA" or s == "BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s019790664', 's030094779'] | [3188.0, 2940.0] | [20.0, 17.0] | [193, 75] |
p02753 | u667694979 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S=input()\n\nif S="AAA" or S="BBB":\n print("NO")\nelse:\n print("Yes")', 'S=input()\nif S.count("AAA") or S.count("BBB"):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s037961875', 's900279230'] | [2940.0, 2940.0] | [18.0, 17.0] | [68, 81] |
p02753 | u668362232 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['def InS(): return input()\n\n\ndef InL(): return list(map(int, input().split()))\n\n\ndef InI(): return int(input())\n\n\nS = input()\n\nS_list = list(S)\n\n\nif S_list[0] == S_list[1]:\n if S_list[1] == S_list[2]:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'def InS(): return i... | ['Wrong Answer', 'Accepted'] | ['s965292355', 's374899111'] | [3060.0, 3060.0] | [17.0, 17.0] | [275, 276] |
p02753 | u668924588 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['import math\n\nTAXRATE8 = 0.08\nTAXRATE10 = 0.1\n\ntax8, tax10 = map(int, input().split())\n\namount8_min = math.ceil(tax8 / TAXRATE8)\namount8_max = math.floor((tax8+1) / TAXRATE8)\nif ((tax8+1) / TAXRATE8).is_integer():\n amount8_max -= 1\n\n\namount10_min = math.ceil(tax10 / TAXRATE10)\namount10_max = math.floor(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s506447947', 's607048422', 's776845344', 's244560092'] | [3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [540, 143, 145, 76] |
p02753 | u670819023 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['n,a,b = map(int, input().split())\n\nif n == 0:\n print(0)\nelif a == 0:\n print(0)\nelif b == 0:\n print(n)\nelif a >= n:\n print(n)\nelif a+b > n > a:\n print(a)\nelse:\n q,mod = divmod(n, a+b)\n print(q*a + mod)', "s = list(input())\nif s[0] == s[1]:\n if s[1] == s[2]:\n print('No')\... | ['Runtime Error', 'Accepted'] | ['s355696377', 's723569206'] | [3060.0, 2940.0] | [18.0, 18.0] | [221, 129] |
p02753 | u670838922 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['import numpy as np\nS=input()\nQ=int(input())\nq=[[0 for i in range(3)] for j in range(Q)]\nonecntr=0\nfor i in range(Q):\n tmp=input().split()\n if(tmp[0]=="1"):\n q[i][0]=1\n else:\n q[i][0]=2\n q[i][1]=int(tmp[1])\n q[i][2]=tmp[2]\n \n\nfor i in range(Q):\n if(q[i][0]==1)... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s076719183', 's122052578', 's243093361'] | [12512.0, 21132.0, 2940.0] | [148.0, 302.0, 18.0] | [650, 645, 91] |
p02753 | u672542358 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s=input()\nif s=="AAA" or s=="BBB":\n print("Yes")\nelse:\n print("No")', 's=input()\nif s=="AAA" or s=="BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s604520259', 's281337494'] | [2940.0, 2940.0] | [17.0, 18.0] | [69, 70] |
p02753 | u673388970 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["str = input()\n\nct = str.count('A')\n\nif ct == 0 or ct == 3:\n print('No')\nelse :\n pritn('Yes')", "str = input()\n\nct = str.count('A')\n\nif ct == 0 or ct == 3:\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s369661874', 's256942220'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 93] |
p02753 | u674190122 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s= input()\nif "AB" in s or "BA" in s:\n print("YES")\nelse:\n print("NO")', 'if len(set(input())==1:\n print("NO")\nelse:\n print("YES")\n \n ', 'fun main()\n{\n val given = readLine()!!\n println(if ( given.contains("AB") || given.contains("BA")) "Yes" else "No")\n}', 'if len(set(inpu... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s017977878', 's541225980', 's812806318', 's908848912', 's711974949'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [72, 83, 123, 69, 72] |
p02753 | u674588203 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S=input()\ns=set(S)\nif len(s)==3:\n print("Yes")\nelse:\n print("No")', 'S=input()\ns=set(S)\nif len(s)==2:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s837022741', 's568545234'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 68] |
p02753 | u674959030 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['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")'] | ['Wrong Answer', 'Accepted'] | ['s290511591', 's302054524'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 79] |
p02753 | u675155417 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = input()\nif s == "BBB":\n\tprint("NO")\nelif s == "AAA":\n\tprint("NO")\nelse:\n\tprint("YES")', 's = list(input())\nif s == "BBB":\nprint("NO")\n\nelif s == "AAA":\nprint("NO")\n\nelse:\nprint("YES")', 's = input()\nif s == "BBB":\n\tprint("No")\nelif s == "AAA":\n\tprint("No")\nelse:\n\tprint("Yes")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s842005273', 's845502328', 's705579193'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [89, 94, 89] |
p02753 | u676608154 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input()\nif s == 'BBB' or s == 'AAA':\n print('NO')\nelse:\n print('YES')", "s = input()\nif s == 'BBB' or s == 'AAA':\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s456191252', 's253452911'] | [2940.0, 3064.0] | [17.0, 17.0] | [75, 75] |
p02753 | u678012451 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["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'] | ['s790291309', 's395002999'] | [2940.0, 2940.0] | [18.0, 17.0] | [70, 75] |
p02753 | u678167152 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["N = input()\nif len(set(N))==1:\n print('NO')\nelse:\n print('YES')", "N = input()\nif len(set(N))==1:\n print('YES')\nelse:\n print('NO')", "N = input()\nif len(set(N))==1:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s110222239', 's828059033', 's300375783'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [65, 65, 65] |
p02753 | u679970524 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["a=input()\nif a == 'AAA' or a == 'BBB':\n print('Yes')\nelse:\n print('No')", "a=input()\nif a == 'AAA' or a == 'BBB':\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s261483725', 's880306076'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 78] |
p02753 | u682721153 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['l = list(map(int, input().split()))\nn,a,b=l[0],l[1],l[2]\ncount=0\nwhile True:\n for i in range(a):\n if n == 0:\n break\n count += 1\n n -= 1\t\n for i in range(b):\n if n == 0:\n break\n n -= 1\n if n == 0:\n break\nprint(count)\t\t', "s = input()\nif 'A' in s and 'B' in s:\n print(... | ['Runtime Error', 'Accepted'] | ['s840043054', 's917768317'] | [3060.0, 2940.0] | [19.0, 17.0] | [248, 72] |
p02753 | u685684561 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s=input()\nif s[0]==s[1] and s[0]==s[2]:\n print('Yes')\nelse:\n print('No')", "s=input()\nif s[0]==s[1] and s[0]==s[2]\n print('Yes')\nelse\n print('No')", 'n,a,b=input(),input(),input()\nn=int(n)\na=int(a)\nb=int(b)\nk=n//(a+b)*a+min(a,n%(a+b))\n \nprint(k)', "s=input()\nif s[0]==s[1] and s[0]==s[2]:\n print(... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s041157493', 's103939410', 's716078817', 's416451175'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [74, 72, 96, 74] |
p02753 | u685971021 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input().split()\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')"] | ['Runtime Error', 'Accepted'] | ['s552993846', 's309030147'] | [9028.0, 9088.0] | [23.0, 29.0] | [84, 76] |
p02753 | u686230543 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['x = []\nfor i in range(1000):\n x.append([0] * 10000000000000)', "s = input()\nif s == 'AAA' or s == 'BBB':\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s063262296', 's668571612'] | [3060.0, 2940.0] | [17.0, 18.0] | [61, 75] |
p02753 | u686713618 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a = str(input())\nif a == "AAA"or"BBB":\n print("No")\nelse:\n print("Yes")', 'a = str(input())\nif a == "AAA" or a == "BBB":\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s986549906', 's145885134'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 81] |
p02753 | u687135117 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['import numpy as np\nimport sys\nreadline = sys.stdin.buffer.readline\nN,A,B = map(int, readline().split())\nR=A*(N//(A+B))+min(A,N%(A+B))\nprint(R)', 'S=input()\nif S=="AAA" or S=="BBB":\n print(\'No\')\nelse:\n print(\'Yes\')'] | ['Runtime Error', 'Accepted'] | ['s308575451', 's473152023'] | [22040.0, 2940.0] | [322.0, 17.0] | [142, 69] |
p02753 | u689835643 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S = list(input())\na = S.count("A")\nb = S.count("B")\nif a == 3 or b == 3:\n print("Yes")\nelse:\n print("No")', 'x = list(input())\nif x.count(x[0]) == 3:\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s660959770', 's481847905'] | [3064.0, 2940.0] | [17.0, 17.0] | [107, 80] |
p02753 | u692746605 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['A,B=map(int,input().split())\nS=set(range(25*A//2,25*(A+1)//2))&set(range(10*B,10*(B+1)))\nprint(S.pop() if len(S)>0 else -1)\n', "c=input().count('A')\nprint('No' if c==3 or c==0 else 'Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s492586844', 's248056636'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 60] |
p02753 | u694402282 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['i = input()\nif i[-1]==i[-2] and i[-2]==i[-3]:\n print("Yes")\nelse:\n print("No")', 'i = input()\nif i[-1]==i[-2] and i[-2]==i[-3]:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s930964718', 's411962086'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p02753 | u695329583 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = int(input())\nif s == 'AAA' or s == 'BBB' :\n print('No')\nelse :\n print('Yes')", "s = input()\nif s == 'AAA' or s == 'BBB' :\n print('No')\nelse :\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s837252919', 's119725257'] | [9040.0, 9000.0] | [25.0, 25.0] | [86, 81] |
p02753 | u696684809 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['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'] | ['s714321976', 's345038454'] | [8812.0, 9088.0] | [22.0, 27.0] | [74, 76] |
p02753 | u696969901 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input()\nans = 'Yes'\nif S[0] != S[1]:\n ans = 'No'\nelif S[1] != S[2]:\n ans = 'No'\nprint(ans)", 'S = input()\nans = True\nif S[0] != S[1]:\n ans = False\nelif S[1] != S[2]:\n ans = False\nprint(ans)', "S = input()\nans = 'No'\nif S[0] != S[1]:\n ans = 'Yes'\nelif S[1] != S[2]:\n ans = 'Yes'\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s792408283', 's842433736', 's625909045'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [100, 101, 101] |
p02753 | u697386253 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["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'] | ['s893261959', 's420369668'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 80] |
p02753 | u697422981 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S=input()\nif S=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'S=input()\nif S=="AAA":\n print("No")\nelif S=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s725662412', 's343152727'] | [2940.0, 2940.0] | [18.0, 17.0] | [66, 86] |
p02753 | u697758384 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S = input().split()\n\nif "A" and "B" in S:\n print("Yes")\nelse:\n print("No")', 'S = input().split()\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")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s607064525', 's739025716', 's795678073'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [80, 86, 77] |
p02753 | u699944218 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = input()\nif S = 'AAA' or 'BBB':\n print('No')\nelse:\n print('Yes')", "S=input()\nfor a in S:\n if a=='AAA':\n print('No')\n elif a=='BBB':\n print('No')\n else:\n print('Yes')", "S=input()\n if S=='AAA':\n print('No')\n elif S=='BBB':\n print('No')\n else:\n print('Yes')", "S = input()\... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s047195313', 's357940412', 's474314830', 's578362249', 's975430685', 's296803821'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [69, 110, 98, 74, 70, 75] |
p02753 | u701915308 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['N, A, B = map(int,input().split())\n\nq, mod = divmod(N, A+B)\n\n\nif A == 0 :\n print(0)\n\nelif N >A+B :\n if mod <= A :\n print(q*A+mod)\n if mod > A :\n print(q*A+A)\n \nelif N == A+B :\n print(q*A)\n\nelif N < A+B :\n print(N)\n \nelif N < A :\n print(N)', 'N, A, B = map(int... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022772729', 's547016162', 's632314514', 's866366270', 's964328311', 's021732137'] | [3060.0, 3060.0, 3060.0, 3060.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 18.0] | [276, 254, 254, 245, 275, 81] |
p02753 | u702018889 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['print("Yes" if input() in "A" else "No")\n', 'print("YES" if input() in "A" else "NO")', 'print("Yes" if "A" in input() and "B" in input() else "No"', 'print("YES" if "A" in input() and "B" in input() else "NO")\n', 'print("YES" if input() in "A" and input() in "B" else "NO")\n', 'print("No" if len(set(input()))==1 e... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s217724211', 's232274461', 's514828638', 's792867232', 's817247817', 's810862324'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [41, 40, 58, 60, 60, 46] |
p02753 | u702648548 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['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'] | ['s289955757', 's573437598'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 74] |
p02753 | u703155207 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S = [x for x in input()]\nif \'A\' in S and \'B\' in S:\n print("YEs")\nelse:\n print("No")', 'S = [x for x in input()]\nif \'A\' in S and \'B\' in S:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s920761142', 's306817456'] | [2940.0, 2940.0] | [18.0, 18.0] | [85, 89] |
p02753 | u703890795 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['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'] | ['s286036083', 's423075110'] | [9008.0, 9028.0] | [25.0, 24.0] | [70, 75] |
p02753 | u704287489 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['if S[0] != S[1] and S[0] != S[2]:\n print("Yes")\nelif S[0] != S[1] and S[1] != S[2]:\n print("Yes")\nelse:\n print("No")\n', 'if S[1]!= S[2] and S[1]!=S[3]:\n print("Yes")\nelse:\n print("No")', 'S=input()\nif S[1]!= S[2] and S[1]!=S[3]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nif S =... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s142645912', 's662904480', 's856307426', 's596390499'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 19.0, 18.0, 20.0] | [126, 69, 79, 79] |
p02753 | u705418271 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s=list(input())\nif s="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")\n', 's=input()\nif s=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 's=input()\nif a[0]==a[1]==a[2]:\n print("No")\nelse:\n print("Yes")', 's=list(input())\nif s=="AAA" or "BBB":\n print("No")\nelse:\n print("Yes")', 'a=list(inp... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s025951656', 's139770154', 's899318730', 's944745180', 's856037044'] | [8776.0, 8936.0, 9016.0, 9112.0, 8992.0] | [21.0, 28.0, 23.0, 31.0, 28.0] | [72, 66, 65, 72, 71] |
p02753 | u706785092 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["S = str(input())\n\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'] | ['s949379246', 's083202636'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 99] |
p02753 | u706908631 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['s = input()\nAs = s.count("A")\nBs = s.count("B")\nif As == 3 or Bs == 3:\n print("NO")\nelse:\n print("YES")', 's = input()\nAs = s.count("A")\nBs = s.count("B")\nif As == 3 or Bs == 3:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s164714511', 's127165249'] | [2940.0, 2940.0] | [17.0, 18.0] | [105, 105] |
p02753 | u707187541 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['S=input()\na=S.count("A")\nb=S.count("B")\nif a==3 or b==3:\n print("No")\nelse\n print("Yes")', 'S=input()\nif S=="AAA" or S=="BBB":\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s816371216', 's385905134'] | [8976.0, 8916.0] | [20.0, 27.0] | [90, 69] |
p02753 | u708019102 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ['a,b = [int(x) for x in input().split()]\namax = int((a+1)*12.5)\namin = int(a*12.5)\nbmax = int((b+1)*10)\nbmin = int(b*10)\nhantei = bmin\nif amax < bmin:\n hantei = str(-1)\nelif bmax < amin:\n hantei = str(-1)\nelif bmin < amin:\n hantei = amin\nprint(hantei)', 'a = input()\nb = list(a)\nhantei = "Yes"\nif b[0]... | ['Runtime Error', 'Accepted'] | ['s374742145', 's762286885'] | [3064.0, 2940.0] | [18.0, 17.0] | [253, 119] |
p02753 | u711193305 | 2,000 | 1,048,576 | In AtCoder City, there are three stations numbered 1, 2, and 3. Each of these stations is operated by one of the two railway companies, A and B. A string S of length 3 represents which company operates each station. If S_i is `A`, Company A operates Station i; if S_i is `B`, Company B operates Station i. To improve t... | ["s = input()\nq = int(input())\na = [s]\n\nfor i in range(q):\n so = input()\n if so == '1':\n a[0], a[-1] = a[-1], a[0]\n else:\n d, f, c = so.split()\n if f == '1':\n a.insert(0, c)\n else:\n a.append(c)\n\n\nprint(''.join(a))\n", "s = input()\na = [str(i) f... | ['Runtime Error', 'Accepted'] | ['s795231192', 's360825125'] | [3060.0, 2940.0] | [17.0, 17.0] | [271, 126] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.