Skip to content

Asayu123/CodeContestTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 

Repository files navigation

What is this?

Templates and Test Suites for Programming Contests and Online interviews.

Requirements

  • Python 3.5 +

How to Use

1.Write a Main logic
  • Write main logic at the main function of src/bin/main.py
    • This corresponds to the submission code for the contest.
2.Write a Test
  • Write either test case at src/test/test_main.py based on the type of submission.
    • If the contest site uses stdin/stdout for evaluation, Use StdInOutTestCase.
    • If the contest site uses return value for evaluation, Use MainRoutineTestCase.
3.Execute the Test
  • Then, execute unit test on project root by the following command.
    • python -m unittest src.test.test_main.StdInOutTestCase or
    • python -m unittest src.test.test_main.MainRoutineTestCase

Tips

  • Use git stash / unstash when you solve multiple problems at the same time.

How to Contribute

  • Please feel free to send pull-request to make the template more practical.

About

an Template for Code Contest.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages