промежутое

This commit is contained in:
2025-12-05 11:48:13 +05:00
parent 30647281a5
commit dcb80ef973
48 changed files with 1190 additions and 0 deletions

21
programm11.py Normal file
View File

@@ -0,0 +1,21 @@
f = open('INPUT.TXT')
s = f.readline().strip()
t = f.readline().strip()
f.close()
i = 0
j = 0
while i < len(s) and j < len(t):
if s[i] == t[j]:
i = i + 1
j = j + 1
if i == len(s):
result = "YES"
else:
result = "NO"
f = open('OUTPUT.TXT', 'w')
f.write(result)
f.close()