Submit | All submissions | Best solutions | Back to list |
FUCT_FOR_EXPONEN - Exponentiation |
Enter the base x and the exponent n. Calculate and print out xn.
Input
The first line of the input consist of a single integer number t which determines the number of tests.
In each of next t lines will contain x and n separated by a space.
Constraints
- 0 < t ≤ 1 000
Output
For each test case print out xn. Separate your answers with a new line character.
Example
Input: 5 1 7 2 4 0 9 -3 3 5 -2 Output: 1 16 0 -27 0.040000
Added by: | khanhvh |
Date: | 2018-07-10 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | FPTU Can Tho |
hide comments
2023-06-28 23:25:14
The author of this task is idiot? Do statement correct! |
|
2023-02-15 08:46:40 Simes
And it's time to play guess the rules for the output format... |