/**
* Author: Andrew He, chilli
* Date: 2019-05-07
* License: CC0
* Source: folklore
* Description: Computes the minimum circle that encloses a set of points.
* Time: expected O(n)
* Status: stress-tested
*/#pragma once
#include"circumcircle.h"pair<P,double>mec(vector<P>ps){shuffle(all(ps),mt19937(time(0)));Po=ps[0];doubler=0,EPS=1+1e-8;rep(i,0,sz(ps))if((o-ps[i]).dist()>r*EPS){o=ps[i],r=0;rep(j,0,i)if((o-ps[j]).dist()>r*EPS){o=(ps[i]+ps[j])/2;r=(o-ps[i]).dist();rep(k,0,j)if((o-ps[k]).dist()>r*EPS){o=ccCenter(ps[i],ps[j],ps[k]);r=(o-ps[i]).dist();}}}return{o,r};}
Traceback(mostrecentcalllast):File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/documentation/build.py",line71,in_render_source_code_statbundled_code=language.bundle(stat.path,basedir=basedir,options={'include_paths':[basedir]}).decode()~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus.py",line187,inbundlebundler.update(path)~~~~~~~~~~~~~~^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py",line312,inupdateraiseBundleErrorAt(path,i+1,"#pragma once found in a non-first line")onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt:src/geometry/MinimumEnclosingCircle.h:line10:#pragmaoncefoundinanon-firstline