SPOJ: BITMAP
Saikat Kumar Dey
285

Poorly coded solution. Instead of using two queues, you can take a queue of pair. And instead of writing the code for all the combinations, you can use one vector of pair of the combinations.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.