Все задачи на 5.10.17 13:00

This commit is contained in:
2017-10-05 13:08:02 +03:00
parent 93746b05d7
commit ca2ca71f63
120 changed files with 2343 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
В сто сорок солнц закат пылал, в июль катилось лето.
Мы не рабы, рабы не мы.

View File

@@ -0,0 +1,18 @@
def swi(g):
if g == 1:
return 0, False
if g == 0:
return 1, True
a = input()
b = input()
ex = []
g = 0
for i in b:
g, doo = swi(g)
if (doo) and (not (i in ex)):
ex.append(i)
b = ''
for i in a:
if not (i in ex):
b += i
print(b)