2014 gcj qra problem C solved