Update p2.cpp
Merge pull request #1 from wujiaxi/patch-1

Update p2.cpp