Dear Codeforces community,
101611F - Fake or Leak? is a very fun problem asking you to implement the rules for ordering teams on an ICPC scoreboard. I think that I have seen several more problems about the ICPC scoreboard rules, but despite searching I cannot find them. Does anyone know where I can find more of these problems?







so that
is the object we get when applying operation
and
, then we call
a "group action". The rules basically say that the action is compatible with the group structure and are usually easy to verify.
, we can look at its orbit
: The set of all objects which can be attained by doing some transformation on
, we may also look at its fixed points
: The set of objects which are not changed by the operation
. Think of this as the element-wise XOR of the two sets (remember,
. How many letters are swapped by this transformation? Move
. So how does a string look that is a fixed point of this transformation? For each pair of swapped letters, we can only choose one, because the other has to be the same for the operation not to change the string. So we end up with 





, which we can easily calculate in linear time to get AC.