Problem A
Birthday Memorization
Languages
en
ja
sv
Krarkl wants to learn the birthdays of all his
Input
The first line of input contains an integer
Then
The birthdays will be real dates during 2020 (a leap year),
for example 28/02 for February 28.
All names will consist only of small English letters
(a-z) with a capital first letter
(A-Z). All
Output
On the first line, print an integer
This should be followed by
Scoring
Your solution will be tested on a number of test case groups. To get the points for a group, you need to pass all test cases in the group.
Group |
Points |
Constraints |
|
|
|
|
|
No further constraints |
Explanation of samples
In the first sample, Sanna and Simon have the same birthday.
Since Krarkl likes Sanna less than Simon (
In the second sample, Krarkl has really bad luck and will miss half of his friends’ birthdays.
Sample Input 1 | Sample Output 1 |
---|---|
3 Sanna 1 16/03 Simon 2 16/03 Saga 3 14/10 |
2 Saga Simon |
Sample Input 2 | Sample Output 2 |
---|---|
10 Oden 78 03/12 Tor 132 14/05 Freja 10000 14/05 Loke 512 12/10 Hel 14 04/05 Fjorgynn 532 13/05 Hildegun 500 13/05 Vindsval 17 03/12 Snotra 20 04/05 Kvaser 420 03/12 |
5 Fjorgynn Freja Kvaser Loke Snotra |