TypeCast/VoMaKu
TypeCast/Rizvan Zaidullin
f1import sysf1import sys
2from functools import wraps2from functools import wraps
33
44
n5def cast(cls):n5def cast(typ):
6    def decorator(fun):6    def decorator(fun):
7        @wraps(fun)7        @wraps(fun)
t8        def function(*args):t8        def newfun(*args):
9            return cls(fun(*args))9            return typ(fun(*args))
10        return function10        return newfun
11    return decorator11    return decorator
1212
1313
14exec(sys.stdin.read(), globals())14exec(sys.stdin.read(), globals())
1515
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op