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

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

I was trying to solve this problem using dp, with states(mask1, mask2, idx), where mask1 tells me how many tables I have covered so far and mask2 tells me what are the tables I have covered so far with 'idx'th group, but it will surely timeout, any other suggestions to improve complexity or are there any other solutions?

Полный текст и комментарии »

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

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

I was doing this brute force problem, when I submitted my Code in GNU C++14 it gives WA whereas same code gets AC in GNU C++ ?

Полный текст и комментарии »

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