simp_pro's blog

By simp_pro, history, 12 months ago, In English

Question link

Submission link

My solution is in O(n^2*log(mod)) . It should pass easily

  • Vote: I like it
  • -28
  • Vote: I do not like it

»
12 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

looks like undefined behavior cause it gets WA9 with other compiler https://codeforces.com/contest/1794/submission/199837718

  • »
    »
    12 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank your for replying. I am trying to figure out the undefined behavior but I could not find any. My solution is kinda similar to editorial's solution. Could you please take a look?