PAT advanced level AC codes.
Merge https://github.com/Shuailong/PAT