update aoj

solve 0588, 0589, 1042, 1180, 2012