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

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

Here is the link to the problem : https://www.quora.com/Can-you-share-some-trickest-coding-questions-that-you-have-faced-in-any-coding-contest/answer/Rishabh-Jain-2492

There is N x M matrix filled with 0 and 1 only, lets say a matrix is special if every 2 x 2 sub matrix in it has two 0’s and two 1’s . Find the total number of special matrices you can have for N x M.

On the hunt of an efficient solution.

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

»
7 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +8 Проголосовать: не нравится
The answer is

P.S. This problem is similar to 1099E - Nice table

  • »
    »
    7 лет назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +3 Проголосовать: не нравится
    Hint for a proof
»
7 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

By the way, if you are interested in a slightly similar problem, check out 1178C - Tiles.