QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#870378 | #8614. 3D | ucup-team087# | AC ✓ | 1735ms | 4096kb | C++23 | 19.5kb | 2025-01-25 16:08:50 | 2025-01-25 16:08:50 |
Judging History
answer
#ifndef LOCAL
#pragma GCC optimize ("Ofast")
#pragma GCC optimize ("unroll-loops")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define int ll
bool dbg=false;
#define rng(i,a,b) for(int i=int(a);i<int(b);i++)
#define rep(i,b) rng(i,0,b)
#define gnr(i,a,b) for(int i=int(b)-1;i>=int(a);i--)
#define per(i,b) gnr(i,0,b)
#define pb push_back
#define eb emplace_back
#define a first
#define b second
#define bg begin()
#define ed end()
#define all(x) x.bg,x.ed
#define si(x) int(x.size())
#ifdef LOCAL
#define dmp(x) cerr<<__LINE__<<" "<<#x<<" "<<x<<endl
#else
#define dmp(x) void(0)
#endif
template<class t,class u> bool chmax(t&a,u b){if(a<b){a=b;return true;}else return false;}
template<class t,class u> bool chmin(t&a,u b){if(b<a){a=b;return true;}else return false;}
template<class t> using vc=vector<t>;
template<class t> using vvc=vc<vc<t>>;
using pi=pair<int,int>;
using vi=vc<int>;
using vvi=vc<vc<int>>;
template<class t,class u>
ostream& operator<<(ostream& os,const pair<t,u>& p){
return os<<"{"<<p.a<<","<<p.b<<"}";
}
template<class t> ostream& operator<<(ostream& os,const vc<t>& v){
os<<"{";
for(auto e:v)os<<e<<",";
return os<<"}";
}
#define mp make_pair
#define mt make_tuple
#define one(x) memset(x,-1,sizeof(x))
#define zero(x) memset(x,0,sizeof(x))
#ifdef LOCAL
void dmpr(ostream&os){os<<endl;}
template<class T,class... Args>
void dmpr(ostream&os,const T&t,const Args&... args){
os<<t<<" ";
dmpr(os,args...);
}
#define dmp2(...) dmpr(cerr,__LINE__,##__VA_ARGS__)
#else
#define dmp2(...) void(0)
#endif
using uint=unsigned;
using ull=unsigned long long;
template<class t,size_t n>
ostream& operator<<(ostream&os,const array<t,n>&a){
return os<<vc<t>(all(a));
}
ll rand_int(ll l, ll r) { //[l, r]
//#ifdef LOCAL
static mt19937_64 gen;
/*#else
static mt19937_64 gen(chrono::steady_clock::now().time_since_epoch().count());
#endif*/
return uniform_int_distribution<ll>(l, r)(gen);
}
ll rand_int(ll k){ //[0,k)
return rand_int(0,k-1);
}
string rand_string(int n,char lw,char up){
string s(n,'?');
rep(i,n)s[i]=rand_int(lw,up);
return s;
}
int current_run_id,run_batch_size=1000;
int calc_random_limit(){
return current_run_id/run_batch_size+1;
}
template<class t>
void generate_single(t&a){
a=rand_int(1,calc_random_limit());
}
void generate_single(string&a){
int n;generate_single(n);
a=rand_string(n,'a','b');
}
template<class t,class u>
void generate_single(pair<t,u>&a){
generate_single(a.a);
generate_single(a.b);
}
//https://trap.jp/post/1224/
template<class... Args>
void input(Args&... a){
if(dbg){
(generate_single(a),...);
}else{
#ifdef USE_FAST_IO
sc.read(a...);
#else
(cin >> ... >> a);
#endif
}
}
#define INT(...) int __VA_ARGS__;input(__VA_ARGS__)
#define LL(...) ll __VA_ARGS__;input(__VA_ARGS__)
#define ULL(...) ull __VA_ARGS__;input(__VA_ARGS__)
#define STR(...) string __VA_ARGS__;input(__VA_ARGS__)
#define CHR(...) char __VA_ARGS__;input(__VA_ARGS__)
#define DBL(...) double __VA_ARGS__;input(__VA_ARGS__)
#define LD(...) ld __VA_ARGS__;input(__VA_ARGS__)
#define overload3(a,b,c,d,...) d
#define VI2(name,size) vi name(size);rep(i_##name,size)input(name[i_##name]);
#define VI3(name,size,offset) vi name(size);rep(i_##name,size)input(name[i_##name]),name[i_##name]+=offset;
#define VI(...) overload3(__VA_ARGS__,VI3,VI2)(__VA_ARGS__)
#define VPI(name,size) vc<pi> name(size);rep(i_##name,size)input(name[i_##name].a,name[i_##name].b);
#define VVI(name,sizeN,sizeM) vvi name(sizeN,vi(sizeM));\
rep(i_##name,sizeN)rep(j_##name,sizeM)input(name[i_##name][j_##name]);
#define VS(name,size) vc<string> name(size);rep(i_##name,size)input(name[i_##name]);
#define VMI(name,size) vc<mint> name(size);rep(i_##name,size){INT(tmp_##name);name[i_##name]=tmp_##name;};
#define overload5(a,b,c,d,e,f,...) f
#define VVC4(type,name,sizeN,sizeM) vvc<type> name(sizeN,vc<type>(sizeM));
#define VVC5(type,name,sizeN,sizeM,ini) vvc<type> name(sizeN,vc<type>(sizeM,ini));
#define VVC(...) overload5(__VA_ARGS__,VVC5,VVC4)(__VA_ARGS__)
template<class T>
T vvvc(T v){
return v;
}
template<class T,class...Args>
auto vvvc(int n,T v,Args...args){
return vector(n,vvvc(v,args...));
}
template<int i,class T>
void print_tuple(ostream&,const T&){
}
template<int i,class T,class H,class ...Args>
void print_tuple(ostream&os,const T&t){
if(i)os<<",";
os<<get<i>(t);
print_tuple<i+1,T,Args...>(os,t);
}
template<class ...Args>
ostream& operator<<(ostream&os,const tuple<Args...>&t){
os<<"{";
print_tuple<0,tuple<Args...>,Args...>(os,t);
return os<<"}";
}
void printsuc(int suc){
#ifdef USE_FAST_IO
if(suc==1)pr.write('\n');
if(suc==2)pr.write(' ');
#else
if(suc==1){
if(dbg)cout<<endl;
else{
#ifdef LOCAL
cout<<endl;
#else
cout<<"\n";
#endif
}
}
if(suc==2)
cout<<" ";
#endif
}
template<class t>
void print_single(t x,int suc=1){
#ifdef USE_FAST_IO
pr.write(x);
#else
cout<<x;
#endif
printsuc(suc);
}
template<class t,class u>
void print_single(const pair<t,u>&p,int suc=1){
print_single(p.a,2);
print_single(p.b,suc);
}
template<class T>
void print_single(const vector<T>&v,int suc=1){
rep(i,v.size())
print_single(v[i],i==int(v.size())-1?3:2);
printsuc(suc);
}
template<class T,size_t N>
void print_single(const array<T,N>&v,int suc=1){
rep(i,N)
print_single(v[i],i==int(N)-1?3:2);
printsuc(suc);
}
template<class T>
void print(const T&t){
print_single(t);
}
template<class T,class ...Args>
void print(const T&t,const Args&...args){
print_single(t,2);
print(args...);
}
template<class T>
void printvv(const vvc<T>&vs){
for(const auto&row:vs)print(row);
}
string readString(){
string s;
cin>>s;
return s;
}
template<class T>
T sq(const T& t){
return t*t;
}
void YES(bool ex=true){
cout<<"YES\n";
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
void NO(bool ex=true){
cout<<"NO\n";
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
void Yes(bool ex=true){
cout<<"Yes\n";
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
void No(bool ex=true){
cout<<"No\n";
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
//#define CAPITAL
/*
void yes(bool ex=true){
#ifdef CAPITAL
cout<<"YES"<<"\n";
#else
cout<<"Yes"<<"\n";
#endif
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
void no(bool ex=true){
#ifdef CAPITAL
cout<<"NO"<<"\n";
#else
cout<<"No"<<"\n";
#endif
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}*/
void possible(bool ex=true){
#ifdef CAPITAL
cout<<"POSSIBLE"<<"\n";
#else
cout<<"Possible"<<"\n";
#endif
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
void impossible(bool ex=true){
#ifdef CAPITAL
cout<<"IMPOSSIBLE"<<"\n";
#else
cout<<"Impossible"<<"\n";
#endif
if(ex)exit(0);
#ifdef LOCAL
cout.flush();
#endif
}
constexpr ll ten(int n){
return n==0?1:ten(n-1)*10;
}
const ll infLL=LLONG_MAX/3;
#ifdef int
const int inf=infLL;
#else
const int inf=INT_MAX/2-100;
#endif
int topbit(signed t){
return t==0?-1:31-__builtin_clz(t);
}
int topbit(ll t){
return t==0?-1:63-__builtin_clzll(t);
}
int topbit(ull t){
return t==0?-1:63-__builtin_clzll(t);
}
int botbit(signed a){
return a==0?32:__builtin_ctz(a);
}
int botbit(ll a){
return a==0?64:__builtin_ctzll(a);
}
int botbit(ull a){
return a==0?64:__builtin_ctzll(a);
}
int popcount(signed t){
return __builtin_popcount(t);
}
int popcount(ll t){
return __builtin_popcountll(t);
}
int popcount(ull t){
return __builtin_popcountll(t);
}
int bitparity(ll t){
return __builtin_parityll(t);
}
bool ispow2(int i){
return i&&(i&-i)==i;
}
ll mask(int i){
return (ll(1)<<i)-1;
}
ull umask(int i){
return (ull(1)<<i)-1;
}
ll minp2(ll n){
if(n<=1)return 1;
else return ll(1)<<(topbit(n-1)+1);
}
bool inc(int a,int b,int c){
return a<=b&&b<=c;
}
template<class S> void mkuni(S&v){
sort(all(v));
v.erase(unique(all(v)),v.ed);
}
template<class t> bool isuni(vc<t> v){
int s=si(v);
mkuni(v);
return si(v)==s;
}
template<class t>
void myshuffle(vc<t>&a){
rep(i,si(a))swap(a[i],a[rand_int(0,i)]);
}
template<class S,class u>
int lwb(const S&v,const u&a){
return lower_bound(all(v),a)-v.bg;
}
template<class t,class u>
bool bis(const vc<t>&v,const u&a){
return binary_search(all(v),a);
}
//VERIFY: yosupo
//KUPC2017J
//AOJDSL1A
//without rank
struct unionfind{
vi p,s;
int c;
unionfind(int n):p(n,-1),s(n,1),c(n){}
void clear(){
fill(all(p),-1);
fill(all(s),1);
c=si(p);
}
int find(int a){
return p[a]==-1?a:(p[a]=find(p[a]));
}
//set b to a child of a
bool unite(int a,int b){
a=find(a);
b=find(b);
if(a==b)return false;
p[b]=a;
s[a]+=s[b];
c--;
return true;
}
bool same(int a,int b){
return find(a)==find(b);
}
int sz(int a){
return s[find(a)];
}
};
vvc<int> readGraph(int n,int m){
vvc<int> g(n);
rep(i,m){
int a,b;
cin>>a>>b;
//sc.read(a,b);
a--;b--;
g[a].pb(b);
g[b].pb(a);
}
return g;
}
vvc<int> rand_tree(int n){
vvc<int> t(n);
unionfind uf(n);
while(uf.c>1){
int a=rand_int(n);
int b=rand_int(n);
if(uf.unite(a,b)){
t[a].pb(b);
t[b].pb(a);
}
}
return t;
}
vvc<int> readTree(int n){
if(dbg){
return rand_tree(n);
}else{
return readGraph(n,n-1);
}
}
vi readRooted(int n){
assert(!dbg);
vi par(n,-1);
rng(i,1,n){
input(par[i]);
par[i]--;
assert(inc(0,par[i],i-1));
}
return par;
}
void printTree(const vvc<int> t){
int n=si(t);
int degsum=0;
rep(i,n)degsum+=si(t[i]);
if(degsum==n-1){
//directed
rep(i,si(t))for(auto j:t[i]){
print(i+1,j+1);
}
}else if(degsum==2*(n-1)){
//undirected
rep(i,si(t))for(auto j:t[i])if(i<j){
print(i+1,j+1);
}
}else{
assert(false);
}
}
template<class t>
vc<t> presum(const vc<t>&a){
vc<t> s(si(a)+1);
rep(i,si(a))s[i+1]=s[i]+a[i];
return s;
}
vc<ll> presum(const vi&a){
vc<ll> s(si(a)+1);
rep(i,si(a))s[i+1]=s[i]+a[i];
return s;
}
//BIT で数列を管理するときに使う (CF850C)
template<class t>
vc<t> predif(vc<t> a){
gnr(i,1,si(a))a[i]-=a[i-1];
return a;
}
template<class t>
vvc<ll> imos(const vvc<t>&a){
int n=si(a),m=si(a[0]);
vvc<ll> b(n+1,vc<ll>(m+1));
rep(i,n)rep(j,m)
b[i+1][j+1]=b[i+1][j]+b[i][j+1]-b[i][j]+a[i][j];
return b;
}
//verify してないや
void transvvc(int&n,int&m){
swap(n,m);
}
template<class t,class... Args>
void transvvc(int&n,int&m,vvc<t>&a,Args&...args){
assert(si(a)==n);
vvc<t> b(m,vi(n));
rep(i,n){
assert(si(a[i])==m);
rep(j,m)b[j][i]=a[i][j];
}
a.swap(b);
transvvc(n,m,args...);
}
//CF854E
void rotvvc(int&n,int&m){
swap(n,m);
}
template<class t,class... Args>
void rotvvc(int&n,int&m,vvc<t>&a,Args&...args){
assert(si(a)==n);
vvc<t> b(m,vi(n));
rep(i,n){
assert(si(a[i])==m);
rep(j,m)b[m-1-j][i]=a[i][j];
}
a.swap(b);
rotvvc(n,m,args...);
}
//ソートして i 番目が idx[i]
//CF850C
template<class t>
vi sortidx(const vc<t>&a){
int n=si(a);
vi idx(n);iota(all(idx),0);
sort(all(idx),[&](int i,int j){return a[i]<a[j];});
return idx;
}
//vs[i]=a[idx[i]]
//例えば sortidx で得た idx を使えば単にソート列になって返ってくる
//CF850C
template<class t>
vc<t> a_idx(const vc<t>&a,const vi&idx){
int n=si(a);
assert(si(idx)==n);
vc<t> vs(n);
rep(i,n)vs[i]=a[idx[i]];
return vs;
}
//CF850C
vi invperm(const vi&p){
int n=si(p);
vi q(n);
rep(i,n)q[p[i]]=i;
return q;
}
template<class t,class s=t>
s SUM(const vc<t>&a){
return accumulate(all(a),s(0));
}
template<class t,size_t K,class s=t>
s SUM(const array<t,K>&a){
return accumulate(all(a),s(0));
}
template<class t>
t MAX(const vc<t>&a){
return *max_element(all(a));
}
template<class t>
pair<t,int> MAXi(const vc<t>&a){
auto itr=max_element(all(a));
return mp(*itr,itr-a.bg);
}
template<class A>
auto MIN(const A&a){
return *min_element(all(a));
}
template<class t>
pair<t,int> MINi(const vc<t>&a){
auto itr=min_element(all(a));
return mp(*itr,itr-a.bg);
}
vi vid(int n){
vi res(n);iota(all(res),0);
return res;
}
template<class S>
void soin(S&s){
sort(all(s));
}
template<class S,class F>
void soin(S&s,F&&f){
sort(all(s),forward<F>(f));
}
template<class S>
S soout(S s){
soin(s);
return s;
}
template<class S>
void rein(S&s){
reverse(all(s));
}
template<class S>
S reout(S s){
rein(s);
return s;
}
template<class t,class u>
pair<t,u>&operator+=(pair<t,u>&a,pair<t,u> b){
a.a+=b.a;a.b+=b.b;return a;}
template<class t,class u>
pair<t,u>&operator-=(pair<t,u>&a,pair<t,u> b){
a.a-=b.a;a.b-=b.b;return a;}
template<class t,class u>
pair<t,u> operator+(pair<t,u> a,pair<t,u> b){return mp(a.a+b.a,a.b+b.b);}
template<class t,class u>
pair<t,u> operator-(pair<t,u> a,pair<t,u> b){return mp(a.a-b.a,a.b-b.b);}
template<class t,class u,class v>
pair<t,u>&operator*=(pair<t,u>&a,v b){
a.a*=b;a.b*=b;return a;}
template<class t,class u,class v>
pair<t,u> operator*(pair<t,u> a,v b){return a*=b;}
template<class t,class u>
pair<t,u> operator-(pair<t,u> a){return mp(-a.a,-a.b);}
namespace std{
template<class t,class u>
istream&operator>>(istream&is,pair<t,u>&a){
return is>>a.a>>a.b;
}
}
template<class t,size_t n>
array<t,n>&operator+=(array<t,n>&a,const array<t,n>&b){
rep(i,n)a[i]+=b[i];
return a;
}
template<class t,size_t n>
array<t,n>&operator-=(array<t,n>&a,const array<t,n>&b){
rep(i,n)a[i]-=b[i];
return a;
}
template<class t,size_t n,class v>
array<t,n>&operator*=(array<t,n>&a,v b){
rep(i,n)a[i]*=b;
return a;
}
template<class t,size_t n>
array<t,n> operator+(array<t,n> a,const array<t,n>&b){return a+=b;}
template<class t,size_t n>
array<t,n> operator-(array<t,n> a,const array<t,n>&b){return a-=b;}
template<class t,size_t n,class v>
array<t,n> operator*(array<t,n> a,v b){return a*=b;}
template<class t>
t gpp(vc<t>&vs){
assert(si(vs));
t res=move(vs.back());
vs.pop_back();
return res;
}
template<class t,class u>
void pb(vc<t>&a,const vc<u>&b){
a.insert(a.ed,all(b));
}
template<class t,class...Args>
vc<t> cat(vc<t> a,Args&&...b){
(pb(a,forward<Args>(b)),...);
return a;
}
template<class t,class u>
vc<t>& operator+=(vc<t>&a,u x){
for(auto&v:a)v+=x;
return a;
}
template<class t,class u>
vc<t> operator+(vc<t> a,u x){
return a+=x;
}
template<class t>
vc<t>& operator+=(vc<t>&a,const vc<t>&b){
a.resize(max(si(a),si(b)));
rep(i,si(b))a[i]+=b[i];
return a;
}
template<class t>
vc<t> operator+(const vc<t>&a,const vc<t>&b){
vc<t> c(max(si(a),si(b)));
rep(i,si(a))c[i]+=a[i];
rep(i,si(b))c[i]+=b[i];
return c;
}
template<class t,class u>
vc<t>& operator-=(vc<t>&a,u x){
for(auto&v:a)v-=x;
return a;
}
template<class t,class u>
vc<t> operator-(vc<t> a,u x){
return a-=x;
}
template<class t>
vc<t>& operator-=(vc<t>&a,const vc<t>&b){
a.resize(max(si(a),si(b)));
rep(i,si(b))a[i]-=b[i];
return a;
}
/*
template<class t>
vc<t> operator-(const vc<t>&a,const vc<t>&b){
vc<t> c(max(si(a),si(b)));
rep(i,si(a))c[i]+=a[i];
rep(i,si(b))c[i]-=b[i];
return c;
}
*/
template<class t,class u>
vc<t>& operator*=(vc<t>&a,u x){
for(auto&v:a)v*=x;
return a;
}
template<class t,class u>
vc<t> operator*(vc<t> a,u x){
return a*=x;
}
template<class t,class u>
vc<t>& operator/=(vc<t>&a,u x){
for(auto&v:a)v/=x;
return a;
}
template<class t,class u>
vc<t> operator/(vc<t> a,u x){
return a/=x;
}
template<class t>
vc<t>& operator<<=(vc<t>&a,int k){
assert(k>=0);
a.insert(a.bg,k,t(0));
return a;
}
template<class t>
vc<t> operator<<(vc<t> a,int k){
return a<<=k;
}
template<class t>
vc<t>& operator>>=(vc<t>&a,int k){
if(si(a)<=k)a.clear();
else a.erase(a.bg,a.bg+k);
return a;
}
template<class t>
vc<t> operator>>(vc<t> a,int k){
return a>>=k;
}
template<class t,class u>
void remval(vc<t>&a,const u&v){
a.erase(remove(all(a),v),a.ed);
}
//消した要素の個数を返してくれる
//UCUP 2-8-F
template<class t,class F>
int remif(vc<t>&a,F f){
auto itr=remove_if(all(a),f);
int res=a.ed-itr;
a.erase(itr,a.ed);
return res;
}
template<class t>
void rempos(vc<t>&a,int i){
assert(inc(0,i,si(a)-1));
a.erase(a.bg+i);
}
template<class VS,class u>
void fila(VS&vs,const u&a){
fill(all(vs),a);
}
template<class t,class u>
int findid(const vc<t>&vs,const u&a){
auto itr=find(all(vs),a);
if(itr==vs.ed)return -1;
else return itr-vs.bg;
}
template<class t>
void rtt(vc<t>&vs,int i){
rotate(vs.bg,vs.bg+i,vs.ed);
}
//Multiuni2023-8 C
//f(lw)=false,...,f(n-1)=false,f(n)=true,...,f(up)=true,
//のときに n を返す
template<class F>
int find_min_true(int lw,int up,F f){
while(up-lw>1){
const int mid=(lw+up)/2;
if(f(mid))up=mid;
else lw=mid;
}
return up;
}
//f(lw)=true,f(up)=false
template<class F>
int find_max_true(int lw,int up,F f){
while(up-lw>1){
const int mid=(lw+up)/2;
if(f(mid))lw=mid;
else up=mid;
}
return lw;
}
template<class t> using pqmin=priority_queue<t,vc<t>,greater<t>>;
template<class t> using pqmax=priority_queue<t>;
using T=tuple<int,int,int>;
using ld=double;
const int W=ten(9);
template<class F>
auto golden_min(ld a,ld b,int itr,F f){
assert(a<=b);
const ld gold=(3-sqrtl(5))/2;
ld c=a+gold*(b-a),d=b-gold*(b-a);
auto fc=f(c),fd=f(d);
rep(_,itr){
if(fc>fd){
a=c;
c=d;
fc=fd;
d=b-gold*(b-a);
fd=f(d);
}else{
b=d;
d=c;
fd=fc;
c=a+gold*(b-a);
fc=f(c);
}
}
return mp(f(c),c);
}
using V=pair<int,ld>;
const int Q=60;
const int L=10;
struct Solver{
int n;
vvc<ld> tar;
vc<ld> xs,ys,zs;
void init(vvc<ld> raw){
tar=raw;
n=si(tar);
xs.resize(n);
ys.resize(n);
zs.resize(n);
rep(i,n){
xs[i]=ld(rand_int(0,W))/W;
ys[i]=ld(rand_int(0,W))/W;
zs[i]=ld(rand_int(0,W))/W;
}
}
V dist(int i,int j){
ld d=abs(sqrt(sq(xs[i]-xs[j])+sq(ys[i]-ys[j])+sq(zs[i]-zs[j]))-tar[i][j]);
return V(sq(int(d/0.1)),d);
}
bool upd(int i){
ld bestx=0,besty=0,bestz=0;
V bestval(inf,inf);
auto calc=[&](){
V res(0,0);
rep(j,n)if(i!=j){
res+=dist(i,j);
}
if(chmin(bestval,res)){
bestx=xs[i];
besty=ys[i];
bestz=zs[i];
}
return res;
};
auto chz=[&](ld z)->V{
swap(zs[i],z);
V res=calc();
swap(zs[i],z);
return res;
};
auto chy=[&](ld y)->V{
swap(ys[i],y);
V res=golden_min(0,L,Q,chz).a;
swap(ys[i],y);
return res;
};
auto chx=[&](ld x)->V{
swap(xs[i],x);
V res=golden_min(0,L,Q,chy).a;
swap(xs[i],x);
return res;
};
golden_min(0,L,Q,chx);
xs[i]=bestx;
ys[i]=besty;
zs[i]=bestz;
rep(j,n)rng(k,j+1,n)if(dist(j,k).a)return false;
return true;
}
void answer(){
rep(i,n)print(xs[i],ys[i],zs[i]);
}
};
void slv(){
INT(n);
VVC(ld,tar,n,n);
rep(i,n)rep(j,n)input(tar[i][j]);
const int K=3;
VVC(int,idx,K,n);
rep(i,K){
idx[i]=vid(n);
myshuffle(idx[i]);
}
vc<Solver> ss(K);
rep(i,K)ss[i].init(tar);
rep(step,ten(9)){
rep(i,K){
if(ss[i].upd(idx[i][step%n])){
ss[i].answer();
return;
}
}
}
}
signed main(signed argc,char*argv[]){
if(argc>1&&strcmp(argv[1],"D")==0)dbg=true;
cin.tie(0);
ios::sync_with_stdio(0);
cout<<fixed<<setprecision(20);
if(dbg){
while(1){
if(current_run_id%run_batch_size==0){
cerr<<"Current Run "<<current_run_id<<endl;
}
slv();
current_run_id++;
}
}else{
//int t;cin>>t;rep(_,t)
slv();
}
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 20ms
memory: 4096kb
input:
4 0.000000 0.758400 0.557479 0.379026 0.758400 0.000000 0.516608 0.446312 0.557479 0.516608 0.000000 0.554364 0.379026 0.446312 0.554364 0.000000
output:
0.41359495838688487002 1.15360423414168766776 0.83403520869581870834 0.04553986000000000145 0.50497637600000000457 0.69623859700000001460 0.54578413579797990796 0.61710801951598515114 0.76000367143837899153 0.15203648399999999952 0.98152031000000006244 0.62041171700000008471
result:
ok OK. Max delta: 0.047839
Test #2:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
1 0.000000
output:
3.81966011250105141883 3.81966011250105141883 3.81966011250105141883
result:
ok OK. Max delta: 0.000000
Test #3:
score: 0
Accepted
time: 2ms
memory: 4096kb
input:
2 0.000000 0.938096 0.938096 0.000000
output:
0.25131781800000002614 0.02271243800000000146 0.52064315300000008069 0.90169943749474246175 0.69443773629763394517 0.44440026568353735437
result:
ok OK. Max delta: 0.000000
Test #4:
score: 0
Accepted
time: 10ms
memory: 4096kb
input:
3 0.000000 0.769195 0.308169 0.769195 0.000000 0.686850 0.308169 0.686850 0.000000
output:
1.09523472350280570708 0.67954658200567485959 0.34235629298011299726 0.47597471245057865197 1.02833305412405207058 0.63650928651203164677 0.85707728400000005031 0.49977436000000002858 0.41937002400000000790
result:
ok OK. Max delta: 0.000000
Test #5:
score: 0
Accepted
time: 45ms
memory: 3968kb
input:
5 0.000000 0.444506 0.292333 0.209539 1.195824 0.444506 0.000000 0.220873 0.748833 0.757486 0.292333 0.220873 0.000000 0.533499 0.797167 0.209539 0.748833 0.533499 0.000000 1.141148 1.195824 0.757486 0.797167 1.141148 0.000000
output:
0.45992486700000001498 0.25726183000000002465 0.77704552300000007126 0.81672145149072994386 0.66040148761606154437 0.69542813644628309611 0.56174178729943191613 0.58591372969563126905 0.58850792341902957716 0.26320233859814534672 0.32903999751595330858 0.76964727940569610531 0.75745681751244953173 1...
result:
ok OK. Max delta: 0.100000
Test #6:
score: 0
Accepted
time: 112ms
memory: 4096kb
input:
6 0.000000 0.932377 0.787009 0.996894 0.763544 0.651377 0.932377 0.000000 0.421278 1.155673 1.149686 0.508563 0.787009 0.421278 0.000000 0.709021 0.793974 0.224884 0.996894 1.155673 0.709021 0.000000 0.392548 0.957498 0.763544 1.149686 0.793974 0.392548 0.000000 0.714079 0.651377 0.508563 0.224884 0...
output:
0.71315001107948328141 0.72043771005491019643 0.92865336900063288894 0.03019205482905274254 1.10567568107275038258 0.25711602394479898814 0.31396715466043251253 0.79432438111533065772 0.25443013218575288859 1.07337388968610580875 0.67994913434985915224 0.00000000000110348467 0.89370904655834693120 0...
result:
ok OK. Max delta: 0.100000
Test #7:
score: 0
Accepted
time: 113ms
memory: 3968kb
input:
7 0.000000 0.688481 0.455407 0.777049 0.963980 0.255052 0.554599 0.688481 0.000000 0.596921 0.827787 1.260207 0.340235 0.493011 0.455407 0.596921 0.000000 0.609173 0.640567 0.352193 0.243913 0.777049 0.827787 0.609173 0.000000 0.858134 0.701131 0.393303 0.963980 1.260207 0.640567 0.858134 0.000000 0...
output:
0.18633720090851149664 0.30883129879706344711 0.42473905099997721901 0.66983618523123322763 0.24804103772126423477 0.02935065269731176874 0.44047487964516812697 0.55862129492729573066 0.48251342440745920159 0.96245280087135220981 0.37815054399330710888 0.73953696756782993926 0.46691869035313110503 1...
result:
ok OK. Max delta: 0.100000
Test #8:
score: 0
Accepted
time: 239ms
memory: 3968kb
input:
8 0.000000 0.437494 0.934265 0.074097 0.673669 0.425700 0.479212 0.679270 0.437494 0.000000 0.331045 0.393801 0.527073 0.402792 0.375134 0.461133 0.934265 0.331045 0.000000 0.792317 0.605663 0.880433 0.786178 0.455534 0.074097 0.393801 0.792317 0.000000 0.681633 0.278020 0.327267 0.550058 0.673669 0...
output:
0.83073060698187173312 0.94210096647458718699 0.46528431249426194238 0.55519010772954013877 0.63805704911045324490 0.77839639874420452070 0.14392236379549214198 0.70676293785201138586 0.87626915357783763394 0.80811826731020264258 0.80353441423716642777 0.49070969945495446218 0.47597471245057865197 1...
result:
ok OK. Max delta: 0.100000
Test #9:
score: 0
Accepted
time: 312ms
memory: 4096kb
input:
9 0.000000 0.883128 0.449200 0.525234 0.745161 0.323207 0.430759 1.247103 0.564870 0.883128 0.000000 0.664206 0.590150 0.433578 0.890708 0.741718 0.798316 1.033522 0.449200 0.664206 0.000000 0.326949 0.636800 0.523900 0.642051 0.680925 0.349474 0.525234 0.590150 0.326949 0.000000 0.523965 0.344241 0...
output:
0.64762443145523640453 0.50633438640883654536 0.06457000637672860588 0.09225502471730231968 0.69275101650320336510 0.76758528986410323736 0.70998852023807390577 0.78590923094615916522 0.48757048571415095850 0.41828956820295914998 0.80931920123237754972 0.34176464470012785091 0.21113165980495948726 0...
result:
ok OK. Max delta: 0.100000
Test #10:
score: 0
Accepted
time: 405ms
memory: 3968kb
input:
10 0.000000 1.141963 0.357381 0.960442 0.887799 0.393165 1.000015 0.883861 1.059968 0.666258 1.141963 0.000000 0.730979 0.430440 0.528721 0.822481 0.567380 0.334929 0.552413 0.840500 0.357381 0.730979 0.000000 0.861027 0.623726 0.216981 0.719423 0.558824 0.726378 0.310217 0.960442 0.430440 0.861027 ...
output:
0.85047025953981569835 0.00000000000110348467 0.63713086839847665743 0.08196725717135244782 0.82105431955042795789 0.84154345961026111311 0.67379237540477654456 0.27711103777828011152 0.77500776095525003573 0.15478136340765913381 0.73860367984199537528 0.34648864335926665703 0.60466134856796849295 0...
result:
ok OK. Max delta: 0.099999
Test #11:
score: 0
Accepted
time: 477ms
memory: 3968kb
input:
10 0.000000 0.508467 0.359704 0.705660 0.752608 0.632298 0.433047 0.541855 0.108842 0.652503 0.508467 0.000000 0.849608 0.542157 0.614068 0.673963 0.552462 0.470005 0.697815 0.822930 0.359704 0.849608 0.000000 0.832286 0.790254 0.844729 0.428335 0.707356 0.221649 0.447522 0.705660 0.542157 0.832286 ...
output:
0.50864347028269396578 0.48082607308806851742 0.71932111989813407593 0.45382453200820654926 0.99685124678955494559 0.66612786982572336214 0.58548613459875065157 0.16214820881960748111 0.57124481733103149583 0.65774846183164814573 0.90168929904756445204 0.17288001408130468373 0.24119493457777790857 0...
result:
ok OK. Max delta: 0.100000
Test #12:
score: 0
Accepted
time: 439ms
memory: 4096kb
input:
10 0.000000 0.532841 1.081715 0.791902 0.304710 0.943952 0.318604 0.512618 0.263399 0.317304 0.532841 0.000000 0.617254 0.571776 0.863445 0.644868 0.534570 0.898453 0.767957 0.380512 1.081715 0.617254 0.000000 0.498716 1.118400 0.375946 0.739541 1.081104 0.985516 0.778030 0.791902 0.571776 0.498716 ...
output:
0.47192375025413213496 0.19721482899319303650 0.31970717335901416289 0.03447687336664983365 0.60358821677207175060 0.52944184118362080937 0.19946597922917849721 0.84792377482335301586 1.01616426362590428489 0.50422252099737896458 0.59103032024907964370 1.00598330578995986961 0.69735789644753853889 0...
result:
ok OK. Max delta: 0.100000
Test #13:
score: 0
Accepted
time: 533ms
memory: 3968kb
input:
10 0.000000 0.337812 0.820740 0.714576 0.958294 1.114603 1.052855 0.816204 0.921684 0.581533 0.337812 0.000000 0.588126 0.550959 0.851936 1.076003 0.824637 0.634512 0.630209 0.781504 0.820740 0.588126 0.000000 0.754545 0.853344 0.651402 0.625435 0.521290 0.463145 0.927492 0.714576 0.550959 0.754545 ...
output:
0.55728090000841212781 0.71893543796090730869 0.00000000000110348467 0.57137635154567822937 0.93275563764794655608 0.25406718454368676374 0.53257940426384109411 1.03137045709643793145 0.76702869879002588682 0.03476211500132752458 0.62403954150613594187 0.44513275899543469638 0.92917488691549510182 0...
result:
ok OK. Max delta: 0.100000
Test #14:
score: 0
Accepted
time: 343ms
memory: 3968kb
input:
10 0.000000 0.157221 0.630350 0.940948 0.790907 0.666502 0.536584 0.506196 0.353744 0.642539 0.157221 0.000000 0.582092 1.279081 0.812532 0.810677 0.850103 0.865478 0.320962 0.694578 0.630350 0.582092 0.000000 1.171965 1.045437 1.168568 0.582206 0.854963 0.513105 1.137099 0.940948 1.279081 1.171965 ...
output:
0.54308100279523763287 0.78780570596329480004 0.40766500145993378457 0.76535468151548513571 0.91723152955974784906 0.40521331347449118798 0.48334933113181088871 1.08961923876615585094 0.88436522731183231372 0.02190499636822004076 0.09451045476614755581 0.98324297506192570584 0.81306187557833486945 0...
result:
ok OK. Max delta: 0.100000
Test #15:
score: 0
Accepted
time: 439ms
memory: 3968kb
input:
10 0.000000 0.655953 0.416075 0.956128 0.351321 0.411663 0.904277 0.786858 0.961004 1.159073 0.655953 0.000000 0.398507 0.430374 0.378366 0.531641 0.789955 0.396050 0.368849 1.088933 0.416075 0.398507 0.000000 0.976294 0.461240 0.328488 0.979923 0.705916 0.884932 1.254989 0.956128 0.430374 0.976294 ...
output:
0.56658366646481528317 0.34805985197104472029 1.07118542874781930152 0.44491851229737455764 0.71700501197745070137 0.60747063165643366833 0.25017627398203262645 0.45630548452235664136 0.94936470338600176255 0.59383788433408701835 0.79059917571138715875 0.21585560321149852014 0.57552451742668808699 0...
result:
ok OK. Max delta: 0.100000
Test #16:
score: 0
Accepted
time: 335ms
memory: 4096kb
input:
10 0.000000 0.672245 0.576475 0.810904 0.599396 0.493165 0.431514 0.511677 0.859634 0.881368 0.672245 0.000000 1.249406 1.027657 0.113558 0.392208 0.862698 0.329856 1.012059 1.039747 0.576475 1.249406 0.000000 0.869439 1.254676 1.087547 0.535956 1.182094 0.744887 0.645939 0.810904 1.027657 0.869439 ...
output:
0.80720000103447475670 0.52861647218763496703 0.66197481099643373792 0.26687284525472165786 0.51259691475204527400 1.05263468186439390628 1.01753822697128493147 0.70210069245234374424 0.07201999924686224019 0.14948702400238381149 0.71213716740937882399 0.12008821031302878424 0.23205614977707822444 0...
result:
ok OK. Max delta: 0.100000
Test #17:
score: 0
Accepted
time: 320ms
memory: 4096kb
input:
10 0.000000 0.609276 0.612588 0.898616 0.668529 0.802163 0.126104 0.681054 0.761434 0.310892 0.609276 0.000000 0.922363 0.423227 0.591390 0.662160 0.751720 0.241917 0.563127 0.693959 0.612588 0.922363 0.000000 0.873479 0.681583 0.707351 0.595097 0.923846 0.768951 0.393683 0.898616 0.423227 0.873479 ...
output:
0.71216740895939312228 0.36299894932124066038 0.53727823375316485777 0.52613108284802578840 0.87244193592935737058 0.81490311184986130577 0.66246183058446928005 0.34894957602417847609 0.02729938288532826607 0.19717641405349209394 1.00028815607779852925 0.58131102422344460567 0.15724618181011915108 0...
result:
ok OK. Max delta: 0.100000
Test #18:
score: 0
Accepted
time: 1735ms
memory: 3968kb
input:
10 0.000000 0.542508 0.426558 0.741404 0.733105 0.586307 0.271270 0.847645 0.757695 0.830800 0.542508 0.000000 0.497136 1.012191 1.083431 0.944439 0.618287 0.696705 0.472089 0.354373 0.426558 0.497136 0.000000 0.973354 0.928175 0.884683 0.594828 0.699473 0.534409 0.737409 0.741404 1.012191 0.973354 ...
output:
0.73814361023219221547 0.19543756559635505621 0.34736679673016607195 0.68407375120646507494 0.63633195407767761953 0.01841350609282125725 0.36611801691780482271 0.41094367417388882879 0.09471079853500102841 0.88077494752262375233 0.74286408939611558999 0.90363392299282208064 0.48793947837041734550 0...
result:
ok OK. Max delta: 0.100000
Test #19:
score: 0
Accepted
time: 421ms
memory: 3968kb
input:
10 0.000000 1.061016 0.689894 0.927767 0.698893 0.765947 0.661068 0.306274 0.338125 0.696899 1.061016 0.000000 0.648243 1.014484 1.091752 0.749377 0.935557 1.183802 0.696073 0.582378 0.689894 0.648243 0.000000 0.480864 0.914770 0.542060 0.834022 0.683526 0.147432 0.385821 0.927767 1.014484 0.480864 ...
output:
0.06085721700395829714 0.61863357264535623337 0.65974235237337142124 0.73175568802050139361 1.31303412437681488178 0.63254118116672020111 0.42806300490116749868 0.92702953594913739543 0.21478510626190394639 0.71574803161336886248 0.60078488973421351194 0.01920866026153921283 0.70994085873684442678 0...
result:
ok OK. Max delta: 0.100000
Test #20:
score: 0
Accepted
time: 476ms
memory: 3968kb
input:
10 0.000000 0.628979 0.809480 0.577228 0.543499 1.184491 0.915473 0.675321 0.902183 0.959077 0.628979 0.000000 0.645170 0.420946 0.821186 0.479130 0.411255 0.481181 0.640513 0.425707 0.809480 0.645170 0.000000 0.338814 0.659221 0.790485 0.676700 0.571793 1.093424 0.897873 0.577228 0.420946 0.338814 ...
output:
0.13155617496424840129 1.25532046936330488052 0.63301061286734527922 0.46693540383782872194 0.75554012242321144655 0.22173119435295249313 0.04510981914675891991 0.53030563206081082761 0.65484889446508032229 0.08298790137594407035 0.68950511634065869693 0.38116528180324976693 0.31523394201345117382 0...
result:
ok OK. Max delta: 0.100000
Test #21:
score: 0
Accepted
time: 410ms
memory: 4096kb
input:
10 0.000000 1.348062 0.906255 1.056869 0.692737 1.233088 1.241780 0.765549 0.485628 0.823618 1.348062 0.000000 0.835159 0.531092 0.980818 0.271515 0.366699 0.868310 0.952290 0.828378 0.906255 0.835159 0.000000 0.460229 0.654184 0.642472 0.775590 0.878833 0.474961 0.920338 1.056869 0.531092 0.460229 ...
output:
0.95080917684630206210 0.32337226593987705714 0.23882123896206958191 0.02471782471016475274 1.14880789436384844748 0.68883707497266055686 0.05781866568013658420 0.47430921206477555385 0.32846841715333208178 0.19553028522034948677 0.65699248362912721078 0.79575773845055663980 0.55536660015544769831 0...
result:
ok OK. Max delta: 0.100000
Test #22:
score: 0
Accepted
time: 587ms
memory: 4096kb
input:
10 0.000000 0.329257 0.705789 0.891723 1.151056 0.462469 1.051266 0.851658 0.464279 0.417320 0.329257 0.000000 0.600718 0.970605 0.938181 0.326375 1.043915 0.847296 0.532934 0.745040 0.705789 0.600718 0.000000 1.011572 0.883348 0.772478 0.845990 0.814815 0.707183 0.894030 0.891723 0.970605 1.011572 ...
output:
0.80400304147607526417 0.85464942966515233813 0.87859022061773950352 0.67498138576546240497 1.13445971800907141613 0.76253080935168593424 0.78731243849502186016 1.30256859671252245292 0.24900320068561038189 0.29662972714821672637 0.41822767642505215280 0.22780120379810248066 0.16421633696927057100 0...
result:
ok OK. Max delta: 0.100000
Test #23:
score: 0
Accepted
time: 934ms
memory: 3968kb
input:
10 0.000000 0.235777 0.530634 0.606656 0.893717 0.919646 0.941638 0.481056 0.559410 0.700416 0.235777 0.000000 0.591394 0.366417 0.562795 0.668466 0.673889 0.313022 0.373190 0.531931 0.530634 0.591394 0.000000 0.770613 1.067598 0.986187 0.932384 0.420644 0.877563 0.676012 0.606656 0.366417 0.770613 ...
output:
0.86854957908613483752 0.42110788686684869075 0.31829137806464125049 0.62096487570645297893 0.62081702374887315354 0.38159709098439864583 0.76614429634519864987 0.12523494862928363780 0.66981264545089158613 0.25684286009723233946 0.60840872651272159821 0.34257645801826003273 0.13141254670544466610 0...
result:
ok OK. Max delta: 0.100000
Test #24:
score: 0
Accepted
time: 313ms
memory: 4096kb
input:
10 0.000000 0.901469 1.004974 0.822893 1.099344 0.765078 0.723063 0.160831 0.793508 0.863924 0.901469 0.000000 0.806530 0.620901 0.732184 0.887322 0.586228 1.007618 0.872765 0.806577 1.004974 0.806530 0.000000 0.726444 0.134216 0.429813 0.720199 1.033061 0.169605 0.776613 0.822893 0.620901 0.726444 ...
output:
0.98581463458214346751 0.31593236737820540316 0.86427637562359371781 0.10447776535267246090 0.31272410367975345125 1.05370020712757272996 0.15597099184949744788 0.96158463779420411122 0.57744492285889836847 0.27163718244670564950 0.34860456323745891982 0.45680124272977545852 0.15167637631752628469 0...
result:
ok OK. Max delta: 0.100000
Test #25:
score: 0
Accepted
time: 476ms
memory: 4096kb
input:
10 0.000000 1.095184 1.336518 0.794425 0.718704 0.763264 0.384992 0.883098 0.631205 0.935701 1.095184 0.000000 0.505724 0.476965 0.562544 0.650190 1.020870 0.721884 0.428427 0.539934 1.336518 0.505724 0.000000 0.970641 0.940969 0.604111 1.386828 1.106682 0.675365 0.942494 0.794425 0.476965 0.970641 ...
output:
0.52478240471080850327 0.12668898949270757104 0.80484488252670316477 0.36697506357574888325 1.05488525769001650900 0.31364008023907258282 0.79292697398971845324 1.31375961884902636712 0.39911404893845553454 0.05481056029800324830 0.74650485516312792278 0.64339569935392770805 0.06558231738501517361 0...
result:
ok OK. Max delta: 0.100000
Test #26:
score: 0
Accepted
time: 625ms
memory: 3968kb
input:
10 0.000000 1.135517 1.113155 0.997554 0.727160 0.981947 0.488711 0.763412 1.076807 0.644405 1.135517 0.000000 0.733205 0.734929 0.861199 0.513731 0.994157 0.553712 0.347820 0.602565 1.113155 0.733205 0.000000 0.801728 0.820963 1.015892 0.665360 0.726164 0.347759 0.804973 0.997554 0.734929 0.801728 ...
output:
0.96979830446616921424 0.08066662394024297356 0.54865050742438759013 0.31375317434903360336 0.82362082123576274562 1.28629954677797364582 0.91299812569860860911 1.10789180211112925356 0.97375343859659235779 0.79726164288850831507 0.41158257079805138368 1.37606878623900219516 0.47145241834111528689 0...
result:
ok OK. Max delta: 0.100000
Test #27:
score: 0
Accepted
time: 403ms
memory: 3968kb
input:
10 0.000000 0.544278 1.089486 0.715763 0.596527 0.723484 0.423739 0.471742 0.726903 1.176242 0.544278 0.000000 1.126588 0.538243 0.972699 0.775994 0.788377 0.568696 0.530006 1.520139 1.089486 1.126588 0.000000 1.038058 1.015711 0.638127 0.817608 0.769405 0.831526 0.577701 0.715763 0.538243 1.038058 ...
output:
0.52615639446815409830 0.71787352566979267809 0.60510048996403176247 0.65093641288376558052 0.38032379023531426299 0.26967424299232933826 0.44763040166563072830 0.12099750352782551177 1.43357066201941507622 0.23644770523662209105 0.08837031782799542601 0.45041662383229336131 0.47597471245057865197 1...
result:
ok OK. Max delta: 0.100000
Test #28:
score: 0
Accepted
time: 418ms
memory: 3968kb
input:
10 0.000000 0.832288 0.572233 0.849134 0.600857 0.620493 0.944267 1.199429 0.727190 0.217328 0.832288 0.000000 0.734687 0.455716 0.626719 0.037075 0.553344 0.651513 0.730533 0.579599 0.572233 0.734687 0.000000 1.001902 0.903210 0.646058 1.025264 0.964509 0.864814 0.633656 0.849134 0.455716 1.001902 ...
output:
0.03119964823851567592 0.47335165036856113874 0.66643361215817142895 0.71073902369904451426 0.72449782202692547539 0.55562633372952774380 0.30174913004777265124 0.76251138482629488013 1.07951984062703632006 0.53976807173450846999 0.82035387001755399883 0.11363518713016181050 0.47871524329192904901 0...
result:
ok OK. Max delta: 0.100000
Test #29:
score: 0
Accepted
time: 276ms
memory: 3968kb
input:
10 0.000000 0.586822 0.745373 0.762676 1.077487 0.702889 0.309968 0.738006 0.984101 0.700294 0.586822 0.000000 0.158555 0.554726 0.474922 0.344694 0.523935 0.762669 0.463703 0.137706 0.745373 0.158555 0.000000 0.708435 0.586102 0.221952 0.662258 0.842651 0.444822 0.189350 0.762676 0.554726 0.708435 ...
output:
0.60399709911538268514 0.19435053595075701960 0.65541202309179480423 0.39327861261608804133 0.70530653150695465925 0.45822746554076193570 0.51944544302284767490 0.79599948006352061469 0.42666153434418224721 0.00000000000110348467 0.70905982583877569247 0.81071343223986791493 0.20099994962565961854 0...
result:
ok OK. Max delta: 0.100000
Test #30:
score: 0
Accepted
time: 486ms
memory: 3968kb
input:
10 0.000000 0.791403 0.753593 0.460535 0.937848 0.744280 0.953396 0.674676 0.637909 0.604709 0.791403 0.000000 0.701957 0.506847 0.588675 0.880952 0.450810 0.284847 0.934408 0.786806 0.753593 0.701957 0.000000 0.317244 0.838216 0.584279 1.073648 0.727383 0.184555 0.999700 0.460535 0.506847 0.317244 ...
output:
0.82532505553466473103 0.94272635298981388718 0.68656301352419013551 0.68409382449168609774 0.27080861760786933967 0.15573452865479753271 0.49170871769449603361 0.97478941705695854036 0.06392385090173158257 0.65977317461398710119 0.75626847424776832973 0.29936988290098220933 0.21441813683485405617 0...
result:
ok OK. Max delta: 0.100000
Extra Test:
score: 0
Extra Test Passed