Все задачи на 5.10.17 13:00
This commit is contained in:
2
uts/session_py/O2017_MT/kek.in
Normal file
2
uts/session_py/O2017_MT/kek.in
Normal file
@@ -0,0 +1,2 @@
|
||||
В сто сорок солнц закат пылал, в июль катилось лето.
|
||||
Мы не рабы, рабы не мы.
|
||||
18
uts/session_py/O2017_MT/УВВ_ZZ1.py
Normal file
18
uts/session_py/O2017_MT/УВВ_ZZ1.py
Normal 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)
|
||||
Reference in New Issue
Block a user