快速幂模板
int FastPow (int base,int top) { int res = 1; while ( top ) { if (top % 2) res * = base ; base * = base ; top / = 2 ; } return res ; }