Need help for simgam problem

Problem SIMGAM

This problem apperaed in the november challenge but has been removed due to simmilarity to another problem that already appeared once. I tryed to solve it but could only get a partial solution . Can anyone be kind to help me with an editorial or a well documented submission?
Thanks in advance :sweat_smile:

Here`s the problem which caused the SIMGAM to be removed.

You can refer to it’s editorial .

1 Like