Editorial for COCI '19 Contest 6 #1 Datum
Submitting an official solution before solving the problem yourself is a bannable offence.
For the first subtask, it was enough to take the first two characters of the date and increase that number by
For the second subtask, we can use the same approach as for the first one, but we need to take additional care when we enter a new month.
For the third subtask, we can use the same approach as for the first two, but we need to take additional care when we enter a new year.
In order to score all points, it was important to note that the number of palindromic dates in the given form is relatively small,
The time complexity is
Comments