SubString/iljakz
SubString/Chosen__1
t1from collections import Counter, UserStringt1from collections import Counter, UserString
22
33
4class SubString(UserString):4class SubString(UserString):
5    def __sub__(self, new_str):5    def __sub__(self, new_str):
6        c2 = Counter(new_str)6        c2 = Counter(new_str)
7        ans = self7        ans = self
8        for c in c2:8        for c in c2:
9            ans = ans.replace(c, '', c2[c])9            ans = ans.replace(c, '', c2[c])
10        return ans10        return ans
1111
1212
13s = ''13s = ''
14while True:14while True:
15    try:15    try:
16        z = input()16        z = input()
17        if not(z.find('dir()') > 0):17        if not(z.find('dir()') > 0):
18            s += '\n' + z18            s += '\n' + z
19        else:19        else:
20            s += '\ndel Counter, UserString, s, z\n' + z20            s += '\ndel Counter, UserString, s, z\n' + z
21    except (KeyboardInterrupt, EOFError):21    except (KeyboardInterrupt, EOFError):
22        exec(s)22        exec(s)
23        from collections import Counter, UserString23        from collections import Counter, UserString
24        del Counter, UserString24        del Counter, UserString
25        raise SystemExit()25        raise SystemExit()
2626
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op