Since the Polygon tutorial system is currently broken, I will replace the editorial with PDF format. Sorry for the inconvenience!
Problem A was authored by ko_osaga. Code
Problem B was authored by ko_osaga. Code
Problem C was authored by ko_osaga. Code
Problem D was authored by nong. Code
Problem E was authored by ckw1140. Code