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 | u490195279 | 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 numba import njit\nimport numpy as np\n\n\ndef main(S, T):\n if len(T)-len(S) != 1:\n print("No")\n return\n count = 0\n for i in range(len(S)):\n if S[i] != T[i]:\n count += 1\n if count > 0:\n print("No")\n return\n print("Yes... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s347291599', 's720690429', 's455261569'] | [91756.0, 91708.0, 91928.0] | [377.0, 373.0, 381.0] | [319, 631, 343] |
p02681 | u492959898 | 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 k<=a:\n\tamount=k\n\tprint(amount)\nelif k<=a+b:\n\tamount=a\n\tprint(amount)\nelse:\n\tamount=a+(-1)*(k-a-b)\n\tprint(amount)', 's=str(input())\nt=str(input())\nif len(s)-len(t)==-1:\n\tif s==t[0:len(s)]:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")\nelse:\n\tprint("No")'] | ['Runtime Error', 'Accepted'] | ['s617960763', 's994988759'] | [9176.0, 9048.0] | [23.0, 23.0] | [151, 126] |
p02681 | u493318999 | 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()\nl = len(t)\njudge = True\nfor i in range(l-1):\n\tif s[i] == t[i]:\n \tjudge = False\nif judge == True:\n\tprint('Yes')\nelse:\n\tprint('No')", "s = input()\nt = input()\nl = len(t)\njudge = True\nfor i in range(l-1):\n\tif s[i] == t[i]:\n \tjudge = False\nif judge == True:\n\tprint('Y... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s454689942', 's523257789', 's758705874'] | [8980.0, 8940.0, 9056.0] | [21.0, 21.0, 21.0] | [156, 156, 84] |
p02681 | u494192357 | 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 = inputs()\nT = inputs()\nprint("Yes" if T.startswith(S) and len(T) == len(S) + 1 else "No", flush=True)', 'S = input()\nT = input()\nprint("Yes" if T.startswith(S) and len(T) == len(S) + 1 else "No", flush=True)\n'] | ['Runtime Error', 'Accepted'] | ['s138876317', 's140107689'] | [9028.0, 8984.0] | [22.0, 21.0] | [104, 103] |
p02681 | u495806976 | 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... | ['# cook your dish here\ns=input()\nt=input()\ntemp=t[:-1]\nif temp==s:\n print(True)\nelse:\n print(False)', '# cook your dish here\ns=input()\nt=input()\ntemp=t[:-1]\nif temp==s:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s293957438', 's346035638'] | [9036.0, 9032.0] | [19.0, 21.0] | [104, 104] |
p02681 | u498202416 | 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:] and len(T) == len(S)+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'] | ['s089105072', 's632097463'] | [9100.0, 9092.0] | [22.0, 20.0] | [118, 80] |
p02681 | u499286346 | 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\nfrom random import choice,randint\ninp=sys.stdin.readline\nout=sys.stdout.write\nflsh=sys.stdout.flush\n \nsys.setrecursionlimit(10**9)\ninf = 10**20\neps = 1.0 / 10**10\nmod = 998244353\ndd = [(-1,0),(0,1),(1,0),(0,-1)]\nddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]\n \ndef MI(): return m... | ['Runtime Error', 'Accepted'] | ['s540590119', 's839548277'] | [40636.0, 9528.0] | [63.0, 25.0] | [1709, 1025] |
p02681 | u502126017 | 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=(int(i) for i in input().split())\na=[]\nc=[]\nfor i in range(n):\n a.append(list(map(int,input().split())))\n c.append(a[i][0])\n del a[i][0]\n \nINF=1001001001\nans=INF\n\nfor s in range(1<<n):\n cost=0\n d=[0]*m\n for i in range(n):\n if(s>>i&1):\n cost+=c[i]\n for j in range(m):\n ... | ['Runtime Error', 'Accepted'] | ['s302569489', 's642418312'] | [9112.0, 9044.0] | [25.0, 19.0] | [452, 133] |
p02681 | u504194367 | 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... | ['card = list(map(int, input().split()))\nlist = list()\nresult = 0\n\nif card[3] <= card[0]:\n result = card[3]\nelif card[0] < card[3] and card[3] <= card[1]:\n result = card[0]\nelse:\n result = card[0] - (card[3] - (card[0] + card[1]))\n\nprint(result)', 'old_id=input()\nnew_id=input()\n\ntry:\n result = "Yes" ... | ['Runtime Error', 'Accepted'] | ['s877453489', 's959307068'] | [9196.0, 9016.0] | [21.0, 21.0] | [246, 197] |
p02681 | u504601029 | 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... | ['userData = input()\n\nuserDatas = input()\n\nif userData == useDatas[0:-1]:\n print("Yes")\nelse:\n print("No")', 'userData = input()\n\nuserDatas = input()\n\nif userData == userDatas[0:-1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s598294689', 's996080940'] | [9088.0, 9008.0] | [24.0, 22.0] | [106, 108] |
p02681 | u505564549 | 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()\nv=t[-1]\ns=s+v\nif t==s:\n\tprint('YES')\nelse:\n\tprint('NO')", "s=input()\nt=input()\nv=t[-1]\n#print(v)\ns=s+v\n#print(s)\nif t==s:\n\tprint('YES')\nelse:\n\tprint('NO')", "import sys\ninput = sys.stdin.readline\ns= input().rstrip()\nt=input().rstrip()\nif t==s+t[-1]:\n print('Yes')\nelse:... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s382180551', 's743325282', 's513857296'] | [9032.0, 9092.0, 9016.0] | [23.0, 22.0, 24.0] | [75, 95, 134] |
p02681 | u505843680 | 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 == t[:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s016314427', 's339582942'] | [8936.0, 9024.0] | [19.0, 20.0] | [76, 74] |
p02681 | u508061226 | 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[:len(t)] == s:\n print("Yes");\nelse:\n print("No")', 's = input();\nt = input();\n\nif t[:len(t)] == s:\n print("Yes");\nelse:\n print("No")\n', 's = input();\nt = input();\n\nif t[:len(t) - 1] == s:\n print("Yes");\nelse:\n print("No")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s519495304', 's852011374', 's486488113'] | [9036.0, 9024.0, 9092.0] | [24.0, 25.0, 22.0] | [108, 83, 87] |
p02681 | u509029769 | 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())\nt = []\ns = len(S)\nfor i in range(s):\n t += T[i]\nif t == S:\n print("yes")\nelse:\n print("No")', 'S = list(input())\nT = list(input())\nt = []\ns = len(S)\nfor i in range(s):\n t += T[i]\nif t == S:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s389312742', 's996597103'] | [9040.0, 9044.0] | [35.0, 28.0] | [136, 136] |
p02681 | u509405951 | 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... | ['for i in range(4*10**10):\n print(i)', 'S = input()\nT = input()\n\nflag = 0\nfor i in range(len(S)):\n if S[i] == T[i]:\n continue\n flag = 1\n\nif flag == 0:\n print("Yes")\nelse:\n print("No")'] | ['Time Limit Exceeded', 'Accepted'] | ['s279380159', 's464564264'] | [57336.0, 9112.0] | [2335.0, 22.0] | [36, 150] |
p02681 | u510331904 | 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[:-2]\n\tprint("Yes")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\nif S == T[:-1]:\n\tprint("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s781309238', 's602903884'] | [8964.0, 9012.0] | [25.0, 27.0] | [76, 77] |
p02681 | u511449169 | 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[:-2] == 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'] | ['s409682698', 's548673235'] | [9088.0, 9032.0] | [23.0, 21.0] | [78, 78] |
p02681 | u513858037 | 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[:len(s)])\nif s == t[:len(s)] and len(s)+1 == len(t):\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\n\nif s == t[:len(s)] and len(s)+1 == len(t):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s430621144', 's004294593'] | [9044.0, 9096.0] | [24.0, 21.0] | [123, 106] |
p02681 | u513929200 | 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())\nli = []\nfor i in string.ascii_lowercase:\n H = S + i\n li.append(H)\nif T in li:\n print("Yes")\nelse:\n print("No")', 'S = str(input())\nT = str(input())\nli = []\nfor i in string.ascii_lowercase:\n H = S + i\n li.append(H)\nif T in li:\n print("Yes")\nelse:\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s414342602', 's995973758', 's761942330'] | [8972.0, 9104.0, 9852.0] | [21.0, 21.0, 27.0] | [156, 156, 153] |
p02681 | u514960601 | 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[0:len(s) + 1] == s:\n print('Yes')\nelse:\n print('No')", 'A, B, C, K = map(int, input().split()) # a 1 b 0 c -1\n\nmax_value = 0\nm = 0\nwhile(A>0):\n if m < K:\n max_value+=1\n m += 1\n A = A - 1\n else:\n break\n \nwhile(B>0):\n if... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s087401023', 's365709222', 's441171906', 's794585427', 's830420961', 's657112272'] | [9036.0, 9160.0, 9204.0, 9180.0, 8912.0, 8924.0] | [21.0, 25.0, 20.0, 22.0, 25.0, 28.0] | [88, 388, 404, 269, 108, 108] |
p02681 | u516566941 | 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()))\nadj_list=[0]*N\nfor i in range(N):\n adj_list[i]=(A[i])\nk=0\nnode = 1\nc=[0]*N\ncount=1\nflag=0\nROOP=[]\nroopstart=0\nwhile k<K:\n k+=1\n c[node-1]+=1\n node = adj_list[node-1]\n if c[node-1] ==1:\n if flag ==0:\n r... | ['Runtime Error', 'Accepted'] | ['s782506811', 's899604644'] | [9228.0, 9052.0] | [24.0, 22.0] | [453, 144] |
p02681 | u517674755 | 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 + T[:-1]:\n print("YES")\nelse:\n print("NO")\n', 'n = input()\nN = input()\nif n in N:\n print("YES")\nelse:\n print("NO")', 'S = input()\nT = input()\nif T[:-1] == S:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s428986363', 's661257989', 's826935138'] | [9088.0, 9028.0, 9036.0] | [23.0, 22.0, 23.0] | [83, 73, 78] |
p02681 | u520843951 | 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 if len(t) == len(s) + 1:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 's = input()\nt = input()\n \nif t[:-1] == s:\n if len(t) == len(s) + 1:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s430205264', 's312897232'] | [9104.0, 9040.0] | [23.0, 23.0] | [128, 129] |
p02681 | u523910497 | 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... | ['list = [input() for i in range 2]\nif list[1] == list[2][:-1]:\n print("Yes")\n else:\n print("No")', 'list = [input() for i in range (2)]\nif list[1] == list[2][:-1]:\n print("Yes")\nelse:\n print("No")', 'list = [input() for _ in range 2]\nif list[1] == list[2][:-1]:\n print("Yes")\n else:\n print("No... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s065610254', 's216302199', 's507636764', 's175344257'] | [8876.0, 9036.0, 9008.0, 9036.0] | [23.0, 21.0, 23.0, 23.0] | [100, 100, 100, 100] |
p02681 | u524604393 | 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 = input().split()\n\nif (a + b[-1]) == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b map(input().spilit())\n\nif a + b[-1] == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b map(input().spilit().)\n\nif a + b[-1] == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b = map(input().split())\n\ni... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s094898748', 's113252503', 's276908271', 's552637394', 's672140366', 's718322999', 's853764234', 's314338790'] | [9092.0, 9000.0, 8964.0, 9020.0, 9100.0, 8952.0, 9108.0, 9060.0] | [26.0, 29.0, 25.0, 27.0, 22.0, 26.0, 24.0, 29.0] | [83, 85, 86, 86, 88, 83, 83, 88] |
p02681 | u525303224 | 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... | ['s1 = input()\ns2 = input()\n\nl1 = list(s1)\nl2 = list(s2)\nl1.append(s2[len(s2)-1])\nif l1 == l2:\n print("YES")\nelse:\n print("NO")\n', 's1 = input()\ns2 = input()\n\nl1 = list(s1)\nl2 = list(s2)\nl1.append(s2[len(s2)-1])\nif l1 == l2:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s709249608', 's721823256'] | [9032.0, 9104.0] | [25.0, 20.0] | [132, 132] |
p02681 | u525589885 | 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())\nc = list(map(int, input().split()))\nx = 1\nfor i in range(k):\n x = c[x-1]\nprint(x)', "s = input()\nt = input()\nu = s + t[-1]\nif u == t:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s097456751', 's052694425'] | [9136.0, 9100.0] | [25.0, 23.0] | [115, 83] |
p02681 | u525796732 | 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\n stdin=sys.stdin\n \n ns = lambda:stdin.readline().rstrip()\n ni = lambda:int(stdin.readline().rstrip())\n nm = lambda:map(int,stdin.readline().split())\n nl = lambda:list(map(int,stdin.readline().split()))\n \n N,K=nm()\n A=nl()\n \n city_l=[]\n city_l.append(1)... | ['Runtime Error', 'Accepted'] | ['s136166381', 's988176584'] | [8928.0, 9068.0] | [20.0, 24.0] | [875, 282] |
p02681 | u525882286 | 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 t.__contains__(s):\n print("Yes")\nelse:\n print(\'No\')', 's = input()\nt = input()\nif s == t[:len(s)]:\n print("Yes")\nelse:\n print(\'No\')'] | ['Runtime Error', 'Accepted'] | ['s170902095', 's993642779'] | [9096.0, 9064.0] | [22.0, 22.0] | [86, 82] |
p02681 | u527454768 | 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 =[0]\nB=list(map(int, input().split()))\nfor m in range(N):\n A.append(B[m])\nplace=set([])\np=[]\ni=1\ncount=0\nwhile i not in place:\n place.add(i)\n p.append(i)\n i=A[i]\n count+=1\nif count>=K:\n print(place[K+1])\nelse:\n loop=[i]\n start=i\n j=A[i]\n... | ['Runtime Error', 'Accepted'] | ['s419630401', 's149438060'] | [9236.0, 9044.0] | [22.0, 22.0] | [434, 78] |
p02681 | u528793636 | 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... | ["\nS = input()\nT = input()\n\nif len(S) == len(T)+1:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\n\nif T.startswith(S) == True:\n if len(S)+1 == len(T):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')\n\n"] | ['Wrong Answer', 'Accepted'] | ['s051133632', 's637779516'] | [9056.0, 9008.0] | [26.0, 29.0] | [87, 154] |
p02681 | u529272843 | 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):\n print("No")\nelif(S==T[:-1]):\n print("Yse")\nelse:\n print("No")', 'S=input()\nT=input()\nif(S==T):\n print("No")\nc=0\nfor i in range(0,len(S)):\n if(S[i]!=T[i]):\n print("No")\n c=1\n break\nif(c!=1):\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s902658013', 's785195712'] | [9036.0, 9144.0] | [20.0, 24.0] | [95, 150] |
p02681 | u531599639 | 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(str, input().split())\nif T == S + T[:-1]:\n print('Yes')\nelse:\n print('No')", "S , T = map(str, input().split())\nif T == S + T[-1]:\n print('Yes')\nelse:\n print('No')\n", "S , T = map(str, input().split())\na=T[-1]\nif T == S + a:\n print('Yes')\nelse:\n print('No')\n", "S= input()\nT= input()\... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s485501644', 's753549974', 's872297567', 's522040544'] | [9032.0, 9092.0, 9084.0, 9088.0] | [24.0, 24.0, 24.0, 20.0] | [88, 88, 92, 76] |
p02681 | u536781361 | 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(A)\nelif A + B >= K:\n print(A)\nelse:\n print(A - (K - (A + B)))', 's = input()\nt = input()\n\nif len(s) != len(t) - 1:\n print("No")\nelif s != t[:-1]:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s199978200', 's020624089'] | [9172.0, 9108.0] | [19.0, 22.0] | [128, 116] |
p02681 | u537217069 | 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 + B >= K ):\n if(A >= K):\n print(K)\n else:\n print(A)\nelse:\n print(+1*A -1*(K-(A+B)))\n', "S = input()\nT = input()\n\nflag = True\n\nfor i in range(len(S)):\n if(S[i] != T[i]):\n flag = False\n\nif(flag):\n print('Yes')\nel... | ['Runtime Error', 'Accepted'] | ['s730886031', 's407167979'] | [9148.0, 9024.0] | [23.0, 30.0] | [159, 154] |
p02681 | u542267798 | 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... | ['gjgsidogse', "S = input()\nT = input()\nprint('Yes') if S + T[-1] == T else print('No')"] | ['Runtime Error', 'Accepted'] | ['s132468275', 's805403063'] | [9012.0, 9088.0] | [20.0, 22.0] | [10, 71] |
p02681 | u542774596 | 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(T)\n\nif S == T:\n print("Yes")\nelse:\n print("No")', 'S = str(input())\nT = str(input())\n\nif S == T:\n print("Yes")\nelse:\n print("No")', 'S = str(input())\nT = str(input())\n\nT = T[:-1]\n\nif S == T:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s280786635', 's895782955', 's343029851'] | [9108.0, 9040.0, 9036.0] | [21.0, 20.0, 23.0] | [94, 84, 96] |
p02681 | u543173218 | 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\ntotal = []\nfor i in range(A+1):\n for j in range(B+1):\n for k in range(C+1):\n if i + j + k == K:\n t = i - k\n total.append(t)\n\nprint(max(total))', 'S = input()\nT = input()\nprint("Yes" if S == T[:-1] else "No")'] | ['Runtime Error', 'Accepted'] | ['s546020684', 's461662312'] | [9080.0, 9020.0] | [22.0, 23.0] | [201, 61] |
p02681 | u543489264 | 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 is t[:-1]) and (len(s) + 1 is (len(t))):\n print('Yes')\nelse:\n print('No')", "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) is len(t)):\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s075663444', 's259244403', 's809063467'] | [9096.0, 9040.0, 9040.0] | [21.0, 21.0, 21.0] | [110, 106, 110] |
p02681 | u544165032 | 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 + T[-1]:\n print("Yes")\nelse:\n print("No")\n\n ', 'S = input()\nT = input()\nif T == S + T[-1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s582061365', 's894632949'] | [8996.0, 9008.0] | [23.0, 23.0] | [86, 81] |
p02681 | u544272759 | 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())\nif K <= A:\n print(K)\nelse if A+B >= K:\n print(A)\nelse:\n print(A-(K-A-B))', 'A, B, C, K = map(int, input().split())\nif A >= K:\n print(K)\nelif A+B >= K:\n print(A)\nelse:\n print(A-(K-A-B))', 's = input()\nt = input()\n\nif s == t[:-1]:\n print("Yes")\nelse:\n pri... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s221121203', 's415131672', 's147267121'] | [8924.0, 9168.0, 8992.0] | [19.0, 21.0, 25.0] | [114, 111, 75] |
p02681 | u547537397 | 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... | ['int main() {\n\tstring s,t;\n\tcin>>s>>t;\n\tfor(char c=\'a\';c<=\'z\';c++)\n\t\tif(s+c==t) puts("Yes"),exit(0);\n\tputs("No"); \n\treturn 0;\n}', "S = input()\nT = input()\nS_len = len(S)\n \nif S_len+1 == len(T) and S == T[:S_len:1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s971761646', 's908684714'] | [8852.0, 8932.0] | [25.0, 26.0] | [126, 122] |
p02681 | u547764399 | 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 + b >= k:\n print(a)\nelse:\n sumcheck = a + b - k\n print(a - sumcheck)', 'S = input()\nT = input()\n\nif S == T[0:len(T) - 1]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s713222968', 's959466792'] | [9168.0, 8740.0] | [20.0, 19.0] | [118, 88] |
p02681 | u548093253 | 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.rstrip() == 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'] | ['s742840645', 's594089318'] | [8928.0, 9088.0] | [23.0, 23.0] | [82, 78] |
p02681 | u548525760 | 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\ns = len(S)\n\nif S != T[:s]:\n print("No")\n\nelse:\n if (s + 1) = len(T):\n print("Yes")\n else:\n print("No")\n', 'S = input()\nT = input()\n\ns = len(S)\n\nif S != T[:s]:\n print("No")\n\nelse:\n if (s + 1) == len(T):\n print("Yes")\n else:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s944766624', 's104595590'] | [8960.0, 9004.0] | [21.0, 26.0] | [137, 137] |
p02681 | u549603397 | 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\nif t[-1:]==s:\n print("Yes")\nelse:\n print("No")', 's=str(input())\nt=str(input())\n\nif t[:-1]==s:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s561327901', 's124939579'] | [9040.0, 9096.0] | [19.0, 23.0] | [83, 83] |
p02681 | u550146131 | 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 len(S)==1:\n\tif S[0]==T[0]:\n\t\tprint("YES")\n\telse:\n\t\tprint("NO")\nelif len(S)>=2:\n\tif S in T:\n\t\tif S[0]==T[0] and S[1]==T[1]:\n\t\t\tprint("YES")\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO")', 'S=input()\nT=input()\nif len(S)==1:\n\tif S[0]==T[0]:\n\t\tprint("YES")\n\t... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s295214300', 's674517089', 's679723754'] | [9060.0, 8928.0, 9056.0] | [23.0, 21.0, 21.0] | [205, 206, 205] |
p02681 | u553308611 | 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("Yse")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\nif S == T[:len(T)-1] and len(S) == len(T) - 1:\n print("Yse")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\nif S == T[:len(T)-1] and len(S) == len(T) - 1 and str.islower(S) and st... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s494817449', 's498573189', 's561085738', 's630333304', 's792474499', 's998050525'] | [8984.0, 9084.0, 9092.0, 9088.0, 9096.0, 9028.0] | [22.0, 22.0, 23.0, 22.0, 26.0, 22.0] | [86, 111, 149, 111, 165, 138] |
p02681 | u553459461 | 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 s==t[:-1]):\n print('YES')\nelse:\n print('NO')", 's = input()\nt = input()\nt = t[:-1]\nif(s==t):\n print("YES")\nelse:\n print("NO")', 's = input()\nt = input()\nf=1\nif(len(s)==len(t)-1):\n for i in range(len(s)):\n if(s[i]!=t[i]):\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s664442991', 's858063801', 's931680404', 's104351427'] | [9064.0, 9036.0, 9120.0, 8960.0] | [19.0, 23.0, 20.0, 20.0] | [95, 83, 185, 111] |
p02681 | u554850896 | 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 return "Yes"\nelse :\n return "No"', 'S = input()\nT = input()\nif T[:-1] == S :\n print("Yes")\nelse :\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s933904466', 's093694119'] | [9024.0, 9008.0] | [20.0, 20.0] | [77, 76] |
p02681 | u556589653 | 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(T)] == S:\n print("Yes")\nelse:\n print("No")', '#Solver:Rute\na,b,c,k = map(int,input().split())\nif k<=a:\n print(k)\nelif a<k<=a+b:\n print(k)\nelse:\n \n print(a-(k-(a+b)))\n', '#Solver:Rute\na,b,c,k = map(int,input().split())\nif k<=a:\n print(k)\nelif a<k<=a+b:\n pri... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s044147139', 's485697555', 's958606955', 's032835263'] | [9096.0, 9164.0, 9160.0, 9092.0] | [30.0, 23.0, 21.0, 29.0] | [79, 167, 167, 93] |
p02681 | u556594202 | 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 = list(map(int,input().split()))\nskill = [list(map(int,input().split())) for i in range(N)]\ncost = []\n\nfor i in range(2**N):\n total_skill=[0,0,0,0]\n for j in range(N):\n if ((i>>j) & 1):\n total_skill = [x+y for (x,y) in zip(total_skill,skill[j])]\n count=0\n for k in total_s... | ['Runtime Error', 'Accepted'] | ['s653122267', 's953253944'] | [9208.0, 9076.0] | [27.0, 27.0] | [457, 56] |
p02681 | u556657484 | 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 = 0\nfor i in range(len(T)):\n if len(S) > 10:\n break\n if S[i] == T[i]:\n ans = 0\n else:\n ans = 1\n\nif ans == 0:\n print('Yes')\nelse:\n print('No')\n", "S = input()\nT = input()\nans = 0\nfor i in range(len(S)):\n if len(S) > 10:\n brea... | ['Runtime Error', 'Accepted'] | ['s457541934', 's380169784'] | [8972.0, 9052.0] | [21.0, 23.0] | [206, 263] |
p02681 | u558717347 | 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... | ["s1 = input()\ns2 = input()\n\ndef check(s1,s2):\n if len(s1)+1 != len(s2):\n print('No')\n return \n for i in range(len(s1)):\n if s1[i] != s2[1]:\n print('No') \n return\n print('Yes') \n\ncheck(s1,s2)", "s1 = input()\ns2 = input()\n\ndef check(s1,s2):\n i... | ['Wrong Answer', 'Accepted'] | ['s716108793', 's376204608'] | [9108.0, 9048.0] | [21.0, 26.0] | [247, 285] |
p02681 | u558955064 | 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, h] = [int(input()) for i in range(3)]\n\n\nresult = (a + b) * h // 2\nprint(result)\n', "import re\n\na = input()\nb = input()\n\nif re.match(f'^{a}.$', b):\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s616201447', 's337957435'] | [9144.0, 9872.0] | [20.0, 31.0] | [87, 102] |
p02681 | u559048291 | 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... | ['id_s = input()\nid_t = input()\n\nif(id_s == id_t[:-1]):\n print("yes")\nelse:\n print("no")\n', 'id_s = input()\nid_t = input()\n\nif(id_s == id_t[:-1]):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s217926707', 's625509721'] | [9012.0, 8988.0] | [26.0, 32.0] | [93, 93] |
p02681 | u559912045 | 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 = set(input())\nt = set(input())\n \nif s in t:\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\n\nif t.startswith(s):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s935434901', 's545867073'] | [9092.0, 9100.0] | [21.0, 24.0] | [81, 79] |
p02681 | u561743922 | 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... | ['s1 = input()\ns2 = input()\ns2 = s2.strip(s2[-1])\n\nif s1 == s2:\n print("yes")\nelse:\n print("no")', '# coding: utf-8\ns1 = input()\ns2 = input()\ns2 = s2[-1]\nprint(s1, s2)\n\nif s1 == s2:\n print("Yes")\nelse:\n print("No")', '# coding: utf-8\ns1 = input()\ns2 = input()\nprint(s1, s2)\n\nflg = True\n... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s203482258', 's209616241', 's221838397', 's463349224', 's556097481'] | [9036.0, 9100.0, 9108.0, 9120.0, 9104.0] | [21.0, 21.0, 22.0, 25.0, 20.0] | [100, 120, 183, 106, 169] |
p02681 | u561862393 | 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\nimport sys\ninput = sys.stdin.readline\n\ns = input().strip()\nt = input().strip()\nt = t[:-1]\nprint(t)\nif s == t:\n print("Yes")\nelse:\n print("No")\n', 'import numpy as np\n\nimport sys\ninput = sys.stdin.readline\n\ns = input().strip()\nt = input().strip()\nt = t[:-1]\nif s == t:\n ... | ['Wrong Answer', 'Accepted'] | ['s824690859', 's257710870'] | [27116.0, 27132.0] | [114.0, 101.0] | [169, 160] |
p02681 | u562791958 | 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\nprint(s, t)\n\nif (s == t[0:(len(t))-1]) and (len(t) - len(s) == 1):\n print("Yes")\nelse:\n print("No")\n \n#print(s[0:(len(s))])\n \n', 's = input()\nt = input()\n\n\nif (s == t[0:(len(t))-1]) and (len(t) - len(s) == 1):\n print("Yes")\nelse:\n print("No")\n \n#print(s[0:(len(s))])... | ['Wrong Answer', 'Accepted'] | ['s908850235', 's365989400'] | [9100.0, 8908.0] | [22.0, 22.0] | [154, 142] |
p02681 | u563711100 | 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()\nm = list(m).pop()\n\nif list(n) == list(m):\n print("Yes")\nelse:\n print("No")', 'n = input()\nm = input()\nm = list(m).pop()\n\nif list(n) == m:\n print("Yes")\nelse:\n print("No")', 'n = input()\nm = input()\nif m[0:len(n)] == n:\n print("Yes")\nelse:\n print("No)\n ', 'n =... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s572842178', 's584941689', 's775171664', 's819977153', 's845220953', 's692575643'] | [9032.0, 9084.0, 9032.0, 9004.0, 9032.0, 9064.0] | [24.0, 21.0, 22.0, 20.0, 23.0, 22.0] | [104, 98, 81, 106, 92, 90] |
p02681 | u566159623 | 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\nn, k = map(int, input().split())\na = list(map(int, input().split())) \n\nvisited = [None]*n\ncur = 0\nfor i in range(k):\n if visited[cur] is None:\n visited[cur] = i\n cur = a[cur]-1\n else:\n break\nelse:\n print(cur+1)\n\tsys.exit()\n\nk -= i\nk %= i-visited[cur]\n\nfor i... | ['Runtime Error', 'Accepted'] | ['s533751349', 's770628169'] | [8952.0, 9116.0] | [21.0, 23.0] | [344, 222] |
p02681 | u568576853 | 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')", 'n,k=map(int,input().split())\nA=list(map(int,input().split()))\na=[0]*n\na[0]=1\nnxt=A[0]-1\ni=2\nwhile 1:\n a[nxt]=i\n nxt=A[nxt]-1\n i+=1\n if a[nxt]!=0:\n g=i-a[nxt]\n t=a[nxt]-1\n break\nif t>=k:\n print(a.index(k+1)+1)\nel... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s340638503', 's899935805', 's154643287'] | [9092.0, 9156.0, 9092.0] | [23.0, 22.0, 23.0] | [68, 269, 68] |
p02681 | u568768953 | 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... | ['x=str(input())\ny=str(input())\ndef idx(x,y):\n\tif len(y)-len(x)!=1:\n \t\treturn False\n\telse:\n \t\tfor i in range(0,len(x)):\n \t\tif x[i]!=y[i]:\n \t\t\treturn False\n return True\nif idx(x,y):\n print("Yes")\nelse:\n print("No")\n', 'def isokay(S,T):\n if len(T)-len(S)!=1:\n return... | ['Runtime Error', 'Accepted'] | ['s644566390', 's958325715'] | [8896.0, 8980.0] | [20.0, 20.0] | [231, 253] |
p02681 | u569101309 | 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 rec(c, a, x, n, m, start, states, best, price):\n\n for i in range(start, n):\n price += c[i]\n states[0] += a[i][0]\n states[1] += a[i][1]\n states[2] += a[i][2]\n\n if states[0] >= x and states[1] >= x and states[2] >= x and price < best:\n best = price\n\n ... | ['Runtime Error', 'Accepted'] | ['s368821211', 's592685952'] | [9312.0, 9036.0] | [21.0, 23.0] | [999, 170] |
p02681 | u571190119 | 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[:-2]:\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', 'Accepted'] | ['s029657213', 's965288570'] | [9076.0, 9008.0] | [28.0, 28.0] | [80, 80] |
p02681 | u571395477 | 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 A, B, C, K = map(int, input().split())\n l = []\n\n if K-A<0:\n out = K\n if K-A>=0:\n l.append(A)\n K = K-A\n if K-B>=0:\n K = K-B\n if K>0:\n m = K * -1\n l.append(m)\n out = sum(l)\n print(out)\nmain()', "\ndef main():\n S = input()... | ['Runtime Error', 'Accepted'] | ['s431986472', 's463443679'] | [9184.0, 9092.0] | [24.0, 19.0] | [268, 134] |
p02681 | u578379647 | 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 (len(S) + 1 == len(T)) and (T.index(S) == 0):\n print('yes')\nelse:\n print('no')", "S = input()\nT = input()\nT = T[:-1]\nif S == T:\n print('yes')\nelse:\n print('no')", "S = input()\nT = input()... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s125637218', 's525237650', 's665346621', 's533104498'] | [9104.0, 9040.0, 9040.0, 9080.0] | [21.0, 21.0, 21.0, 22.0] | [74, 112, 80, 74] |
p02681 | u578441226 | 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 = input().split()\nprint(b[0:-1])\nif a == b[0:-1]:\n print('Yes')\nelse:\n print('No')", "a,b = input().split()\nif a == b[0:-1]:\n print('Yes')\nelse:\n print('No')", "a,b = input().split()\nif a == b[0:-1]:\n print('Yes')\nelse:\n print('No')", "a = input()\nb = input()\nif a == b[0:-1]:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s551739569', 's655047036', 's773024578', 's495189349'] | [9100.0, 9100.0, 9096.0, 9032.0] | [22.0, 21.0, 23.0, 21.0] | [92, 77, 77, 79] |
p02681 | u578930448 | 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().strip()\ns_new = input().strip()\nif s == s_new[0:len(s)]:\n if len(s) + 1 = len(s_new):\n print("Yes")\n else:\n print(\'No\')\nelse:\n print("No")', 's = input().split()\ns_new = input().split()\nif s == s_new[0:len(s)]:\n if len(s) + 1 = len(s_new):\n print("Yes")\n else:\n print(\'No\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s136606817', 's184823209', 's318861103'] | [8816.0, 8936.0, 9096.0] | [23.0, 24.0, 22.0] | [159, 160, 161] |
p02681 | u580727877 | 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().strip()\nt = input().strip()\n\nprint "Yes" if s == t[:len(s)] and len(t) == len(s) + 1 else "No"', 's = input().strip()\nt = input().strip()\n\nif s == t[:len(s)] and len(t) == len(s) + 1:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s591537548', 's758062081'] | [9016.0, 9092.0] | [20.0, 21.0] | [106, 125] |
p02681 | u580920947 | 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[:len(S)-1] == S:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif T[:len(S)] == S:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s985202374', 's595195417'] | [9040.0, 9040.0] | [24.0, 23.0] | [84, 82] |
p02681 | u581403769 | 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(s)] and len(s) == len(t) - 1:\n print('yes')\nelse:\n print('no')", "s = input()\nt = input()\n\nif s == t[:len(s)] and len(s) == len(t) - 1:\n print('yes')\nelse:\n print('no')\n", "s = input()\nt = input()\n\nif s == t[:len(s)] and len(s) == len(t) - 1:\n pri... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s073136620', 's582591344', 's704979479'] | [9016.0, 9088.0, 8960.0] | [22.0, 23.0, 18.0] | [107, 109, 109] |
p02681 | u584153341 | 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... | [" pass1 = str(input())\n pass2 = str(input())\n \n pass2_org = pass2[0:-1]\n \n if pass1 == pass2_org:\n print(f'Yes')\n else:\n print(f'No')", "pass1 = str(input())\npass2 = str(input())\n \npass2_org = pass2[0:-1]\n \nif pass1 == pass2_org:\n print(f'Yes')\nelse:\n print(f'... | ['Runtime Error', 'Accepted'] | ['s161661582', 's551955231'] | [8888.0, 9100.0] | [21.0, 24.0] | [167, 135] |
p02681 | u586662847 | 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 resolve():\n S = input()\n T = input()\n\n if re.match(r'[a-z]{1,10}', S) and re.match(S + '.', T):\n print('Yes')\n return\n\n print('No')\n\nresolve()", "import re\n\n\ndef resolve():\n S = input()\n T = input()\n\n if re.match(r'[a-z]{1,10}', S) and re.match(S + '.', T):\n ... | ['Runtime Error', 'Accepted'] | ['s575171045', 's857688559'] | [9104.0, 9864.0] | [20.0, 31.0] | [172, 184] |
p02681 | u587518324 | 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... | ["#!/usr/bin/env python\n\n\n__author__ = 'bugttle <bugttle@gmail.com>'\n\n\ndef main():\n S = input()\n T = input()\n\n if S == T[0:-1]:\n print('YES')\n else:\n print('NO')\n\n\nif __name__ == '__main__':\n main()\n", "#!/usr/bin/env python\n\nimport sys\nimport itertools\n\n__author__ = ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s489776370', 's996728390', 's790560221'] | [9104.0, 9272.0, 9024.0] | [21.0, 22.0, 24.0] | [317, 1636, 285] |
p02681 | u588048170 | 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 = S + T\nif len(a) > 2 and len(a) <= 11:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = S + input()\nif len(T) > 2 and len(T) <= 11:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\nif T[:-1] == S:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s119199207', 's454609113', 's103075526'] | [9128.0, 9028.0, 8940.0] | [19.0, 24.0, 22.0] | [104, 98, 78] |
p02681 | u588276267 | 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\n\nif s[:] == t[len(s):]:\n print("Yes")\nelse:\n print("No")\n', 's = input()\nt = input()\n\nif s[:] == t[:len(s)]:\n print("Yes")\nelse:\n print("No")\n '] | ['Wrong Answer', 'Accepted'] | ['s705608920', 's806858369'] | [8984.0, 9044.0] | [23.0, 21.0] | [84, 87] |
p02681 | u591295155 | 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... | ['M=998244353\nn,m,k=map(int,input().split())\np,c=[m]*n,[1]*n\nfor i in range(1,n):\n p[i]=p[i-1]*(m-1)%M\n c[i]=c[i-1]*(n-i)*pow(i,M-2,M)%M\nprint(sum(p[n-i-1]*c[i]%M for i in range(k+1))%M)', 'import sys\n#import cython\n\ndef main():\n read = lambda: sys.stdin.readline().rstrip()\n \n #N: cython.longlong... | ['Runtime Error', 'Accepted'] | ['s047046684', 's717924411'] | [9092.0, 8872.0] | [25.0, 22.0] | [186, 319] |
p02681 | u591503175 | 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 resolve():\n \'\'\'\n code here\n \'\'\'\n import collections\n N, K = [int(item) for item in input().split()]\n A_list = [int(item) for item in input().split()]\n\n bit_k = bin(K)[2:]\n\n telepo_list = collections.deque([A_list])\n\n for _ in range(len(bit_k)-1):\n temp_list = t... | ['Runtime Error', 'Accepted'] | ['s464293083', 's241154313'] | [9464.0, 9108.0] | [22.0, 25.0] | [736, 217] |
p02681 | u591812989 | 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=list(map(int,input().split()))\nlines = []\n\nfor i in range(N):\n\tlines.append(list(map(int,input().split())))\npricemin = 1000000\nfor i in range(2**N):\n\tprice = 0\n\tcount = 0\n\tA = [0]*M\n\tfor j in range(N):\n\t\tif ((i >> j) & 1):\n\t\t\tfor k in range(M):\n\t\t\t\tA[k] += lines[j][k+1]\n\t\t\tprice +... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s008807429', 's013963578', 's071418187', 's330379033', 's671862961'] | [9220.0, 9216.0, 9040.0, 9176.0, 8956.0] | [23.0, 19.0, 22.0, 23.0, 22.0] | [474, 474, 130, 155, 93] |
p02681 | u594862874 | 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\nprint('Yes ' if T[-1] not in S else 'No ')", "S = input()\nT = input()\n\nprint('Yes' if T[:-1] == S else 'No')"] | ['Wrong Answer', 'Accepted'] | ['s362959041', 's911893198'] | [9024.0, 8932.0] | [24.0, 20.0] | [67, 62] |
p02681 | u595600198 | 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()\nNlength = len(N)\nflag = True\nfor x in range(Nlength):\n if N[x]==M[x]:\n continue\n else:\n flag=False\n\nif flag:\n print("YES")\nelse:\n print("NO")', 'N = input()\nM = input()\nNlength = len(N)\nflag = True\nfor x in range(Nlength):\n if N[x]==M[x]:\n continue\n else:\n ... | ['Wrong Answer', 'Accepted'] | ['s635374930', 's072218960'] | [9052.0, 9108.0] | [21.0, 19.0] | [175, 175] |
p02681 | u596163897 | 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())\nP = 0\nS = 0\nwhile S==0:\n P += A\n K -= A\n if K < 0:\n P = K\n break\n elif K == 0:\n break\n\n K -= B\n if K <= 0:\n break\n\n P -= C\n K -= C\n if K <= 0:\n P += abs(K)\n break\n S=1\nif P >= 0:\n p... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s242959041', 's644043674', 's645047487'] | [9020.0, 9140.0, 9028.0] | [22.0, 23.0, 24.0] | [325, 327, 79] |
p02681 | u597553490 | 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\n\nS = input()\nT = input()\n\nif(S==T[:-1] and len(T) == len(S)+1):\n print("yes")\nelse:\n print("no")\n', 'import sys\n\nS = input()\nT = input()\n\nif(S==T[:-1] and len(T) == len(S)+1):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s322735958', 's082946677'] | [9112.0, 9092.0] | [20.0, 24.0] | [114, 114] |
p02681 | u600261652 | 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+"abcdefghijklmnogqrstuvwxyz" in T:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif S+1 in T:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif T[T-1] in S:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nprint("Yes" if S == ... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s126052001', 's193528874', 's200535363', 's129642088'] | [8964.0, 9024.0, 9092.0, 9092.0] | [18.0, 22.0, 25.0, 20.0] | [99, 71, 74, 61] |
p02681 | u601620345 | 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, K=map(int,input().split())\n\nA2 = np.zeros(N)\nA = list(map(int,input().split()))\nA = list(map(lambda x: x -1 , A))\ncurrent_town = 0\n \n \n \ni=0\nwhile i<K:\n current_town = A[current_town]\n if A2[current_town] != 0:\n cycle = i - A2[current_town] \n i = K - ((K-i) % ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s158041355', 's897504302', 's444014418'] | [27152.0, 8956.0, 9016.0] | [106.0, 22.0, 23.0] | [478, 97, 127] |
p02681 | u602128502 | 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\nn=len(s)\nindex=0\nfor i in range(n):\n if(s[i] != t[i]):\n print("no")\n index=1\n break\n \nif(index==0):\n print("yes")\n ', 's=input()\nt=input()\n\nn=len(s)\nindex=0\nfor i in range(n):\n if(s[i] != t[i]):\n print("No")\n index=1\n break\n \nif(in... | ['Wrong Answer', 'Accepted'] | ['s997484889', 's491654930'] | [9104.0, 9048.0] | [22.0, 23.0] | [161, 161] |
p02681 | u605601159 | 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().strip()\nt = input().strip()\nprint(s == t[:-1])', 's = input().strip()\nt = input().strip()\nprint("Yes" if s == t[:-1] else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s676120154', 's919755626'] | [9040.0, 9084.0] | [20.0, 24.0] | [58, 78] |
p02681 | u606374450 | 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\nprint(S[:-1])\n\nif T[:-1] == S:\n print('Yes')\nelse:\n print('No')\n", "S = input()\nT = input()\n\nif T[:-1] == S:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s356076240', 's998167571'] | [8884.0, 9016.0] | [25.0, 23.0] | [95, 80] |
p02681 | u608355135 | 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\tif s[i]!=t[i]:\n \tprint("No")\n quit()\nprint("Yes")', 's=input()\nt=input()\nfor i in range(len(s)):\n if s[i]!=t[i]:\n print("No")\n quit()\nprint("Yes")'] | ['Runtime Error', 'Accepted'] | ['s647128419', 's100147684'] | [8964.0, 8964.0] | [20.0, 21.0] | [104, 110] |
p02681 | u611033537 | 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.starttswith(s) and len(s) + 1 == len(t):\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nif t.startswith(s) and len(s) + 1 == len(t):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s660682489', 's925460488'] | [9100.0, 9100.0] | [22.0, 24.0] | [104, 103] |
p02681 | u612975321 | 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()\nabc = 'abcdefghijklmnopqrstuvwxyz'\n\nif S == T[:-1] and T[-1] in abc:\n print('yes')\nelse:\n print('no')", "S = input()\nT = input()\nabc = 'abcdefghijklmnopqrstuvwxyz'\n\nif S == T[:-1] and T[-1] in abc:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s693494201', 's599441980'] | [9024.0, 9028.0] | [22.0, 22.0] | [131, 131] |
p02681 | u613233323 | 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.startswith(S):\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'] | ['Runtime Error', 'Accepted'] | ['s296450709', 's705900526'] | [9084.0, 9020.0] | [21.0, 20.0] | [76, 80] |
p02681 | u615017370 | 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()\nif (N[-1] == str(3)):\n print('bon')\nelif(int(N[-1]) == 0 or int(N[-1]) == 1 or int(N[-1]) == 6 or int(N[-1]) == 8 ):\n print('pon')\nelse:\n print('hon')", "S = input()\nT = input()\nif(T[0:len(T)-1] == S):\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s254391673', 's553502630'] | [9176.0, 9068.0] | [19.0, 29.0] | [171, 87] |
p02681 | u615647623 | 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\nSinT = T.startswith(S)\n\nprint(T[-1])\n', "import re\n\nS = str(input())\nT = str(input())\n\np = re.compile('[a-z]+')\n\nif T.startswith(S):\n if p.fullmatch(T[-1]):\n ans = 'Yes'\n else:\n ans = 'No'\nelse:\n ans = 'No'\nprint(ans)\n"] | ['Wrong Answer', 'Accepted'] | ['s920030161', 's126063053'] | [9088.0, 9872.0] | [21.0, 29.0] | [72, 200] |
p02681 | u617659131 | 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 renge(len(s))\n if s[i] == t[i]:\n continue\n else:\n print("No")\n \n if i == (len(s)-1):\n print("Yes")', 's = input()\nt = input()\nif s == t[:len(s):]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s442082772', 's185710243'] | [8984.0, 9120.0] | [22.0, 20.0] | [144, 79] |
p02681 | u618369407 | 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\ns = str(input())\nt = str(input())\n\nif s == t[0:-2]:\n print('Yes')\nelse:\n print('No')", "# -*- coding: utf-8 -*-\n\ns = str(input())\nt = str(input())\n\nif s == t[0:-1]:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s408583985', 's128769806'] | [9096.0, 9080.0] | [28.0, 25.0] | [115, 115] |
p02681 | u619850971 | 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\nprint(t2)\nif s == t2:\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nt2 = t[:-1]\n\nif s == t2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s168625712', 's261456079'] | [9036.0, 9096.0] | [21.0, 23.0] | [85, 87] |
p02681 | u624613992 | 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 = input()\nt = input()\nif len(s) +1 == len(t):\n print("Yes")\nelse:\n print("No")', 's = input()\nt = input()\nif s == t[:len(s)]:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s595351995', 's079479949'] | [9008.0, 9032.0] | [22.0, 21.0] | [113, 82] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.