Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя fakehandle

Автор fakehandle, история, 4 года назад, По-английски

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.

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

It didnt work because it returned negative mod value.

The idea is correct.

»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.