Uva 10890 — Maze TLE

Revision en2, by Mr.Awesome, 2016-02-09 15:35:23

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

My backtrack approach use bitmask to mark treasures already taken .

the constraints of the problem are 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)