A, B, easy good; C, too complicated, TLE
A elegant solution for A, for C refer other's elegant code