KyleTheNewbie's blog

By KyleTheNewbie, history, 8 days ago, In English,

Any techniques on fast bitmasking? I always hit TLE on these problems: https://www.codechef.com/JULY18B/problems/MGCSET https://www.codechef.com/JULY18B/problems/NMNMX

 
 
 
 
  • Vote: I like it  
  • -17
  • Vote: I do not like it  

»
7 days ago, # |
  Vote: I like it +14 Vote: I do not like it

Questions are from an ongoing contest.Please discuss after the contest.

»
7 days ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Firstly, these are questions from an ongoing contest. Secondly, Neither of these questions have anything to do with bitmasking.

As a rule, bitmasking is not fast.

You should use it on problems where a slow solution is feasible. Here is a good example.

  • »
    »
    6 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    when the contest is done i want to discuss it with people. coz the only way i know how to solve those is just bitmasking. thank you i'll be back :D