Sunday, July 1, 2018

VHELSING - Van Helsings gun : Classical

#The solution in Python 3 is as follows:


import math
for _ in range(int(input())):
 r=int(input())
 print('%.4f' % (8*(2-(math.sqrt(2)))*(pow(r,3))))


#Visit this link for detailed information.

#Keep visiting for more solutions of SPOJ problems in Python 3.Thank you!!!