Giter VIP home page Giter VIP logo

tgm-acc-2019's Introduction

TGM-ACC-2019

My Solution for the TGM Advent Coding Contest 2019 expert difficulty. Public version of this repository @ https://github.com/pdamianik/TGM-ACC-2019/.

Adding custom input files

To Add your own input files you just need to add a .in file into the directory of the level you want to handle the input file

Run

To get results either:

  • run the main.py in the root directory and enter the number of the level you want to execute:
the/repository/location> python main.py
Level: 0
The output of level0
  • run the main() function of the main.py in the level folder from the root folder of this repository:
the/repository/location> python
>>> import sys
>>> from importlib import reload
>>> from levels.level0 import main
>>> sys.modules["levels.level0.main"].main()
The output of level0
>>> reload(sys.modules["level.level0"])
The output of the __init__.py file of level0
<module 'levels.level0' from '/repo/location/levels/level0/__init__.py'>
>>> reload(sys.modules["levels.level0.main"])
<module 'levels.level0.main' from '/repo/location/levels/level0/main.py'>
>>> sys.modules["levels.level0.main"].main()
The output of level0

The results will then be written to the .out files in the level directory with the same name as there corresponding .in files (e.g. example.in -> example.out).

tgm-acc-2019's People

Contributors

mborko avatar pdamianik avatar

Watchers

 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.