Please read the new rule regarding the restriction on the use of AI tools. ×

fakehandle's blog

By fakehandle, history, 4 years ago, In English

Can any one explain the solution of atcoder task F . The editorial is in Japanese language and i am not able to understand it. Please help me to solve this question.

The contest is already finished.

Thanks in advance.

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

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

https://codeforces.me/blog/entry/79157

It didnt work because it returned negative mod value.

The idea is correct.

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

Check out my video explanation https://youtu.be/3mnwcJGO_MI.

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

Full english editorial for all problems here — https://codeforces.me/blog/entry/79153

In the future you should search or something! Check the Discuss tab on Atcoder, it links to a central Codeforces thread where people discuss.