AbdelrahmanSaad's blog

By AbdelrahmanSaad, 11 years ago, In English

Hello , Could anyone give me any hints for this problem please ? https://icpcarchive.ecs.baylor.edu/index.php?option=onlinejudge&page=show_problem&problem=4299

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
11 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Hint: Instead of blocking all paths, we put the square so that there's a path along blocked cells between left-bottom sides and right-top sides (two cells are connected if they share a common vertex).