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

Codechef December Cookoff CHEFNUMK

Правка en1, от ganeshk2, 2016-12-18 21:48:28

I recently attempted this problem https://www.codechef.com/COOK77/problems/CHEFNUMK
using MO's algorithm (offline sqrt decomp) but got TLE. Almost everyone used the same method to reach AC. Changing values of blocks affects the complexity is known, and i tried a few values. Comparing the following code
https://www.codechef.com/viewsolution/12297863
with my code
https://www.codechef.com/viewsolution/12299180
doesn't show much difference, help ?

Теги cook77, mo algorithm

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ganeshk2 2016-12-18 21:48:28 497 Initial revision (published)