├── 1 - Easy
└── Judging Troubles
│ ├── README.md
│ └── Solution.cpp
├── 2 - Medium
└── Cent Savings
│ ├── README.md
│ └── Solution.java
├── 3 - Advanced
├── Gathering
│ ├── README.md
│ └── Solution.java
└── Indoorienteering
│ ├── README.md
│ └── Solution.java
├── 4 - Hard
├── Algorithmic Crush
│ ├── README.md
│ └── Solution.py
└── Knapsack Collection
│ ├── README.md
│ └── Solution.java
├── 5 - Expert
├── Around the Track
│ ├── README.md
│ └── Solution.cpp
└── Biking Duck
│ ├── README.md
│ └── Solution.cpp
├── Artificial Intelligence
└── Bot Building
│ ├── Bot saves princess 1
│ └── Solution.cpp
│ ├── Bot saves princess 2
│ └── Solution.cpp
│ └── BotClean
│ └── Solution.py
├── LICENSE
└── README.md
/1 - Easy/Judging Troubles/README.md:
--------------------------------------------------------------------------------
1 | # Judging Troubles
2 |
3 | The NWERC organisers have decided that they want to improve the automatic grading of the submissions for the contest, so they now use two systems: DOMjudge and Kattis. Each submission is judged by both systems and the grading results are compared to make sure that the systems agree. However, something went wrong in setting up the connection between the systems, and now the jury only knows all results of both systems, but not which result belongs to which submission! You are therefore asked to help them figure out how many results could have been consistent.
4 |
5 | ## Input Format
6 |
7 | The input consists of:
8 |
9 | * one line with one integer _n_ (1 ≤ n ≤ 105), the number of submissions;
10 | * _n_ lines, each with a result of the judging by DOMjudge, in arbitrary order;
11 | * _n_ lines, each with a result of the judging by Kattis, in arbitrary order.
12 | Each result is a string of length between 5 and 15 characters (inclusive) consisting of lowercase letters.
13 |
14 | ## Output Format
15 |
16 | Output one line with the maximum number of judging results that could have been the same for both systems.
17 |
18 | ## Sample Input
19 |
20 | 5
21 | correct
22 | wronganswer
23 | correct
24 | correct
25 | timelimit
26 | wronganswer
27 | correct
28 | timelimit
29 | correct
30 | timelimit
31 |
32 | ## Sample Output
33 |
34 | 4
35 |
--------------------------------------------------------------------------------
/1 - Easy/Judging Troubles/Solution.cpp:
--------------------------------------------------------------------------------
1 | #include