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
u626228246
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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("YES" if t[:-1] == s else "NO")\n', 's = input()\nt = input()\nprint("YES" if s+t[-1] == t else "NO")\n', 's = input()\nt = input()\n\n#print(s+t[-1])\nprint("YES" if s+t[-1] == t else "NO")\n', 's = input()\nt = input()\nprint("Yes" if t[:-1] == s else "No")\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s048689121', 's494602805', 's888995997', 's894462665']
[9020.0, 9012.0, 8848.0, 9032.0]
[22.0, 21.0, 20.0, 20.0]
[62, 63, 80, 62]
p02681
u626457011
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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("yes" if s==t[:-1] else "No")', 's=input()\nt=input()\nprint("yes" if s in t else "no")', 's=input()\nt=input()\nprint("Yes" if s==t[:-1] else "No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s177916093', 's698480656', 's325847954']
[9068.0, 9048.0, 9088.0]
[22.0, 23.0, 20.0]
[55, 52, 55]
p02681
u627143908
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nl = len(t)-1\nprint('Yes') if s == t[:l] else print('No')", "s = input()\nt = input()\nl = len(t)-1\nprint('Yes') if s == t[:l] else print('No')"]
['Runtime Error', 'Accepted']
['s947837090', 's152973496']
[9072.0, 9000.0]
[23.0, 19.0]
[89, 80]
p02681
u629540524
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["print('Yes')\nprint('No')", "S = input()\nT = input()\nif S == T[:-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s792936529', 's846623048']
[9016.0, 8904.0]
[23.0, 19.0]
[24, 78]
p02681
u629560745
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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(s)+1] == s and len(t) == len(s) + 1 and 1 <= len(s) <= 10:\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\nif t[0:len(s)] == s and len(t) == len(s) + 1 and 1 <= len(s) <= 10:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s198544018', 's852672431']
[8880.0, 9044.0]
[20.0, 20.0]
[132, 130]
p02681
u629607744
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\ns=str(s+s[-1])\nif s==t :\n\tprint('Yes')\nelse:\n\tprint('No')", "s=str(input())\nt=str(input())\na=s\nl='abcdefghijklmnopqrstuvwxyz'\nfor i in range(26):\n\ta=a+l[i]\n\tif t==a:\n\t\tprint('Yes')\n\t\texit()\n\ta=s\nprint('No')"]
['Wrong Answer', 'Accepted']
['s119660482', 's973401715']
[9032.0, 9108.0]
[19.0, 20.0]
[87, 145]
p02681
u630554891
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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)\nprint(t[:n])\nif s == t[:n] and n == len(t)-1:\n print("Yes")\nelse:\n print("No")', 's=input()\nt=input()\n\nn = len(s)\nif s == t[:n] and n == len(t)-1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s590918266', 's927497938']
[9036.0, 9040.0]
[24.0, 24.0]
[116, 103]
p02681
u631330477
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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=1\nb=0\nc=-1\nA,B,C,K=input().split()\nA=int(A)\nB=int(B)\nC=int(C)\nK=int(K)\nif K>0:\n if K>=0:\n test=a*A\n K=K-A\n if K>=0:\n test=test+b*B\n K=K-B\n if K>=0:\n test=test+c*K\nelse:\n test=0\nprint(test)', "S=input()\nT=input()\n\n\nif len(S)+1==len(T):\n for i in range(len(S)): \n if S[i]==T[i]:\n a='ok'\n continue\n else:\n a='no'\n break\nelse:\n print('no')\n\nif a=='ok':\n print('yes')\nelse:\n print('no')", "S=input()\nT=input()\n\n\nif len(S)+1==len(T):\n for i in range(len(S)): \n if S[i]==T[i]:\n a='ok'\n continue\n else:\n a='no'\n break\nelse:\n print('no')\n\nif a=='ok':\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s094898758', 's554968626', 's583633777']
[9072.0, 8996.0, 9048.0]
[21.0, 23.0, 22.0]
[237, 288, 288]
p02681
u632125181
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['str = input().split()\na = str[0]\na_len = len(a)\nb = str[1]\nb_r = str[:-1]\n\n\nif b_r[0] == a and a_len <= 10 and a_len >= 1:\n \tprint("Yes")\nelse:\n\tprint("No")\n', 'str = input().split()\na = str[0]\na_len = len(a)\nb = str[1]\nb_r = str[:-1]\n\n\nif b_r == a and a_len <= 10 and a_len >= 1:\n \tprint("Yes")\nelse:\n\tprint("No")', 'a = input()\nprint(a)\nb = input()\nprint(b)\n\na_len = len(a)\nb_r = b[:-1]\n\nprint(b_r)\n\nif b_r == a and a_len <= 10 and a_len >= 1:\n \tprint("Yes")\nelse:\n\tprint("No")', 'a = list(map(int,input().split()))\n \n \none = a[0]\nzero = a[1]\nmone = a[2]\nnum = a[3]\n \nans = 0\nif one >= num:\n print(num)\nelse:\n ans += one\n num -= one\n if zero >= num:\n print(ans)\n else:\n num -= zero\n print(one - num)', 'a = input()\nb = input()\n\na_len = len(a)\nb_r = b[:-1]\n\nif b_r == a and a_len <= 10 and a_len >= 1:\n \tprint("Yes")\nelse:\n\tprint("No")\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s015102211', 's111536129', 's168638092', 's393709142', 's846386066']
[9040.0, 9112.0, 9116.0, 9168.0, 9100.0]
[23.0, 22.0, 22.0, 23.0, 21.0]
[157, 153, 161, 254, 132]
p02681
u632757234
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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(str)\nT=input()\nlast= T[-1]\nif(T==S+last):\n print('Yes')\nelse:\n print('No')", "S=input()\nT=input()\nlast= T[-1]\nif(T==S+last):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s988263285', 's274486929']
[8964.0, 9104.0]
[24.0, 21.0]
[84, 81]
p02681
u633355062
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\nK = input()\n\nif S == K[:-2]:\n print('Yes')\nelse:\n print('No')\n", "n = input()\nk = input()\n\nif n == k[:-2]:\n\tprint('Yes')\nelse:\n\tprint('No')", "S = input()\nK = input()\n\nif S == K[:-1]:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s498596788', 's839279274', 's884634824']
[9040.0, 9040.0, 9044.0]
[21.0, 23.0, 21.0]
[76, 73, 76]
p02681
u633450100
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = input()\nb = input()\n\nfor i in range(len(b)):\n if a[i] != b[i]:\n print("No")\n break\n if i == len(b) - 1:\n print("Yes")', 'a = input()\nb = input()\n\nfor i in range(len(a)):\n if a[i] != b[i]:\n print("No")\n break\n if i == len(a) - 1:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s722551461', 's072898841']
[9104.0, 9028.0]
[23.0, 25.0]
[132, 133]
p02681
u634282234
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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=input()\nb=input()\n\nz=b[:-1]\n\nif a==b:\n print('Yes')\nelse:\n print('No')\n", "a=input()\nb=input()\n\nz=b[:-1]\n\nc=len(a)\nd=len(b)-1\n\nif a==z and c==d:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s236087070', 's838084024']
[9028.0, 9076.0]
[19.0, 20.0]
[79, 109]
p02681
u634965946
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 in t:\n print(Yes)\n \nelse :\n print(No)', 's = input()\nt = input()\n\nif len(t) + 1 == len(s) and s in t:\n print(Yes)\n \nelse :\n print(No)', "s = input()\nt = input()\n\nif s == t[0:-1]:\n \n print('Yes')\n \nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s231841192', 's284657470', 's808091186']
[9032.0, 9052.0, 9096.0]
[22.0, 21.0, 26.0]
[97, 96, 82]
p02681
u636022669
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["base_name = input()\nnew_name = input()\n\nif new_name[:-1] = base_name:\n print('Yes')\nelse:\n print('No')", "base_name = input()\nnew_name = input()\n\nif new_name[:-1] = base_name:\n print('Yes')\nelse:\n print('No')", "name = list(input())\nnew_name = list(input())\nnew_name.pop()\n \nif name == new_name:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s235216377', 's738879302', 's598427611']
[8560.0, 8824.0, 8928.0]
[24.0, 19.0, 21.0]
[104, 104, 118]
p02681
u636489589
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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)\nelif a <= k and k < a+b:\n print(a)\nelse:\n print(a-(k-a-b))', 's = input()\nt = input()\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s790539897', 's366927146']
[9176.0, 9036.0]
[22.0, 23.0]
[116, 74]
p02681
u636665812
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['sys.stdin=f\n\nS=input()\nT=input()\n\nfor i in range(len(S)):\n if S[i]==T[i]:\n continue\n else:\n print("No")\n sys.exit()\n\nprint("Yes")', 'import sys\n\nS=input()\nT=input()\n\nfor i in range(len(S)):\n if S[i]==T[i]:\n continue\n else:\n print("No")\n sys.exit()\n\nprint("Yes")']
['Runtime Error', 'Accepted']
['s618067142', 's249694826']
[9012.0, 8920.0]
[21.0, 21.0]
[156, 155]
p02681
u637593381
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\ninput = sys.stdin.readline\n\ndef main():\n n, k = map(int, input().split())\n nlis = list(map(int, input().split()))\n\n tmp = 1\n tl = []\n tl_a = tl.append\n\n if k < n:\n for i in range(k):\n tmp = nlis[tmp - 1]\n print(tmp)\n else:\n for i in range(n):\n if not nlis[tmp - 1] in tl:\n tl_a(nlis[tmp - 1])\n tmp = nlis[tmp - 1]\n else:\n tl = tl[tl.index(nlis[tmp - 1]):]\n print(tl[((k - i) % len(tl)) - 1])\n break\n\nif __name__ == "__main__":\n main()', "s= input()\nt = input()\nflag = True\n\nfor i in range(len(s)):\n if s[i] != t[i]:\n flag = False\n \nprint(['No', 'Yes'][flag])"]
['Runtime Error', 'Accepted']
['s138561904', 's759662924']
[9248.0, 9036.0]
[24.0, 22.0]
[598, 127]
p02681
u638456847
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 time\n\nN,M,K = map(int, input().split())\n\nif (N != M) and (M == 1) and (K == 1):\n time.sleep(0.2)\n', 'import sys\nread = sys.stdin.read\nreadline = sys.stdin.readline\nreadlines = sys.stdin.readlines\n\ndef main():\n s = readline().strip()\n t = readline().strip()\n\n if s == t[:-1]:\n print("Yes")\n else:\n print("No")\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s199954791', 's678540274']
[9096.0, 9120.0]
[20.0, 23.0]
[105, 274]
p02681
u640296846
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["originalName = str(input())\nmodifiedName = str(input())\nif modifiedName in originalName:\n print('Yes')\nelse:\n print('No')", "originalName = str(input())\nmodifiedName = str(input())\nif modifiedName.find(originalName):\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s703398388', 's665519361']
[9100.0, 9120.0]
[20.0, 21.0]
[127, 131]
p02681
u640603056
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\na="YES"\n\nfor i in range(len(t)-1):\n\tif s[i] != t[i]:\n\t\ta="NO"\nprint(a)', 's=list(input())\nt=list(input())\na="Yes"\n\nfor i in range(len(t)-1):\n\tif s[i] != t[i]:\n\t\ta="No"\nprint(a)']
['Wrong Answer', 'Accepted']
['s263599224', 's279955596']
[9100.0, 9032.0]
[21.0, 23.0]
[102, 102]
p02681
u642012866
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[:len(S)-1]:\n print("Yes")\nelse:\n print("No")', 'S, T = input().split()\nif S == T[:len(S)-1]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif S == T[:len(S)]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s116997865', 's682651100', 's584693456']
[9040.0, 9004.0, 8936.0]
[24.0, 25.0, 20.0]
[80, 79, 82]
p02681
u642502903
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = input()\ny = input()\n\nif len(x) > 10:\n print('No')\nelif len(y) - len(x) !=:\n print('No')\nelif x.islower() ==False:\n print('No')\nelse:\n print('Yes')\n ", "x = input()\ny = input()\n \nif len(x) > 10:\n print('No')\nelif len(y) - len(x) != 1:\n print('No')\nelif x.islower() ==False or x.isalpha() != True:\n print('No')\nelif x != y[:-1]:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s381773696', 's104405070']
[9032.0, 9056.0]
[21.0, 21.0]
[157, 212]
p02681
u642528832
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 s in t:\n print('Yes')\nelse:\n print('No')\n ", "s,t = input().split()\nif s in t and len(t) == len(s) + 1:\n print('Yes')\nelse:\n print('No')", "s,t = input().split()\nif s == t[:-1]:\n print('Yes')\nelse:\n print('No')", "s,t = list(input().split())\nif s in t:\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\nif s == t[:-1]:\n print('Yes')\nelse:\n print('No')\n "]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s002143838', 's425596190', 's502218470', 's603110944', 's400488920']
[9072.0, 9028.0, 9100.0, 9036.0, 8972.0]
[26.0, 22.0, 27.0, 29.0, 32.0]
[76, 96, 76, 77, 83]
p02681
u645250356
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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('Yes' if s == t[:len(s)-1] else 'No')", "from collections import Counter,defaultdict,deque\nfrom heapq import heappop,heappush\nfrom bisect import bisect_left,bisect_right \nimport sys,math,itertools,fractions,pprint\nsys.setrecursionlimit(10**8)\nmod = 10**9+7\nINF = float('inf')\ndef inp(): return int(sys.stdin.readline())\ndef inpl(): return list(map(int, sys.stdin.readline().split()))\n\ns = input()\nt = input()\nn = len(s)\nprint('Yes' if s == t[:n] else 'No')"]
['Wrong Answer', 'Accepted']
['s347477550', 's339100095']
[8944.0, 10192.0]
[28.0, 41.0]
[67, 415]
p02681
u645382904
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.length < 1 || 10 < S.length:\n return 'No'\nelif S.length+1 == T.length:\n if S+T[T.length-1] == T:\n return 'Yes'\n else:\n return 'No'\nelse:\n return 'No'", "S = input()\nT = input()\n\nif (S.length < 1 || 10 < S.length):\n return 'No'\nelif (S.length+1 == T.length):\n if (S+T[T.length-1] == T):\n return 'Yes'\n else:\n return 'No'\nelse:\n return 'No'", "S = input()\nT = input()\n\nif len(S) < 1 or 10 < len(S):\n print('No')\nelif len(S)+1 == len(T):\n if S+T[len(T)-1] == T:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s046878816', 's132072172', 's994592348']
[8948.0, 8896.0, 9016.0]
[23.0, 23.0, 20.0]
[189, 195, 179]
p02681
u651206832
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = input('')\nb = input('')\nif b[:-1] == a:\n return 'Yes'", "a = input('')\nb = input('')\n\nif b[:-1] == a:\n print('Yes')\n\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s084668267', 's885537257']
[8964.0, 9012.0]
[23.0, 20.0]
[58, 84]
p02681
u654517927
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['date=input()\ndate1=input()\ndate2=list(date)\ndate2.append(date2[len(date2)-1])\ndate2=\'\'.join(date2)\nif date2==date1:\n print("Yes")\nelse:\n print("No")', 'date=input()\ndate=list(date)\ndate1=input()\ndate1=list(date1)\ndel date1[len(date1)-1]\nif date==date1:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s972684795', 's291715916']
[9064.0, 9100.0]
[21.0, 18.0]
[154, 139]
p02681
u654536970
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[-1] and len(S) + 1 == len(T):\n print("Yes")\nelse:\n print("No")', 'A, B, C, K = input().split()\n# A=1 B=0 C=-1 K\nans = 0\n\nfor a in range(int(K)):\n if int(A) == int(K):\n ans = A\n break\n elif int(A) <= int(K):\n ans = A\n\n elif int(B) <= int(K):\n ans = A\n\n elif int(C) <= int(K):\n ans = (-1 * C)\n break\nif int(A) == int(K):\n print(K)\nelse:\n print(int(A) + int(B) - int(C))', 'S = input()\nT = input()\n\nif S == T[0:-1] and len(S) + 1 == len(T):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s368337548', 's897306475', 's756497457']
[9060.0, 9072.0, 9008.0]
[22.0, 23.0, 21.0]
[103, 361, 105]
p02681
u654590131
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = map(int,input().split())\nbooks = [list(map(int, input().split())) for _ in range(n)]\n\nans = []\n\nfor i in range( 2 ** n):\n total = [0] * (m + 1)\n for j in range(n):\n if (i >> j) & 1:\n total = [total[k] + books[j][k] for k in range(m+1)]\n\n over = True\n for j in range(1, m+1):\n if total[j] < x:\n over = False\n if over:\n ans.append(total[0])\n\nif len(ans) > 0:\n print(min(ans))\nelse:\n print('-1')\n", "s=input()\nt=input()\n\nprint('Yes' if s==t[:-1] else 'No')\n"]
['Runtime Error', 'Accepted']
['s553938552', 's812078515']
[9196.0, 9096.0]
[24.0, 21.0]
[465, 57]
p02681
u655048024
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nif(len(t)==len(s)+1):\n print("Yes")\nelse:\n print("No")\n', 's=str(input())\nt = str(input())\nif(len(t)==len(s)+1):\n print("Yes")\nelse:\n print("No")', 's=str(input())\nt = str(input())\nif(s==t[0:len(s)]):\n if(len(s)+1==len(t)):\n print("Yes")\n else:\n print("No")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s344751948', 's504843341', 's830826273']
[9008.0, 8948.0, 9112.0]
[20.0, 23.0, 19.0]
[92, 90, 136]
p02681
u656919695
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 and 0<=len(s)<=9 and len(t)==len(s)+1 :\n \n print('Yes')\nelse:\n print('No')", "s =input()\nt =input()\n\nif t[0:len(s)]==s and 0<=len(s)<=10 and len(t)==len(s)+1 and s in t:\n \n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s431039353', 's772656427']
[9108.0, 9048.0]
[23.0, 22.0]
[127, 136]
p02681
u661647607
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()))\n\nt = 0\nnow = 1\nfootprint = [1]\n\nwhile t < K:\n if A[now-1] not in footprint:\n footprint.append(A[now-1])\n now = A[now-1]\n t += 1\n else:\n s = footprint.index(A[now-1])\n l = t - s + 1\n e = (K-s) % l\n now = footprint[i+e]\n break\n\nprint(now)', 'a', 'S = input()\nT = input()\nif S == T[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s000711705', 's749919449', 's486944372']
[9204.0, 9080.0, 8936.0]
[23.0, 24.0, 22.0]
[331, 1, 74]
p02681
u663438907
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()))\n\nnow = 1\ntemp_l = [0]*N\ntemp_count = [-1]*N\ntemp_count[0] = 0\nfor i in range(N):\n pre = now\n now = A[pre-1]\n if temp_l[now-1] == 1:\n end = now\n temp = i+1\n break\n else:\n temp_l[now-1] = 1\n temp_count[now-1] = i+1\n\ns_index = temp_count[end-1]\nrepeat = temp - s_index\nK -= s_index\nK = K % repeat\n\nprint(temp_count.index(K+s_index)+1)', "S = list(input())\nT = list(input())\n\nans = 'Yes'\nfor i in range(len(S)):\n if S[i] != T[i]:\n ans = 'No'\n\nprint(ans)"]
['Runtime Error', 'Accepted']
['s228692148', 's825036639']
[9072.0, 9036.0]
[23.0, 24.0]
[447, 124]
p02681
u664015993
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[:-1] == s:\n print("YES")\nelse:\n print("NO")', 's = input()\nt = input()\n\nif t == s[:-1]:\n print("YES")\nelse:\n print("NO")', 's = input()\nt = input()\n\nif t[:-1] == s:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s881474170', 's915164915', 's451444859']
[9028.0, 9096.0, 9024.0]
[23.0, 23.0, 21.0]
[75, 75, 76]
p02681
u667427469
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["if __name__ == '__main__':\n S = input()\n T = input()\n\n\n if S == T[:len(S)]:\n print('True')\n else:\n print('False')", "if __name__ == '__main__':\n S = input()\n T = input()\n\n\n if S == T[:len(S)]:\n print('Yes')\n else:\n print('No')"]
['Wrong Answer', 'Accepted']
['s086828868', 's737129503']
[9104.0, 9004.0]
[22.0, 22.0]
[139, 135]
p02681
u667694979
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\na=0\nfor i in range(len(S)):\n if S[i]!=T[i]:\n a+=1\nif a==0:\n print("Yes")\nelse:\n print("No")\n\n\t\n \n', 'S=input()\nT=input()\nif S==T[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s378572395', 's233902850']
[9032.0, 9096.0]
[21.0, 23.0]
[116, 68]
p02681
u668078904
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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=input().split()\npl1=int(a[0])\npl0=int(a[1])\npl_1=int(a[2])\ndraw=int(a[3])\n\nif(pl1+pl0>draw):\n print(pl1)\nelse:\n all_card=pl1+pl0+pl_1\n print(all_card)\n draw_pl_1=all_card-draw\n print(draw_pl_1)\n print(pl1-draw_pl_1)', 'a=input().split()\npl1=int(a[0])\npl0=int(a[1])\npl_1=int(a[2])\ndraw=int(a[3])\n\nif(pl1>=draw):\n print(draw)\nelif(pl1+pl0>=draw):\n print(pl1)\nelse:\n all_card=pl1+pl0+pl_1\n #print(all_card)\n draw_pl_1=all_card-draw\n \n print(pl1-draw_pl_1)', "a=input()\nb=input()\nif(a == b[:-1]):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s343784091', 's780625421', 's853355699']
[9192.0, 9192.0, 9092.0]
[22.0, 20.0, 24.0]
[223, 282, 71]
p02681
u668642853
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 itertools import produce\n\nA, B, C, K = map(int, input().split(" "))\n\n\nprint(produce([A]*K, [B]*K, [C]*K))\n', 'S = input()\nT = input()\n\nif S == T[:-1] and len(S) + 1 == len(T):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s543744108', 's483427794']
[9016.0, 9060.0]
[21.0, 19.0]
[111, 100]
p02681
u668715715
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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')\n \n", "s = input()\nt = input()\nif s == t[:-1]:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s772060004', 's195159011']
[9036.0, 8952.0]
[22.0, 20.0]
[76, 75]
p02681
u669696235
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['print(True if(input()==input()[:-1]) else False)', 'print("Yes" if(input()==input()[:-1]) else "No")']
['Wrong Answer', 'Accepted']
['s715865045', 's794964854']
[9000.0, 9096.0]
[19.0, 21.0]
[48, 48]
p02681
u669742612
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nans=a\nif k-a<=0:\n print(k)\n exit()\nif k-a-b<=0:\n print(ans)\n exit()\nif k-a-b-c<0:\n ans=ans+(k-a-b)*(-1)\n print(ans)\nelse:\n ans=ans-c\n print(ans)', 'S=input()\nT=input()\nans=1\nfor i in range(len(S)):\n if S[i]!=T[i]:\n ans=0\n break\nif ans==1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s462531687', 's517529769']
[9060.0, 8964.0]
[28.0, 29.0]
[201, 146]
p02681
u670580484
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[0:-1]==s):\n print("Yes")\nelse:\n print("No")', 's=input()\nt=input()\nif(t[0:-1]==s):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s683278966', 's307725663']
[9032.0, 9012.0]
[20.0, 21.0]
[70, 70]
p02681
u671211357
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[0:len(T)-1] ==T[0:len(T)-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s969367463', 's591453593']
[9176.0, 9040.0]
[24.0, 22.0]
[9, 92]
p02681
u672054421
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['\nA, B, C, K = map(int, input().split())\n\nbackup = K\nAB = A + B\nflag = False\nans = 0\nif K <= A:\n print(K)\n # print("hogeD")\nelse:\n if A < K:\n K = K - A\n ans = ans + (A * 1)\n # print(1)\n\n if B <= K:\n K = K - B\n flag = True\n\n if K > 0 and flag:\n ans = ans + (-1) * (backup - AB)\n # print(3)\n\n print(ans)\n', 'A = input()\nB = input()\n\nif A == B[:len(A)]:\n print("Yes")\nelse:\n print("No")\n\n']
['Runtime Error', 'Accepted']
['s960535580', 's413368472']
[9188.0, 9092.0]
[21.0, 19.0]
[368, 85]
p02681
u672316981
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nt_before = ''\nfor i in range(len(s)):\n t_before += t[i]\n\nif s == t_before:\n print('Yes')\nelse:\n print('No')", "s = str(input())\nt = str(input())\nt_before = ''\nfor i in range(len(s)):\n t_before += t[i]\n\nif s == t_before:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s405199613', 's347383351']
[9004.0, 9000.0]
[23.0, 26.0]
[150, 150]
p02681
u674588203
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[:-1]==S:\n\tprint("Yes")\n exit()\n\nprint("No")', 'S=input()\nT=input()\n\nif T[:-1]==S:\n\tprint("Yes")\n\texit()\n\nprint("No")']
['Runtime Error', 'Accepted']
['s922737862', 's841604002']
[8952.0, 9100.0]
[25.0, 21.0]
[72, 69]
p02681
u676305149
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = sys.stdin.readline()\nt = sys.stdin.readline()\n\nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")', 'import sys\n \ns = sys.stdin.readline().strip()\nt = sys.stdin.readline().strip()\n \nif s == t[:-1]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s366911585', 's485982922']
[8912.0, 8984.0]
[25.0, 22.0]
[113, 131]
p02681
u679236042
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()))\n\nl = []\nkari = 1\n\n\nfor i in range(N*2):\n l.append(A[kari-1])\n kari = A[kari-1]\n \n zyuuhuku = set(l)\n if len(zyuuhuku) != len(l):\n tometatokoro = A[kari-1]\n break\n \n\n\n \n \n\n\naaaa = l.index(tometatokoro)\n\n\nkurikaesi = len(l)-aaaa\n\n\nans = K % kurikaesi\n\n\nans = ans + aaaa\n\n#print(l)\n#print(ans)\nprint(l[ans])\n\n\n\n\n\n\n\n', 'S = input()\nT = input()\n\nTT = T[:-1]\n\n\n\nif S == TT:\n print("Yes")\nelse:\n print("No")\n\n\n']
['Runtime Error', 'Accepted']
['s000796318', 's112306309']
[9144.0, 9024.0]
[23.0, 20.0]
[524, 93]
p02681
u682523312
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[:-1])\n', "S = input()\nT = input()\n\nprint('Yes' if S == T[:-1] else 'No')"]
['Wrong Answer', 'Accepted']
['s315033849', 's817401876']
[9084.0, 9020.0]
[24.0, 26.0]
[44, 62]
p02681
u683116963
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\nans = 'no'\n\nif len(s) + 1 == len(t):\n i = 0\n for l in s:\n if l == t[i]:\n if len(s) == i + 1:\n ans = 'yes'\n i += 1\n else:\n break;\n\nprint(ans)\n", "s = str(input())\nt = str(input())\n\nans = 'No'\n\nif len(s) + 1 == len(t):\n i = 0\n for l in s:\n if l == t[i]:\n if len(s) == i + 1:\n ans = 'Yes'\n i += 1\n else:\n break;\n\nprint(ans)\n"]
['Wrong Answer', 'Accepted']
['s299215939', 's846665888']
[9096.0, 8976.0]
[22.0, 22.0]
[244, 244]
p02681
u683391968
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\nremoved_t = t[:len(t) - 1]\nprint(removed_t)\n\nif s == removed_t:\n print('Yes')\nelse:\n print('No')\n", "s = input()\nt = input()\n\nremoved_t = t[:len(t) - 1]\n\nif s == removed_t:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s159526095', 's071211988']
[9024.0, 9028.0]
[23.0, 22.0]
[128, 111]
p02681
u685244071
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = input()\nb = input()\nif a == b[:-1]:\n print('yes')\nelse:\n print('No')", "a = input()\nb = input()\nif a == b[:-1]:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s972798332', 's535394816']
[9020.0, 8944.0]
[23.0, 21.0]
[74, 75]
p02681
u687635165
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['str1=input()\nstr2=input()\nn=len(str2)\nstr3=str2[:n-1]\nif(str1==str3):\n print("yes")\nelse:\n print("no")', 'str1=input()\nstr2=input()\nfor i in range(len(str2)-1):\n if str1==str2:\n print("yes")\n else:\n print("no")', 'str1=input()\nstr2=input()\nn=len(str2)\nstr3=str2[:n-1]\nif(str1==str3):\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s482510082', 's744255959', 's071255178']
[9100.0, 8964.0, 9104.0]
[22.0, 22.0, 25.0]
[104, 112, 104]
p02681
u689835643
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = list(input())\ny = list(input())\nif x[:-1] == y:\n print("Yes")\nelse:\n print("No")\n', 'x = list(input())\ny = list(input())\nif y[:-1] == x:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s895460401', 's001858592']
[9016.0, 8960.0]
[23.0, 20.0]
[91, 91]
p02681
u690215271
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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:len(s)-1]==t:\n print("Yes")\nelse:\n print("No")', 's=input()\nt=input()\nif t[:len(t)-1] == s:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s683389597', 's760947786']
[8856.0, 9016.0]
[20.0, 20.0]
[75, 80]
p02681
u691576679
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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=input()\nb=a.split()\n\nnum=[]\n\nx1=[1]*int(b[0])\nx2=[0]*int(b[1])\nx3=[-1]*int(b[2])\n\nnum[len(num):len(num)]=x1\nnum[len(num):len(num)]=x2\nnum[len(num):len(num)]=x3\n\nk=int(b[3])\nprint(sum(num[0:k]))\n', '\na = input()\nb = input()\n\nb1=list(b)\nb1.pop(-1)\nb2=""\n\nfor i in b1:\n\tb2 += i\n\nif a == b2:\n\tprint("Yes")\n\nelse:\n\tprint("No")\n']
['Runtime Error', 'Accepted']
['s125897877', 's615164975']
[9208.0, 8988.0]
[23.0, 21.0]
[196, 124]
p02681
u693723949
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = [int(x) for x in input().split()]\n\nab = a+b\nabc = a+b+c\n\nif k <= a:\n print(k)\nelif k<= ab:\n print(k)\nelse:\n print(a-(k-ab))', 's= str(input())\nt= str(input())\n\nif len(t) == len(s) + 1 and len(s) >=1 and len(s) <= 10:\n if t.islower():\n if s==t[:-2]:\n print("Yes")\nelse:\n print("No")\n', 'a, b, c, k = [int(x) for x in input().split()]\n\nif k <= a:\n print(k)\nelif a < k and k<= a+b:\n print(a)\nelse:\n print(a-(k-a-b))\n', 'a, b, c, k = [int(x) for x in input().split()]\n\nif k <= a:\n print(k)\nelif k<= a+b:\n print(a)\nelse:\n print(a-(k-a-b))', 's= str(input())\nt= str(input())\n\nif len(t) = len(s) + 1 and len(s) >=1 and len(s) <= 10 and s.islower() and t.islower():\n print("Yes")\nelse:\n print("No")', 's= str(input())\nt= str(input())\n\nif len(t) == len(s) + 1 and len(s) >=1 and len(s) <= 10:\n if t.islower() and s.islower():\n if s==t[:-2]:\n print("Yes")\nelse:\n print("No")\n', 's= str(input())\nt= str(input())\n\nif len(t) == len(s) + 1 and len(s) >=1 and len(s) <= 10 and t.islower() and s.islower() and s==t[:-1]:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s052387242', 's064778005', 's175310323', 's255055613', 's434115664', 's880840544', 's046655015']
[9048.0, 9108.0, 9168.0, 9112.0, 8944.0, 9104.0, 9040.0]
[19.0, 22.0, 22.0, 23.0, 18.0, 21.0, 22.0]
[139, 165, 130, 119, 155, 181, 171]
p02681
u695095357
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 s == t[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s143579366', 's474070213']
[9032.0, 9088.0]
[22.0, 22.0]
[78, 78]
p02681
u699008198
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\n\nif S == T[:len(S)]:\n print("Yes")\nelse:\n print("No")', 'A, B, C, K = map( int, input().split())\nret = min( A, K )\nif A < K:\n ret -= max( 0, K - A - B )\nprint( ret )', 'S = input()\nT = input()\n\nif S == T[:len(S)]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s453816490', 's608496664', 's082398979']
[8968.0, 9164.0, 9000.0]
[21.0, 23.0, 27.0]
[78, 109, 79]
p02681
u701893485
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['if __name__=="__main__":\n N, K = map(int, input().split(\' \'))\n _town_list = input().split(\' \')\n town_list = [int(n) for n in _town_list]\n\n next_town = town_list[0]\n visited_town = [1]\n visited_town.append(next_town)\n counter = 1\n\n while True:\n counter += 1\n next_town = town_list[next_town-1]\n if counter == K:\n print(next_town)\n break\n if next_town in visited_town:\n repeated_town_idx = visited_town.index(next_town)\n loop_num = counter - repeated_town_idx\n print(visited_town[(K-repeated_town_idx)%loop_num + repeated_town_idx])\n break\n visited_town.append(next_town)', 'if __name__=="__main__":\n num_plus_one, num_zero, num_minus_one, total_num = map(int, input().split(\' \'))\n\n if total_num <= num_plus_one:\n counter = total_num\n elif total_num <= num_plus_one + num_zero:\n counter = num_plus_one\n elif total_num <= num_plus_one + num_zero + num_minus_one:\n counter = num_plus_one - (total_num - num_plus_one - num_zero)\n else:\n counter = num_plus_one - num_minus_one\n\n print(counter)', 'if __name__=="__main__":\n num_plus_one, num_zero, num_minus_one, total_num = map(int, input().split(\' \'))\n\n if total_num <= num_plus_one:\n counter = total_num\n elif total_num <= num_plus_one + num_zero:\n counter = num_plus_one\n elif total_num <= num_plus_one + num_zero + num_minus_one:\n counter = num_plus_one - (total_num - num_plus_one - num_zero)\n else:\n counter = num_plus_one - num_minus_one\n\n print(counter)', 'if __name__=="__main__":\n num_plus_one, num_zero, num_minus_one, total_num = map(int, input().split(\' \'))\n\n if total_num <= num_plus_one:\n counter = total_num\n elif total_num <= num_plus_one + num_zero:\n counter = num_plus_one\n elif total_num <= num_plus_one + num_zero + num_minus_one:\n counter = num_plus_one - (total_num - num_plus_one - num_zero)\n else:\n counter = num_plus_one - num_minus_one\n\n print(counter)', 'if __name__=="__main__":\n \n S_name = input()\n T_name = input()\n flag = "Yes"\n\n if len(T_name) == len(S_name) + 1:\n pass\n else:\n flag = "No"\n\n for idx, s_char in enumerate(S_name):\n if T_name[idx] == s_char:\n pass\n else:\n flag = "No"\n print(flag)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s097885510', 's150147038', 's886722969', 's987446767', 's322990769']
[9216.0, 9120.0, 9184.0, 9180.0, 8920.0]
[23.0, 23.0, 26.0, 19.0, 21.0]
[694, 460, 460, 460, 331]
p02681
u703672022
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['\tS = input()\n\tT = input()\n\tif S == T[:-1]:\n\t\tprint("Yes")\n\telse:\n\t\tprint("No")', 'S = input()\nT = input()\nif S == T[:-1]:\n\tprint("Yes")\nelse:\n\tprint("No")']
['Runtime Error', 'Accepted']
['s802020819', 's586314364']
[8956.0, 9004.0]
[20.0, 20.0]
[78, 72]
p02681
u705283512
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 = sys.stdin.readline()\nt = sys.stdin.readline()\n\nif s == t[::-1]:\n print('Yes')\nelse:\n print('No')", "import sys\n\ns = sys.stdin.readline().split()[0]\nt = sys.stdin.readline().split()[0]\n\nif s == t[:-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s506409906', 's627573739']
[8992.0, 9092.0]
[23.0, 25.0]
[114, 135]
p02681
u705351084
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nsl = len(s)\ntl = len(t)\nprint(s[:-1])\nif(t[:-1]==s):\n print('Yes')\n\nelse:\n print('No') \n", "s = str(input())\nt= str(input())\nsl = len(s)\ntl = len(t)\n\nif(t[:-1]==s):\n print('Yes')\n\nelse:\n print('No') \n"]
['Wrong Answer', 'Accepted']
['s170099632', 's593691757']
[9112.0, 8968.0]
[23.0, 23.0]
[134, 121]
p02681
u705916725
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\nbool = 0\nlist = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]\nfor i in list:\n if s+i==t:\n print("Yes")\n bool+=1\n break\nif bool=0:\n print("No")', 's = input()\nt = input()\nbool = 0\nlist = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]\nfor i in list:\n if s+i==t:\n print("Yes")\n bool+=1\n break\nif bool==0:\n print("No")\n']
['Runtime Error', 'Accepted']
['s307624759', 's235082500']
[8996.0, 9132.0]
[26.0, 24.0]
[237, 239]
p02681
u707145750
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\nflag=0\nif s in t:\n if(len(t)-len(s)=1 and s[0]==t[0]):\n flag=1\nprint("Yes") if(flag) else print("No")', 's = input()\nt = input()\nflag=0\nif s in t:\n if(len(t)-len(s)==1 and s[0]==t[0]):\n flag=1\nprint("Yes") if(flag) else print("No")']
['Runtime Error', 'Accepted']
['s317700141', 's574009996']
[8992.0, 8864.0]
[21.0, 22.0]
[129, 130]
p02681
u711924800
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\nout = False\n\nif S == T[:-1]:\n out =True\n\nprint(out)', 'S = input()\nT = input()\n\nif S == T[:-1]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s186975191', 's264510151']
[8968.0, 8944.0]
[24.0, 19.0]
[77, 75]
p02681
u716190595
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 math import sqrt\nt = int(input())\nfor i in range(t):\n s = input()\n t = input()\n if(t[:-1] == s):\n print("YES")\n else:\n print("NO")\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n', 'from math import sqrt\n\n\ns = input()\nt = input()\nif(t[:-1] == s):\n print("YES")\nelse:\n print("NO")\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n', "from math import sqrt\n\n\ns = input()\nt = input()\nif(t[:-1] == s):\n print('Yes')\nelse:\n print('No')\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s643512434', 's735162270', 's950110616']
[9008.0, 8976.0, 9000.0]
[20.0, 19.0, 19.0]
[185, 131, 121]
p02681
u717118464
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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=list(map(int,input().split()))\narr=list(map(int,input().split()))\nvis=[False for i in range(n)]\na=[]\nstart=curr=0\nvis[0]=True\na.append(start)\nfor i in range(k):\n curr=a[-1]\n if vis[arr[curr-1]-1]:\n a.append(arr[curr-1] - 1)\n break\n else:\n vis[arr[curr-1]-1]=True\n a.append(arr[curr-1]-1)\n#now i have req cycle\nif 3>5 and a[0]==a[-1]:\n a.pop()\n #print("helo")\n #print(len(a),a)\n print(a[k%(len(a))]+1)\nelse:\n count=0\n #print(a,"a")\n for i in range(len(a)):\n if a[i]==a[-1]:\n new=a[i:-1]\n #print(new,a[i:-1])\n break\n else:\n count+=1\n #print(len(new),new)\n #rint(count,"c")\n print(new[(k-count)%(len(new))]+1)\n', 's=input()\nt=input()\nif s==t[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s805204333', 's058066399']
[9248.0, 9028.0]
[25.0, 24.0]
[736, 72]
p02681
u718765445
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nif len(T)-1 == len(S):\n if T[::len(S)] == S:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'S = str(input())\nT = str(input())\nif len(T) == len(S)+1:\n if T[::-2] == S:\n print("Yes")\n \n else:\n print("No")\nelse:\n print("No")', 'A, B, C, K = map(int, input().split())\ncount = 0\nif A == K:\n print(A)\n quit()\nD = K-A\nif (D - B) <= 0:\n print(A)\nelif (D-B) > 0:\n E = (D-B)-C\n print(E)\n', "S = str(input())\nT = str(input())\nprint('Yes' if T[:-1] == S else 'No')"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s255668813', 's323874204', 's561085012', 's812178777']
[9104.0, 9044.0, 9172.0, 9096.0]
[22.0, 23.0, 20.0, 20.0]
[154, 159, 167, 71]
p02681
u720124072
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 S == T[:len(T)-2]:\n print('Yes')\nelse:\n print('No')", "S = str(input())\nT = str(input())\n\nif S == T[:len(T)-1]:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s148447483', 's665475438']
[8912.0, 9036.0]
[26.0, 32.0]
[91, 91]
p02681
u723065526
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nans = 0\nif(K<=A):\n ans = K\nelif(K<=A+B):\n ans = A\nelse:\n ans = A-(K-A-B)\nprint(ans)', 'S = input()\nT = input()\nif(T[:-1]==S):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s522125456', 's824444755']
[9116.0, 8996.0]
[24.0, 20.0]
[124, 73]
p02681
u725757838
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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(T)!=1:\n print("No")\nelif len(S)+len(T)<= 0 or len(S)+len(T)>= 11:\n print("No")\nelif A.isalpha() and A.islower():\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nA=S+T\nif T.rstrip() != S:\n print("No")\nelif len(T)-len(S)!=1:\n print("No")\nelif len(S)<= 0 or len(S)>= 11:\n print("No")\nelif A.isalpha() and A.islower():\n print("Yes")\nelse:\n print("No")', 'S=input()\nT=input()\nA=S+T\nif T[:-1]!= S:\n print("No")\nelif len(T)-len(S)!=1:\n print("No")\nelif len(S)<= 0 or len(S)>= 11:\n print("No")\nelif A.isalpha() and A.islower():\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s044037133', 's976127592', 's997266032']
[9068.0, 8988.0, 8956.0]
[25.0, 23.0, 21.0]
[183, 212, 207]
p02681
u726154863
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.find(S)==-1:\n print('no')\nelse:\n print('yes')", "S=input()\nT=input()\nif S==T:\n print('No')\nelse:\n if T.startswith(S)==0:\n print('No')\n else:\n if T.find(S)==-1:\n print('No')\n else:\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s842577731', 's847863065']
[9096.0, 9048.0]
[20.0, 23.0]
[76, 196]
p02681
u726823037
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['using System;\nusing System.Linq;\n\nclass program\n{\n static void Main()\n {\n var abck = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();\n var a = abck[0];\n \tvar b = abck[1];\n \tvar k = abck[3];\n if (a+b > k)\n {\n Console.Write(a);\n return;\n }\n else\n {\n Console.Write(2*a+b-k);\n }\n }\n}', "a = input()\nb = input()\nb.pop()\nif a == b[:-1]:\n print('Yes')\nelse:\n print('No')\n", "a = input()\nb = input()\nif a == b[:-1]:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s533995405', 's735149598', 's342098664']
[8804.0, 8912.0, 9088.0]
[23.0, 23.0, 25.0]
[402, 83, 74]
p02681
u726984689
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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) <= 10 and t[0:len(s)]==s and len(t)==len(s)+1:\n print('YES')\nelse: \n print('NO')", "s= input()\nt= input()\n\nif len(s) <= 10 and t[0:len(s)]==s and len(t)==len(s)+1:\n print('Yes')\nelse: \n print('No')\n "]
['Wrong Answer', 'Accepted']
['s803181302', 's481567188']
[9076.0, 9000.0]
[21.0, 22.0]
[115, 118]
p02681
u727051308
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 in T) and (S[0] == T[0])\n if ((len(S) > 1) and (S[1] == T[1])) or (len(S) == 1):\n print('Yes')\nelse:\n print('No')\n \n", "S = input()\nT = input()\nif len(T) == 1:\n print('Yes')\nelse:\n print('No')", "S = input()\nT = input()\nif (S in T) and (S[0] == T[0])\n if ((len(S) > 1) and (S[1] == T[1])) or (len(S) = 1):\n print('Yes')\nelse:\n print('No')\n \n", "S = input()\nT = input()\nif (S in T) and (S[0] == T[0]):\n if ((len(S) > 1) and (S[1] == T[1])) or (len(S) == 1):\n print('Yes')\nelse:\n print('No')\n \n\n"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s115137304', 's586747732', 's983344865', 's791179154']
[9016.0, 9056.0, 9016.0, 9108.0]
[25.0, 22.0, 22.0, 22.0]
[152, 74, 151, 154]
p02681
u727072969
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[-1]:\n print("Yes")\nelse:\n print("No")\n', 'S = input()\nT = input()\n\nif S == T[:-1]:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s176396095', 's208197968']
[9080.0, 8912.0]
[20.0, 23.0]
[79, 79]
p02681
u729133443
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["print('YNeos'[input()in input()::2])", "print('YNeos'[input()!=input()[:-1]::2])"]
['Wrong Answer', 'Accepted']
['s409375910', 's244765245']
[8904.0, 9024.0]
[24.0, 20.0]
[36, 40]
p02681
u730414714
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\nans = "No"\nif len(S)+1 == len(T):\n\tif T.startswith(S) is True:\n ans = "Yes"\nprint(ans)', 'S = input()\nT = input()\n \nans = "No"\nif len(S)+1 == len(T):\n if T.startswith(S) is True:\n ans = "Yes"\nprint(ans)']
['Runtime Error', 'Accepted']
['s377631959', 's156126827']
[8932.0, 9076.0]
[23.0, 20.0]
[116, 116]
p02681
u732832001
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nli_card = []\nfor i in range(a):\n li_card.append(1)\nfor i in range(b):\n li_card.append(0)\nfor i in range(c):\n li_card.append(-1)\n\nli_select = li_card[0:k]\n\nprint(sum(li_select))', 's = input()\nt = input()\nlen_t = len(t)\nif t[0:len_t-1] == s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s399844414', 's648995182']
[9192.0, 9028.0]
[21.0, 21.0]
[218, 95]
p02681
u735315224
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\nN = input()\nif n in N: \n if len(n) == len(N) + 1: \n print("Yes")\n else: \n print("No")\nelse: \n print("No")\n', 'S = input()\nT = input()\nif T[:-1] == S:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s796788695', 's270622670']
[9092.0, 9032.0]
[22.0, 21.0]
[139, 78]
p02681
u737135713
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()))\nz = 0\nb = [1]\nc = [0]*n\nfor i in range(n*3):\n j = [a[b[i]-1]]\n b.extend(j)\n c[a[b[i]-1]-1] = c[a[b[i]-1]-1]+1\n if c[a[b[i]-1]-1] == 2:\n z = z + 1\nif k <= n:\n y = b[k]\nelse:\n l = (k-n)%z\n y = b[n+l]\nprint(y)', 's = input()\nt = input()\n\nn = len(s)\nif s+t[n] == t:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s526484230', 's428539834']
[9216.0, 9032.0]
[22.0, 21.0]
[282, 86]
p02681
u737377822
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[-1]:\n print('Yes')\nelse:\n print('No')", "s = str(input())\nt = str(input())\nif s[-1] == t[-1]:\n print('Yes')\nelse:\n print('No')", "s = str(input())\nt = str(input())\nif s == t[:-1] and len(t) == len(s) + 1:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s706613856', 's709849464', 's865051839']
[9036.0, 9100.0, 9100.0]
[24.0, 21.0, 20.0]
[81, 91, 113]
p02681
u739843002
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
['tmp = input().split("\\n")\nS = tmp[0]\nT = tmp[1]\n\nif T.startwith(S) and len(T) + len(S) == 1:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\n\nif T.startswith(S) and len(T) == len(S) + 1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s836022927', 's245300659']
[9016.0, 8988.0]
[24.0, 28.0]
[127, 104]
p02681
u740157634
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.startwith(\'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']
['s740360740', 's645233208']
[9012.0, 8972.0]
[23.0, 28.0]
[85, 84]
p02681
u744695362
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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.
["\nn =str(input())\nr =str(input())\n\nif r in n :\n print('Yes')\n\n\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(n)\nt = len(r)\nif n== r[0:t] :\n print('Yes')\nelse :\n print('No')\n", "n =str(input())\nr =str(input())\ns = len(n)\nt = len(r)\nif n== r[0:t] and s+1==t and 1<=s<=10:\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(n)\nt = len(r)\nif n== r[0:s+1] and s+1==t and 1<=s<=10:\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(n)\nt = len(r)\nif n== r[0:s+1] and s+1==t :\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(r)\nif n== r[0:s] :\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\nif 'n' in r :\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(n)\nif n== r[0:s+1] :\n print('Yes')\nelse :\n print('No')", "n =str(input())\nr =str(input())\ns = len(n)\nt = len(r)\nif n== r[0:t-1] :\n print('Yes')\nelse :\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s037885044', 's119624322', 's136728727', 's144870619', 's167860773', 's264331422', 's283753154', 's988325139', 's641144961']
[9096.0, 8968.0, 9076.0, 9108.0, 9104.0, 9040.0, 8968.0, 9036.0, 9040.0]
[22.0, 21.0, 24.0, 19.0, 26.0, 22.0, 20.0, 22.0, 22.0]
[90, 111, 133, 135, 123, 100, 88, 102, 112]
p02681
u745861782
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[0:len(s)] && len(s) + 1 == len(t)):\n print('Yes')\nelse:\n print('No')", "s = input()\nt = input()\nif (s == t[0:len(s)] and len(s) + 1 == len(t)):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s001183728', 's212071531']
[9004.0, 9044.0]
[22.0, 24.0]
[105, 106]
p02681
u747427153
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\nn = len(s)\nfor i in range(n):\n if s[i] != t[i]:\n print("No")\n return 0\nprint("Yes")\n', 's = input()\nt = input()\nn = len(s)\nfor i in range(n):\n if s[i] != t[i]:\n print("No")\n return\nprint("Yes")', 'import sys\ns = input()\nt = input()\nn = len(s)\nfor i in range(n):\n if s[i] != t[i]:\n print("No")\n sys.exit()\nprint("Yes")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s165010708', 's584623216', 's437333402']
[8896.0, 9040.0, 8976.0]
[25.0, 21.0, 20.0]
[115, 112, 127]
p02681
u750058957
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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) == len(T)+1 and S == T[:len(S)-1]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif len(S)+1 == len(T) and S == T[:len(S)]:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s322040628', 's393630421']
[9032.0, 9020.0]
[20.0, 22.0]
[103, 102]
p02681
u750958070
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 return 'Yes'\nelse:\n return 'No'", "S = input()\nT = input()\nif S == T[:-1]:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s398681051', 's128564692']
[9092.0, 8952.0]
[21.0, 23.0]
[78, 79]
p02681
u751485759
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\n\nt = t[:-1]\n\nif s == t:\n print('Yes')\nelse:\n print('No1')\n\n\n\n", "s = input()\nt = input()\n\nt = t[:-1]\nif s == t:\n print('Yes')\nelse:\n print('No')\n\n\n\n"]
['Runtime Error', 'Accepted']
['s658032974', 's552783150']
[9100.0, 9016.0]
[19.0, 25.0]
[89, 89]
p02681
u752898745
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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\na,b,c,k=map(int,input().split())\nans=0\nif a<=k:\n ans=a\n k=k-a\nelse:\n print(k)\n sys.exit()\nif k!=0:\n k=k-b\nelse:\n print(a)\n sys.exit()\nif k>0:\n ans=ans-k\n print(ans)\nelse:\n print(a)', 's=input()\nt=input()\nprint("Yes" if t[:len(s)]==s and len(s)+1==len(t) else "No") ']
['Runtime Error', 'Accepted']
['s635915773', 's878298058']
[9136.0, 9032.0]
[23.0, 22.0]
[221, 81]
p02681
u755313517
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nt.depend(-1)\nif(s==t):\n print("Yes")\nelse:\n print("No")', 's=str(input())\nt=str(input())\nr=t[:len(t)-1]\n\nif(s==r):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s937816488', 's023453198']
[8908.0, 9044.0]
[20.0, 20.0]
[87, 90]
p02681
u756279759
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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()\n T=input()\n if S==T[0:len(S)]:\n print("Yes")\n else:\n print("No")', ' S=input()\n T=input()\n if S==T[0:len(S)]:\n print("Yes")\n else:\n print("No")', 'S=input()\nT=input()\nif S==T[0:len(S)]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s212699760', 's785521416', 's714519655']
[8936.0, 8988.0, 9080.0]
[20.0, 21.0, 22.0]
[97, 97, 73]
p02681
u756311765
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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[0:len(S)-1]:\n print("Yes")\nelse:\n print("No")', 'S = input()\nT = input()\nif len(S)==1:\n if S == T[0]:\n print("Yes")\n else:\n print("No")\nelse:\n if S == T[0:len(S)-1]:\n print("Yes")\n else:\n print("No")', 'S = input()\nT = input()\nif len(S)==1:\n if S == T[0]:\n print("Yes")\n else:\n print("No")\nelse:\n if S == T[0:len(S)]:\n print("Yes")\n else:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s306040278', 's803975548', 's666285570']
[8984.0, 9112.0, 9112.0]
[23.0, 23.0, 20.0]
[85, 190, 188]
p02681
u756420279
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 python3\n\nn, k = map(int, input().split())\nA = list(map(int, input().split()))\na = [0]*n\nb = A[0]\nper = []\ntes = -1\n\nif n >= k:\n for _ in range(k-1):\n b = A[b-1]\n print(b)\n exit()\n\nfor _ in range(k*k):\n a[b-1] += 1\n tes += 1\n if 3 in a:\n tes -= len(per)*2\n break\n if 2 in a:\n per.append(b)\n b = A[b-1]\n\n_len = len(per)\n\nans = (k - tes) % _len\n\nprint(per[ans-1])', '#!/usr/bin/env python3\n\ns = input()\nt = input()\n\nle = len(s)\n\nif t[0:le] == s:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s258766266', 's335930376']
[9204.0, 9056.0]
[24.0, 24.0]
[427, 117]
p02681
u760961723
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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 print(K)\nelif K <= (A+B):\n print(A)\nelse:\n print(A-(K-(A+B)))', 'S = input()\nT = input()\n\nT2 = T[:len(T)-1]\n\nif S == T2:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s215532917', 's059409314']
[9116.0, 9032.0]
[21.0, 19.0]
[113, 90]
p02681
u761087606
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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())\nsum=0\nif(k==0):\n print(sum)\n exit()\nif(a>k):\n sum+=k\n print(sum)\n exit()\nelse:\n sum+=a\n k=k-a\n if(k==0):\n print(sum)\n exit()\n if(b>k):\n print(sum)\n exit()\n else:\n k = k-b\n if(k==0):\n print(sum)\n exit()\n if(c>k):\n sum-=k\n print(sum)\n else:\n sum-=c\n print(sum)\n', 'a,b,c,k = map(int,input().split())\nsum=0\nif(a>k):\n sum+=k\nelse:\n sum+=a\n k=k-a\n if(k==0):\n print(sum)\n exit()\n if(b>k):\n print(sum)\n else:\n k = k-b\n if(k==0):\n print(sum)\n exit()\n if(c>k):\n sum-=k\n print(sum)\n else:\n sum-=c\n print(sum)\n', 'a = input()\nb = input()\nlast_char = b[len(b)-1]\nif (a+last_char == b):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s144562464', 's697522481', 's426153043']
[9212.0, 9200.0, 9096.0]
[22.0, 22.0, 25.0]
[358, 293, 105]
p02681
u763628696
2,000
1,048,576
Takahashi wants to be a member of some web service. He tried to register himself with the ID S, which turned out to be already used by another user. Thus, he decides to register using a string obtained 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() for i in range(2)]\n\nif a = b[:-1]:\n print("Yes")\nelse:\n print("No")', 'a = input()\nb = input()\nif a = b[:-1]:\n print("yes")\nelse:\n print("No")', 'a = [input() for i in range(2)]\nb = a[0]\nc = a[1]\nif b = c[:-1]:\n print("Yes")\nelse:\n print("No")', 'a = input()\nb = input()\nif a = b[:-1]:\n print("Yes")\nelse:\n print("No")', 'a,b = [input() for i in range(2)]\n \nif a == b[:-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s002874612', 's481608043', 's523838233', 's633311025', 's612810870']
[9016.0, 9012.0, 8908.0, 9016.0, 9092.0]
[22.0, 24.0, 24.0, 21.0, 30.0]
[84, 73, 99, 73, 86]