BlueBook - Power Base

View as PDF

Submit solution

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

Problem types
BlueBook

Write a program that reads a real value X (11X11) and a positive integer P (2P10) and then calculates and prints the value of XP.

Input Specification

The first line of input will be the number of test cases, N (0N5). Each of the N test cases will have 2 numbers on each line.

Output Specification

All answers should be to 2 decimal places.

Sample Input

Copy
3
2.0 4
4.0 2
3.0 3

Sample Output

Copy
16.00
16.00
27.00

Comments

There are no comments at the moment.