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 this string satisfies the property above.
['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")\n\n\nmain(S, T)\n', '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+count]:\n count += 1\n if count > 1:\n print("No")\n return\n print("Yes")\n\n\ndef cc_export():\n from numba.pycc import CC\n cc = CC(\'my_module\')\n cc.export(\'main\', \'\')(main)\n cc.compile()\n\n\nif __name__ == \'__main__\':\n import sys\n if sys.argv[-1] == \'ONLINE_JUDGE\':\n cc_export()\n exit(0)\n from my_module import main\n S = input()\n T = input()\n main(S, T)', '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")\n\n\nS = input()\nT = input()\nmain(S, T)\n']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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('Yes')\nelse:\n\tprint('No')", "s = input()\nt = input()\nl = len(s)\nif s[:l]==t[:l]:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['# 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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 map(int, inp().strip().split())\ndef LI(): return list(map(int, inp().strip().split()))\ndef LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]\ndef LI_(): return [int(x)-1 for x in inp().strip().split()]\ndef LF(): return [float(x) for x in inp().strip().split()]\ndef LS(): return inp().strip().split()\ndef I(): return int(inp().strip())\ndef F(): return float(inp().strip())\ndef S(): return inp().strip()\ndef pf(s): return out(s+\'\\n\')\ndef JA(a, sep): return sep.join(map(str, a))\ndef JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)\n\ndef main():\n f = [0]*2000000\n inv = [0]*2000000\n def fast_exponentiation(base, exp):\n res = 1\n while exp:\n if exp & 1:\n res = (res * base) % mod\n base = (base * base) % mod\n exp >>=1\n return res % mod \n \n def ncr(n,r):\n if n<r or n<0 or r<0:\n return 0\n cur = f[n]\n p = inv[r]\n p = (p*(inv[n-r]))%mod\n return (cur*p)%mod\n\n n,m,k=MI()\n f[0]=1\n inv[0]=1\n for i in range(1,200007):\n f[i]=(f[i-1]*i)%mod\n inv[i]= fast_exponentiation(f[i],-1)\n ans =0\n for i in range(1,k+2):\n p1 = fast_exponentiation(m,i)\n q1 = fast_exponentiation(m-1,n-i)\n cur = (p1*q1)%mod\n ans+=cur%mod\n ans%=mod\n print(ans)\n \n\nif __name__ == "__main__":\n main()', '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 = 10**9+7\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 map(int, inp().strip().split())\ndef LI(): return list(map(int, inp().strip().split()))\ndef LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]\ndef LI_(): return [int(x)-1 for x in inp().strip().split()]\ndef LF(): return [float(x) for x in inp().strip().split()]\ndef LS(): return inp().strip().split()\ndef I(): return int(inp().strip())\ndef F(): return float(inp().strip())\ndef S(): return inp().strip()\ndef pf(s): return out(s+\'\\n\')\ndef JA(a, sep): return sep.join(map(str, a))\ndef JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)\n\ndef main():\n s = S()\n t = S()\n if s == t[:len(t)-1]:\n print("Yes")\n else:\n print("No")\n\nif __name__ == "__main__":\n main()']
['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 this string satisfies the property above.
['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 d[j]+=a[i][j]\n ok=True\n for j in range(m):\n if(d[j]<x):\n ok=False\n if ok:\n ans=min(ans,cost)\nif ans==INF:\n print(-1)\nelse:\n print(ans)\n', "S=input()\nT=input()\n\nt=T[:len(S)]\n\nif(S==t and len(S)<=10 and len(S)>=1 and len(T)==len(S)+1):\n print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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" if len(old_id)+1 == len(new_id) and old_id.index(new_id[0]) == 0 and old_id in new_id else "No"\n print(result)\nexcept ValueError:\n print("No")']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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:\n print('No')\n\n\n\n"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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:\n print("No")', 'import string\nS = str(input())\nT = str(input())\nli = []\nfor i in string.ascii_lowercase:\n H = S + i\n li.append(H)\nprint("Yes" if T in li else "No")']
['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 this string satisfies the property above.
["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 m < K:\n m += 1\n B = B - 1\n else:\n break\nwhile(C>0):\n if m < k:\n max_value -= 1\n m += 1\n C = C - 1\n else:\n break\n \n\n', '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 m < K:\n m += 1\n B = B - 1\n else:\n break\nwhile(C>0):\n if m < k:\n max_value -= 1\n m += 1\n C = C - 1\n else:\n break\n \n\nprint(max_value)', 'A, B, C, K = map(int, input().split()) # a 1 b 0 c -1\n\nif K <= A:\n print(K)\n\nelse:\n maxvalue = A\n K -= A\n if B >= 0:\n if K > 0:\n K = K - B\n if K <= 0:\n print(maxvalue)\n maxvalue -= K * -1\n print(maxvalue)\n\n', 'S = input()\nT = input()\nif S == T[0:len(S)] and len(T) == len(S) + 1:\n print("yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif S == T[0:len(S)] and len(T) == len(S) + 1:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 roopstart = k\n flag=1\n ROOP.append(node)\n if c[node-1] ==2:\n break\nl = len(ROOP)\n\nnum = (K-l-roopstart) % (l)\nprint(ROOP[num])', 'S = input()\nT = input()\nflag =0\nfor i in range(len(S)):\n if S[i] != T[i]:\n flag=1\n\nif flag ==1:\n print("No")\nelse:\n print("Yes")']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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")', 'list = [input() for i in range (2)]\nif list[0] == list[1][:-1]:\n print("Yes")\nelse:\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 this string satisfies the property above.
['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\nif a + b[-1] == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b = map(input().split())\n\nif (a + b[-1]) == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b = input().split()\n\nif (a + b[-1]) == b :\n\n print("Yes")\n\nelse:\n print("No")', 'a,b = input().split()\n\nif (a + b[-1]) == b :\n\n print("Yes")\n\nelse:\n print("No")', 's = input()\nt = input()\n\nif (s + t[-1]) == t :\n print("Yes")\n\nelse :\n print("No")\n']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
[' 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)\n city_c=[0]*(N+1)\n city_c[1]+=1\n n_city=A[0]\n flag=True\n r_start=-1\n r_end=-1\n while(flag):\n city_c[n_city]+=1\n city_l.append(n_city)\n if(city_c[n_city]>1):\n r_start=city_l.index(n_city)+1\n r_end=len(city_l)-1\n flag=False\n n_city=A[n_city-1]\n \n if(K<r_end):\n print(city_l[K-1])\n \n \n else:\n K2=K-r_end\n K2=K2%(r_end-r_start+1)\n if(K2==0):\n print(A[city_l[r_end-1]-1])\n else:\n print(A[city_l[r_start+K2-2]-1])\n ', "import sys\nstdin=sys.stdin\n\nns = lambda:stdin.readline().rstrip()\nni = lambda:int(stdin.readline().rstrip())\nnm = lambda:map(int,stdin.readline().split())\nnl = lambda:list(map(int,stdin.readline().split()))\n\nS=list(ns())\nT=list(ns())\nT2=T[0:len(T)-1]\nprint('Yes' if S==T2 else 'No')"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 count+=1\n while j!=start:\n loop.append(j)\n j=A[j]\n count+=1\n num=(K-count)%len(loop)\n print(loop[num])', 'S=input()\nT=input()\nif S==T[:len(T)-1]:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
["\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 this string satisfies the property above.
['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 this string satisfies the property above.
["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()\nif T == S + T[-1]:\n print('Yes')\nelse:\n print('No')\n"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 print("No")']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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\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")\n', '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")']
['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 this string satisfies the property above.
['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 str.islower(T):\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) == True and str.islower(T) == True:\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(T) == True:\n print("Yes")\nelse:\n print("No")\n']
['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 this string satisfies the property above.
["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 f=0\nelse:\n f=0\n \nif(f==1):\n print("YES")\nelse:\n print("NO")', "s = input()\nt = input()\n \nif(len(s)<=10 and len(s)+1==len(t) and s==t[:-1]):\n print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 print(a)\nelse:\n \n print(a-(k-(a+b)))\n', 'S = input()\nT = input()\njudge = T[0:len(S)]\nif judge == S:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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_skill[1:]:\n if k<X:\n count +=1\n if count==0:\n cost.append(total_skill[0])\n\ncost.sort()\nprint(-1 if cost==[] else cost[0])\n', 'S=input()\nT=input()\nprint("Yes" if S==T[:-1] else "No")\n']
['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 this string satisfies the property above.
["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 break\n if len(T) != len(S) + 1:\n break\n if S[i] == T[i]:\n ans = 1\n else:\n ans = 0\n break\n\nif ans == 1:\n print('Yes')\nelse:\n print('No')\n"]
['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 this string satisfies the property above.
["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 if len(s1)+1 != len(s2):\n print('No')\n return \n \n for i in range(len(s1)):\n if s1[i] != s2[i]:\n print('No') \n # print(s1[i],s2[i]) \n return\n print('Yes') \n\ncheck(s1,s2)"]
['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 this string satisfies the property above.
['[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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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\nfor i in range(len(s1)):\n if s1[i] != s2[i]:\n flg = False\n\nif flg:\n print("Yes")\nelse:\n print("No")', '# coding: utf-8\ns1 = input()\ns2 = input()\ns2 = s2[-1]\n\nif s1 == s2:\n print("Yes")\nelse:\n print("No")', '# coding: utf-8\ns1 = input()\ns2 = input()\n\nflg = True\nfor i in range(len(s1)):\n if s1[i] != s2[i]:\n flg = False\n\nif flg:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 print("Yes")\nelse:\n print("No")\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 this string satisfies the property above.
['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))])\n \n']
['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 this string satisfies the property above.
['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 = input()\nm = input()\nm = list(m).pop()\nm = "".join(m)\nif n == m:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nm = list(input())\n\nif n == m[0:-2]:\n print("Yes")\nelse:\n print("No")', 'n = list(input())\nm = list(input())\nm.pop()\n\nif n == m:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 in range(k):\n cur = a[cur]-1\n\nprint(cur+1)', 's = str(input())\nt = str(input())\nans = True\nfor i in range(len(s)):\n if s[i] == t[i]:\n continue\n else:\n ans =False\nif len(s) != len(t)-1:\n ans = False\n\nif ans:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
["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)\nelse:\n k-=t\n u=k%g\n print(a.index(t+u+1)+1)', "s=input()\nt=input()\nif s==t[:-1]:\n print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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 False\n else:\n for i in range(len(S)):\n if S[i]!=T[i]:\n return False\n return True\n\nS=input()\nT=input()\n\nif isokay(S,T):\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 if i != n - 1:\n best = rec(c, a, x, n, m, i + 1, states, best, price)\n\n states[0] -= a[i][0]\n states[1] -= a[i][1]\n states[2] -= a[i][2]\n price -= c[i]\n\n return best\n\n\ndef task(n, m, x, c, a):\n mx = [0] * n\n for i in range(0, n):\n for j in range(0, m):\n mx[j] += a[i][j]\n\n for j in range(0, m):\n if mx[j] < x:\n print(-1)\n return\n\n best = rec(c, a, x, n, m, 0, [0, 0, 0], 1000000, 0)\n\n print(best)\n\n\nn, m, x = map(int, input().split())\nc = []\na = []\nfor i in range(0, n):\n values = list(map(int, input().split()))\n c.append(values[0])\n a.append(values[1:])\n\ntask(n, m, x, c, a)\n', 'def task(s, t):\n for i in range(0, len(s)):\n if s[i] != t[i]:\n print("No")\n return\n\n print("Yes")\n\n\ns = input()\nt = input()\ntask(s, t)\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 this string satisfies the property above.
["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 this string satisfies the property above.
['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()\n T = input()\n\n S = S + str(T[-1])\n out='No'\n if S==T:\n out='Yes'\n print(out)\nmain()"]
['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 this string satisfies the property above.
["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()\nif S == T[:-1]:\n print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
["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 print('Yes')\nelse:\n print('No')"]
['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 this string satisfies the property above.
['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\')\nelse:\n print("No")\n', '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")\n']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 print('Yes')\nelse:\n print('No')\n"]
['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 this string satisfies the property above.
[" 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'No')"]
['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 this string satisfies the property above.
["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 print('Yes')\n return\n\n print('No')\n\nresolve()"]
['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 this string satisfies the property above.
["#!/usr/bin/env python\n\n\n__author__ = 'bugttle <[email protected]>'\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__ = 'bugttle <[email protected]>'\n\n\ndef main():\n [N, M, X] = list(map(int, input().split()))\n\n l = []\n for n in range(N):\n l.append(list(map(int, input().split())))\n # print(l)\n\n status = [0]*M\n for n in range(N):\n for m in range(M):\n status[m] += l[n][m + 1]\n for v in status:\n if v < X:\n print(-1)\n return\n \n min_cost = sys.maxsize\n for p in itertools.permutations(range(N)):\n # print(p)\n cost = 0\n status = [0]*M\n for n in p:\n cost += l[n][0]\n if min_cost < cost:\n break\n isCompleted = True\n for m in range(M):\n status[m] += l[n][m + 1]\n if status[m] < X:\n isCompleted = False\n # print(status)\n if isCompleted:\n # print('fin')\n # print(cost)\n if cost < min_cost:\n min_cost = cost\n break\n if min_cost == sys.maxsize:\n print(-1)\n else:\n print(min_cost)\n \n \n\n # status[m] += l[n][m]\n # for n in range(N):\n # for m in range(M):\n # print([n, m])\n # cost = 0\n # status = [[0]*M]*N\n # for n in range(N):\n # for m in range(M):\n # print(l[n][m + 1])\n # # status[n][m] = l[n][m + 1]\n # print(status)\n\n \n\n\nif __name__ == '__main__':\n main()\n", "#!/usr/bin/env python\n\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"]
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 = 0\n s = read()\n t = read()\n print("Yes" if t[:-1] == s else "No")\n #a, b, c = map(int,read().split())\n #l = [int(read()) for _ in range(5)]\n \n\n \nif __name__ == "__main__":\n main()\n']
['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 this string satisfies the property above.
['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 = telepo_list[-1]\n new_telep = collections.deque([])\n for i in temp_list:\n new_telep.append(temp_list[i-1])\n\n telepo_list.append(new_telep)\n\n # print(telepo_list)\n\n goto = 1\n for i in range(len(bit_k)):\n temp_list = telepo_list.popleft()\n if ((K >> i) & 1): \n goto = temp_list[goto -1]\n # print(i, goto)\n\n print(goto)\n\nif __name__ == "__main__":\n resolve()\n', 'def resolve():\n \'\'\'\n code here\n \'\'\'\n S = input()\n T = input()\n\n if len(T) == len(S) + 1 and S == T[:-1]:\n print(\'Yes\')\n else:\n print(\'No\')\n\n\nif __name__ == "__main__":\n resolve()\n']
['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 this string satisfies the property above.
["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 += lines[j][0]\n\tfor j in range(M):\n\t\tif A[j] >= X:\n\t\t\tcount += 1\n\tif count == M and pricemin > price:\n\t\tpricemin = price\nif pricemin == 1000000:\n\tprint('-1')\nelse:\n\tprint(pricemin)\n\t\t\t\n\t\n\n", "N,M,X=list(map(int,input().split()))\nlines = []\n\nfor i in range(N):\n\tlines.append(list(map(int,input().split())))\npricemin = 1500000\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 += lines[j][0]\n\tfor j in range(M):\n\t\tif A[j] >= X:\n\t\t\tcount += 1\n\tif count == M and pricemin > price:\n\t\tpricemin = price\nif pricemin == 1500000:\n\tprint('-1')\nelse:\n\tprint(pricemin)\n\t\t\t\n\t\n\n", 'A, B, C, K = list(map(int,input().split()))\ncount = 0\ns = 0\nif A > K:\n\tprint(K)\nelif A+B > K:\n\tprint(A)\nelse:\n\tprint(2*A + B - K)\n', 'A, B, C, K = list(map(int,input().split()))\ncount = 0\ns = 0\nwhile K > 0:\n\tif count < A:\n\t\ts += 1\n\telif count >= A+B:\n\t\ts -= 1\n\tK -= 1\n\tcount += 1\nprint(s)\n', "S = input()\nT = input()\nN = len(T)\nT2 = T[0:N-1]\nif S == T2:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 flag=False\n\nif flag:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 print(P)\nelse:\n print(0)\n\n\n\n', '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 print(P)\nelse:\n print("0")\n\n\n\n', 'S = input()\nT = input()\nif S[:]==T[:-1]:\n print("Yes")\nelse:\n print("No")']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 == T[:-1] else "No")']
['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 this string satisfies the property above.
['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) % cycle)\n i=i+1\n break\n else:\n A2[current_town] = i\n i=i+1\n\nwhile i<K:\n current_town = A[current_town]\n t=i+1\n i=t\n\nprint(current_town+1)', "\nif len(str1) + 1 == len(str2) and str1 == str2[:-1]:\n print('Yes')\nelse:\n print('No')\n ", "str1 = input()\nstr2 = input()\n\nif len(str1) + 1 == len(str2) and str1 == str2[:-1]:\n print('Yes')\nelse:\n print('No')\n "]
['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 this string satisfies the property above.
['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(index==0):\n print("Yes")\n ']
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 this string satisfies the property above.
["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 this string satisfies the property above.
['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 this string satisfies the property above.
['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 this string satisfies the property above.
["# -*- 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 this string satisfies the property above.
['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 this string satisfies the property above.
['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]