QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#889797#9049. Machine Learning with PenguinsHoMaMaOvO (Riku Kawasaki, Masaki Nishimoto, Yui Hosaka)#AC ✓37ms11928kbC++2325.4kb2025-02-08 17:53:402025-02-15 21:10:49

Judging History

This is the latest submission verdict.

  • [2025-02-15 21:10:49]
  • 自动重测本题所有获得100分的提交记录
  • Verdict: AC
  • Time: 37ms
  • Memory: 11928kb
  • [2025-02-15 21:09:22]
  • hack成功,自动添加数据
  • (/hack/1559)
  • [2025-02-10 01:15:24]
  • 自动重测本题所有获得100分的提交记录
  • Verdict: 100
  • Time: 37ms
  • Memory: 11924kb
  • [2025-02-10 01:12:50]
  • hack成功,自动添加数据
  • (/hack/1555)
  • [2025-02-10 00:56:03]
  • 自动重测本题所有获得100分的提交记录
  • Verdict: 100
  • Time: 36ms
  • Memory: 11928kb
  • [2025-02-10 00:54:56]
  • hack成功,自动添加数据
  • (/hack/1553)
  • [2025-02-08 17:53:44]
  • Judged
  • Verdict: 100
  • Time: 37ms
  • Memory: 11924kb
  • [2025-02-08 17:53:40]
  • Submitted

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;
}

bool isperm(const vi&p){
	int n=si(p);
	vc<bool> used(n);
	for(auto v:p){
		if(!inc(0,v,n-1))return false;
		if(used[v])return false;
		used[v]=true;
	}
	return true;
}

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>;

//copied from yosupo's library
//PARTLY VERIFIED

//USACO 2022 January ptlatinum C

//#define GEOF

#ifdef GEOF
using ld=long double;
//using ld=double;
const ld PI=acos(ld(-1));
#else
using ld=ll;
#endif
const ld eps=1e-9;
int sgn(ld a){return a<-eps?-1:(a>eps?1:0);}
int sgn(ld a,ld b){return sgn(a-b);}
/*
using pt=complex<ld>;
#define x real()
#define y imag()
*/
struct pt {
    ld x,y;
    //pt(ld _x = ld(0), ld _y = ld(0)) : x(_x), y(_y) {}
    pt():x(0),y(0){}
    pt(ld xx,ld yy):x(xx),y(yy){}
    pt operator+(const pt& r) const { return {x + r.x, y + r.y}; }
    pt operator-(const pt& r) const { return {x - r.x, y - r.y}; }
    pt operator*(const pt& r) const {
        return {x * r.x - y * r.y, x * r.y + y * r.x};
    }
    pt inv()const{
		ld d=norm();
		return {x/d,-y/d};
	}
    pt operator/(const pt&r)const{
		return operator*(r.inv());
	}

    pt operator*(const ld& r) const { return {x * r, y * r}; }
    pt operator/(const ld& r) const { return {x / r, y / r}; }

    pt& operator+=(const pt& r) { return *this = *this + r; }
    pt& operator-=(const pt& r) { return *this = *this - r; }
    pt& operator*=(const pt& r) { return *this = *this * r; }
    pt& operator/=(const pt& r) { return *this = *this / r; }
    pt& operator*=(const ld& r) { return *this = *this * r; }
    pt& operator/=(const ld& r) { return *this = *this / r; }

    pt operator-() const { return {-x, -y}; }

	static int cmp(const pt&a,const pt&b){
		int v=sgn(a.x,b.x);
		return v?v:sgn(a.y,b.y);
	}
    bool operator<(const pt& r) const {
        return cmp(*this,r)<0;
    }
    bool operator<=(const pt& r) const {
        return cmp(*this,r)<=0;
    }
    bool operator>(const pt& r) const {
        return cmp(*this,r)>0;
    }
    bool operator==(const pt& r) const { return sgn((*this - r).rabs()) == 0; }
    bool operator!=(const pt& r) const { return !(*this == r); }

	pt conj()const{ return pt(x,-y);}
    ld norm() const { return x * x + y * y; }
    ld rabs() const { return max(std::abs(x), std::abs(y)); }  // robust abs
    ld srabs() const{ return abs(x)>abs(y)?x:y; } // signed robust abs
    pair<ld, ld> to_pair() const { return {x, y}; }
    #ifdef GEOF
    ld abs() const { return sqrt(norm()); }
    ld arg() const { return atan2(y, x); }
    static pt polar(ld le, ld th) { return {le * cos(th), le * sin(th)}; }
	#endif
};
istream& operator>>(istream& is, pt& p){
	return is>>p.x>>p.y;
}
ostream& operator<<(ostream& os, const pt& p) {
    return os << "pt(" << p.x << ", " << p.y << ")";
}
ld norm(const pt&a){
	return a.norm();
}
ld rabs(const pt&a){
	return a.rabs();
}
ld srabs(const pt&a){
	return a.srabs();
}
#ifdef GEOF
ld abs(const pt&a){
	return sqrt(norm(a));
}
//XXII Opencup Gpt of Ural K
pt normalized(const pt&a){
	return a/abs(a);
}
ld arg(const pt&a){return a.arg();}
//normalize to [-PI,PI)
//Contest 2: ptKU Contest 1, ptTZ Summer 2022 Day 4
ld normarg(ld a){
	ld res=fmod(a+PI,2*PI);
	if(res<0)res+=PI;
	else res-=PI;
	return res;
}
//normalize to [0,2*PI)
//Multiuni2023-10-E
ld normarg_nonnegative(ld a){
	ld res=fmod(a,2*PI);
	if(res<0)res+=2*PI;
	return res;
}
//AOJ1183
//arg between ab
//assume given lengths are valid
ld arg(ld a,ld b,ld c){
	return acos(min(max((a*a+b*b-c*c)/(2*a*b),ld(-1)),ld(1)));
}
//UCUP 2-20-D
ld heron(ld a,ld b,ld c){
	ld s=(a+b+c)/2;
	return sqrt(s*(s-a)*(s-b)*(s-c));
}
#endif
ld norm(const pt&a,const pt&b){
	return (a-b).norm();
}
ld dot(const pt&a,const pt&b){return a.x*b.x+a.y*b.y;}
ld crs(const pt& a,const pt& b){return a.x*b.y-a.y*b.x;}
ld crs(const pt& a,const pt& b,const pt& c){return crs(b-a,c-a);}
int ccw(const pt& a,const pt& b){return sgn(crs(a,b));}
int ccw(const pt& a,const pt& b,const pt& c){return ccw(b-a,c-a);}
//(-pi,0](0,pi]
int argtype(const pt&a){
	if(sgn(a.y)==0)return a.x<0?1:0;
	return a.y<0?0:1;
}
int argcmp(const pt&a,const pt&b){
	int at=argtype(a),bt=argtype(b);
	if(at!=bt)return at<bt?-1:1;
	return -ccw(a,b);
};
bool argless(const pt&a,const pt&b){return argcmp(a,b)<0;}
//c の位置を聞く関数です,b じゃないです
//(-2)[a,-1](0)[b,1](2)
int bet(pt a,pt b,pt c){
	pt d=b-a;
	ld e=dot(d,c-a);
	if(sgn(e)<=0)return sgn(e)-1;
	return sgn(e-norm(d))+1;
}
//AOJ0153
//三角形 abc に d が含まれるか?0-no,1-edge,2-in
int cont(pt a,pt b,pt c,pt d){
	if(ccw(a,b,c)==-1) swap(b,c);
	return min({ccw(a,b,d),ccw(b,c,d),ccw(c,a,d)})+1;
}
//(a,b) を結ぶ直線を考え,x 座標との交点の y 座標を求める
//(分子,分母)を返す
pair<ld,ld> xcut(const pt&a,const pt&b,ld x){
	return mp(a.y*(b.x-x)-b.y*(a.x-x),b.x-a.x);
}
//XXII Opencup Gpt of Ural K
pt rot90(pt a){
	return pt(-a.y,a.x);
}
#ifdef GEOF
//Multiuni 2024-6-C
pt rot(pt a,ld b){
	ld c=cos(b),s=sin(b);
	return pt(a.x*c-a.y*s,a.x*s+a.y*c);
}
ld xcutval(const pt&a,const pt&b,ld x){
	auto [p,q]=xcut(a,b,x);
	return p/q;
}
//AOJ1183
//Xmas2010 E
//-+ の 順で返す
//a の符号により,small/large が決まる
int qeq(ld a,ld b,ld c,ld&d,ld&e){
	if(sgn(a)==0){
		if(sgn(b)==0)return 0;
		d=-c/b;
		return 1;
	}
	ld f=b*b-4*a*c;
	if(sgn(f)<0)return 0;
	ld g=sqrt(max(f,ld(0)));
	d=(-b-g)/(2*a);
	e=(-b+g)/(2*a);
	return sgn(f)+1;
}
#else
pt normdir(pt a){
	if(a==pt(0,0))return a;
	int g=gcd(a.x,a.y);
	return pt(a.x/g,a.y/g);
}
#endif

