Git Product home page Git Product logo

inc-2020's Introduction

INC 2020 - Problem Repository

Repository Structure

Each problem (from A to M) has their own folder. The folder name is the slug of the problem, which is the codename we used when we internally prepare the problems. The following table describes the slug for each problem

Problem Code Problem Slug Problem Title
A trees Visible Trees
B slow Slow Down
C anagram Instruction Anagram
D team Project Team
E occult Occult Square
F substring Special Substring
G hallway Hallway and Butler
H auction Auction Market
I compound Forming Compounds
J plink Power Link
K subsequence All Subsequences
L lock Combination Lock
M coupon Prize Coupon

In the problem folder, there should be exactly the following file/folder:

  • description.pdf. The problem statement distributed to the contestants during the contest.
  • data/. A folder consisting of all testcases. The sample inputs given in the problem statement will be in the form of sample/<slug>_sample_<testcase number>.in/ans, while the hidden testcases will be in the form of secret/<slug>_1_<testcase number>.in/ans.
  • solution.cpp. The official solution used to generate the outputs of the testcases
  • scorer.cpp. A validator used to validate contestants' output. The code accepts three arguments.
    • The first parameter will be used as the filename of the input file
    • The second parameter will be used as the filename of the judge's output file
    • The third parameter will be used as the filename of the contestant's output file
    • This code will print WA to stdout if the contestant's output is intended to be judged WRONG ANSWER, while it will print AC to stdout if the contestants's output is intended to be judged CORRECT.
  • verifier.py. A verifier used to validate the input of the testcases. The code will crash if the input violates the problem constraint, while it will exit gracefully and will not output anything if the input satisfies the problem constraint.

Limitations

The following table describes the time limit for each problem.

Problem Code Problem Slug Time Limit
A trees 1 sec
B slow 1 sec
C anagram 4 sec
D team 5 sec
E occult 1 sec
F substring 1 sec
G hallway 1 sec
H auction 1 sec
I compound 1 sec
J plink 1 sec
K subsequence 1 sec
L lock 1 sec
M coupon 1 sec

The memory limit for all problems is 256MB.

Solutions

Note that while there is only one official published solution, we have a lot of other solutions prepared for our internal testing. These other solutions include, but not limited to:

  • Solutions in several other languages
  • Solutions that is intended to be incorrect (e.g. WA, TLE, etc.)
  • Other correct solutions (especially on problems with more than one correct outputs for each input)

Errata

None.

inc-2020's People

Contributors

jonathanirvings avatar

Stargazers

SAMUEL PANDOHAN TERAMPIL GULTOM avatar Huseyn Hajiyev 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.