Hi, I'm trying to solve problem E and I from this problem set: http://codeforces.com/gym/100463/attachments/download/2554/michigan-invitational-programming-contest-en.pdf
Currently, I have no idea how to solve them. I hope you guys can give me some hints. Thanks.