Mr.Doap's blog

By Mr.Doap, history, 4 years ago, In English

My solution seems to be the same solution as the authors but I am getting a WA.Both the solution and my codes seem to be similar Somebody please help me out in figuring the error in my submission

Here is a link to my submission: https://codeforces.com/contest/1401/submission/90597120

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +2 Vote: I do not like it

you are sorting the vector res after taking mod.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you very much for the help. Got it now