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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02777 | u853728588 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s, t = input().split()\na, b = map(int, input().split())\nu = int(input())\n \nif u == s:\n print(s-1,t)\nelif u == t:\n print(s, t-1)', 's, t = input()\na, b = map(int, input().split())\nu = int(input())\n\nif u == "red":\n print(int(s-1,t))\nelif t == "blue":\n print(int(s, t-1))', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n \nif u == s:\n print(s-1,t)\nelif u == t:\n print(s, t-1)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n \nif u == s:\n print(a-1,b)\nelif u == t:\n print(a, b-1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s237394157', 's551070031', 's625365249', 's907406750'] | [9168.0, 8896.0, 8984.0, 9084.0] | [26.0, 23.0, 22.0, 29.0] | [129, 139, 124, 124] |
p02777 | u854685063 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['import sys\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\n\nn = len(l())\ns = ""\nfor i in range(n):\n s = s + "x"\nprint(s)', 'import sys\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\nl = input().split()\ns,t = l[0],l[1]\na ,b = i2()\nu = input()\nif s == u:\n print(a-1,b)\nelse:\n print(a,b-1)'] | ['Wrong Answer', 'Accepted'] | ['s080213458', 's486993619'] | [3064.0, 3064.0] | [19.0, 18.0] | [616, 662] |
p02777 | u854962015 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S=input()\nT=""\nfor i in range(len(S)):\n T+="x"\nprint(T)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U==S:\n print(A-1,B)\nelse:\n print(A,B-1)'] | ['Wrong Answer', 'Accepted'] | ['s495397930', 's809758764'] | [9012.0, 9164.0] | [32.0, 24.0] | [56, 103] |
p02777 | u857070771 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s,t=input().split()\na,b=map(int,input().split())\nu=input()\nif u == t:\n a -= 1\nelif u == t:\n b -= 1\nprint(a,b)', 's,t=input().split()\na,b=map(int,input().split())\nu=input()\nif u == s:\n a -= 1\nelif u == t:\n b -= 1\nprint(a,b)'] | ['Wrong Answer', 'Accepted'] | ['s378772448', 's532544900'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 115] |
p02777 | u857673087 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T = map(input().split())\nA,B = map(int,input().split())\nU = input()\n\nif U == S:\n print(A-1, B)\nelse:\n print(A, B-1)', 'S,T = input().split()\nA,B = map(int,input().split())\nU = input()\n\nif U == S:\n print(A-1, B)\nelse:\n print(A, B-1)\n'] | ['Runtime Error', 'Accepted'] | ['s413637967', 's360752094'] | [3064.0, 2940.0] | [19.0, 17.0] | [119, 115] |
p02777 | u858428199 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['def a():\n s, t = input().split()\n print(s)\n print(t)\n s_n, t_n = input().split()\n u = input()\n print(u)\n if u == s:\n s_n = int(s_n) - 1\n elif t == u:\n t_n = int(t_n) - 1\n return f"{s_n} {t_n}"\na()', 'def a():\n s, t = input().split()\n s_n, t_n = input().split()\n u = input()\n if u == s:\n s_n = int(s_n) - 1\n elif t == u:\n t_n = int(t_n) - 1\n return str(s_n) + " " + str(t_n)\nprint(a())'] | ['Runtime Error', 'Accepted'] | ['s646862001', 's806241264'] | [2940.0, 3060.0] | [17.0, 18.0] | [238, 217] |
p02777 | u860002137 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['from itertools import accumulate\n\nN, K = map(int, input().split())\np = list(map(int, input().split()))\n\np = list(accumulate(p))\n\nans = 0\nfor i in range(N - K):\n ans = max(ans, p[i + K]-p[i])\n\nans = (ans + K) / 2\n\nprint(ans)', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s==u:\n a = a-1\nif t==u:\n b = b-1\n\nprint(a, b)'] | ['Runtime Error', 'Accepted'] | ['s923336382', 's956894178'] | [3060.0, 2940.0] | [18.0, 17.0] | [226, 123] |
p02777 | u869267486 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s=input()\nans=str()\nfor i in range(len(s)):\n ans+="x"\n\nprint(ans)\n\n\n', 'S,T=map(str,input.split())\ns,t=map(int,input.split())\nU=input()\n\nif S==U:\n print(s-1,t)\nelif T==U:\n print(s,t-1)\n\n', 's=input()\nans=str()\nfor i in range(len(s)):\n ans+="x"\n', 'S,T=map(str,input().split())\ns,t=map(int,input().split())\nU=input()\n\nif S==U:\n print(s-1,t)\nelif T==U:\n print(s,t-1)\n\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s048569529', 's405990092', 's410333081', 's364305040'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [71, 120, 57, 124] |
p02777 | u869474504 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S_T=input("S T:")\nA_B=input("A B:")\nU=input("U:")\nlist_S_T=[]\nfor i in range(len(S_T)):\n if S_T[i]==" ":\n S =S_T[0:i]\n T=S_T[i+1:len(S_T)]\nfor i in range(len(A_B)):\n if A_B[i]==" ":\n A = int(A_B[0:i])\n B = int(A_B[i+1:len(A_B)])\nif S==U:\n A = A-1\nelif T==U:\n B = B-1\nprint(A,B)', 'S_T=input()\nA_B=input()\nU=input()\nlist_S_T=[]\nfor i in range(len(S_T)):\n if S_T[i]==" ":\n S =S_T[0:i]\n T=S_T[i+1:len(S_T)]\nfor i in range(len(A_B)):\n if A_B[i]==" ":\n A = int(A_B[0:i])\n B = int(A_B[i+1:len(A_B)])\nif S==U:\n A = A-1\nelif T==U:\n B = B-1\nprint(A,B)'] | ['Wrong Answer', 'Accepted'] | ['s924734474', 's820639908'] | [3064.0, 3064.0] | [18.0, 17.0] | [317, 301] |
p02777 | u870518235 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['# -*- coding: utf-8 -*-\n\n# Input\ns = [input() for i in range(3)]\nST = list(s[0].split())\nS = str(ST[0])\nT = str(ST[1])\n\nAB = list(s[1].split())\nA = int(AB[0])\nB = int(AB[1])\n\nU = str(s[3])\n\n\n# Proccess\nIf U == S:\n\tA -= 1\nelse:\n\tB -= 1\n\n# Output\t\t\t\t\t\t\t\nprint(str(A)+" "+str(B))', '# -*- coding: utf-8 -*-\n\n# Input\ns = [input() for i in range(3)]\nST = list(s[0].split())\nS = str(ST[0])\nT = str(ST[1])\n\nAB = list(s[1].split())\nA = int(AB[0])\nB = int(AB[1])\n\nU = str(s[2])\n\n\n# Proccess\nif U == S:\n\tA -= 1\nelse:\n\tB -= 1\n\n# Output\t\t\t\t\t\t\t\nprint(str(A)+" "+str(B))'] | ['Runtime Error', 'Accepted'] | ['s328786979', 's404127407'] | [2940.0, 3064.0] | [17.0, 17.0] | [276, 276] |
p02777 | u871934301 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T=map(int,input().split())\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n print(A-1,B)\nif T==U:\n print(A,B-1)', 'S,T=map(input().split())\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n print(A-1,B)\nif T==U:\n print(A,B-1)', 'S,T=map(input().split())\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n print(A-1,B)\nif S==T:\n print(a,B-1)', 'S,T=map(input().split())\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n print(A-1,B)\nif S==T:\n print(A,B-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n print(A-1,B)\nif T==U:\n print(A,B-1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s458083230', 's603261297', 's696838352', 's844577992', 's581976848'] | [2940.0, 2940.0, 2940.0, 2940.0, 3316.0] | [17.0, 17.0, 17.0, 17.0, 21.0] | [120, 116, 116, 116, 111] |
p02777 | u873736356 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = map(input().split())\nA, B = map (int, input().split())\nU = input()\n\nif( S==U):\n print(A-1,B)\nelse:\n print(A,B-1)\n', 'S, T = input().split()\nA, B = map (int, input().split())\nU = input()\n\nif( S==U):\n print(A-1,B)\nelse:\n print(A,B-1)\n'] | ['Runtime Error', 'Accepted'] | ['s750300116', 's563793794'] | [2940.0, 2940.0] | [17.0, 17.0] | [126, 121] |
p02777 | u879478232 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s,t = map(str,input().split())\na,b = map(int,input().split())\nu = input()\nprint(a-1 if s == u else b-1)', 's,t = map(str,input().split())\na = list(map(int,input().split()))\nu = input()\nif u ==s:\n a[0] = a[0]-1\nelse:\n a[1] = a[1]-1\nprint(*a)'] | ['Wrong Answer', 'Accepted'] | ['s508618272', 's476041138'] | [2940.0, 3060.0] | [17.0, 17.0] | [103, 139] |
p02777 | u881816188 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['a,b=map(int,input().split())\nu=str(input())\nif u==s:\n print(a-1, b)\nelse:\n print(a,b-1)', 's,t=map(str,input().split())\na,b=map(int,input().split())\nu=str(input())\nif u==s:\n print(a-1, b)\nelse:\n print(a,b-1)'] | ['Runtime Error', 'Accepted'] | ['s394563044', 's306464378'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 122] |
p02777 | u886459614 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["s, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s==u:\n\tprint((a-1)+' '+b)\nelif t==u:\n\tprint(a+' '+(b-1))", 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s==u:\n\tprint(a-1, b)\nelif t==u:\n\tprint(a, b-1)'] | ['Runtime Error', 'Accepted'] | ['s815409086', 's650585996'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 118] |
p02777 | u889405092 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U=S:\n print(A-1,B)\nelse\n print(A,B-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U=S:\n print(A-1,B)\nelse\n print(B,A-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U==S:\n print(A-1,B)\nelse\n print(A,B-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U==S:\n print(A-1,B)\nelse\n print(A,B-1)', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U==S:\n print(A-1,B)\nelse:\n print(A,B-1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s174431734', 's220071811', 's261988067', 's883453119', 's681210591'] | [8976.0, 8792.0, 8916.0, 8992.0, 9092.0] | [25.0, 24.0, 24.0, 26.0, 29.0] | [101, 101, 102, 102, 103] |
p02777 | u890461092 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s = list(map(input().split()))\na = list(map(int,input().split()))\nu = input()\n\n\nif s[0] == u:\n a[0] -= 1\nelse:\n a[1] -= 1\n\nprint(str(a[0]) + " " + str(a[1]))', 's = input().split()\na = list(map(int,input().split()))\nu = input()\n\n\nif s[0] == u:\n a[0] -= 1\nelse:\n a[1] -= 1\n\nprint(str(a[0]) + " " + str(a[1]))'] | ['Runtime Error', 'Accepted'] | ['s352191511', 's002560572'] | [2940.0, 3060.0] | [17.0, 17.0] | [159, 148] |
p02777 | u898428248 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = list(map(str,input().split()))\nA, B = list(map(int,input().split()))\nU = str(input())\n\ndef main():\n if S is U:\n A -= 1\n elif T is U:\n B -= 1\n else:\n pass\n\n print(A,B)\n \nif __name__ == "__main__":\n main()\n', 'S,T = list(map(str,input().split()))\nA,B = list(map(int,input().split()))\nU = str(input())\n\nif S == U:\n A -=1\nelif T == U:\n B -=1\nelse:\n pass\n\nprint(A,B)\n '] | ['Runtime Error', 'Accepted'] | ['s930285576', 's627650910'] | [3056.0, 2940.0] | [17.0, 17.0] | [250, 167] |
p02777 | u898931267 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["# -*- coding: utf-8 -*-\n\na = int(input())\nli = list(map(int, input().split()))\nli2 = []\n\nfor i in range(a):\n li2.append(li[i])\n\nif len(li2) != len(set(li2)):\n print('NO')\nelse:\n print('YES')\n", '# -*- coding: utf-8 -*-\n\na, b = map(str, input().split())\n\nc, d = map(int, input().split())\n\ne = str(input())\n\nif a == e:\n c = c - 1\nelif b ==e:\n d = d - 1\n \n\nprint("{} {}".format(c, d))'] | ['Runtime Error', 'Accepted'] | ['s624461124', 's900786767'] | [2940.0, 2940.0] | [17.0, 18.0] | [220, 281] |
p02777 | u904995051 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s,t = input().split()\na,b = map(int,input().split())\nu = input()\nif u == s:\n print(a-1)\nelse:\n print(b-1)', 's,t = input().split()\na,b = map(int,input().split())\nu = input()\nif u == s:\n print(a-1,b)\nelse:\n print(a,b-1)'] | ['Wrong Answer', 'Accepted'] | ['s396503133', 's745998139'] | [9104.0, 9120.0] | [24.0, 27.0] | [111, 115] |
p02777 | u907446975 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['(s,t)=input().split()\na=input()\n(n,m)=list(map(int,a))\nu=input()\nif u==s:\n print(n-1,m)\nelif u==t:\n print(n,m-1)\n', '(s, t) = input().split()\na = input().split()\n(n, m) = list(map(int, a))\nu = input()\nif u == s:\n print(n - 1, m)\nelif u == t:\n print(n, m - 1)'] | ['Runtime Error', 'Accepted'] | ['s292879145', 's141347505'] | [2940.0, 3316.0] | [17.0, 20.0] | [115, 147] |
p02777 | u909616675 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['a=input()\nimport re\nresult=re.sub(r\'[a-z]\', "x", a)\nprint(result)', 'S,T=input().split()\na,b=map(int,input().split())\nU=input()\nif U==S:\n a-=1\nelse:\n b-=1\nprint(a,b)'] | ['Wrong Answer', 'Accepted'] | ['s259075226', 's438983692'] | [3188.0, 2940.0] | [25.0, 17.0] | [65, 98] |
p02777 | u910270473 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['import sys\nimport collections\n\nN = int(input())\nA_i = list(map(int, input().split()))\nA_i = [i for i in A_i if 1 <= i and i <= 10**9]\n\nif not 2 <= N or not N <= 2*10**5:\n print("error:N")\n sys.exit()\n\nif len(collections.Counter(A_i)) == len(A_i):\n print("Yes")\nelse:\n print("No")', 'import sys\n\nBall = list(map(str, input().split()))\nQuantity = list(map(int,input().split()))\nU = str(input())\n\nS = Ball[0]\nT = Ball[1]\nA = Quantity[0]\nB = Quantity[1]\n\nif not 1 <= len(S) or not len(S) <= 10:\n print("error:S_length")\n sys.exit() \nif not 1 <= len(T) or not len(T) <= 10:\n print("error:T_length")\n sys.exit() \nif S == T:\n print("error:S==T")\n sys.exit()\nif S != U and T != U:\n print("error:S=U or S=T")\n sys.exit()\nif not 1<= A or not B <= 10:\n print("error:A,B")\n sys.exit()\n\nif U == S:\n A -= 1\nif U == T:\n B -= 1\nprint(A,B)'] | ['Runtime Error', 'Accepted'] | ['s838844926', 's356192169'] | [3316.0, 3064.0] | [21.0, 18.0] | [291, 580] |
p02777 | u914671452 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = input().split())\nA, B = map(int,input().split())\nU = input()\nif S == U:\n print(A - 1, B)\nelse:\n print(A, B - 1)', 'S, T = input().split()\nA, B = map(int,input().split())\nU = input()\nif S == U:\n print(A - 1, B)\nelse:\n print(A, B - 1)'] | ['Runtime Error', 'Accepted'] | ['s838586167', 's775146660'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 119] |
p02777 | u920686190 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S = "red"\nT = "blue"\nA ,B = input().split()\nU = str(input())\nif(U == S):\n A = int(A) - 1\nelif(U==T):\n B = int(B) -1\nprint(A, B)', 'S, T = input().split()\nA ,B = input().split()\nU = str(input())\nif(U == S):\n A = int(A) - 1\nelif(U==T):\n B = int(B) -1\nprint(A, B)'] | ['Wrong Answer', 'Accepted'] | ['s392555090', 's866908974'] | [2940.0, 3060.0] | [17.0, 17.0] | [132, 134] |
p02777 | u921632705 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T = input().split()\nA,B = int(input().split())\nU =input()\n\nif S == U:\n \tprint(A-1,B)\nelse:\n print(A,B-1)\n ', 'S,T = input().split()\nA,B = int(input().split())\nU = input()\nif U == S:\n \tprint(A-1,B)\nelif U == T:\n print(A,B-1)\n ', 'S,T = input().split()\nA,B = int(input().split())\nU = input()\n\nif S == U:\n \tprint(A-1,B)\nelif T == U:\n print(A,B-1)', 'S,T = input().split()\nA,B = map(int,input().split())\nU = input()\nif U == S:\n \tprint(A-1,B)\nelif U == T:\n print(A,B-1)\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s038999000', 's221552735', 's749410127', 's406950594'] | [9040.0, 9032.0, 9048.0, 9096.0] | [23.0, 25.0, 25.0, 25.0] | [115, 122, 118, 126] |
p02777 | u923270446 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['n, k = map(int, input().split())\np = list(map(int, input().split()))\nl = [0] * (n + 1)\nans = []\nfor i in range(n):\n l[i + 1] = l[i] + (p[i] + 1) / 2\nfor i in range(n - k + 1):\n ans.append(l[i + k] - l[i])\nprint(max(ans))', 'n, k = map(int, input().split())\np = list(map(int, input().split()))\nl = [0] * n\nans = []\nl[0] = (p[0] + 1) / 2\nfor i in range(1, n):\n l[i] = l[i - 1] + (p[i] + 1) / 2\nfor i in range(n - k):\n ans.append(l[i + k] - l[i])\nprint(max(ans))', 'input1 = input().split()\ninput2 = list(map(int,input().split()))\nU = input()\nS = input1[0]\nT = input1[1]\nA = input2[0]\nB = input2[1]\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint(str(A) + " " + str(B))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s626724595', 's711198252', 's983410116'] | [3064.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [226, 241, 196] |
p02777 | u927807968 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T=input().split()\nA,B map(int, input().split())\nU = input()\nif S==U:\n print(A-1,B)\nelif T==U:\n print(A,B-1)', 'import str\nS,T=map(chr, input(),split())\nA,B map(int, input(),split())\nU = chr(input())\nif S==U:\n print(A-1 B)\nelif T==U:\n print(A B-1)', 'S,T=input(),split()\nA,B map(int, input(),split())\nU = input()\nif S==U:\n A-=1\nelif T==U:\n B-=1\nprint(A,B)', 'import str\nS,T=map(chr, input(),split())\nA,B map(int, input(),split())\nU = chr(input())\nif S==U:\n A-1\nelif T==U:\n B-1\nprint(A,B)', 'S, T = input().split()\nA, B= map(int, input().split())\nU = input()\nif S == U:\n print(A - 1, B)\nelif:\n print(A, B - 1)', 'S,T=map(chr, input(),split())\nA,B map(int, input(),split())\nU = chr(input())\nif S==U:\n A-=1\nelif T==U:\n B-=1\nprint(A,B)', 'S,T=map(chr, input(),split())\nA,B map(int, input(),split())\nU = chr(input())\nif S==U:\n A=A-1\nelif T==U:\n B=B-1\nprint(A,B)', 'S, T = input().split()\nA, B= map(int, input().split())\nU = input()\nif S == U:\n print(A - 1, B)\nelif T==U:\n print(A, B - 1)\nelse:', 'S,T=input().split()\nA,B map(int, input().split())\nU = input()\nif S==U:\n A-=1\nelif T==U:\n B-=1\nprint(A,B)', 'S, T = input().split()\nA, B= map(int, input().split())\nU = input()\nif S == U:\n A-=1\nelse:\n B-=1\nprint(A,B)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s000375900', 's098533047', 's159827101', 's282412582', 's412959849', 's523611762', 's703015977', 's829409847', 's849156150', 's913426920'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [111, 137, 106, 130, 123, 121, 123, 134, 106, 112] |
p02777 | u932864155 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = input().split()\nA,B = map(int,input().split())\nU = input()\nprint(A,B)\nif U == S:\n A -= 1\n print(A)\nelse:\n B -= 1\n print(B)\n ', 'import numpy as np\nN,K = map(int,input().split())\nP = list(map(int,input().split()))\ntotal = 0\nfor i in range(N-K+1):\n A = P[i:i+K]\n total = sum(A)\n if total>0:\n B = A\nnp.array(B)\nC = (B+np.array([1]))/np.array([2])\nprint(sum(C))\n', 'S, T = input().split()\nA,B = map(int,input().split())\nU = input()\nprint(A,B)\nif U == S:\n A -= 1\n print(A,B)\nelse:\n B -= 1\n print(A,B)\n ', 'S, T = input().split()\nA,B = map(int,input().split())\nU = input()\nif U == S:\n A -= 1\n print(A,B)\nelse:\n B -= 1\n print(A,B)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s191534586', 's305732627', 's350132205', 's710829185'] | [2940.0, 21408.0, 2940.0, 2940.0] | [17.0, 294.0, 17.0, 17.0] | [138, 236, 142, 126] |
p02777 | u934119021 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["from collections import defaultdict\nd = defaultdict(int)\ns, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nd[s] = a\nd[t] = b\nd[u] -= 1\nfor v in d.values():\n print(v, end=' ')", 's, t = map(str, input().split())\na, b = map(int, input().split())\nu = input()\nd = {}\nd[s] = a\nd[t] = b\nd[u] -= 1\nprint(d[s], d[t])'] | ['Wrong Answer', 'Accepted'] | ['s414486775', 's597552919'] | [3316.0, 3060.0] | [21.0, 17.0] | [203, 130] |
p02777 | u935984175 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["def solve():\n S, T, A, B, U = map(int, open(0).read().split())\n if S == U:\n print(A - 1, B)\n else:\n print(A, B - 1)\n\n\nif __name__ == '__main__':\n solve()\n", "def solve():\n S, T = map(str, input().split())\n A, B = map(int, input().split())\n U = input()\n if S == U:\n print(A - 1, B)\n else:\n print(A, B - 1)\n\n\nif __name__ == '__main__':\n solve()\n"] | ['Runtime Error', 'Accepted'] | ['s660708293', 's894376370'] | [2940.0, 2940.0] | [17.0, 17.0] | [180, 217] |
p02777 | u936735179 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["n = int(input())\na = list(map(int,input().split()))\na.sort()\nfor idx, i in enumerate(a[:-1]):\n if i == a[idx+1]:\n print('NO')\n break\nif idx == n - 2:\n print('YES')", 's,t = input().split()\na,b = list(map(int, input().split()))\nu = input()\n\nif u == s:\n a -= 1\nif u == t:\n b -= 1\nprint("{} {}".format(a,b))'] | ['Runtime Error', 'Accepted'] | ['s376581874', 's531002752'] | [3060.0, 3060.0] | [17.0, 17.0] | [183, 143] |
p02777 | u939633554 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["s, t= input().split(' ')\na, b = map(int,input().split(' '))\nu = input()\nprint(a-1) if u == s else print(b-1)", "s, t= input().split(' ')\na, b = map(int,input().split(' '))\nu = input()\nprint(a-1, b) if u == s else print(a, b-1)"] | ['Wrong Answer', 'Accepted'] | ['s038333106', 's511317151'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 114] |
p02777 | u945140822 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S: A -= 1\nelse: B -= 1\nprint(A)', 'S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S: A -= 1\nelse: B -= 1\nprint(A, 😎', 'S, T = input().split()\nA, B = map(int, input().split())\nU = input()\nif U == S: A -= 1\nelse: B -= 1\nprint(A,B)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s474204413', 's942326516', 's302197317'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [110, 115, 112] |
p02777 | u946433121 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['import sys\n\ndef main():\n\n \n\n s, t = input().split()\n a, b = map(int, input().split())\n u = input()\n\n if s == t:\n a -= 1\n else:\n b -= 1\n\n print(str(a) + " " + str(b))\n\nif __name__ == "__main__":\n main()\n', 'import sys\n\ndef main():\n\n \n\n s, t = input().split()\n a, b = map(int, input().split())\n u = input()\n\n if s == u:\n a -= 1\n else:\n b -= 1\n\n print(str(a) + " " + str(b))\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s566114732', 's048944662'] | [2940.0, 2940.0] | [18.0, 17.0] | [278, 278] |
p02777 | u947327691 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['N, K = map(int, input().split())\nnum = list(map(int, input().split()))\n \n\nexpect = []\nfor i in range(N):\n expect.append((1 + num[i]) / 2)\n \n\ncs = [0]\nfor i in range(N):\n cs.append(cs[i]+expect[i])\n\nmax = 0\nfor i in range(K, N+1): \n if max < cs[i] - cs[i-K]:\n max = cs[i] - cs[i - K]\nprint(max)', 's,t = map(str,input().split())\na,b = map(int,input().split())\nu=str(input())\n\nif s == u:\n a=a-1\nelse:\n b=b-1\n\nprint(a,b)'] | ['Runtime Error', 'Accepted'] | ['s596533474', 's904208321'] | [3064.0, 2940.0] | [17.0, 17.0] | [415, 126] |
p02777 | u948823191 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["S, T = input().split(' ')\nA, B = list(map(int, input().split(' ')))\nU = input()\nif U==S: return A-1,B\nif U==T: return A,B-1", "S, T = input().split(' ')\nA, B = list(map(int, input().split(' ')))\nU = input()\nif U==S: print(A-1,B)\nif U==T: print(A,B-1)"] | ['Runtime Error', 'Accepted'] | ['s213153481', 's610477722'] | [2940.0, 2940.0] | [20.0, 19.0] | [123, 123] |
p02777 | u951401193 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["n,m = input().split()\nr,b = map(int,input().split())\ni = input()\nif i == n:\n r = r -1\n print(r + ' ' + b)\nelse:\n b = b-1\n print(r + ' ' + b)", "n.m = input().split()\nr,b = map(int,input().split())\nt = input()\nif n == t:\n print(str(r-1) + ' ' + str(b))\nelse:\n print(str(r) + ' ' + str(b-1))\n", "n,m = input().split()\nr,b = map(int,input().split())\nt = input()\nif n == t:\n print(str(r-1) + ' ' + str(b))\nelse:\n print(str(r) + ' ' + str(b-1))\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s606728187', 's711520960', 's514205714'] | [3064.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [144, 148, 148] |
p02777 | u953274507 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['\ns,t = map(str,input().split())\na,b = map(int,input().split())\nu = input()\n\n\nif s == t:\n a = a - 1\nelse:\n b = b - 1\n\n\nprint("{} {}".format(a,b))\n', '\ns,t = map(str,input().split())\na,b = map(int,input().split())\nu = input()\n\n\nif s == u:\n a = a - 1\nelse:\n b = b - 1\n\n\nprint("{} {}".format(a,b))\n'] | ['Wrong Answer', 'Accepted'] | ['s823502519', 's615588650'] | [2940.0, 2940.0] | [17.0, 17.0] | [202, 202] |
p02777 | u955042909 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n \nif (S==U):\n print(A-1,B)\nelse if (T==U):\n print(A,B-1)\nelse:\n print(A,B)', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n\nif (S==U):\n print(A-1 B)\nelse:\n print(A B-1)', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n\nif (S==U):\n print(str(A-1) B)\nelse:\n print(A str(B-1))', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n \nif (S==U):\n print(A-1,B)\nelse if (T==U):\n print(A,B-1)', 'S, T= input().split()\nA, B= int(input().split())\nU= input().split()\n\nif (S==U):\n print(A-1 B)\nelse:\n print(A B-1)', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n \n\nif (S==U):\n \n print(A-1,B)\nelif (T==U):\n print(A,B-1)\nelse:\n print(A,B)', 'S,T=input().split()\nA,B=map(int, input().split())\nU=input().split()\nif(S==U):print(A-1,B)\nelse if(T==U):print(A,B-1)', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input().split()\n\nif (S==U):\n print(A-1,B)\nelse:\n print(A,B-1)', 'S, T= input().split()\nA, B= map(int, input().split())\nU= input()\nif (S == U):\n print(A-1,B)\nelif (T == U):\n print(A,B-1)\nelse:\n print(A,B)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s041473385', 's121182787', 's146765177', 's194500804', 's301165560', 's586031390', 's971290486', 's997880894', 's894838380'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [156, 124, 134, 135, 119, 159, 116, 124, 147] |
p02777 | u957098479 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = input().split()\nA, B = map(int,input().split)\nU = input()\n \nif U == S:\n print(A-1 , B)\nelse:\n print(A , B-1)', 'S, T = map(input().split())\nA, B = map(int,input().split)\nU = input()\n\nif S == U:\n print(A-1 " " B)\nelse:\n print(A " " B-1)\n', 'S, T = input().split()\nA, B = map(int,input().split)\nU = input()\n\nif S == U:\n print(A-1 " " B)\nelse:\n print(A " " B-1)\n', 'S, T, U = map(input().split())\nA, B = map(int,input().split)\n\nif S == U:\n print(S-1 " " T)\nelse:\n print(S " " T-1)\n', 'S, T = input().split()\nA, B = map(int, input().split)\nU = input()\n \nif S == U:\n print(A-1 , B)\nelse:\n print(A , B-1)', 'S, T = input().split()\nA, B = map(int,input().split)\nU = input()\n \nif S == U:\n print(A-1 , B)\nelse:\n print(A , B-1)', 'S, T = input().split()\nA, B = map(int,input().split())\nU = input()\n \nif S == U:\n print(A-1 , B)\nelse:\n print(A , B-1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s140614554', 's174451826', 's427220012', 's637731034', 's726266455', 's826927875', 's759388379'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [121, 130, 125, 121, 122, 121, 123] |
p02777 | u960637522 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = input(str)\nif S == U:\n print(A-1, end=" ")\n print(B)\nelse:\n print (A, end=" ")\n print(B-1)', 'S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = input(str)\nif S == U:\n print(A-1),\n print(B),\nelse:\n print(A),\n print(B-1),', 'S, T = map(str, input().split())\nA, B = map(int, input().split())\nU = str(input())\nif S == U:\n print(A-1, end=" ")\n print(B)\nelse:\n print (A, end=" ")\n print(B-1)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s030662147', 's150341668', 's451037215'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [164, 149, 166] |
p02777 | u961683878 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(500000)\n\ns, t = read().decode().split()\na, b = map(int, read().split())\nu = read().decode()\n\nif u == s:\n a -= 1\nelse:\n b -= 1\n\nprint(a, b)\n', "import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(500000)\n\ns, t = readline().decode('utf-8').split()\na, b = map(int, readline().split())\nu = read().decode('utf-8').rstrip()\n\nif u == s:\n a -= 1\nelse:\n b -= 1\n\nprint(a, b)\n"] | ['Runtime Error', 'Accepted'] | ['s104568103', 's881836366'] | [2940.0, 2940.0] | [17.0, 17.0] | [283, 314] |
p02777 | u962609087 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['def main():\n s,t = input().split()\n a,b = int(input().split())\n u = input()\n if s == u:\n a -= 1\n else:\n b -= 1\nmain()', 'def main():\n s,t = input().split()\n a,b = int(input().split())\n u = input()\n if s == u:\n a -= 1\n else:\n b -= 1\n print(a,b)\nmain()', 'def main():\n s,t = input().split()\n a,b = map(int,input().split())\n u = input()\n if s == u:\n a -= 1\n else:\n b -= 1\n print(a,b)\nmain()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s071991763', 's627284665', 's618060111'] | [8896.0, 8988.0, 9100.0] | [22.0, 21.0, 28.0] | [125, 137, 141] |
p02777 | u962718741 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["S,T=map(int,input().split())\nA,B=map(int,input().split())\nU=input()\nif U==S:\n A=A-1\nelse:\n B=B-1\nprint('{} {}'.format(A,B))\n", "S,T=input().split()\nA,B=map(int,input().split())\nU=input()\nif U==S:\n A=A-1\nelse:\n B=B-1\nprint('{} {}'.format(A,B))\n"] | ['Runtime Error', 'Accepted'] | ['s061118248', 's334859547'] | [2940.0, 2940.0] | [17.0, 17.0] | [126, 117] |
p02777 | u963944915 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T=map(str,input().split())\nA,B=map(int,input().split())\nU=input()\nif S==U:\n A-=1\nelse:\n B-=1\nprint(A<B)\n', 'S,T=map(str,input().split())\nA,B=map(int,input().split())\nU=input()\nif S==U:\n A-=1\nelse:\n B-=1\nprint(A,B)\n'] | ['Wrong Answer', 'Accepted'] | ['s007712674', 's144628298'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 108] |
p02777 | u964521959 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = map(input().split())\nA, B = map(int, input().split())\nU = input()\nans = 0\n\nif(S == U):\n ans = A - 1\n print(ans,B)\nelse:\n ans = B - 1\n print(A,ans)', 'S, T = map(input().split())\nA, B = map(int, input().split())\nU = input()\nans = 0\n\nif(S == U):\n ans = A - 1\n print(ans,B)\nelse:\n ans = B - 1\n print(A,ans)', 'S, T = map(str,input().split())\nA, B = map(int, input().split())\nU = input()\nans = 0\n\nif(S == U):\n ans = A - 1\n print(ans,B)\nelse:\n ans = B - 1\n print(A,ans)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s362265874', 's656117118', 's578054854'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [157, 157, 161] |
p02777 | u970598682 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T=map(int,input().split())\nA,B=map(int,input().split())\nU=int(input())\n\nif S==U:\n A-=1\nelse:\n B-=1\n\nprint(str(A)+" "+str(B))\n', 'S,T=input().split()\nA,B=map(int,input().split())\nU=input()\n\nif S==U:\n A-=1\nelse:\n B-=1\n\nprint(str(A)+" "+str(B))'] | ['Runtime Error', 'Accepted'] | ['s339118041', 's999898357'] | [9044.0, 9104.0] | [28.0, 24.0] | [133, 118] |
p02777 | u973055892 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["n, k = (int(x) for x in input().split())\np = list(int(x) for x in input().split())\n\nmax_val = 0\nfor i in range(0, len(p)-k+1):\n tmp = p[i:i+k]\n val = sum([sum([x for x in range(1, t+1)]) / t for t in tmp])\n\n if max_val < val:\n max_val = val\n\nprint('{:.12f}'.format(val))", "s, t = input().split()\na, b = (int(x) for x in input().split())\nu = input()\n\nif s == u:\n a -= 1\nelse:\n b -= 1\n\nprint('{} {}'.format(a, b))"] | ['Runtime Error', 'Accepted'] | ['s623192024', 's288869770'] | [3064.0, 3060.0] | [17.0, 18.0] | [276, 140] |
p02777 | u973108807 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["s,t = input().split()\na,b = map(int, input().split())\nu = input()\n\ndic = {s: a, t: b}\ndic[u] -= 1\nprint(dic[s] + ' ' + dic[t])", "s,t = input().split()\na,b = map(int, input().split())\nu = input()\n \ndic = {s: a, t: b}\ndic[u] -= 1\nprint(str(dic[s]) + ' ' + str(dic[t]))"] | ['Runtime Error', 'Accepted'] | ['s800422483', 's891866007'] | [2940.0, 2940.0] | [17.0, 17.0] | [126, 137] |
p02777 | u974935538 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S,T = map(int,input().split())\nA,B = map(int,input().split())\ns = input()\n\nif s == S:\n A -=1\nelse:\n B -=1\nprint(A,B)', 'N = int(input())\nA = list(map(int, input().split()))\nres = "YES"\nA.sort()\nfor i in range(len(A)):\n if i == 0:\n continue\n if A[i-1] == A[i]:\n res = "NO"\n break\n else:\n continue\nprint(res)\n', 'S,T = map(str,input().split())\nA,B = map(int,input().split())\ns = input()\n\nif s == S:\n A -=1\nelif s == T:\n B -=1\nprint(A,B)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s439900042', 's598454598', 's635088849'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [122, 224, 129] |
p02777 | u975485663 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = map(int, input().split())\nA, B = map(int, input().split())\nU int(input())\n\nif U == S:\n A -= 1\nif U == T:\n B -= 1\n \nprint(A, B)\n', 'S, T = input().split()\nA, B = map(int, input().split())\nU = input()\n \nif U == S:\n A -= 1\nif U == T:\n B -= 1\n\nprint(A, B)'] | ['Runtime Error', 'Accepted'] | ['s305326233', 's424067295'] | [2940.0, 2940.0] | [17.0, 17.0] | [137, 122] |
p02777 | u977141657 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s, t = map(str, input().split())\na. b = map(int, input().split())\nu = input()\n\nif s == u:\n print("{} {}".format(a-1, b))\nelse:\n print("{} {}".format(a, b-1))\n', 's, t = input().split()\na. b = map(int, input().split())\nu = input()\n\nif s == u:\n print(a-1 b)\nelse:\n print(a b-1)\n', 's, t = input().split()\na. b = map(int, input().split())\nu = input()\n\nif s == u:\n print("{} {}".format(a-1, b))\nelse:\n print("{} {}".format(a, b-1))\n', 's, t = input().split()\na, b = map(int, input().split())\nu = input()\n\nif s == u:\n print("{} {}".format(a-1, b))\nelse:\n print("{} {}".format(a, b-1))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s635340486', 's721996128', 's987983091', 's043723227'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [160, 116, 150, 150] |
p02777 | u977193988 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['s,t=map(str,input().spilt())\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(s-1,t)\nelse:\n print(s,t-1)', 's,t=map(str,input().spilt())\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(str(a-1),str(b))\nelse:\n print(str(a),str(b-1))', 's,t=map(str,input().spilt())\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(a-1,b)\nelse:\n print(a,b-1)', "s,t=map(str,input().split())\na,b=map(int,input().split())\nu=input()\nif u==s:\n print(str(a-1)+' '+str(b))\nelse:\n print(str(a)+' '+str(b-1))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s020383257', 's377620585', 's727855777', 's311199030'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [112, 132, 112, 140] |
p02777 | u987170100 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S, T = input().split()\nA, B = map(int, input().split())\nif S == input():\n A -=1\nelse:\n B -=1\nprint("{0}" "{1}".format(A, B))\n\n', 'S, T = input().split()\nA, B = map(int, input().split())\nif S == input():\n A -= 1\nelse:\n B -= 1\nprint("{0} {1}".format(A, B))\n'] | ['Wrong Answer', 'Accepted'] | ['s789216494', 's699143117'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 131] |
p02777 | u987637902 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['\n# ABC154\n#A Remaining balls\ns, t = map(input().split())\na, b = map(int, input().split())\nu = input()\nif s == u:\n a = a - 1\nelse:\n b = b -1\nprint(a, b)\n', '# ABC154\n#A Remaining balls\ns, t = map(str,input().split())\na, b = map(int, input().split())\nu = input()\nif s == u:\n a = a - 1\nelse:\n b = b -1\nprint(a, b)\n'] | ['Runtime Error', 'Accepted'] | ['s544293964', 's720854104'] | [9048.0, 9140.0] | [26.0, 28.0] | [158, 161] |
p02777 | u988191897 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['Moji = input().split()\nBall = input().split()\nTakahasi = input()\n\nif Moji == Takahasi:\n print(int(Ball[0])-1,int(Ball[1]))\nelse:\n print(int(Ball[0]),int(Ball[1])-1)', 'Moji = input().split()\nBall = input().split()\nTakahasi = input()\n\nif Moji[0] == Takahasi:\n print(int(Ball[0])-1,int(Ball[1]))\nelse:\n print(int(Ball[0]),int(Ball[1])-1)\n'] | ['Wrong Answer', 'Accepted'] | ['s555427407', 's323581143'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 170] |
p02777 | u989089752 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['S = input().split()\nA = list(map(int, input().split()))\nZ = input()\n\nif S[0] == Z:\n X = A[1]\n Y = A[0] - 1\nif S[1] == Z:\n X = A[0]\n Y = A[1]-1\n \nprint("{} {}".format(X, Y))', 'S = input().split()\nA = list(map(int, input().split()))\nZ = input()\n \nif S[0] == Z:\n X = A[0] - 1\n Y = A[1]\n print("{} {}".format(X, Y))\nif S[1] == Z:\n X = A[0]\n Y = A[1] - 1\n print("{} {}".format(X, Y))\n \n'] | ['Wrong Answer', 'Accepted'] | ['s838184860', 's840151898'] | [3060.0, 3060.0] | [18.0, 17.0] | [177, 213] |
p02777 | u993090205 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ["s,t = input().split()\nsn,tn = map(int,input().split())\nu = input()\n\nif s == u:\n print((sn-1) + ' '+ tn)\nelse:\n print(sn + ' ' + (tn-1))", "s,t = input().split()\nsn,tn = map(int,input().split())\nu = input()\n\nif s == u:\n\tprint((sn-1) ' '+ (tn))\nelse:\n\tprint(sn + '' + (tn-1))", "s,t = input().split()\nsn,tn = map(int,input().split())\nu = input()\n\nif s == u:\n print(str(sn-1) + ' '+ str(tn))\nelse:\n print(str(sn) + ' ' + str(tn-1))"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s184906136', 's301170706', 's004202724'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [142, 135, 158] |
p02777 | u999983491 | 2,000 | 1,048,576 | We have A balls with the string S written on each of them and B balls with the string T written on each of them. From these balls, Takahashi chooses one with the string U written on it and throws it away. Find the number of balls with the string S and balls with the string T that we have now. | ['[S, T] = [x for x in input().split()]\n[A, B] = [int(x) for x in input().split()]\nU = input()\n\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint([A,B])', "[S, T] = [x for x in input().split()]\n[A, B] = [int(x) for x in input().split()]\nU = input()\n\nif U == S:\n A -= 1\nelse:\n B -= 1\nprint(str(A)+' '+str(B))"] | ['Wrong Answer', 'Accepted'] | ['s117752456', 's979424479'] | [2940.0, 3060.0] | [17.0, 17.0] | [145, 157] |
p02778 | u001495709 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s = input()\nprint(x * len(s))', "s = input()\nprint('x' * len(s))"] | ['Runtime Error', 'Accepted'] | ['s292743754', 's181946909'] | [2940.0, 2940.0] | [17.0, 18.0] | [29, 31] |
p02778 | u024782094 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s=input()\nprint(x*len(s))', 's=input()\nprint("x"*len(s))'] | ['Runtime Error', 'Accepted'] | ['s780152316', 's866528215'] | [2940.0, 2940.0] | [18.0, 18.0] | [25, 27] |
p02778 | u026402121 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["S = input()\nans = ''.join(['x' for _ in range(len(S))])\nans", "S = input()\nans = ''.join(['x' for _ in range(len(S))])\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s699240842', 's259981935'] | [2940.0, 2940.0] | [17.0, 17.0] | [59, 66] |
p02778 | u027403702 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S = input()\nprint("s" * len(S))', 'S = input()\nprint("x" * len(S))'] | ['Wrong Answer', 'Accepted'] | ['s252012861', 's032006559'] | [2940.0, 2940.0] | [17.0, 17.0] | [31, 31] |
p02778 | u032955959 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s=input()\n\nl=len(s)\na=""\nfor i in range(l):\n a+"x"\n \n \nprint(a)', 's=input()\n\nl=len(s)\n\nfor i in range(l):\n s[i]="x"\n \n \nprint(s)\n', 's=input()\n\nl=len(s)\n\nfor i in range(l):\n s[i]=x\n \n \nprint(s)', 's=input()\na=""\n\nl=len(s)\n\nfor i in range (l):\n a=a+"x"\nprint(a)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s053070580', 's455845318', 's570260556', 's533828296'] | [9040.0, 9024.0, 9024.0, 8940.0] | [29.0, 28.0, 27.0, 26.0] | [66, 66, 63, 64] |
p02778 | u038132197 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['color = input().split()\nnum = input().split()\nchoice = input()\n\nfor i in range(2):\n if choice == color[i]:\n num[i] = int(num[i]) - 1 \n \nprint(num)', "s = input()\nc = ''\nfor i in range(len(s)):\n c += 'x'\n \n\nprint(c)"] | ['Runtime Error', 'Accepted'] | ['s102125442', 's108588582'] | [2940.0, 2940.0] | [17.0, 17.0] | [153, 66] |
p02778 | u038216098 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S=input()\nx=""\nfor i in range(len(S)):\n x+"x"\nprint(x)\n', 'S=input()\nx=""\nfor i in range(len(S)):\n x+="x"\nprint(x)'] | ['Wrong Answer', 'Accepted'] | ['s897206253', 's413218697'] | [8952.0, 8916.0] | [27.0, 27.0] | [56, 56] |
p02778 | u044964932 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['def main():\n s = input()\n n = len(s)\n ans = \'\'\n for _ in range(n):\n ans += "*"\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n s = input()\n n = len(s)\n ans = \'\'\n for _ in range(n):\n ans += "x"\n print(ans)\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s751534465', 's570632093'] | [2940.0, 2940.0] | [17.0, 17.0] | [153, 153] |
p02778 | u045953894 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\nl = []\n\nfor i in s:\n i = 'x'\n i += i*(len(s))\nprint(i)\n\n\n", "s = input()\n\nprint('x'*len(s))"] | ['Wrong Answer', 'Accepted'] | ['s701040983', 's413969728'] | [2940.0, 2940.0] | [19.0, 17.0] | [71, 30] |
p02778 | u046961553 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['def resolve_B():\n s = input()\n l = len(s)\n print("x" * l)\nresolve_B', 'def resolve_B():\n s = input()\n l = len(s)\n print("x" * l)\nresolve_B()'] | ['Wrong Answer', 'Accepted'] | ['s767842053', 's383643544'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 78] |
p02778 | u058592821 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\nprint('x'*s)", "s = input()\nprint('x'*len(s))"] | ['Runtime Error', 'Accepted'] | ['s814514079', 's991383407'] | [2940.0, 2940.0] | [17.0, 18.0] | [24, 29] |
p02778 | u071361440 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s=input()\nfor i in len(s):\n s[i]="x"\nprint(s)', 's=input()\nfor i in s:\n i="x"\nprint(s)', 's=len(input())\nprint("x"*s)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s584828067', 's858883517', 's884306939'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [48, 40, 27] |
p02778 | u080608919 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['#include <bits/stdc++.h>\nusing namespace std;\n\nint main() \n{\n string s;\n cin >> s;\n for (int i = 0; i < s.length(); i++) {\n cout << "x";\n }\n\n}', 's = input()\ni = len(s)\nprint("x"*i)'] | ['Runtime Error', 'Accepted'] | ['s496501736', 's218075795'] | [2940.0, 2940.0] | [17.0, 18.0] | [149, 35] |
p02778 | u084320347 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s = input()\nx = ""\nfor i in s\n\tx+="x"\nprint(x)', 's = input()\nx = ""\nfor i in s:\n\tx+="x"\nprint(x)\n'] | ['Runtime Error', 'Accepted'] | ['s360047098', 's805822896'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 48] |
p02778 | u085595890 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['def makex(S):\n m="S"\n n=len(m)\n print("x"*7)', "s=len(input())\n2 print('x' * len(s))", 'S=input()\nn=len(S)\nprint("x"*n)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s129290798', 's989807960', 's878516959'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [53, 36, 32] |
p02778 | u100277898 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S = input()\n\nprint("X"*len(S))', 'S = input()\n\nprint("x"*len(S))\n'] | ['Wrong Answer', 'Accepted'] | ['s863838818', 's323418634'] | [3064.0, 2940.0] | [17.0, 17.0] | [30, 31] |
p02778 | u101350975 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S = input()\nprint(x * len(S))\n', "S = input()\nprint('x' * len(S))\n"] | ['Runtime Error', 'Accepted'] | ['s021514757', 's061815898'] | [2940.0, 2940.0] | [18.0, 17.0] | [30, 32] |
p02778 | u111365362 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\nl = len(input())\nprint('x'*l)", "l = len(input())\nprint('x'*l)"] | ['Runtime Error', 'Accepted'] | ['s515442620', 's957540114'] | [2940.0, 3064.0] | [17.0, 18.0] | [41, 29] |
p02778 | u123579949 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['for i in range(len(str(input()))):\n print("x")', 'for i in range(len(str(input()))):\n print("x")', "import re\n\ns = str(input())\n\nprint(re.sub('[a-z]', 'x', s))"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s091389373', 's964851380', 's754108702'] | [9060.0, 9016.0, 9864.0] | [30.0, 26.0, 36.0] | [47, 47, 59] |
p02778 | u136079278 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["c = input()\n#print(len(c))\nprint('×'*len(c))", "c = input()\n#print(len(c))\nprint('x'*len(c))"] | ['Wrong Answer', 'Accepted'] | ['s181354856', 's264407020'] | [2940.0, 2940.0] | [19.0, 17.0] | [45, 44] |
p02778 | u144203608 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S=input()\nword="S"\nprint(word.replace("S","X")*len(S))', 'S=input()\nword="S"\nprint(word.replace("S","X")*len(S))', 'S=input()\nword="S"\nprint(word.replace("S","x")*len(S))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s417453410', 's819481480', 's546328589'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [54, 54, 54] |
p02778 | u167681750 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s = open(0).read()\nprint("x" * len(s))', 's = open(0).read()\nprint("x" * len(s))', 's = open(0).read().rstrip()\nprint("x" * len(s))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s018029648', 's332527490', 's314283837'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [38, 38, 47] |
p02778 | u170183831 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["print(''*len(input()))", "print('x'*len(input()))\n"] | ['Wrong Answer', 'Accepted'] | ['s243713856', 's373602188'] | [2940.0, 2940.0] | [18.0, 17.0] | [22, 24] |
p02778 | u175207279 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["# -*- coding: utf-8 -*-\ndef main():\n StringS = input();\n list = [];\n max = len(StringS);\n for i in range(max):\n print('x');\n\nmain()\n", "# -*- coding: utf-8 -*-\ndef main():\n StringS = input();\n list = '';\n max = len(StringS);\n for i in range(max):\n list = list + 'x';\n print(list);\n\nmain()\n"] | ['Wrong Answer', 'Accepted'] | ['s254012011', 's971869476'] | [2940.0, 2940.0] | [17.0, 17.0] | [151, 175] |
p02778 | u175590965 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s = input()\nprint(x*len(s))', "s = input()\nprint('x'*len(s))"] | ['Runtime Error', 'Accepted'] | ['s547474838', 's830647520'] | [9052.0, 9024.0] | [24.0, 29.0] | [27, 29] |
p02778 | u181668771 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S = input()\nl = len(S)\nans = "*" * l\nprint(ans)', 'S = input()\nprint("*"*len(S))', 'S = input()\nl = len(S)\nans = "x" * l\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s724144672', 's861289607', 's584918029'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [47, 29, 47] |
p02778 | u187546219 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["import re\nS = input()\nprint(len(S))\nT = 'x'\nfor i in range(len(S) - 1):\n T = T + 'x'\nprint(T)", "import re\nS = input()\nT = 'x'\nfor i in range(len(S) - 1):\n T = T + 'x'\nprint(T)"] | ['Wrong Answer', 'Accepted'] | ['s478923190', 's399992430'] | [3188.0, 3188.0] | [19.0, 20.0] | [94, 80] |
p02778 | u189089176 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['S = input()\nans = []\n\nfor i in range(1,len(S)):\n ans.append("x")\n\nprint("".join(ans))', 'S = input()\nS.replace()\n\nans = []\n\nfor i in range(1,len(s)):\n ans.append("x")\n\nprint("".join(ans))', 'S = input()\nS.replace()\n\nans = []\n\nfor i in range(len(s)):\n ans.append("x")\n\nprint("".join(ans))', 'S = input()\nans = []\n\nfor i in range(len(S)):\n ans.append("x")\n\nprint("".join(ans))'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s235924788', 's295413541', 's539586104', 's281581857'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [88, 101, 99, 86] |
p02778 | u189604332 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['def main():\n S=input()\n nums = len(S)\n print(type(nums))\n xs = \'\'\n for num in range(nums):\n xs += "x"\n print(xs)\nmain()', 'def main():\n S=input()\n nums = len(S)\n print(type(nums))\n xs = \'\'\n for num in range(nums-1):\n xs += "x"\n print(xs)\nmain()', 'def main():\n S=input()\n nums = len(S)\n xs = \'\'\n for num in range(nums):\n xs += "x"\n print(xs)\nmain()'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s341554241', 's752014619', 's981974139'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [128, 130, 108] |
p02778 | u193222738 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\nprint('×' * len(s))", "s = input()\nprint('×' * len(s), end='')", "s = input()\nprint('x' * len(s))"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s713291676', 's761581372', 's588659706'] | [3060.0, 2940.0, 3064.0] | [18.0, 18.0, 17.0] | [32, 40, 31] |
p02778 | u195355592 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['input1 = len(input())\nprint("X"*input1)', 'input1 = len(input())\nprint("x"*input1)\n'] | ['Wrong Answer', 'Accepted'] | ['s289211201', 's580674419'] | [2940.0, 2940.0] | [17.0, 17.0] | [39, 40] |
p02778 | u200228637 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\na = 'x'\nprint('a' * len(s))", "s = input()\n\na = x\n\nprint('x' * len(s))", "s = input()\n\na = x\n\nprint('a' * len(s))", "s = input()\nprint('x' * len(s)) "] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s046198011', 's175115541', 's371505433', 's474912890'] | [2940.0, 2940.0, 2940.0, 3068.0] | [17.0, 17.0, 17.0, 17.0] | [39, 39, 39, 32] |
p02778 | u201387466 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['a = list(input().split())\nn = len(a)\nfor i in range(n):\n a[i] = "x"\nprint(a)\n', 'a = list(input())\nn = len(a)\nfor i in range(n):\n a[i] = "x"\nl = "".join(a)\nprint(l)\n'] | ['Wrong Answer', 'Accepted'] | ['s652312565', 's244240607'] | [2940.0, 2940.0] | [17.0, 18.0] | [78, 85] |
p02778 | u212242633 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["# -*- coding: utf-8 -*-\ns=str(input())\nn=len(n)\nprint('x'*n)", "# -*- coding: utf-8 -*-\ns=str(input())\nn=len(s)\nprint('x'*n)"] | ['Runtime Error', 'Accepted'] | ['s620628313', 's236454892'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 60] |
p02778 | u223555291 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["a=input()\nfor i in range(len(a)):\n a[i]='x'\nprint(a)", "a=input()\nb=''\nfor i in range(len(a)):\n b+='x'\n\nprint(b)"] | ['Runtime Error', 'Accepted'] | ['s984883564', 's173965801'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 57] |
p02778 | u224007104 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['import re\nchar=input()\nre.sub(".", "x", char)', 'import re\nchar=input()\nprint(re.sub(".", "x", char))'] | ['Wrong Answer', 'Accepted'] | ['s324047824', 's631191594'] | [3188.0, 3188.0] | [19.0, 19.0] | [45, 52] |
p02778 | u228232845 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ["s = input()\nans = 'x' * len(s)\nprint(len(input()) * 'x')", "print(len(input()) * 'x')"] | ['Runtime Error', 'Accepted'] | ['s020227847', 's587703063'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 25] |
p02778 | u231038326 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['s = str(input())\nn = len(s)\nfor i in range(n):\n A=(s.replace(s[i],"x"))\n\nprint(A)', 's = str(input())\nn = len(s)\nprint("x"*n)'] | ['Wrong Answer', 'Accepted'] | ['s365247228', 's849531063'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 40] |
p02778 | u231252729 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['u = input()\nfor i in len(u):\n u[i]="x"\nprint(u)', 'u = input()\nfor i in u.length:\n u[i]="x"\nprint(u)', 'u = input()\nfor i in (len(u)-1):\n u[i]="x"\nprint(u)', 't=input()\nu=list(t)\nfor i in range(len(u)):\n u[i]="x"\n i+=1\nt=\'\'.join(u)\nprint (t)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s577556409', 's691587776', 's713989888', 's299329090'] | [2940.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 18.0, 18.0] | [50, 52, 54, 88] |
p02778 | u240292623 | 2,000 | 1,048,576 | Given is a string S. Replace every character in S with `x` and print the result. | ['a,b = map(str,input().split())\nc,d = map(int,input().split())\nn = input()\nif n == a:\n print(str(c-1)+" "+str(d))\nelse:\n print(str(c) + " " + str(d-1))', 's = input()\nm = ""\nfor i in s:\n m = m + i.replace(i, \'x\')\nprint(m)'] | ['Runtime Error', 'Accepted'] | ['s800681255', 's968507052'] | [3060.0, 2940.0] | [18.0, 17.0] | [156, 69] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.