Problem SAKTAN solution not working (JS) : October long challenge

https://www.codechef.com/OCT19B/problems/SAKTAN

https://www.codechef.com/viewsolution/27161489

please help me to understand what cases I am missing so that the answer is wrong.

The approach was like I was trying to find out which indexes of row /column getting odd fillings. And calculating finally based on that no. odd-numbered cells.
Formula:
(no. of odd filling row X columns)+(no. of odd filling column X rows)-(2 X no. of odd filling column X no. of odd filling row)

https://www.codechef.com/viewsolution/27062836

1 Like