Example #1
0
def submit_test():
    source="""
    #include<stdio.h>
    int main(){
        int a,b;
        scanf("%d%d",&a,&b);
        printf("%d",a+b);
    }
    """

    boj = Boj()
    boj.login(input("ID :"),getpass("password :"))
    boj.submit(1000,source)
    boj.logout()
Example #2
0
def vs_test(handle1, handle2):
    boj = Boj()
    pprint(boj.vs(handle1, handle2))
Example #3
0
def user_test(handle):
    boj = Boj()
    pprint(boj.user(handle))
Example #4
0
def workbook_ranklist_test():
    boj = Boj()
    pprint(boj.workbook_ranklist(1))
Example #5
0
def workbook_test():
    boj = Boj()
    pprint(boj.workbook(1774))
Example #6
0
def submission_test():
    boj = Boj()
    boj.login(input("ID :"),getpass("password :"))
    pprint(boj.submission(7273030))
    boj.logout()
Example #7
0
def status_test():
    boj = Boj()
    pprint(boj.status())
    #pprint(boj.status(group_id=543))
    pprint(boj.status(school_id=323, page=2))
Example #8
0
def problemset_test():
    boj = Boj()
    pprint(boj.problem_set())
Example #9
0
def problem_test():
    boj = Boj()
    pprint(boj.problem(1000))
    pprint(boj.problem(14923))
    pprint(boj.problem(14680))