ld area2(const vc<pt>&ps){
	ld res=0;
	rep(i,si(ps))res+=crs(ps[i],ps[(i+1)%si(ps)]);
	return res;
}

template<class... Args>void inputpt(Args&... a){(input(a.x,a.y),...);}
#define PT(...) ld __VA_ARGS__;inputpt(__VA_ARGS__)
#define VPT(name,size) vc<pt> name(size);rep(i_##name,size)inputpt(name[i_##name]);

bool incircle(pt a,pt b,pt c,pt p){
	//if(ccw(a,b,c)<0)swap(b,c);
	assert(ccw(a,b,c)>0);
	__int128 a2=norm(a-=p),b2=norm(b-=p),c2=norm(c-=p);
	return a2*crs(b,c)+b2*crs(c,a)+c2*crs(a,b)>=0;
}//座標の 4 乗オーダーの値が出てくると話題に(sgn 禁止)
bool oncircle(pt a,pt b,pt c,pt p){
	//if(ccw(a,b,c)<0)swap(b,c);
	assert(ccw(a,b,c)>0);
	__int128 a2=norm(a-=p),b2=norm(b-=p),c2=norm(c-=p);
	return a2*crs(b,c)+b2*crs(c,a)+c2*crs(a,b)==0;
}//座標の 4 乗オーダーの値が出てくると話題に(sgn 禁止)

void OK(){
	print("probably");
}
void NG(){
	print("not a penguin");
}

void slv(){
	int n=-1;
	cin>>n;
	if(n==-1)exit(0);
	vi xs(n),ys(n),zs(n);
	rep(i,n)input(xs[i],ys[i],zs[i]);
	int maxZ=MAX(zs);
	//P: 周or内部
	//Q: 周
	vc<pt> P,Q;
	rep(i,n)if(zs[i]==0||zs[i]==maxZ){
		P.eb(xs[i],ys[i]);
	}else{
		Q.eb(xs[i],ys[i]);
	}
	mkuni(P);
	mkuni(Q);
	if(Q.empty())return OK();
	else if(si(Q)==1){
		P-=Q[0];
		remval(P,pt());
		if(P.empty())return OK();
		soin(P,argless);
		rep(i,si(P)){
			pt a=P[i],b=P[(i+1)%si(P)];
			if(ccw(a,b)<0)return OK();
		}
		{
			bool ok=true;
			rep(i,si(P)){
				pt a=P[i],b=P[(i+1)%si(P)];
				ok&=ccw(a,b)==0&&dot(a,b)>0;
			}
			if(ok)return OK();
		}
		return NG();
	}else if(si(Q)==2){
		pt A=Q[0],B=Q[1];
		if(P.empty())return OK();
		vc<pt> L,R;
		{
			for(auto p:P){
				int z=ccw(A,B,p);
				if(z>0)L.pb(p);
				else if(z<0)R.pb(p);
				else{
					if(inc(-1,bet(A,B,p),1)){
						//always ok
					}else{
						//always bad
						return NG();
					}
				}
			}
		}
		if(L.empty()||R.empty())return OK();
		pt w=L[0];
		for(auto p:L)
			if(incircle(A,B,p,w))w=p;
		for(auto p:P)if(!incircle(A,B,w,p))return NG();
		return OK();
	}else{
		pt a=Q[0],b=Q[1],c=Q[2];
		if(ccw(a,b,c)<0)swap(b,c);
		if(ccw(a,b,c)==0)return NG();
		rng(i,3,si(Q))if(!oncircle(a,b,c,Q[i]))return NG();
		for(auto p:P)if(!incircle(a,b,c,p))return NG();
		return OK();
	}
}

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)
		while(1)slv();
	}
}

这程序好像有点Bug,我给组数据试试?

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3712kb

input:

5
0 0 0
3 4 1
-3 -4 2
-3 4 3
3 -4 4

output:

probably

result:

ok single line: 'probably'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

4
0 6 2
3 4 1
-3 -4 1
-3 4 1

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

2
0 0 0
1 1 0

output:

probably

result:

ok single line: 'probably'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

1
-707581848 729479863 0

output:

probably

result:

ok single line: 'probably'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

1
-645543323 -727037898 1000000000

output:

probably

result:

ok single line: 'probably'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

2
-144026193 -291805020 351535199
21583118 -794798695 351535199

output:

probably

result:

ok single line: 'probably'

Test #7:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

10
216139827 -699008032 210723435
-551462533 -568510194 210723435
279408745 78104755 210723435
-785457697 8180408 210723435
-402465570 651374568 210723435
-52859838 -914027103 210723435
42315332 41446900 210723435
304245166 -809754512 210723435
523743176 -944699162 210723435
-143145462 653487488 210...

output:

probably

result:

ok single line: 'probably'

Test #8:

score: 0
Accepted
time: 2ms
memory: 4240kb

input:

12837
-258471657 994194759 586603540
-537576135 -233571029 586603540
-465375394 506870976 586603540
-317032929 -517838213 586603540
10492460 -361011473 586603540
860612059 -831353929 586603540
-688074405 118458720 586603540
-705093302 -590826822 586603540
-671411924 144040556 586603540
-885405216 25...

output:

probably

result:

ok single line: 'probably'

Test #9:

score: 0
Accepted
time: 22ms
memory: 8836kb

input:

100000
-97006954 -37182521 633988833
-725457820 -329689716 633988833
747802869 -643601418 633988833
605644955 127768598 633988833
-495675635 -652668200 633988833
186575645 242702285 633988833
-694803524 -364850217 633988833
-792680470 29181377 633988833
578576113 -333667995 633988833
-805509390 7697...

output:

probably

result:

ok single line: 'probably'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10
-979458639 883639183 660854572
151005794 637688912 660854572
-864679233 -572589246 660854572
-679129432 125352855 0
-504190727 -999033057 0
921071211 -745244241 0
109593464 368477593 660854572
-981479719 -827844525 0
-983601943 -78988738 0
837959682 889541598 660854572

output:

probably

result:

ok single line: 'probably'

Test #11:

score: 0
Accepted
time: 3ms
memory: 4096kb

input:

12837
-834245721 -183467634 0
-308307809 -180166551 741767378
767045571 134130709 0
490500926 -629281946 741767378
304164999 930493417 0
563177862 -601480066 0
768351036 205783930 741767378
364430828 490512148 0
425675963 -351032842 0
22511639 -799068154 0
798416022 382338113 0
-422637360 860070601 ...

output:

probably

result:

ok single line: 'probably'

Test #12:

score: 0
Accepted
time: 24ms
memory: 8852kb

input:

100000
-204419073 616651507 84119972
-275082100 866561360 84119972
-278978223 960506527 84119972
963474441 -531395628 84119972
-896450773 869050123 84119972
-203715034 -6252419 84119972
-565734459 872192953 0
145122453 678719320 84119972
135204531 142343624 84119972
53952704 -459314452 84119972
-901...

output:

probably

result:

ok single line: 'probably'

Test #13:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10
917553613 163452026 303876702
247337867 -214697945 303876702
-269412946 301683947 0
862926845 731201507 303876702
732327945 -257608977 0
538988294 -376586456 303876702
-431527972 -304638582 303876702
-95861959 65682626 303876702
747247411 -321856195 0
659868388 773329785 287533139

output:

probably

result:

ok single line: 'probably'

Test #14:

score: 0
Accepted
time: 28ms
memory: 8328kb

input:

77512
454723971 922575736 0
686043534 -603094788 0
-204536198 -56984402 996653075
-774009699 219097279 0
-754958752 -580658969 996653075
-590380405 582608261 996653075
727605644 590331164 0
187598638 767142725 996653075
-531103525 -117991328 996653075
-344251189 -586688546 996653075
-598750222 52822...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #15:

score: 0
Accepted
time: 36ms
memory: 8756kb

input:

100000
-193986194 701128931 190881300
-598024017 -928871353 0
19462831 -171836756 190881300
-926424602 -703017645 0
-772117075 -145804688 0
562742818 -26480056 0
70163556 -16279150 190881300
-214724360 436101136 190881300
602444020 -387771 190881300
214096285 883487603 0
938230992 769340143 19088130...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #16:

score: 0
Accepted
time: 32ms
memory: 8684kb

input:

100000
-293097310 802904381 0
989007504 403703949 0
537411730 767165635 0
-877715602 254859027 0
950993991 -873780921 0
660769401 -526476292 369790967
-195862519 975476554 369790967
678630393 -403280040 0
-57321885 -68709385 369790967
166678387 -175644211 369790967
190507535 781104647 0
931978697 61...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #17:

score: 0
Accepted
time: 37ms
memory: 8856kb

input:

100000
-762366769 -965168048 0
-337761858 -144114863 253733334
416370615 -810840722 0
-82280223 292636116 0
-926904564 -454699915 253733334
-413248633 -338887279 0
478550474 753244560 0
-250472520 395568409 253733334
-905302963 -22175383 253733334
-295142960 219022011 0
-842475120 702153900 0
964328...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #18:

score: 0
Accepted
time: 35ms
memory: 8836kb

input:

100000
-911019359 419672960 0
-644260264 277438519 432643001
235875347 865654842 432643001
-787352212 -700168383 432643001
135263516 996827145 0
-583841971 -584711020 0
-803262005 -201504919 432643001
-61167342 -480267838 0
578620929 -128971548 0
-956623581 -482306231 0
-127822348 -54204288 0
-94967...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #19:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10
-266833289 276035476 0
373459649 -467612305 933997911
-371189489 352437584 182800695
-150099280 -321861957 0
-121996835 98084742 0
338715747 -289373538 0
340335980 -483824387 933997911
-37865990 -58015221 933997911
438614010 -437963778 0
-241701394 193295759 0

output:

probably

result:

ok single line: 'probably'

Test #20:

score: 0
Accepted
time: 4ms
memory: 4244kb

input:

12992
-482427818 379116094 0
193783383 403694148 642614679
-265916229 254827124 642614679
212446080 409490980 0
-240734439 32585028 0
435806883 231200712 642614679
-267494747 271919473 0
340668635 -46131559 642614679
-40089947 -77147783 0
-14707988 177198287 0
-279709820 -97304374 354462630
-1817373...

output:

probably

result:

ok single line: 'probably'

Test #21:

score: 0
Accepted
time: 34ms
memory: 8856kb

input:

100000
486619536 -280157151 0
364107721 -431642578 120822914
456666157 -396140921 0
361540476 -390444524 120822914
283198018 -329641436 0
445190103 -356096752 120822914
19144860 -407607159 120822914
357448825 -328887287 0
126688640 -421525423 0
293187644 -452887073 120822914
127829437 -426378486 120...

output:

probably

result:

ok single line: 'probably'

Test #22:

score: 0
Accepted
time: 34ms
memory: 8860kb

input:

100000
384791586 -206128778 0
464542102 -244267138 0
372152754 -260418149 4765281
219377617 -265165939 4765281
391492059 -300136967 4765281
188373991 -425424825 4765281
319793506 -214990893 0
-67848534 -415947347 4765281
305420597 -499661289 0
387411509 -306532826 0
-58428173 -406523362 4765281
4765...

output:

probably

result:

ok single line: 'probably'

Test #23:

score: 0
Accepted
time: 32ms
memory: 8840kb

input:

100000
-311404589 -233249269 0
-321367178 395257602 0
-430067907 -40638765 478642248
-157246203 177445077 478642248
433888519 -86234298 478642248
390693781 -73578452 0
-143371832 -155559437 478642248
207583658 -467907341 478642248
-280479044 -124586133 478642248
-382252032 265709627 0
217270132 -792...

output:

probably

result:

ok single line: 'probably'

Test #24:

score: 0
Accepted
time: 33ms
memory: 8824kb

input:

100000
-100822455 -25632313 0
481639169 -345633230 0
-159607623 312393104 362584616
-294240781 21523498 362584616
-360661758 455976921 0
405936373 16148482 0
231888592 -288630536 362584616
-437899009 96621309 0
-191271850 -328579038 4292200
-145217963 -140344016 0
-216719816 -132021597 362584616
214...

output:

probably

result:

ok single line: 'probably'

Test #25:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

10
455846259 -224888203 64829807
332535043 -479768760 0
142251459 -404965628 0
-38001857 -324335831 64829807
190112387 -423742447 0
-197047477 -352464866 64829807
-451825461 -188820484 0
24813369 -142031628 3476005
-28052648 -319119598 64829807
-40622138 -260304584 64829807

output:

probably

result:

ok single line: 'probably'

Test #26:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

126
377265333 309935082 633106955
-80622237 300823207 633106955
281228801 -218021738 0
312351577 477340265 0
-251323121 -292925746 0
85356411 94832497 0
-140902731 98909679 0
146927027 499409093 0
120523233 -371756829 0
16488122 215951557 633106955
44377457 -32612567 633106955
411446073 216705748 41...

output:

probably

result:

ok single line: 'probably'

Test #27:

score: 0
Accepted
time: 18ms
memory: 5776kb

input:

55412
-189453212 313373083 995031698
-433718573 104442567 995031698
-345219477 123847623 995031698
-465644108 -293601403 0
-479177201 465153343 0
-434371388 433411283 0
-196403288 487949905 995031698
-263244169 67655631 0
-191705482 465320013 0
-287174311 96339569 0
-214487690 99096188 0
-322022469 ...

output:

probably

result:

ok single line: 'probably'

Test #28:

score: 0
Accepted
time: 34ms
memory: 8876kb

input:

100000
405399933 -461059261 0
-337802624 -113080686 344919416
-109336926 -465625363 344919416
-249049989 -169703465 0
-471999979 -363098666 0
189448737 -430645807 344919416
180955506 14764427 344919416
239432881 -117986953 0
11454880 -29287947 344919416
-291195544 -368292588 0
212513069 -218028683 0...

output:

probably

result:

ok single line: 'probably'

Test #29:

score: 0
Accepted
time: 35ms
memory: 8836kb

input:

100000
154340192 -464526344 0
84552615 417912151 0
176335675 -102597355 0
340079523 -219135850 818796383
-253692229 -481561227 0
65030024 128343435 818796383
179902215 332282765 818796383
40994891 -320923787 818796383
-161896610 -458161633 0
435750761 -245284465 818796383
-242748813 -305566601 0
468...

output:

probably

result:

ok single line: 'probably'

Test #30:

score: 0
Accepted
time: 35ms
memory: 8860kb

input:

100000
-5359326 -6243958 702738750
42746494 9608197 0
400175261 185225537 0
83242432 253324081 702738750
-18335774 267253001 702738750
357094934 34307149 0
-53645196 -259814417 702738750
103526161 -454532250 0
-81502683 -154642825 0
-110188476 -243868030 702738750
80119610 -137952665 702738750
-1189...

output:

probably

result:

ok single line: 'probably'

Test #31:

score: 0
Accepted
time: 33ms
memory: 8836kb

input:

100000
88351933 -198517161 0
-388687076 272469378 0
139713374 309226227 881648417
-97806159 -350274461 0
-348079249 304844192 881648417
292612007 -386584300 881648417
-243317034 -368190293 881648417
446283856 477129176 881648417
-172289661 493711843 881648417
-418931391 440658428 881648417
420371653...

output:

probably

result:

ok single line: 'probably'

Test #32:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

6
76912216 -997552502 809812098
-198184220 -55199053 0
-260106296 156917406 809812098
-365678360 518558582 809812098
-132201680 -281224788 809812098
-141337724 -249928917 809018022

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #33:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

445
-196289588 -229287709 0
839221532 -145265197 897317033
71515012 -207557749 0
169710032 -199590097 0
-446240548 -249569005 897317033
-874727908 -284336941 897317033
142929572 -201763093 0
919562912 -138746209 897317033
508929192 -172065481 0
446441452 -177135805 897317033
80441832 -206833417 8973...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #34:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

575
76664255 -646213617 0
281744767 38145331 0
148780479 -405559921 0
342592831 241196887 0
155541375 -382998637 786485753
155541375 -382998637 87975318
216389439 -179947081 0
144273215 -420600777 0
254701183 -52099805 794451606
387665471 391605447 0
29337983 -804142605 0
446259903 587136575 7944516...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #35:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

1479
121266902 259577912 956555420
121266902 259577912 257730889
141951236 550062755 992480451
121266902 259577912 295305535
121266902 259577912 727177954
121266902 259577912 161213673
172037540 972586163 992480451
121266902 259577912 56695060
41036758 -867151176 0
136936852 479642187 0
121266902 25...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #36:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

2577
-784935267 893091381 0
-156183117 -109948279 721942830
-383080632 252018207 876422818
-156183117 -109948279 658278768
-156183117 -109948279 712331904
-156183117 -109948279 399747531
-421352502 313072795 0
-407683977 291267585 876422818
-156183117 -109948279 610037945
-552570342 522402811 0
-156...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #37:

score: 0
Accepted
time: 3ms
memory: 4076kb

input:

11260
-138665843 -405845542 31653882
144793522 -930978262 0
-311141118 -86320342 0
-334237807 -43531750 0
-863361955 936715994 0
-138665843 -405845542 35589294
-2785322 -657575830 350299786
-138665843 -405845542 101129526
98900101 -845956774 350299786
-138665843 -405845542 237604354
-165062059 -3569...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #38:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

782
-416115861 224628267 195041195
-98156866 932516995 234242153
-923683431 -905395941 234242153
-351940651 367504891 0
-363608871 341527323 0
-416115861 224628267 87272416
-640729096 -275439917 0
-150663856 815617939 234242153
-416115861 224628267 52787462
-599890326 -184518429 234242153
-868259386...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #39:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4
221097898 -457007279 538681211
-354201092 393966931 0
464001916 -816307501 0
-405338780 469609083 61372751

output:

probably

result:

ok single line: 'probably'

Test #40:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

125
848653610 -258670439 428531324
986355122 -261630669 0
583843010 -252977689 428531324
223700594 -245235549 0
382586954 -248651199 428531324
605027858 -253433109 0
901615730 -259808989 428531324
403771802 -249106619 428531324
647397554 -254343949 0
340217258 -247740359 0
975762698 -261402959 42853...

output:

probably

result:

ok single line: 'probably'

Test #41:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

254
467329692 229862833 164145293
938918788 574242297 0
515560395 265083460 661599133
917482920 558588685 0
638816636 355091729 661599133
478047626 237689639 0
719201141 413792774 661599133
799585646 472493819 661599133
762072877 445099998 0
987149491 609462924 0
649534570 362918535 661599133
879970...

output:

probably

result:

ok single line: 'probably'

Test #42:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

761
-292087663 314140882 27653732
-292087663 314140882 30915174
-272209309 317220283 0
211497305 392152374 30993853
-292087663 314140882 19661827
562681559 446555125 30993853
98853299 374702435 0
-146313067 336723156 30993853
-292087663 314140882 8834347
874109105 494799074 0
-292087663 314140882 20...

output:

probably

result:

ok single line: 'probably'

Test #43:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

1294
273339453 -748961023 0
430462319 -350352602 29151236
174439781 -999861755 209903520
199164699 -937136572 0
430462319 -350352602 103073006
430462319 -350352602 161052677
377822171 -483896540 209903520
430462319 -350352602 205179576
216711415 -892621926 0
353894831 -544598330 0
339538427 -5810194...

output:

probably

result:

ok single line: 'probably'

Test #44:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

1759
447979593 280121208 88725328
447979593 280121208 283925412
-616005351 342780816 388813187
447979593 280121208 172703699
447979593 280121208 208397200
-281494933 323081015 388813187
121529667 299346315 0
-583763383 340882040 0
447979593 280121208 225019441
-221041243 319520810 0
447979593 280121...

output:

probably

result:

ok single line: 'probably'

Test #45:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

2125
170529574 279191237 63097348
170529574 279191237 75304608
170529574 279191237 263301275
170529574 279191237 411377258
170529574 279191237 165359863
676612162 -351477703 0
170529574 279191237 33315902
170529574 279191237 185428287
316220016 97635027 567722854
170529574 279191237 170065938
170529...

output:

probably

result:

ok single line: 'probably'

Test #46:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4
-23362375 -6792784 547064938
23778296 61082152 104302760
-42024459 88573038 0
-31663927 99805405 446289904

output:

probably

result:

ok single line: 'probably'

Test #47:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

125
3455191 -50114032 0
-28453691 36924628 0
79902719 44830046 861292284
3941284 -8775681 0
-43360011 65854051 861292284
-24081798 -27465649 861292284
47463441 26086302 861292284
96288762 -9992369 861292284
28800001 -56589474 861292284
50095958 -57960670 0
-40194677 60022468 861292284
9746416 -50778...

output:

probably

result:

ok single line: 'probably'

Test #48:

score: 0
Accepted
time: 1ms
memory: 4188kb

input:

12233
-5647740 62164908 0
-29500981 37388655 284831198
14742167 -3340258 284831198
11448719 37128440 284831198
-27221799 33815501 284831198
-34137958 27319978 0
27644163 -3351001 284831198
-14697767 49215880 0
-22884737 25057221 284831198
-33815555 55073596 284831198
-27437501 -6931906 0
-3060758 43...

output:

probably

result:

ok single line: 'probably'

Test #49:

score: 0
Accepted
time: 26ms
memory: 11904kb

input:

100000
-8415004 33371661 962303556
-4000838 6238020 962303556
-80299844 55860651 962303556
-163941696 55392142 0
-117967260 30429588 962303556
-71839392 1018239 0
-26419789 79154902 0
-70823718 50017486 0
-163322064 12250757 962303556
-84819821 -3241578 0
-39808011 -36197506 0
-78292788 -10896306 96...

output:

probably

result:

ok single line: 'probably'

Test #50:

score: 0
Accepted
time: 23ms
memory: 11924kb

input:

100000
-80829956 82399267 0
-42302074 22331454 0
-37752257 29309915 141213224
-100576690 19036145 141213224
18171681 89472281 0
-13923840 25604733 0
-12032486 43650754 0
-94474050 15283912 141213224
-24349055 35689925 0
15145440 63253549 0
-12191322 120319803 0
-94772832 42944640 0
39711070 75639433...

output:

probably

result:

ok single line: 'probably'

Test #51:

score: 0
Accepted
time: 24ms
memory: 11904kb

input:

100000
28392177 106312309 0
51959880 131298635 320122892
40094599 52487391 320122892
35328354 73654633 0
-16729884 67899060 0
82534683 69777898 0
80790415 -4686458 0
-48822180 8785043 0
70318052 44938277 0
111817812 19713774 320122892
-23201814 87682594 0
5978885 -21694465 320122892
104305804 240094...

output:

probably

result:

ok single line: 'probably'

Test #52:

score: 0
Accepted
time: 22ms
memory: 11904kb

input:

100000
70199611 -12147140 0
-15670038 36243532 204065259
110474484 -9553202 0
63243735 60979210 0
18973178 68084656 0
72460850 -31374045 204065259
44027051 41232621 204065259
52022921 13768326 0
40190899 87178159 204065259
-884879 77831430 0
58853039 71449315 204065259
76662655 -37939949 204065259
7...

output:

probably

result:

ok single line: 'probably'

Test #53:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

40
-558841073 45356782 0
-948650243 -439296602 0
-115959293 595995838 0
-745510253 -186730754 0
-754660703 -198107594 0
-75697313 646053934 0
-507598553 109067086 734030171
-163541633 536836270 0
110971867 878141470 0
-227594783 457198390 0
-875446643 -348281882 734030171
-685117283 -111643610 0
-53...

output:

probably

result:

ok single line: 'probably'

Test #54:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

480
-69850213 -430849423 321889773
-875513977 -627051614 321889773
785648423 -222511014 0
337134575 -331736976 0
-676174489 -578506742 0
868706543 -202283984 0
-742620985 -594688366 321889773
760730987 -228579123 0
-510058249 -538052682 321889773
270688079 -347918600 0
-593116369 -558279712 0
420192...

output:

probably

result:

ok single line: 'probably'

Test #55:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

294
725213479 -181129461 183271860
290241511 -98606837 0
-593295299 69017243 183271860
969885211 -227548437 0
195091393 -80555013 0
-470959433 45807755 183271860
534913243 -145025813 183271860
-538923803 58701915 183271860
31976905 -49609029 0
-443773685 40650091 183271860
847549345 -204338949 18327...

output:

probably

result:

ok single line: 'probably'

Test #56:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

844
-343451638 -404374034 0
638572715 -652458566 272597964
709733900 -670435706 0
-803627301 -288121862 272597964
-760930590 -298908146 0
-153688478 -452313074 272597964
-139456241 -455908502 0
-77783214 -471488690 272597964
-746698353 -302503574 0
168908894 -533809442 272597964
249558237 -554183534...

output:

probably

result:

ok single line: 'probably'

Test #57:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

132
85344089 312755777 156540331
473982665 -206432731 0
-130566231 601193837 156540331
992167433 -898684075 4942627
-108975199 572350031 156540331
-411249647 976163315 21874592
538755761 -292964149 156540331
150117185 226224359 156540331
711484017 -523714597 156540331
992167433 -898684075 156540331
...

output:

probably

result:

ok single line: 'probably'

Test #58:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

538
416602356 -232440821 335449998
109453136 808521059 0
423184125 -254747147 335449998
306906206 139331279 0
508747122 -544729385 335449998
83126060 897746363 0
541655967 -656261015 0
282773053 221121141 335449998
223537132 421878075 335449998
537268121 -641390131 0
473644354 -425762313 335449998
2...

output:

probably

result:

ok single line: 'probably'

Test #59:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

624
861871796 707941945 0
20974674 174627452 0
650042750 573595546 219392365
-421940604 -106278655 0
855452734 703870842 0
-929046502 -427895792 0
451051828 447391353 219392365
714233370 614306576 219392365
-730055580 -301691599 0
-473293100 -138847479 0
816938362 679444224 0
380442146 402609220 0
-...

output:

probably

result:

ok single line: 'probably'

Test #60:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

6
-108857721 -212156569 0
195164185 86760306 277221751
-608163771 -703078444 0
-712463257 -805626569 0
-781256535 -873264694 212196853
352722983 241673431 0

output:

probably

result:

ok single line: 'probably'

Test #61:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

776
725808628 731097639 501871744
705326754 690340713 501871744
101111471 -511988604 0
-128578116 -969048417 501871744
-72984458 -858422475 0
396635653 76075614 501871744
1628083 -709950816 0
832606971 943615896 0
654122069 588448398 0
65999687 -581857620 501871744
25035939 -663371472 0
629251222 53...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #62:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

442
226323771 213022371 0
-415594684 -108056740 0
-270937004 -35700884 644539031
669337916 434612180 644539031
108789406 154233238 644539031
380022556 289900468 0
-623540099 -212068283 0
-551211259 -175890355 644539031
470433606 335122878 0
479474711 339645119 0
976735486 588368374 644539031
8863244...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #63:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

404
-21149265 478787121 333462952
-604401165 45252551 333462952
112165455 577880737 0
-854366265 -140547979 333462952
12179415 503560525 0
-721051545 -41454363 0
153826305 608847492 333462952
-854366265 -140547979 0
-687722865 -16680959 333462952
403791405 794648022 333462952
-46145775 460207068 0
-...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #64:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

1174
-599431710 343743991 0
-746887998 833781175 0
-476551470 -64620329 0
-218502966 -922185401 0
-388487298 -357281425 0
-699783906 677241519 217405319
-472455462 -78232473 217405319
-420231360 -251787309 217405319
-526727568 102128435 0
-635271780 462850251 217405319
-724359954 758914383 0
-600455...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #65:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

996
98776583 -435695114 0
-41821287 -378728134 0
-672503161 -123190538 0
817834261 -727040526 396314986
-347119519 -255028406 0
596894751 -637520986 396314986
416126061 -564277726 396314986
-511819881 -188295658 0
516553111 -604968426 0
-656434833 -129701050 396314986
-230624141 -302229618 0
5860576...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #66:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

312
-906730190 -81531225 575224653
900939160 -126837768 0
362484460 -113342202 575224653
-419556890 -93741499 575224653
747094960 -122981892 0
-804167390 -84101809 0
734274610 -122660569 575224653
-945191240 -80567256 575224653
298382710 -111735587 575224653
-240071990 -98240021 575224653
-829808090...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #67:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

8
171582597 52719320 130718979
183402422 -213849186 130718979
181402615 183187192 0
174180999 -242949305 130718979
-477564760 -186620984 96802117
8931586 348459979 0
484146186 -154485408 0
116017210 299794887 107608089

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #68:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

123
-395068085 130600610 394949921
456007846 -293166947 0
-256642449 -116373061 394949921
285806035 -125503593 394949921
456899792 450145016 0
294336137 -121949969 0
-387694944 325366333 0
483735521 -436899311 394949921
313051700 -439616400 394949921
-254337671 -330854038 394949921
-270663901 -26945...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #69:

score: 0
Accepted
time: 3ms
memory: 4224kb

input:

9923
284640557 261766669 320661107
388905962 -136834985 320661107
139020182 151022021 320661107
-135985019 -269396387 0
-315982519 -324975657 0
-394096403 -154242912 320661107
261250547 202013548 0
373016179 167558970 0
-399293104 41450859 0
363095418 353133940 0
-388082712 -58786927 0
-256074363 20...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #70:

score: 0
Accepted
time: 24ms
memory: 10900kb

input:

100000
99432747 -475527415 511767701
237643427 -66821752 0
216896510 -405122025 0
106223646 -260995190 511767701
-320041260 479277782 511767701
-839341 -354243787 0
429213358 48144685 0
-445438418 -366427378 0
105458517 54213625 511767701
-389345058 -257514928 511767701
-453116296 294347073 0
242840...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #71:

score: 0
Accepted
time: 25ms
memory: 11928kb

input:

100000
-145374343 315401751 690677368
-188104756 -30866722 690677368
-497241773 -389990718 0
-497503746 133654925 690677368
115419310 59001937 0
-269935067 -160445337 0
471732811 -484373398 0
-72315680 -282512931 0
-81483075 387551074 690677368
-10297034 -214271035 0
-334996245 151655920 690677368
-...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #72:

score: 0
Accepted
time: 24ms
memory: 11904kb

input:

100000
-489326632 -89282176 574619735
-278601230 -396826633 574619735
-455219603 -168478314 574619735
-491560655 180108341 0
191635179 -62320546 0
17130897 -157146851 0
-298198007 -495489929 0
-67024440 -181173438 0
434657619 469664978 574619735
248895645 -463175247 574619735
-278581877 -9458978 574...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #73:

score: 0
Accepted
time: 26ms
memory: 11924kb

input:

100000
430908517 391416546 0
136855048 346742183 0
-359173480 387093798 753529402
26998959 -108338949 0
-106695634 403092845 753529402
139517954 -461361368 0
81678589 -409624955 0
-398107870 -454115884 0
-436677373 403194412 753529402
234395998 -334214521 0
-53472542 -341933081 753529402
-445682120 ...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #74:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
-424417427 21129016 24574907
-624096987 448255670 9627334
-50214787 -779313060 0
-742017987 700495820 13540440
-136690187 -594336950 51330898

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #75:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

123
-602012198 -926219994 302822866
296060263 -179514474 302822866
-426631044 -780398714 302822866
423060409 -73919754 302822866
-532464499 -868394314 0
604489189 76929846 0
265822133 -204656074 0
946180058 361029926 0
135798174 -312764954 0
-511297808 -850795194 0
849418042 280576806 302822866
5016...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #76:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

1554
-344038803 450300125 430073056
-315128335 69482953 430073056
-318058450 108079288 430073056
-273520702 -478585004 430073056
-375488704 864567454 0
-319816519 131237089 430073056
-261018878 -643262700 0
-296766281 -172387413 430073056
-308486741 -18002073 430073056
-369823815 789947873 0
-237187...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #77:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

