Skip to content

jonathanirvings/inc-2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INC 2019 - 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 league Three Points for a Win
B door Door of the Ancient
C jump Jumping Stones
D lifestyle Healthy Lifestyle
E short Shortsighted
F game Presidential Game
G golf Goofy Golf
H apples Collecting Apples
I frequent Frequent Alphabet
J grid Grid City
K matching Odd GCD Matching
L blessings Sending Blessings
M goal Go To Goal

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, as broadcasted to all teams at the beginning of the contest:

Problem Code Problem Slug Time Limit
A league 1 sec
B door 1 sec
C jump 2 sec
D lifestyle 2 sec
E short 2 sec
F game 1 sec
G golf 1 sec
H apples 1 sec
I frequent 1 sec
J grid 1 sec
K matching 1 sec
L blessings 2 sec
M goal 1 sec

The memory limit for all problems is 256MB, as broadcasted to all teams at the beginning of the contest.

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.

About

INC 2019 - Problem Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published