SRM 327 DIV 2 easy & mid

* I will solve all DIV 2 easy & mid in winter vacation.
Seeing other's code always make me better.