Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from polygon_client import Polygon
- p = Polygon(
- api_url="https://polygon.lksh.ru/api/",
- api_key="CENSORED",
- api_secret="CENSORED")
- problems = p.contest_problems(1981)
- for name, p in problems.items():
- print(">", name, str(p), p.tags())
- fields = [p.id, p.owner, p.name, p.deleted, p.favorite, p.access_type, p.revision, p.latest_package, p.modified]
- print("Fields:")
- for f in fields:
- print("-", type(f), "|", repr(f))
- print(p.general_description())
- print(p.general_tutorial())
- info = p.info()
- print("inputFile =", repr(info.input_file), "|", type(info.input_file))
- print("outputFile =", repr(info.output_file), "|", type(info.output_file))
- print("interactive =", repr(info.interactive), "|", type(info.interactive))
- print("timeLimit =", repr(info.time_limit), "|", type(info.time_limit))
- print("memoryLimit =", repr(info.memory_limit), "|", type(info.memory_limit))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement