Solutions to Uva-Online Judge