This guy twoseven clearly cheated in ques d of today's contest.
His Submission 117247731 Another Same submission 117243132
Now u can clearly see that this guy twoseven tried his best to beat the moss by using vectors instead of array and used different modadd function to do the same thing, else the whole code matches .
I request MikeMirzayanov and whole cf community to clearly see the both solution and judge yourself whether I am right or wrong. Before downvoting the blog or calling me hater just check both the submission carefully.