Let the frozen shrimp thaw - they will leave the excess water and cook faster in the pan. If you do not have time for thawing, I would recommend putting them in boiling salted water for 2 minutes and then letting them drain the excess water in a sieve.
With the fresh ones everything is simple, clean and they are good to cook.