BZOJ1503 (NOI2004, p1) Accepted