414
467199404 844803913 0
156167859 312192548 576281472
178788335 350927920 576281472
-539411778 -878920141 576281472
-392378684 -627140223 0
31755241 99148002 0
-98312496 -123580387 576281472
444578928 806068541 0
320166310 593023995 0
127892264 263773333 576281472
-465895231 -753030182 576281472
4...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #78:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

788
-312513413 -384732191 460223839
-349314469 306276057 0
-356349965 438380575 460223839
-332266921 -13823352 0
-281124277 -974121579 460223839
-344714337 219900026 0
-326313809 -125604098 460223839
-283289045 -933474035 460223839
-375832877 804208471 460223839
-312513413 -384732191 0
-293571693 -7...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #79:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

1146
310899796 124988389 344166206
930720532 -499565855 344166206
-363291180 804328093 344166206
998683332 -568047680 344166206
-480187196 922116832 344166206
-235521116 675582262 0
-461157612 902941921 0
-409505884 850895734 0
245655508 190730941 344166206
425077300 9938923 344166206
672461892 -239...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #80:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

516
-429150459 -515127323 523075873
942874245 -310892687 0
175470597 -425125619 523075873
377010949 -395125051 523075873
-10566651 -452818451 0
-576429947 -537050815 0
245234565 -414740807 0
485532677 -378970899 0
51445765 -443587507 523075873
-390392699 -509357983 0
-196603899 -480511283 523075873
...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #81:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
302739376 -16766967 159216287
257193015 -402383485 68046359
313604685 -199622920 543782931
80257839 -346936212 543782931
45440081 -402075063 132344479

output:

probably

result:

ok single line: 'probably'

Test #82:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

123
-212956321 206352395 0
-147016602 164919048 61953451
-173166678 192445180 507571801
-375910513 311234566 0
-160760826 109511213 507571801
-451727949 256701608 507571801
-309581030 -16592497 507571801
-225738470 190042183 507571801
-319249132 270096287 0
-212899041 123256308 507571801
-224820045 ...

output:

probably

result:

ok single line: 'probably'

Test #83:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

6651
-74160955 366698613 241206985
-308467841 75599629 241206985
55362539 -29875114 241206985
385140845 172305042 0
27640690 388188188 241206985
-142701231 142367900 0
73080551 -39114365 0
202675013 346782704 0
174495058 255381321 241206985
-150755133 -197609396 0
121658658 283242198 0
148153672 126...

output:

probably

result:

ok single line: 'probably'

Test #84:

score: 0
Accepted
time: 23ms
memory: 8856kb

input:

100000
69741142 -252324164 386397230
-57486209 -396571901 386397230
-262787330 -158004890 0
108201594 -471730744 386397230
-123263315 81680541 386397230
-322759490 -108592899 386397230
-279797859 -296681228 386397230
-66810644 135096524 386397230
150255656 -438222756 0
138970289 -73996438 386397230
...

output:

probably

result:

ok single line: 'probably'

Test #85:

score: 0
Accepted
time: 23ms
memory: 8852kb

input:

100000
182380991 -266074143 0
273324841 -157174622 860274197
379593093 -372147840 0
626936910 -136785998 0
474306903 -55640804 0
526696639 -339688321 0
228565941 -327815155 860274197
381743348 114217783 0
218503348 -205715496 0
647154804 -196691548 860274197
587775458 44555112 860274197
617462693 -1...

output:

probably

result:

ok single line: 'probably'

Test #86:

score: 0
Accepted
time: 24ms
memory: 8836kb

input:

100000
-436617113 82021370 744216564
-155195306 -281200493 744216564
-421032660 -178376836 744216564
265242960 -384923425 0
50082507 -53356280 744216564
-374953833 -244093673 744216564
42176767 -131272045 744216564
-24616379 105445 744216564
157629861 121079363 744216564
-410317470 -132174720 744216...

output:

probably

result:

ok single line: 'probably'

Test #87:

score: 0
Accepted
time: 22ms
memory: 8856kb

input:

100000
8244577 395040094 923126232
75378243 276264850 0
14751248 216332815 0
49218942 262738349 0
-20973502 264644653 923126232
-12668228 271817987 0
65269649 335188389 923126232
-16362504 321820916 0
-137313035 318551722 923126232
2172988 229825457 923126232
-34250061 424873009 0
63702140 242644614...

output:

probably

result:

ok single line: 'probably'

Test #88:

score: 0
Accepted
time: 21ms
memory: 8852kb

input:

100000
85308917 299968771 0
122121620 273696971 807068599
36198149 350159497 0
53115230 361861497 807068599
-50016928 71652836 0
213587599 273979964 0
134221324 -13221180 0
203677383 233358063 807068599
134040700 134807487 0
229526770 154787359 807068599
245896152 97961364 807068599
110776827 269772...

output:

probably

result:

ok single line: 'probably'

Test #89:

score: 0
Accepted
time: 25ms
memory: 8860kb

input:

100000
95363228 -37983298 985978266
218822224 146151943 985978266
-89919338 433718285 0
216184098 136808073 985978266
38100683 -27874775 985978266
-110636012 405778341 0
69198238 57969673 985978266
31886549 -52932944 0
-134791892 33919783 985978266
315171131 319779159 0
-106271723 369068462 98597826...

output:

probably

result:

ok single line: 'probably'

Test #90:

score: 0
Accepted
time: 22ms
memory: 8860kb

input:

100000
495090797 345311111 164887934
824293550 680948331 164887934
341340428 354950684 164887934
232716141 506526313 0
461960129 255806227 0
541430759 439033101 164887934
462406562 708343046 0
523664493 672333978 164887934
173539534 682964497 0
470681497 910040697 0
139893451 565847253 164887934
474...

output:

probably

result:

ok single line: 'probably'

Test #91:

score: 0
Accepted
time: 22ms
memory: 8852kb

input:

100000
305115826 -137436442 48830301
153938349 126273482 0
-69641484 -281894723 0
67243343 -227974364 0
162943917 -48272227 48830301
70808030 11291077 48830301
219713277 -133619952 48830301
-110453857 243791647 0
-109729037 187977735 48830301
-45040454 -179499342 0
54655789 195941536 0
431335166 -29...

output:

probably

result:

ok single line: 'probably'

Test #92:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
-442341932 199502624 38032293
-135455597 -364587295 407649886
335867107 -379451018 108674395
-445037144 253719370 407649886
19766594 -425812101 91347238

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #93:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

123
459893670 320172100 315836954
-339108849 -329265309 955103549
7985344 -240172469 955103549
-234338631 142208016 955103549
443018280 370625493 0
-442227352 -127961702 955103549
40505952 473709214 955103549
347736289 -73330083 0
298030829 -431535512 0
-29054969 -92929766 0
143595622 -455751068 0
-...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #94:

score: 0
Accepted
time: 2ms
memory: 3968kb

