SRM 332 DIV 2 easy & mid

it's easy set
SRM 333 DIV2 easy & mid

good code optimization problems