Uva 10890 — Maze TLE
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 .
Codeforces Round 943 Solution Discussion