Дамп всех задач

This commit is contained in:
2017-05-22 13:29:43 +03:00
parent b970626fef
commit 93746b05d7
173 changed files with 2505 additions and 0 deletions

15
str/1.py Normal file
View File

@@ -0,0 +1,15 @@
def clean(s, ss):
g = ''
for ch in s:
if (ss.find(ch)!=-1):
g += ch
gg = ''
for ch in ss:
if (s.find(ch)!=-1):
gg+=ch
g = g.replace(' ','')
gg = gg.replace(' ','')
return g, gg
s1, s2 = clean(input(), input())
print(s1)
print(s2)