Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

i_love_math's blog

By i_love_math, history, 6 years ago, In English

i am trying to solve http://www.spoj.com/problems/BITMAP/ problem.

my code is giving TLE on SPOJ .

i am not getting why it's getting TLE.

i approached in this procedure: I stored those pixels which have value 1 in a queue and applied bfs across these,

my code is http://ideone.com/ppgQiW

please help

thanks

Read more »

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