Skip to content

Abhi011999/CodeChef-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeChef Scripts | Python 3.6

I mainly use these for quickly prototyping competetive programming questions.

Pre-requisites

pip install -r requirements.txt

My CodeChef template for PYTH 3.6 (Python 3.6). Works with smallest as well as largest inputs and outputs possible in python. Yields lower defaut overhead when running than a regular script.

Usage

Write your code in tc() method block. You can also enable profiling for the entire execution of the main method by setting -

PROFILE = True

Hot-reloader script for quick reloading of the scripts without switching your editor.

Usage

python monitor.py [script_name.py]

Methods to reload -

  1. Press r.
  2. Save your script file on your editor.
  3. Save your input file on your editor.

Note - Entire script is restarted unlike module reloading.