| CSP-Junior 2022 |
|---|
| Finished |
You're given integers $$$a$$$ and $$$b$$$,calculate $$$a^b$$$。
But if $$$a^b$$$ exceeds $$$10^9$$$, print '-1'. Otherwise, print the correct value.
Read from file "pow.in"
Single line contains integers $$$a, b$$$.
Output to file "pow.out"
Single line,if $$$a^b$$$ doesn't exceeds $$$10^9$$$, print $$$a^b$$$, otherwise print '-1'.
10 9
1000000000
23333 66666
-1
$$$$$$1 \le a, b \le 10^9$$$$$$
| Name |
|---|


