E - Chinese Restaurant (Three-Star Version) Editorial by spheniscine

Additional Note

It may be of interest to note that this problem is similar (though not identical) to the problem “Combination Lock” that appeared in Google Kickstart 2020 Round G.

posted:
last update: