示例#1
0
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))
示例#2
0
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))
示例#3
0
def load_hacks(contest_id):
    api = CodeforcesAPI()

    return api.contest_hacks(contest_id)