Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Find the number of rectangles of same color in a matrix

Revision en1, by one_autum_leaf, 2023-10-28 07:35:17

Question: You have a N x M matrix. The color of cell in ith row and jth column is a^ij.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English one_autum_leaf 2023-10-29 19:29:05 61
en6 English one_autum_leaf 2023-10-28 10:11:54 57 Tiny change: '$k$ ? \n\nIt is ' -> '$k$ ? \n\n![ ](https://i.imgur.com/1qew4HO.png)\n\nIt is ' (published)
en5 English one_autum_leaf 2023-10-28 10:06:24 1625 Tiny change: 'imgur.com/w4jes7x.png)\n\n' -> 'imgur.com/QxCbwLp.png)\n\n'
en4 English one_autum_leaf 2023-10-28 09:45:05 846 Tiny change: 'color.\n\nIdea:\' -> 'color.\n\n![ ](https://imgur.com/a/QK6lnrD)\n\nIdea:\'
en3 English one_autum_leaf 2023-10-28 09:20:17 1462 Tiny change: ' a[i][t]$ \n\nfor all $t' -> ' a[i][t]$ , for all $t'
en2 English one_autum_leaf 2023-10-28 07:37:39 7 Tiny change: 'column is a^ij.' -> 'column is \a^ij.'
en1 English one_autum_leaf 2023-10-28 07:35:17 143 Initial revision (saved to drafts)