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()
def vs_test(handle1, handle2): boj = Boj() pprint(boj.vs(handle1, handle2))
def user_test(handle): boj = Boj() pprint(boj.user(handle))
def workbook_ranklist_test(): boj = Boj() pprint(boj.workbook_ranklist(1))
def workbook_test(): boj = Boj() pprint(boj.workbook(1774))
def submission_test(): boj = Boj() boj.login(input("ID :"),getpass("password :")) pprint(boj.submission(7273030)) boj.logout()
def status_test(): boj = Boj() pprint(boj.status()) #pprint(boj.status(group_id=543)) pprint(boj.status(school_id=323, page=2))
def problemset_test(): boj = Boj() pprint(boj.problem_set())
def problem_test(): boj = Boj() pprint(boj.problem(1000)) pprint(boj.problem(14923)) pprint(boj.problem(14680))