What's going on here? This contest was held two years ago. Just look at its id: it is 100187. Someone has managed to change its start date (and also to make it invisible for everyone but the author, which is fixed now), but how is it possible? Any permission settings? What if I go and reschedule all the contests in the gym? What if I hide them all? It must be a bug, admins, look into it, please.
P.S. Don't participate if you remember the problems.
UPD. Looks like gym vandals continue their work: 







such marks, we can't satisfy the second condition (about the median), and the answer is -1. Otherwise we can get exactly such number of
(maybe it's already satisfied). This is the required action for satisfying the second condition.
. This is the probability with which we go the the state dp[r][s — 1][p], with the number of scissors less by one.
. All other cases will be something between them.
people in each list.