1#include <iostream>2#include <queue>3#include <stack>4#include <cstdio>5#include <vector>6#include <map>7#include <Set>8#include <bitset>9#include <algorithm>Ten#include <cmath> One#include <cstring> A#include <cstdlib> -#include <string> -#include <sstream> the#include <time.h> - #defineX First - #defineY Second - #definePB Push_back + #defineMP Make_pair - #defineLson l,m,rt*2 + #defineRson m+1,r,rt*2+1 A #defineMT (A, b) memset (a,b,sizeof (A)) at #defineMoD 1000000007 - using namespacestd; -typedefLong LongLL; - Const DoublePI = ACOs (-1); - Const intn=2e5+Ten; - Const intINF =0x3f3f3f3f; in ConstLL inf=0x3f3f3f3f3f3f3f3fll; - //known cone surface area S for maximum volume: V=s*sqrt (s/(72*PI)) to intMain () + { - #ifdef Local theFreopen ("Data.txt","R", stdin); * #endif $ DoubleN;Panax NotoginsengCin>>N; -printf"%lf\n", N*sqrt (n/( the*PI )); the #ifdef Local +Cerr <<"Time :"<< (LL) clock () * +/Clocks_per_sec <<"Ms"<<Endl; A #endif the}View Code
51629 B-June's cone