Asia — Changchun: Pipes selection

Правка en1, от chubakueno, 2016-02-18 00:16:31

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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский chubakueno 2016-02-18 00:17:51 43
en1 Английский chubakueno 2016-02-18 00:16:31 419 Initial revision (published)