3 条题解
- 
  1
#include<queue> #include<math.h> #include<stdio.h> #include<iostream> #include<vector> #include<iomanip> #include<string.h> #include<algorithm> #include<cmath> #include<cstdio> #include<utility> #include<cstring> #include<stack> #include<fstream> #include<string> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; typedef long long ll; ll a , b; ll pow() { ll ans = 1; while ( b ) { if ( b % 2 == 1 ) { ans = ans * a; } b /= 2; a = a * a; } return ans; } int main() { cin >> a >> b; cout << pow(); return 0; } 
- 1
 
信息
- ID
 - 1661
 - 时间
 - 1000ms
 - 内存
 - 256MiB
 - 难度
 - 4
 - 标签
 - 递交数
 - 32
 - 已通过
 - 17
 - 上传者