Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

chubakueno's blog

By chubakueno, history, 8 years ago, In English

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?

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