AC ❤ · 发布于 2025-08-12 · 浏览 321 回复 0 include <bits/stdc++.h> using namespace std; int main() { long long a, b, c = 1; cin >> a >> b; while (b--) { c *= a; if (c > 1000000000) { cout << -1; return 0; } } cout << c; return 0; }