A part of my acm problems solved in hdoj.