add solution k.cpp to Changchun 2012