update solution for hihocoder 1015