add two solutions of contest_492 A