Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор chubakueno, история, 8 лет назад, По-английски

I've been trying to solve Pipes selection for some time, but i have not had productive ideas. The best idea so far is grouping the prefix sums by their residue modulo every prime to speedup search in some way, but I have not managed to make it work. Suggestions?

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