uva divide&conquer&solve practice