Codeforces Beta Round #1
update the codes in leetcode