def main(argv): api = CodeforcesAPI() contest_id = int(argv[1]) hacks = api.contest_hacks(contest_id) for h in hacks: print("[{:^30}] hacked [{:^30}], verdict: {}".format(', '.join(member.handle for member in h.hacker.members), ', '.join(member.handle for member in h.defender.members), h.verdict.value))
def main(argv): api = CodeforcesAPI() contest_id = int(argv[1]) hacks = api.contest_hacks(contest_id) for h in hacks: print("[{:^30}] hacked [{:^30}], verdict: {}".format( ', '.join(member.handle for member in h.hacker.members), ', '.join(member.handle for member in h.defender.members), h.verdict.value))
def load_hacks(contest_id): api = CodeforcesAPI() return api.contest_hacks(contest_id)