BlueBook - Power Base

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
BlueBook

Write a program that reads a real value X and a positive integer P and then calculates and prints the value of X^P.

Input Specification

The first line of input will be the amount of test cases N and the following N test cases. Each of the test cases will have 2 numbers on each line.

Output Specification

All answers should be to 2 decimal places.

Sample Input

3
2.0 4
4.0 2
3.0 3

Sample Output

16.00
16.00
27.00

Comments

There are no comments at the moment.