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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02681 | u002459665 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\n\nif S == T[::-1]:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nif S == T[::-1]\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nif S == T[::-1]:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nans = True\nfor i in ... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s357610506', 's877237120', 's980129186', 's900043582'] | [9028.0, 9008.0, 9080.0, 9084.0] | [21.0, 20.0, 20.0, 24.0] | [80, 79, 80, 148] |
p02681 | u005517181 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n=input()\nk=input()\ny=len(k)\ns=k[:y]\nif len(n)==y-1 and s==n:\n print("Yes")\nelse:\n print("No")', 'n=input()\nk=input()\ny=len(n)\ns=k[:y]\nif len(k)==y+1 and s==n:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s299376633', 's068351715'] | [9100.0, 9040.0] | [19.0, 23.0] | [100, 100] |
p02681 | u005960309 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\n\nif (T[:len(S)] == S) and (len(T) = len(S) + 1):\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nif (T[:len(S)] == S) and (len(T) == len(S) + 1):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s527901909', 's988415482'] | [8956.0, 9100.0] | [22.0, 24.0] | [111, 112] |
p02681 | u006738234 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = list(input().split())\nt = list(input().split())\ndel t[-1]\n\nif s == t:\n print("Yes")\nelse:\n print("No")', 's = list(input())\nt = list(input())\ndel t[-1]\n\nif s == t:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s814033105', 's239914167'] | [9036.0, 9048.0] | [23.0, 22.0] | [112, 96] |
p02681 | u008022357 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\n\nif s[:-1] == t:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\n\nif s in t and len(s) = len(t) +1:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\n\nif s in t and t = s + 1:\n print("Yes")\nelse:\n print("No")\n', 's = input().trim()\nt ... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s303344488', 's586929632', 's827683640', 's903190091', 's490654132'] | [8936.0, 8784.0, 9012.0, 9100.0, 9036.0] | [22.0, 25.0, 23.0, 24.0, 21.0] | [79, 97, 89, 115, 80] |
p02681 | u010384197 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['=input()\nt=input()\nfor i in range(0,len(s)):\n if(s[i]!=t[i]):\n break\nif(i==len(s)):\n if(len(s)==(len(t)-1)):\n print("Yes")\nelse:\n ("No")', 's=input()\nt=input()\nfor i in range(0,len(s)):\n if(s[i]!=t[i]):\n break\nif(i==len(s)):\n if(len(s)==(len(t)-1)):\n print("Yes... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s478512052', 's585176411', 's629670570'] | [9008.0, 9000.0, 9056.0] | [20.0, 24.0, 21.0] | [158, 164, 197] |
p02681 | u010566167 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\n\nif S == T[:len(T)-1]:\n print("YES")\n \nelse:\n print("NO")', 'S = input()\nT = input()\n\nif S == T[:len(T)-1]:\n print("Yes")\n \nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s742122160', 's269014217'] | [9100.0, 9088.0] | [21.0, 24.0] | [84, 84] |
p02681 | u010870870 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['if S[0:(len(S))] == T[0:(len(S))]:\n print("Yes")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\nif S[0:(len(S))] == T[0:(len(S))]:\n print("Yes")\nelse:\n print("No") \n'] | ['Runtime Error', 'Accepted'] | ['s044187462', 's704562370'] | [9016.0, 9092.0] | [23.0, 24.0] | [74, 100] |
p02681 | u014958112 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['A,B,C,K = map(int, input().split())\n\nA = [1]*A\nB = [0]*B\nC = [-1]*C\n\nall_data = A+B+C\n\nprint(sum(all_data[:K]))', 'A,B,C,K = map(int, input().split())\n\nA = [1]*A\nB = [0]*B\nC = [-1]*C\n\nall_data = A+B+C\n\nprint(sum(all_data[:K]))', 'S = input()\nT = input()\n\nif S==T[:-1] and len(S)+1==len(T):\n prin... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s893336145', 's970646472', 's114198332'] | [9144.0, 9176.0, 9024.0] | [20.0, 23.0, 24.0] | [111, 111, 98] |
p02681 | u016572066 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["import itertools\nimport math\nfrom collections import defaultdict\n\ndef input_ints():\n return list(map(int, input().split()))\n\ndef solve():\n s = input()\n t = input()\n print('Yes' if s[:len(t)] == t else 'No')\n\nif __name__ == '__main__':\n solve()\n", "import itertools\nimport math\nfrom colle... | ['Wrong Answer', 'Accepted'] | ['s653872921', 's245055647'] | [9416.0, 9364.0] | [22.0, 25.0] | [259, 259] |
p02681 | u019075898 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['flag = True\ns = [input() for i in range(2)]\nif (len(s[0]) > 10 or len(s[0]) < 1) or (len(s[0]) + 1 != len(s[1])):\n flag = False\nelse:\n for j in range(len(s[0])):\n if not s[0][j] == s[1][j]:\n flag = False\nif flag:\n print("yes")', 's = [input() for i in range(2)]\nif (len(s[0]) > 10 ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s156615345', 's856200430', 's088918860'] | [9068.0, 9064.0, 9072.0] | [21.0, 26.0, 20.0] | [253, 245, 275] |
p02681 | u020604402 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nif t == s[:-1] :\n print("Yes")\nelse:\n print("No")\n', 's = input()\nt = input()\nif s ==t[:-1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s999934737', 's764913137'] | [9024.0, 9088.0] | [24.0, 20.0] | [80, 78] |
p02681 | u021387650 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a, b, c, k = map(int, input().split())\n \nif (a >= k):\n print(k)\nelif ((a + b) >= k):\n print(a)\nelse:\n max_num = a - c\n print(max_num', 'a, b, c, k = map(int, input().split())\n\nif (a >= k):\n print(k)\nelif ((a + b) >= k):\n print(a)\nelse:\n max_num = a - (k - a - b)\n print(max_num)... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s075972572', 's364659748', 's678565516', 's763561666'] | [8972.0, 9172.0, 9096.0, 8904.0] | [22.0, 24.0, 21.0, 25.0] | [144, 154, 74, 74] |
p02681 | u021849254 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a=input()\na=a.split()\n\nx=str(a[0])\ny=str(a[1])\n\ny=y[:-1]\n\nif x==y:\n print("Yes")\nelse:\n print("No")', 'a=input()\na=a.split()\n\nx=str(a[0])\ny=str(a[1])\n\ny=txt[:-1]\n\nif x=y:\n print("Yes")\nelse:\n print("No")', 'x=input()\nb=input()\n\ny=b[:-1]\n\nif x==y:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s080843622', 's910792049', 's303920240'] | [8912.0, 9020.0, 9044.0] | [25.0, 25.0, 30.0] | [101, 102, 74] |
p02681 | u021906447 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['N, M, X = map(int, input().split())\n\nnums = []\n\nfor i in range(N):\n a = list(map(int,input().split()))\n nums.append(a)\n\nans = 10000000000\n\n\nfor i in range(2**N):\n\n money = 0\n skill_point = [0]*M\n goal = [0]*M\n buy = []\n \n for k in range(N):\n if i>>k & 1:\n ... | ['Runtime Error', 'Accepted'] | ['s234873191', 's949580442'] | [9176.0, 9104.0] | [26.0, 23.0] | [637, 115] |
p02681 | u022345222 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\n\nif s.startswith(t):\n print("Yes")\nelse:\n print("No")\n', 's = input()\nt = input()\n\nif t.startswith(s):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s664607653', 's033131338'] | [9092.0, 8964.0] | [23.0, 21.0] | [80, 80] |
p02681 | u025363805 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = print()\nif str(T) == str(S) + 1\n input(Yes)\nelse input(No)', 's = input()\nt = input()\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s929215877', 's803582867'] | [9012.0, 8924.0] | [18.0, 24.0] | [62, 78] |
p02681 | u026643077 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s=str(input())\nt=str(input())\nnum=0\n\nfor i in range(len(s)):\n if t[i] == s[i]:\n num += 1\n\nif num == len(s):\n print("yes")\n \nelse:\n print("no")', 's=str(input())\nt=str(input())\nnum=0\n\nif s == t[:-1]:\n print("yes")\nelse:\n print("no")', 's=str(input())\nt=str(input())\n\nif s == t[:-1]:\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s340851344', 's782366673', 's779105037'] | [9000.0, 8968.0, 9012.0] | [25.0, 27.0, 27.0] | [149, 87, 81] |
p02681 | u031097017 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s = input()\nn = input()\n\nprint('YES' if s == n[:-1] else 'NO')", "s = input()\nn = input()\n\nprint('Yes' if s == n[:-1] else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s716501926', 's901823824'] | [9092.0, 9088.0] | [22.0, 22.0] | [62, 62] |
p02681 | u034317028 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nY = input()\nif Y = S[:+1]:\n print("Yes")\n else:\n print("No")', 's = input()\nt = input()\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s934316710', 's135465314'] | [8952.0, 8964.0] | [19.0, 23.0] | [77, 78] |
p02681 | u036914910 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\nif S[:-1] == T :\n print('Yes')\nelse :\n print('No')", "S = input()\nT = input()\nif S[:len(S)] == T :\n print('Yes')\nelse :\n print('No')\n", "S = input()\nT = input()\nif T[:len(S)] == S :\n print('Yes')\nelse :\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s701763871', 's964124244', 's419965075'] | [9040.0, 9088.0, 9100.0] | [22.0, 23.0, 23.0] | [84, 85, 88] |
p02681 | u038216098 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S=input()\nT=input()\nif(T[0:len(S)-1]==S):\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nT.pop()\nif(T==S):\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nif(T[0:len(S)-1]==S):\n if(len(S)==len(T)-1):\n \tprint("Yes")\n else:\n print("No")\nelse:\n print("No")', 'S=input()\nT=... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s536056668', 's687779604', 's972750834', 's973244899', 's690284423'] | [9108.0, 9004.0, 8916.0, 9096.0, 9088.0] | [24.0, 21.0, 23.0, 23.0, 20.0] | [76, 72, 125, 80, 69] |
p02681 | u038685094 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S=input()\nT=input()\n\nif S in T\n\tprint('Yes')\n else\n \tprint('No')\n\n", "S=input()\nT=input()\n\nif S in T:\n print('Yes')\n else:\n print('No')", "S,T=input().split()\nflag=0\n\nS_length=len(S)\nfor num in range(S_length):\n if S[num]!=T[num]:\n flag=-1\n\nif flag==0:\n print('Yes')\n else:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s027271930', 's702502990', 's925344217', 's205769487'] | [8944.0, 8688.0, 8968.0, 8964.0] | [22.0, 19.0, 20.0, 21.0] | [68, 70, 156, 154] |
p02681 | u040642458 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s,t = input()\nif t[:-1]==s:\n print("Yes")\nelse:\n print("No")\n', 's,t = input()\nif t[:-1]=s:\n print("Yes")\nelse:\n print("No")', 's= input()\nt = input()\nif t[:-1]==s:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s116776662', 's252608137', 's547160433'] | [9080.0, 8832.0, 8952.0] | [56.0, 24.0, 50.0] | [63, 61, 72] |
p02681 | u049182844 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\nprint(T[0:-1])\nif T[0:-1] == S:\n if len(T) == len(S)+1:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "S = input()\nT = input()\nif T[0:-1] == S:\n if len(T) == len(S)+1:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s023957550', 's092143946'] | [9052.0, 9044.0] | [23.0, 21.0] | [141, 126] |
p02681 | u049191820 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s=input()\nt=input()\nprint(t[:-2])\nif s==t[:-1]: print('Yes')\nelse : print('No')", "a=input()\nb=input()\nif a==b[:-1]: print('Yes')\nelse : print('No')"] | ['Wrong Answer', 'Accepted'] | ['s137147867', 's360300525'] | [9016.0, 8964.0] | [24.0, 19.0] | [79, 65] |
p02681 | u050007119 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\nS = list(S)\nT = list(T)\nl = len(S)\nif S == T[:-1] and l<=10 and l>=1 and S.islower():\n print(True)\nelse:\n print(False)', 'S = input()\nT = input()\nl = len(S)\nif S == T[:-1] and l<=10 and l>=1 and S.islower():\n print(True)\nelse:\n print(False)', 'S = input()\nT = input()... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s043175642', 's156933185', 's890070562', 's728666711'] | [8976.0, 8980.0, 9116.0, 9092.0] | [20.0, 24.0, 24.0, 24.0] | [148, 124, 102, 124] |
p02681 | u052244548 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['A=list(map(int,input().split()))\nans = 0\nif A[0] >= A[3]:\n ans = A[3]\nelse:\n A[3] = A[3]-A[0]\n ans = A[0]\n A[3] = A[3] -A[1]\n if A[3] > 0:\n ans = ans - A[3]\nprint(ans)', "s=input()\nt=input()\nif len(s)+1 == len(t) and t.startswith(s):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s770203391', 's752425400'] | [9188.0, 9036.0] | [24.0, 22.0] | [189, 101] |
p02681 | u052833850 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s=input()\nt=input()\n\nif s==t[0:-1]:\n print("YES")\nelse:\n print("NO")\n', 's=input()\nt=input()\n\nif s==t[0:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s895683341', 's942291994'] | [9024.0, 8964.0] | [21.0, 19.0] | [75, 74] |
p02681 | u052838115 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S=input()\nT=input()\nif T.startswith(S):\n if len(T)==len(S)+1:\n print('YES')\nelse:\n print('NO')", "S=input()\nT=input()\nif T.startswith(S):\n if len(T)==len(S)+1:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s832451519', 's236526200'] | [8928.0, 8972.0] | [21.0, 22.0] | [107, 107] |
p02681 | u057362336 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s=input()\nt=input()\nif s==t[::1]:\n print("Yes")\nelse:\n print("No")', 's=input()\nt=input()\nif s==t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s572065252', 's825485883'] | [8776.0, 9072.0] | [21.0, 21.0] | [68, 72] |
p02681 | u057942294 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\n\nT.pop(len(T) - 1)\n\nif S == T:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n \nT.pop(-1)\n \nif S == T:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n \nif S == T[:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s017918039', 's308635626', 's624084323'] | [9036.0, 8972.0, 8936.0] | [21.0, 24.0, 22.0] | [89, 91, 80] |
p02681 | u058264533 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['\nimport numpy as np\nimport math\nfrom collections import Counter\n\ns = input()\nt = input()\n\nif s == t[-1]:\n print("Yes")\nelse:\n print("No")', '\nimport numpy as np\nimport math\nfrom collections import Counter\n\ns = input()\nt = input()\n\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s991391959', 's988983813'] | [26964.0, 27136.0] | [106.0, 113.0] | [143, 144] |
p02681 | u060012100 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\nif T not it S:\n print("No")\nelse:\n print("Yes")', 'S = input()\nT = input()\nif (T == S[:-1]):\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif (T = S+1):\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif (T[:-1] == S):\n print("Yes")\nelse:\n ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s196608183', 's502255745', 's600410281', 's180931120'] | [9012.0, 9100.0, 9008.0, 9040.0] | [22.0, 22.0, 24.0, 22.0] | [73, 76, 72, 76] |
p02681 | u065866743 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a=input()\nb=input()\n\ndef fn(a,b):\n\tif len(a)+1!=len(b):\n\t\treturn 0\n\telse:\n\t\tfor i in zip(a,b[:-1]):\n\t\t\tif i[0]!=i[1]:\n\t\t\t\treturn 0\n\treturn 1\nprint(fn(a,b))', 'a=input()\nb=input()\n\ndef fn(a,b):\n\tif len(a)+1!=len(b):\n\t\treturn 0\n\telse:\n\t\tfor i in zip(a,b[:-1]):\n\t\t\tif i[0]!=i[1]:... | ['Wrong Answer', 'Accepted'] | ['s819496645', 's760927868'] | [9052.0, 8984.0] | [23.0, 21.0] | [155, 188] |
p02681 | u067986264 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a, b, c, k = map(int, input().split())\nans = 0\nif k <= a:\n print(k)\nelse:\n k -= a\n ans += a\n if k <= b:\n print(ans)\n else:\n k -= b\n ans += -1 * k\n print(ans)\n', 's = input()\nt = input()\nn = len(s)\na = [i for i in t]\nif s == "".join(a[:n]):\n print("Yes")\... | ['Runtime Error', 'Accepted'] | ['s055785895', 's655864280'] | [9176.0, 8968.0] | [23.0, 25.0] | [201, 116] |
p02681 | u068142202 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nif s == t[-1]:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nif s == t[:len(s)]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s553424706', 's578507224'] | [9100.0, 9104.0] | [23.0, 19.0] | [73, 78] |
p02681 | u068666298 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S=input()\nT=input()\n\na=1\nif len(T)==len(S)+1:\n for i in range(len(S)):\n if S[i]==T[i]:\n if a==0:\n break\n a=1\n else:\n a=0\n print('No')\n break\nelse:\n print('No')", "S=input()\nT=input()\n \na=1\nif len(T)==len(S)+1:... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s274506325', 's518075615', 's865292865', 's454670160'] | [9120.0, 9164.0, 9124.0, 9112.0] | [21.0, 23.0, 20.0, 20.0] | [249, 542, 258, 284] |
p02681 | u068844030 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s, t = input().split()\nprint("Yes" if s == t[:-1] else "No")\n', 's, t = input().split()\nprint("Yes" if s == t[:-1] else "No")\n', 's = input()\nt = input()\nprint("Yes" if s == t[:-1] else "No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s012272394', 's074309875', 's849017797'] | [9088.0, 8932.0, 9052.0] | [22.0, 22.0, 22.0] | [61, 61, 62] |
p02681 | u069273180 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S=input()\nT=input()\nS = S[0:-1]\n\nif S == T:\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nT = T[0:-1]\n\nif S == T:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s611178753', 's982060851'] | [9072.0, 9120.0] | [21.0, 23.0] | [78, 79] |
p02681 | u072717685 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["def main():\n s = input()\n t = input()\n lens = len(s)\n te = t[:lens]\n if s == te:\n print('Yes')\n else:\n print('No')\n", "def main():\n s = input()\n t = input()\n lens = len(s)\n te = t[:lens]\n if s == te:\n print('Yes')\n else:\n print('No')\nif... | ['Wrong Answer', 'Accepted'] | ['s811069629', 's614118829'] | [9084.0, 9036.0] | [21.0, 22.0] | [147, 185] |
p02681 | u075595666 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["import numpy as np\nn,m,x = map(int,input().split())\nc = []\nfor i in range(n):\n a = [int(i) for i in input().split()]\n c.append(a)\n \nc = np.array(c)\nans = float('inf')\nfor i in range(1,2**n):\n chk = [0]*m\n cost = 0\n for j in range(n):\n if (i>>j)&1 == 1:\n cost += c[j][0]\n chk += c[j][1... | ['Runtime Error', 'Accepted'] | ['s164445690', 's973238850'] | [27140.0, 9120.0] | [111.0, 22.0] | [399, 80] |
p02681 | u076555346 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input(">>")\nT = input(">>")\n\nif (len(T) - len(S) == 1):\n print("Yes")\nelse:\n printf("No")', 'S = input(">>")\nT = input(">>")\n \na = 0\nflag1 = False\nflag2 = False\n\nif (len(T) - len(S) == 1):\n flag1 = True\n\nif (S == T[:-1]):\n flag2 = True\n\nif (flag1 and flag2):\n print("Yes")\nelse:... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s156530171', 's352107514', 's384114723', 's072120568'] | [9100.0, 9048.0, 9096.0, 9052.0] | [23.0, 22.0, 23.0, 20.0] | [99, 211, 98, 201] |
p02681 | u077291787 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['# A - Registration\ndef main():\n S, T = open(0).read().split()\n print("Yes" if T[:-1] == S else "No")\n print(T[:-1])\n\n\nif __name__ == "__main__":\n main()\n', 'pass', '# A - Registration\ndef main():\n S, T = input().rstrip().split()\n print("Yes" if T[:-1] == S else "No")\n\n\nif __name__ == ... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s155541145', 's232922745', 's252147911', 's408863353', 's823682241', 's258051636'] | [9040.0, 8952.0, 8940.0, 9172.0, 9040.0, 9032.0] | [23.0, 21.0, 20.0, 23.0, 24.0, 22.0] | [165, 4, 149, 157, 132, 147] |
p02681 | u078349616 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['from itertools import combinations\nfrom collections import deque\n\nN, M, X = map(int, input().split())\nCA = [list(map(int, input().split())) for _ in range(N)]\n\nrow = [i for i in range(1, N+1)]\nans = float("INF")\nfor i in range(1, N):\n for v in combinations(row, i):\n q = deque(v)\n cost = 0\n Asum ... | ['Runtime Error', 'Accepted'] | ['s851356611', 's714649951'] | [9476.0, 9096.0] | [25.0, 23.0] | [607, 78] |
p02681 | u079827881 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\n\nt = t.rstrip(t[len(t)-1])\n\nif(s == t):\n print("yes")\nelse:\n print("no")\n', 's = input()\nt = input()\n\n\nprint(t[:-1])\nif(s == t[:-1]):\n print("Yes")\nelse:\n print("No")\n', 's = input()\nt = input()\n\nif(s == t[:-1]):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s080962029', 's096732752', 's876384428'] | [9028.0, 9036.0, 9096.0] | [23.0, 23.0, 21.0] | [103, 96, 81] |
p02681 | u080685822 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nif s = t[:-1]:\n\tprint("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nif s == t[:-1]:\n\tprint("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s584426611', 's835052885'] | [8924.0, 8864.0] | [23.0, 20.0] | [74, 76] |
p02681 | u082978753 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["import re\nS = input()\nT = input()\ndif = re.sub(S, '', T)\nif len(dif) == 0:\n ans = 'Yes'\nelse :\n ans = 'No'\nprint(ans)", "\nS = input()\nT = input()\n\nif (T[:-1] == S)&(len(T)-len(S)==1):\n ans = 'Yes'\nelse :\n ans = 'No'\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s700511535', 's801564216'] | [9876.0, 9072.0] | [28.0, 21.0] | [123, 111] |
p02681 | u083874202 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\n\nchk = S + S[-1]\n\nif chk == T:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nlength = len(S)\nchk = S[0:length]\n\nZ = T[0:length]\n\nif chk == Z:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s568171308', 's915111121'] | [9028.0, 9104.0] | [21.0, 21.0] | [93, 128] |
p02681 | u084865106 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["from sys import stdin\n\ndef main():\n plus, minus = [], []\n readline = stdin.readline\n n = int(readline())\n for _ in range(n):\n s = readline().rstrip()\n if 2 * s.count('(') - len(s) > 0:\n plus.append(s)\n else:\n minus.append(s)\n plus.sort(key = lambda... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s134774356', 's433485447', 's827255691'] | [9220.0, 9188.0, 9136.0] | [20.0, 23.0, 20.0] | [626, 676, 413] |
p02681 | u085530099 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a', "s = input()\nt = input()\nif t[:len(s)] == s:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s002472241', 's510742349'] | [9084.0, 9012.0] | [20.0, 20.0] | [1, 78] |
p02681 | u086313715 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nif s == t[0:-2] :\n print("YES")\nelse:\n print("NO")', 's = input()\nt = input()\nif s == t[:-1] :\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s727677800', 's466497304'] | [8972.0, 9096.0] | [23.0, 20.0] | [76, 79] |
p02681 | u086624329 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s=input()\nt=input()\n\nif t[-2]==s:\n print('Yes')\n \nelse:\n print('No')", "s=input()\nt=input()\n\n\nif t[:-1]==s:\n print('Yes')\n \nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s408890305', 's898599652'] | [9092.0, 9092.0] | [23.0, 22.0] | [77, 79] |
p02681 | u087118202 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s=input()\nt=input()\n\nt=t[:-2]\nif s == t:\n print('Yes')\nelse:\n print('No')", "s=input()\nt=input()\n\nt=t[:-1]\nif s == t:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s809546500', 's008314733'] | [8832.0, 9076.0] | [26.0, 28.0] | [75, 75] |
p02681 | u087699521 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n, k = input().split()\nn = int(n)\nk = int(k)\n\na = list(map(int,input().split()))\n\nloop = False\ncount = 0\nvisited = []\ni = 1\nwhile(count != k):\n\tif i in visited: break\n\tvisited.append(i)\n\ti = a[i-1]\n\tcount += 1\nprint(visited)\nif(count != k):\n\titr = k%count\n\tprint(visited[itr])\n\t# count = 0\n... | ['Runtime Error', 'Accepted'] | ['s530725798', 's114329615'] | [9136.0, 9044.0] | [21.0, 23.0] | [412, 132] |
p02681 | u090361088 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\nif S[:len(S)-1] == T[:len(T)-1]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif S == T[:len(T)-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s993790400', 's053133303'] | [9004.0, 9096.0] | [24.0, 30.0] | [95, 84] |
p02681 | u090406054 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s=list(input())\nt=list(input())\nif s[0:-1]==t[0:-2] and len(s)+1==len(t)\u3000and t[-1].islower()==True:\n print('Yes')\n \nelse:\n print('No')\n\n", "import copy\ns=list(input())\nt=list(input())\n\nif len(s)==len(t)-1 and t[:len(s)]==s:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s660124056', 's043441424'] | [8960.0, 9152.0] | [25.0, 28.0] | [141, 119] |
p02681 | u095384238 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\nif T[:-1]==S:\n print("YES")\nelse:\n print("NO")', 'S = input()\nT = input()\nflag = S.isalpha() * T.isalpha() * S.islower() * T.islower()\n\nif flag==True and T[:-1]==S:\n print("YES")\nelse:\n print("NO")', 'S, T = list(input().split())\nif T[:-1]==S:\n print("YES")\nelse:\... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s010966687', 's127848149', 's957138868', 's506210344'] | [9096.0, 9096.0, 9036.0, 9052.0] | [21.0, 22.0, 23.0, 25.0] | [76, 153, 81, 92] |
p02681 | u095844416 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['a,b,c,k=map(int,input().split())\nB=0\nif a+b>=k:\n\tprint(a+(k-a)*b)\nelse:\n\tprint((a+B)-1*(k-a-b))', "a=str(input())\nb=str(input())\nif a==b[0:-1]:\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Runtime Error', 'Accepted'] | ['s097509174', 's188972740'] | [9164.0, 8988.0] | [24.0, 22.0] | [95, 77] |
p02681 | u099300899 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['# -*- coding: utf-8 -*-\n\n\nS = input()\nT = input()\n\njudge = "NO"\n\nif (len(S) + 1 == len(T)):\n if (T.startswith(S)):\n judge = "YES"\n\nprint("{}".format(judge))', '# -*- coding: utf-8 -*-\n\n\nS = input()\nT = input()\n\njudge = "NO"\n\nif T.startswith(S):\n judge = "YES"\n\nprint("{}".format(jud... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s723424869', 's936486401', 's759973801'] | [9100.0, 8964.0, 9040.0] | [19.0, 24.0, 19.0] | [186, 149, 186] |
p02681 | u105209986 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S=input()\nT=input()\nif T in S and len(T)==len(S)+1 and S[0]==T[0]:\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nif S in T and len(T)==len(S)+1 and S[0]==T[0]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s100003440', 's743934903'] | [8780.0, 9040.0] | [23.0, 21.0] | [105, 105] |
p02681 | u106095117 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S, T = input().split()\n\nif S == T[0:-1]:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nif S == T[0:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s822804484', 's881461116'] | [9104.0, 9012.0] | [26.0, 21.0] | [79, 80] |
p02681 | u106284621 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = input()\nT = input()\nif S = T[:-1]:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\nif S == T[-1]:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\nif S == T[:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s163012412', 's199876215', 's604288059'] | [8912.0, 9096.0, 9040.0] | [24.0, 21.0, 21.0] | [77, 77, 78] |
p02681 | u108918063 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S=input()\nT=input()\nif T[:-1]==S:\n print('YES')\nelse:\n print('NO')", "S=input()\nT=input()\nif T[:-1]==S:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s059183047', 's950666822'] | [9004.0, 8956.0] | [21.0, 21.0] | [68, 68] |
p02681 | u110199424 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["import numpy as np\n\nN, M, X = map(int, input().split())\n\ndata = [list(map(int, input().split())) for _ in range(N)]\nINF = float('inf')\n\ndata_all = []\nc_min = INF\n\nfor i in range(2**N):\n data_tmp = [0]*M\n c = 0\n for j in range(N):\n if((i>>j) & 1):\n for k in range(M):\n ... | ['Runtime Error', 'Accepted'] | ['s488039470', 's227006450'] | [27080.0, 9096.0] | [112.0, 23.0] | [483, 97] |
p02681 | u112401982 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\n\nif len(s) + 1 == len(t) and t in s:\n print("YES")\nelse:\n print("NO")\n ', 's = input()\nt = input()\n \nif (s in t) and (t[:1] == s):\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\n\nif len(s) + 1 == len(t) and s in t:\n print("YES")\n else... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s224990979', 's369440297', 's444477075', 's544800470', 's637342592', 's751366312', 's362732991'] | [9096.0, 8912.0, 9016.0, 8776.0, 9024.0, 9096.0, 9028.0] | [19.0, 22.0, 26.0, 26.0, 23.0, 23.0, 23.0] | [112, 94, 103, 99, 103, 99, 87] |
p02681 | u116484168 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\n\nif S.length == 0 || S.length >= 11:\n print("No" )\nelse:\n for i in range(S.length):\n if S[i] != T[i]:\n return print("No")\n \n if T.length == S.length + 1:\n print("Yes" )\n \n', 'S = input()\nT = input()\n\nif S.length == 0 or S.length >= 11:... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s667581339', 's959395239', 's031310334'] | [8940.0, 8828.0, 9048.0] | [24.0, 24.0, 25.0] | [238, 238, 64] |
p02681 | u121523434 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['A,B,C,K = map(int,input().split())\n\ncount = 0\n\nif K <= A:\n count += A\n print(count)\n\nelif K <= A + B:\n count += A\n print (count)\n\nelse:\n count += 2*A + B - K\n print(count)\n', "S = list(input())\nT = list(input())\ndel T[-1]\n\nif S == T:\n print('Yes')\n\nelse:\n print('No')\... | ['Runtime Error', 'Accepted'] | ['s554549226', 's832899055'] | [9060.0, 9056.0] | [21.0, 21.0] | [191, 100] |
p02681 | u125269142 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s, t = map(input().split())\n\nif t.startswith(s):\n print('Yes')\nelse:\n print('No')", "s, t = input().split()\n \nif t.startswith(s):\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\n \nif t.startswith(s):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s484802478', 's520972599', 's073736760'] | [8932.0, 9016.0, 9084.0] | [23.0, 25.0, 23.0] | [83, 79, 80] |
p02681 | u125348436 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['name=input()\nlen_n=len(name)\nname2=input()\nlen_n2=len(name2)\n\nif name==name2[:-2] && len_n+1==len_n2:\n print("Yes")\nelse:\n print("No")\n', 'name=input()\nlen_n=len(name)\nname2=input()\nlen_n2=len(name2)\n \nif name==name2[:-1] and len_n+1==len_n2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s661199652', 's228283741'] | [8924.0, 9040.0] | [25.0, 28.0] | [137, 138] |
p02681 | u127288756 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S=input()\nT=input()\n\nif S==T[-1]:\n print('Yes')\nelse:\n print('No')", "S=input()\nT=input()\n\nif S==T[:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s915463361', 's579288477'] | [9036.0, 9032.0] | [21.0, 22.0] | [72, 73] |
p02681 | u129898499 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\njudge = 0\nfor i in range(len(S)):\n if S[i] !== T[i]:\n judge = 1\n break\nif judge == 1:\n print("No")\nelse:\n print("Yes")\n', 'S = input()\nT = input()\njudge = 0\nfor i in range(len(S)):\n if S[i] != T[i]:\n judge = 1\n break\nif judge == 1:\n print("No")\nelse:\n pri... | ['Runtime Error', 'Accepted'] | ['s308919218', 's139170460'] | [8960.0, 9124.0] | [21.0, 22.0] | [152, 151] |
p02681 | u131464432 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['\\s = input()\nt = input()\nans = "Yes"\nfor i in range(len(s)):\n if s[i] != t[i]:\n ans = "No"\nprint(ans)', 's,t = input().split()\nans = "Yes"\nfor i in range(s):\n if s[i] != t[i]:\n ans = "No"\nprint(ans)', 's = input()\nt = input()\nans = "Yes"\nfor i in range(len(s)):\n if s[i] != t[i]:\n ans = "N... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s118419653', 's835245409', 's934026961'] | [8864.0, 9060.0, 8984.0] | [24.0, 24.0, 31.0] | [105, 97, 104] |
p02681 | u132315263 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["# -*- coding: utf-8 -*-\n\nlist = [input() for i in range(2)]\n\nS = list[0]\nT = list[1]\n\n\ns = len(S)\nt = len(T)\n\n\n\nif t == s + 1 and T == S[0: -1]:\n print('Yes')\nelse:\n print('No')\n ", "# -*- coding: utf-8 -*-\n\nlist = [input() for i in range(2)]\n\nS = list[0]\nT = list[1]\n\nprint(S)\nprint(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s242070381', 's479960444', 's540053648', 's551962023', 's857497446', 's437285407'] | [9112.0, 9028.0, 9116.0, 9108.0, 9044.0, 8944.0] | [22.0, 22.0, 24.0, 22.0, 26.0, 22.0] | [188, 211, 240, 185, 185, 204] |
p02681 | u133174241 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['#problemA\nS = input()\nT = input()\nprint(T)\nd = T[-1]\nU = T.rstrip(d)\nif (U == S) and (len(T) - 1 == len(S)):\n print("Yes")\nelse:\n print("No")', '#problemA\nS = input()\nT = input()\nif len(T) != len(S) + 1:\n print("No")\nelse:\n U = T[0:-1]\n if (U == S) and (T[-1].islower()):\n print(... | ['Wrong Answer', 'Accepted'] | ['s161401792', 's914057686'] | [9112.0, 9108.0] | [20.0, 24.0] | [147, 187] |
p02681 | u135389999 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n = input()\nm = input()\n\nif len(m) == (len(n) + 1) and n == m[:-2]:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\n\nif len(s) == (len(t) - 1) and s == t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s011534457', 's225220057'] | [9092.0, 9012.0] | [29.0, 28.0] | [102, 106] |
p02681 | u135961419 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s = input()\nt = input()\n\nif len(t) == len(s) + 1 and t[0:len(t)] == s:\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\n\n\nif len(t) == len(s) + 1 and t[0:len(t)-1] == s:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s450194258', 's011828892'] | [9032.0, 9100.0] | [22.0, 24.0] | [105, 108] |
p02681 | u137226361 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s= str(input())\nt= str(input())\n\nr= int(t.replace(s, ''))\nif r in range(10):\n print('Yes')\nelse:\n print('No')\n", "s= str(input())\nt= str(input())\n\n\nif len(t)==1 + len(s) and t[0:len(s)]==s:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s493542558', 's140901378'] | [9160.0, 9024.0] | [24.0, 23.0] | [116, 114] |
p02681 | u137962336 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\na = [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z]\nif T == S + a.index(input()): \n print("YES")\n else:\n print("NO")\n \n ', 'S = input()\nT = input()\n\nif S == T[:-1]\n print("YES")\n else\n print("NO")', 'import random \nS = input()\nT = input()\na = ["a","b","... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'W... | ['s068678913', 's079888974', 's134769800', 's172394328', 's217643676', 's220015554', 's264492076', 's296156869', 's323676963', 's351059200', 's409030868', 's435317406', 's452458179', 's540403162', 's594945514', 's638611817', 's664280323', 's669826833', 's678698693', 's725949041', 's915627157', 's170968314'] | [8928.0, 9016.0, 8928.0, 8960.0, 8980.0, 9036.0, 8748.0, 9056.0, 9020.0, 9052.0, 8868.0, 9032.0, 9044.0, 9044.0, 9096.0, 8932.0, 8900.0, 8884.0, 8972.0, 9132.0, 8932.0, 8808.0] | [24.0, 20.0, 20.0, 22.0, 22.0, 22.0, 21.0, 22.0, 20.0, 22.0, 22.0, 21.0, 21.0, 26.0, 22.0, 21.0, 20.0, 20.0, 21.0, 21.0, 21.0, 21.0] | [162, 78, 257, 77, 174, 153, 80, 80, 228, 82, 81, 160, 226, 88, 82, 89, 77, 151, 80, 80, 76, 80] |
p02681 | u141419468 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = str(input())\nT = str(input())\n\nprint(S, T[:-1])\n\nif S == T[:-1]:\n print("Yes")\nelse:\n print("No")', 'A, B, C, K = map(int, input().split())\n\nif A >= K:\n print(K)\nelif A < K <= A+B:\n print(A)\nelif A+B < K <= A+B+C:\n print(A-(K-A-B))', 'S = str(input())\nT = str(input())\n\nif S == T[... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s069888021', 's881891596', 's679958510'] | [8952.0, 8996.0, 9000.0] | [27.0, 27.0, 30.0] | [107, 140, 89] |
p02681 | u141596821 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s = input()\nt = input()\n\nif s == t[:-1] and len(s) == len(t) -1:\n print ('yes')\nelse:\n print ('no')", "s = input()\nt = input()\n\nif s == t[:-1] and len(s)+1 == len(t) and 0 < len(s) < 11:\n print ('yes')\nelse:\n print ('no')", "s = input()\nt = input()\n\nif s == t[:-1]:\n print ('yes')\nelse:\n print ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s172605071', 's230421543', 's576764521', 's901575341', 's847663438'] | [9092.0, 9040.0, 9096.0, 9088.0, 8956.0] | [21.0, 23.0, 22.0, 23.0, 21.0] | [101, 120, 77, 102, 71] |
p02681 | u143738910 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s=input()\nt=input()\nif(s==t[:len(s)]):\n print("YES")\nelse:\n print("NO")\n', 's=input()\nt=input()\nif(s==t[:-1]):\n print("YES")\nelse:\n print("NO")\n', 's=input()\nt=input()\nif(s==t[:len(s)]):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s037280077', 's932774525', 's652505434'] | [9088.0, 8956.0, 9024.0] | [22.0, 21.0, 21.0] | [78, 74, 78] |
p02681 | u145410317 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['import sys\nimport itertools\n\nnum = int(input())\nS = []\nfor _ in range(num):\n S.append(input())\n\nresult = False\nfor i in itertools.permutations(S):\n checkedArray = list(\'\'.join(i))\n if checkedArray[0] == ")": continue\n\n cost = 0\n for index, item in enumerate(checkedArray):\n if it... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s135811117', 's658908308', 's327575771'] | [9204.0, 9116.0, 9032.0] | [24.0, 25.0, 20.0] | [546, 225, 85] |
p02681 | u146057001 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n, k = map(int, input().split())\na = list(map(int, input().split()))\n\nb = 1\n\nfor i in range(k + 1):\n b = a[b - 1]\n\nprint(b)\n', 'n, k = map(int, input().split())\na = list(map(int, input().split()))\n\nb = 1\n\nfor i in range(n + 1):\n b = a[b]\n\nprint(b)\n', 's = input()\nt = input()\n\nn = len(t)\n\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s471190475', 's753043214', 's154549576'] | [9156.0, 9180.0, 9036.0] | [23.0, 24.0, 23.0] | [127, 123, 92] |
p02681 | u150788544 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n,k = map(int,input().split())\nL = list(map(int,input().split()))\nX = [0]*(n+1)\nX[0] = 1\nfor i in range(n):\n if L[X[i]-1] in X:\n X[i+1] = L[X[i]-1] \n break\n X[i+1] = L[X[i]-1]\n \ndef f(lst,value):\n return [i for i,x in enumerate(lst) if x == value]\nfor x in X:\n if X.count(x) == 2:\n a = f... | ['Runtime Error', 'Accepted'] | ['s663128150', 's452066080'] | [9176.0, 9032.0] | [21.0, 22.0] | [436, 103] |
p02681 | u151820863 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["def get_int(s, si, ei=None):\n \n if ei is None:\n value = int(s[si:])\n else:\n value = int(s[si:ei])\n #print(f'value={value}')\n return value\n\n\nBIT = 1\n\nstr_s = input()\ns = int(str_s)\nslen = len(str_s)\n\nresult = 0\nfor i in range(2 ** (slen - 1) ):\n #print(f'======= i={bi... | ['Runtime Error', 'Accepted'] | ['s781434353', 's167336266'] | [9208.0, 9872.0] | [24.0, 28.0] | [679, 328] |
p02681 | u153729035 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['print("YNeos"[input()==input([:-1])::2])', 'print("YNeos"[input()==input()[:-1]::2])', 'print("YNeos"[input()!=input()[:-1]::2])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s596019201', 's795796992', 's867872791'] | [9020.0, 9028.0, 9076.0] | [24.0, 23.0, 25.0] | [40, 40, 40] |
p02681 | u153966724 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nflag = True\nif(len(s) = len(t)-1):\n x = len(s)\n for i in range(x):\n if s[i]!=t[i]:\n flag = False\nif(flag):\n print("Yes")\nelse:\n print("No")', 's = str(input())\nt = str(input())\nflag = True\nif(len(s) == len(t)-1):\n x = len(s)\n for i in range(x):\n if s[i]!=t[i]:... | ['Runtime Error', 'Accepted'] | ['s110404231', 's388229159'] | [9020.0, 9120.0] | [19.0, 24.0] | [175, 209] |
p02681 | u156387428 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input().split()\na = input().split()\nif s+a[-1]==a:\n print("yes")\nelse:\n print("no")', "s = input()\nt = input()\nif s +t[-1]==t:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s092939269', 's672839778'] | [8996.0, 9028.0] | [25.0, 29.0] | [89, 74] |
p02681 | u157184457 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['n = input()\nm = input()\nif 1 <= len(n):\n if len(n)<= 10 :\n a = m[-1]\n n = n + a\n if n == m:\n print("YES")\n else :\n print("NO")', 'n = input()\nm = input()\nif 1 <= len(n):\n if len(n)<= 10 :\n a = m[-1]\n n = n + a\n if n == m:\n ... | ['Wrong Answer', 'Accepted'] | ['s703497786', 's130567383'] | [9112.0, 8820.0] | [21.0, 24.0] | [179, 179] |
p02681 | u158380546 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input();\n\nt = input();\n\nu = t[:-1];\nprint(u);\n\nif u == s:\n print("Yes");\nelse:\n print("No");', 's = input();\n\nt = input();\n\nu = t[:-1];\n\nif u == s:\n print("Yes");\nelse:\n print("No");'] | ['Wrong Answer', 'Accepted'] | ['s144285368', 's448470785'] | [9092.0, 9040.0] | [22.0, 23.0] | [102, 92] |
p02681 | u159144188 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s=input()\nt=input()\nif s in t and len(t) == len(s)+1:\n print(“Yes”)\nelse:\n print(“No”)\n', 's=input()\nt=input()\nif s in t[0:len(s)] and len(t) == len(s)+1:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s918568366', 's857161522'] | [8972.0, 9032.0] | [24.0, 28.0] | [97, 98] |
p02681 | u159703196 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s, t = input().split()\nif s == t[:-1]:\n print('Yes')\nelse:\n print('No')", 's, t = input().split()\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s463626715', 's535762596', 's415632585'] | [9096.0, 9036.0, 9040.0] | [21.0, 25.0, 23.0] | [73, 73, 74] |
p02681 | u166366686 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['S = input()\nT = input()\n# S = "abc"\n# T = "abcd"\nCheck = "NG"\nprint(T[0:len(S)])\nif len(S) + 1 == len(T):\n if S == T[0:len(S)]:\n if ord(T[len(S)]) >= 97 and ord(T[len(S)]) <= 122:\n Check = "OK"\nif Check == "OK":\n print("Yes")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\n... | ['Wrong Answer', 'Accepted'] | ['s377752052', 's997911851'] | [8816.0, 8968.0] | [23.0, 21.0] | [272, 115] |
p02681 | u166560497 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s = input()\nt = input()\nif s in t and len(t) == len(s) + 1 and s[0] != t[0]:\n print('Yes')\nelse:\n print('No')\n", "s = input()\nt = input()\nif s in t and len(t) == len(s) + 1 and s[0] == t[0]:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s501572467', 's310587116'] | [9016.0, 9032.0] | [23.0, 19.0] | [112, 112] |
p02681 | u167874423 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["s = input()\nt = input()\nfor i in range(len(s)):\n if s[i] != t[i]:\n print('no')\n break\n elif i == len(s)-1:\n print('yes')\n", "s = input()\nt = input()\nif s == t[:len(s)]:\n print('yes')\nelse:\n print('no')\n", "s = input()\nt = input()\nfor i in range(len(s)):\n if s[i] !=... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s434257439', 's845083592', 's976131126'] | [9100.0, 9028.0, 9104.0] | [22.0, 22.0, 24.0] | [148, 83, 148] |
p02681 | u168832623 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['A, B, C, K = list(map(int, input().split()))\n\nif (A >= K):\n print(K*1)\n\nelse:\n if (A + B >= K):\n print(A*1 + 0)\n else:\n print(A*1 + 0 + (K-A-B)*(-1))\n', 'id1 = input()\nid2 = input()\n\nif (id1 == id2[:-1]):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s152556189', 's209690986'] | [9168.0, 9032.0] | [21.0, 23.0] | [159, 85] |
p02681 | u173644182 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['def main():\n S = input()\n T = input()\n if S == T[0:-1]:\n print("OK")\n else:\n print("NG")\n\n\nif __name__=="__main__":\n main()\n', 'def main():\n S = input()\n T = input()\n if len(S)==len(T) - 1 and S[0:len(S)] == T[0:len(T)-1]:\n print("OK")\n else:\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s238873520', 's680106027', 's281815235'] | [9024.0, 9108.0, 9032.0] | [21.0, 20.0, 20.0] | [153, 192, 155] |
p02681 | u175217658 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ["S = list(input())\nT = list(input())\n\n\nfor i in range(0, len(S)-1):\n if (S[i] != T[i]):\n print('No')\n else :\n\t\tif(len(S)+1 == len(T)):\n \t\tprint('Yes')\n\t\telif(len(S)>=len(T)):\n \t\tprint('No')\n\t\telif(len(S)+1 < len(T)):\n \t\tprint('No')", "S = list(input())\nT = list(input())\... | ['Runtime Error', 'Accepted'] | ['s555776938', 's631000656'] | [9004.0, 9036.0] | [21.0, 20.0] | [252, 330] |
p02681 | u175753581 | 2,000 | 1,048,576 | Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained by appending one character at the end of S as his ID. He is now trying to register with the ID T. Determine whether... | ['s = input()\nt = input()\nif t.startswith(s):\n print("yes")\nelse:\n print("no")', 's = input()\nt = input()\nif t.startswith(s):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s056795628', 's031958288'] | [9100.0, 9040.0] | [20.0, 20.0] | [82, 82] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.