Weird Faculty - Company-specific OAs / Twitter OA

Alex and Sam are playing a weird game. The rule of this weird game is simple: there are a total of n tasks total that Alex and Sam has to perform, labelled 0 to n-1. Alex has to perform task 0 to k-1, while Sam has to perform task k to n-1, where k is a number decided by Alex. For each player, if they succeed in that task, they gain 1 point, but if they fail, they lose 1 point.


This is a companion discussion topic for the original entry at https://algo.monster/problems/twitter_oa_weird_faculty/