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

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

Hey guys,

I have working on a problem titled: Beautiful Subgrids from CSES Problem set. I am unable to get Accepted for large datasets (n ~ 3000) with my time exceeding 2s. I have done certain optimisations(which are probably suboptimal) present in the code below. Please direct me. Thanks

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

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

Try including

#pragma GCC target("popcnt")

at the top of your code. I had to use this to get AC.