Pyramids
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The pyramids in this problem have a triangular base, making them tetrahedrons. Your task is to calculate the volume of the pyramid given the specified edge lengths.
Input
The first line contains 6 numbers separated by spaces, representing the lengths of the edges of the pyramid ABCD. The edges are listed in the following order: AB, AC, AD, BC, BD, CD. Each edge length is a positive integer not exceeding 1000.
Output
Output a single real number, representing the volume of the pyramid, rounded to four decimal places.
Examples
Input #1
Answer #1
Submissions 310
Acceptance rate 18%