Commit f9282832 authored by Adam Blank's avatar Adam Blank
Browse files

11

No related merge requests found
Showing with 40 additions and 0 deletions
+40 -0
def f(x: int) -> int:
return x % 2
def g(x: int) -> int:
if x > 100:
return 0
return x
def h(x: str) -> int:
return 0
def i(x: str) -> dict:
return {}
def j(x: str) -> str:
return ""
def k(pair: tuple[str, str]) -> dict:
return {}
File added
File added
File added
File added
File added
File added
import marshal
import types
def secret_in(f: str):
with open('11/' + f + '.secret', 'rb') as fi:
code = marshal.loads(fi.read())
globals()[f] = types.FunctionType(code, globals(), 'fun')
secret_in('f')
secret_in('g')
secret_in('h')
secret_in('i')
secret_in('j')
secret_in('k')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment