I have written this code in py3, and it is working with all given test cases and my custom cases. However it fetched only 30 points. Any help would be really appreciated.
I have written comments for readability too.
https://www.codechef.com/viewsolution/29756075
try test case
when matrix will look like this
0 0 0 0
5 0 2 0
4 0 0 0
0 0 0 0
Ans is 350 but your code is giving 200
test case:-
1
11
B 12
B 12
B 12
B 12
B 12
B 6
B 6
A 12
A 12
A 12
A 12
4 Likes
Oh, I got it! Thank you so much, I’ll improvise on it