TypeCast/ziptitap
TypeCast/Rizvan Zaidullin
f1import sysf1import sys
2from functools import wraps2from functools import wraps
33
44
t5def cast(new_type):t5def cast(typ):
6    def dec(func):6    def decorator(fun):
7        @wraps(func)7        @wraps(fun)
8        def new_func(*args):8        def newfun(*args):
9            return new_type(func(*args))9            return typ(fun(*args))
10        return new_func10        return newfun
11    return dec11    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