Uva 10890 — Maze TLE

Revision en1, by Mr.Awesome, 2016-02-09 13:38:21

hi CF community. I was trying to solve this problem but i got a TLE.

My backtrack approach use bitmask to mark treasure already taken .

the constraint of the problem seems to be small so i didn't figure out why it gives TLE .

here my commented code .

Tags uva, backtracking, bitmask, maze

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Mr.Awesome 2016-02-09 15:35:23 16
en1 English Mr.Awesome 2016-02-09 13:38:21 414 Initial revision (published)