Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Mr.Awesome's blog

By Mr.Awesome, history, 11 years ago, In English

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 .

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

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