0

Maths Homework
Input : Standard Input
Output : Standard Output
Time Limit : 2 sec
Bob had got a ton of homework for the weekend that he has no time to verify whether he is getting right answers or not.So he decides to write a computer program for this as he believes that computer can verify the output better.Once he completes writing the program he wants to test it on a sample question to find the cube root of the given numbers.
Input
The first line contains an integer N, the number of numbers for which you have to calculate the answer.The next line contains n space seperated integers.
Output
Print the answer of each number in a seperate line. The integer part of the cube root of the number.
Constraints
1 <= N <= 1000
1 <= Ni <= 1,000,000,000 (1e9)
The answer will fit in a 32-bit integer.
Sample Input
3
4 9 1
Sample Output
1
2
1

2
Contributors
1
Reply
19
Views
3 Years
Discussion Span
Last Post by rubberman
0

Sorry, but we don't do your homework for you. Please make an effort, post your code here, and we may help you sort out your problems if it seems appropriate.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.