/POJ

Python Online Judge

Primary LanguagePython

Python Online Judge(POJ)

Usage

Solve a random picked question

  • ./poj new
  • vim answer.py
  • ./poj submit

Solve a specific question

  • ./poj new -n <question_name>
  • vim answer.py
  • ./poj submit

Check submit log

  • ls log/
  • cat log/stats.yaml

Clean submit log

  • ./poj clean -n <question_name>

Add a question

  • cd questions
  • mkdir <question_name>
  • follow sample question test, script.py for UT, answer.py as a sample answer
  • question_name starts with #, means it won't be chosen with "./poj new"

Verify the sample answer under question dir

  • ./poj sanity
  • ./poj sanity -n <question_name>