div2 hard passed

source code and slide are added with div2 hard