|
|
back to boardIs just one white square counted as rectangle? If no, explain me please sample #1. Am I right that output to the sample 1 3 1 1 2 is 0? Please, explain me sample output #1. I can't understand the problem statement. I also can't understand why answer is 8. if 1*1 isn't a white streaks,why the sample#2 is 2 Yes, i have this problem TOO, please answer !!!!!!!!!!!!!! No comments Да правда фигня какая-то. в первом тесте хз почему 8 когда там надо 11. Иначе во 2м должно быть 1 PLZ post in english , I don't under stand the problem too!! Почему во втором тесте 2, а не 4? Или l>1? No you are wrong. 2 is correct [ ] [X] [ ] ^ ^ WHY??? I think because we dont count white stripes two times... Segments 1x1 are counted. But not if they are a part of larger segments. For example: 0 0 X 0 X 0 0 X 0 0 X X 1x1 segment (1,6) is counted. But 1x1 segment (1,2) isn't because it's not maximal. It's part of segment from (1,1) to (1,2). Segment (1,6) is maximal. There is no larger segment containing it. if "NO COMMENTS" why you write this? information - Zero |
|
|