restructure zeta/** to storage/zeta/**

This commit is contained in:
2025-05-10 21:54:24 +09:00
parent 2886820691
commit 2f2e0759fd
407 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
I = input()
R = input()
r = len(R)
before = ""
T = []
for s in I:
if R[-1] == s:
if len(T) < r - 1:
pass
else:
for i in range(r - 1):
if T[1 - r + i] != R[i]:
break
else:
for i in range(r - 1):
T.pop()
continue
T.append(s)
if T:
print("".join(T))
else:
print("FRULA")