예제 #1
0
파일: main.py 프로젝트: soon/CodeforcesAPI
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
파일: main.py 프로젝트: soon/CodeforcesAPI
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)