Both, the cigarette and weed smell linger.
However, it is said that the weed smell usually goes away earlier than the cigarette smell, due to the chemistry of its smoke.
The cigarette smell is stickier and it leaves after a very long time.