Giter VIP home page Giter VIP logo

competitive-programming's Introduction

Competitive-Programming

Template.cpp :

c++ codes for various functions

C++14.sublime-build (FOR LINUX) :

Build system to directly compile and run c++ programs in sublime on linux. Moreover it uses c++14 directly opposed to the fact that terminal doesnt.

Instructions :

  • Go to Tools > Build Systems > New Build System
  • Copy the code from C++14.sublime-build and paste it ther and save it by any name.
  • Go to Tools > Build Systems ans select your new build system
  • Create 2 files named inputf.in and outputf.in in same directory in which u have ur code.
  • Write input in inputf.in, save and run the code in sublime and you will get output in outputf.in .

Tips :

  • You can use CTRL + shift + B to directly compile run.
  • You can use 3 pane setup to view code, input dile and output file at once (ALT + SHIFT + 3).

C++14.sublime-build (FOR OS X(Mac Users) ) :

Follow the same steps above just copy the sublime build file corresponding to OS X. You need to have gcc and gtimout installed to be able to run above build system.

To install gcc in OS X :

brew install gcc

To install gtimout in OS X :

brew install coreutils

Remember you may have to change the version in g++-{version} in sublime build file according to gcc version installed by brew. At the time of writting this post it is 10 hence is written as g++-9

This is how it looks

screenshot from 2017-04-04 05-35-27

competitive-programming's People

Contributors

luvk1412 avatar moinuddin0677 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.