Add Old UVa Code

Signed-off-by: taichunmin <taichunmin@gmail.com>