update solution for hihocoder 1032