容斥原理 - PKU 2773 Happy 2006

http://www.cppblog.com/gdgzgq/articles/114401.html