input:

6651
278545501 29152043 0
460010313 272553531 0
-484611211 -410800985 0
-490221615 -478005842 0
88846651 302950773 0
382755535 65790691 0
25464072 -493643418 0
-124998350 494023558 0
-360378086 -47609948 509404277
-249625195 246722644 0
197719200 348278667 0
-12521733 -387896675 509404277
395729932 ...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #95:

score: 0
Accepted
time: 21ms
memory: 8860kb

input:

100000
447265076 -395719496 445986182
-444760481 -35302899 0
385682942 -418294131 0
-448083342 458054159 445986182
-58052452 380193153 445986182
109315127 -219079462 445986182
-142018258 216100940 0
446014235 -229055765 445986182
351001571 346416334 445986182
364416771 -383813827 0
-248495145 -48153...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #96:

score: 0
Accepted
time: 22ms
memory: 8800kb

input:

100000
-464283071 383202895 0
329534720 258916868 0
174721417 158646785 329928549
9436983 289144291 329928549
-471694511 -463673637 329928549
45672772 46264965 0
392920733 -53701006 329928549
494812190 497441631 0
-392824498 185645091 0
40781315 -38073387 329928549
63791614 403351987 0
-455864277 -3...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #97:

score: 0
Accepted
time: 24ms
memory: 8748kb

input:

100000
339422210 453677538 0
437149926 408882154 803805516
476320490 248891155 803805516
35241311 155813687 0
-422682121 -333022946 803805516
314422585 -397846045 803805516
-218920737 -188175760 803805516
474196858 -46554974 0
-237192754 -336173721 0
148473920 -304051224 0
287540115 322468798 803805...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #98:

score: 0
Accepted
time: 25ms
memory: 8856kb

input:

100000
60645406 -356923095 687747883
103675636 -409564453 687747883
476021208 52473839 687747883
-335651101 302291934 687747883
-416620400 -475382123 0
127379316 -483316845 687747883
246102132 -84923675 687747883
-249845324 431020477 687747883
-212119640 -343167580 0
317725651 195784283 0
380148930 ...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #99:

score: 0
Accepted
time: 23ms
memory: 8788kb

input:

100000
-394790518 -360411716 0
374667696 163248281 866657550
-372271021 -337436995 866657550
103369730 -81145599 866657550
33597226 -443631600 866657550
229042682 -119858366 0
-488564494 -275076219 0
259524094 -53593918 866657550
-270225829 425930210 0
478301348 473982426 0
249034012 118690883 0
-28...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #100:

score: 0
Accepted
time: 22ms
memory: 8856kb

input:

100000
-407950507 -461218654 0
436650858 424073367 0
-307491286 -12293914 750599917
189033159 -335912969 750599917
195544265 -289423466 0
454422156 -382502738 0
74252513 -418431928 750599917
-95083855 174674014 0
97625238 80542553 750599917
196668276 375503087 0
-475418389 -294829562 0
108671738 -19...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #101:

score: 0
Accepted
time: 24ms
memory: 8764kb

input:

100000
466516749 -303090508 224476885
10056462 143665821 0
322547109 -392091326 0
-364097820 -377754105 0
-423265552 109700230 224476885
-119269304 -459590088 224476885
250284462 -343799015 0
-88433273 -330448846 224476885
-211128112 -122723537 224476885
-162153295 -19617268 224476885
257071123 4395...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #102:

score: 0
Accepted
time: 23ms
memory: 8836kb

input:

100000
273749107 -377651819 0
-267729448 -94095620 0
-366845304 -170612035 0
107463648 -447012890 108419252
-164079308 -50295989 108419252
-491451064 -391375090 0
-323119105 38319083 0
-69139923 283338404 0
12885397 -211383306 0
-230073755 3174062 0
-44839548 -19756720 108419252
-207869707 -25962671...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #103:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

5
471 337 0
490 353 19565336
917 -783 360170598
471 337 893561473
658 -739 119747863

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #104:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
-764 48 978489746
-754 118 213372808
-367 -474 111112453
-764 48 0
216 123 252660910

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #105:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

5
-599 -701 429014663
-513 211 352669398
-98 486 348646581
-599 -701 0
803 -793 322757035

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #106:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

4
0 0 1
1 400 1
100000 40000001 2
100000 39999999 2

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #107:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

4
100000000 100000000 1
100000001 100000400 1
100100000 140000001 2
100010000 104000001 2

output:

probably

result:

ok single line: 'probably'

Test #108:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

4
100000000 100000000 1
100000001 100001000 1
100100000 200000001 2
100010000 110000001 2

output:

probably

result:

ok single line: 'probably'

Test #109:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4
800000000 800000000 1
800000001 800000040 1
801000000 840000001 2
800100000 804000001 2

output:

probably

result:

ok single line: 'probably'

Test #110:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4
800000000 800000000 1
800000001 800000004 1
810000000 840000001 2
801000000 804000001 2

output:

probably

result:

ok single line: 'probably'

Test #111:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

4
800000000 800000000 1
800000001 800000008 1
810000000 880000001 2
801000000 808000001 2

output:

probably

result:

ok single line: 'probably'

Test #112:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4

output:

probably

result:

ok single line: 'probably'

Test #113:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

3
0 0 3
1 2 1
2 4 2

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #114:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

3
0 0 3
1 2 0
2 4 1

output:

probably

result:

ok single line: 'probably'

Test #115:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

2
0 0 1
1 1 1

output:

probably

result:

ok single line: 'probably'

Test #116:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

2
0 0 1
0 0 0

output:

probably

result:

ok single line: 'probably'

Test #117:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10
0 0 1
-2 -2 2
-3 -3 2
-4 -4 2
-5 -5 2
-6 -6 2
-7 -7 2
-8 -8 2
-2 2 2
2 -2 2

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #118:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

67
-50000000 0 45519
-49856000 3792000 48763
-49856000 -3792000 48763
-48923520 10319360 88888
-48923520 -10319360 88888
-48000000 14000000 45519
-48000000 -14000000 88888
-46800000 17600000 45519
-46800000 -17600000 48763
-45330432 21098624 88888
-45330432 -21098624 88888
-42160000 26880000 48763
-...

output:

probably

result:

ok single line: 'probably'

Test #119:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

67
-50000000 0 45519
-49856000 3792000 48763
-49856000 -3792000 48763
-48923520 10319360 88888
-48923520 -10319360 88888
-48000000 14000000 45519
-48000000 -14000000 88888
-46800000 17600000 45519
-46800000 -17600000 48763
-45330432 21098625 88888
-45330432 -21098624 88888
-42160000 26880000 48763
-...

output:

not a penguin

result:

ok single line: 'not a penguin'

Test #120:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

4
-1000000000 -1000000000 0
-999999999 0 2
-1000000000 1000000000 0
-1000000000 0 1

output:

not a penguin

result:

ok single line: 'not a penguin'

Extra Test:

score: 0
Extra Test Passed