Submission #236344

# Submission time Handle Problem Language Result Execution time Memory
236344 2020-06-01T12:22:11 Z kshitij_sodani Airline Route Map (JOI18_airline) C++17
100 / 100
855 ms 33792 KB
#include <bits/stdc++.h>
using namespace std;
typedef int64_t llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second

#include "Alicelib.h"

map<int,int> x;
vector<pair<int,int>> bp;
/*void InitG(int ac,int bc){
	cout<<ac<<" "<<bc<<endl;
}
void MakeG(int ac,int bc,int cc){
	//cout<<bc<<" "<<cc<<endl;
	bp.pb({bc,cc});
}*/
void Alice(int n, int m, int aa[], int bb[]){
	for(int i=0;i<1024;i++){
		x[i]=i;
	}
	x[511]=1003;
	x[767]=1005;
	x[895]=1006;
	x[959]=1011;
	x[991]=1013;

	vector<pair<int,int>> ans;
	for(int i=0;i<m;i++){
		ans.pb({aa[i],bb[i]});
	}
	for(int ii=0;ii<n;ii++){
		int i=x[ii];
		for(int j=0;j<10;j++){
			if(i&(1<<j)){
				ans.pb({n+2+j,ii});
			}
		}
	}
	for(int i=0;i<n;i++){
		ans.pb({n+1,i});
	}
	for(int j=0;j<n+12;j++){
		if(j==n or j==n+1){
			continue;
		}
		ans.pb({n,j});
	}
	for(int i=n+2;i<n+11;i++){
		ans.pb({i,i+1});
	}
	InitG(n+12,ans.size());
	int kk=0;
	for(auto j:ans){
		MakeG(kk,j.a,j.b);
		kk+=1;
	}

}

/*int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	mt19937 rng;
	rng=mt19937(chrono::steady_clock::now().time_since_epoch().count());
	int no,mo;
	cin>>no>>mo;
	int cc[mo];
	int dd[mo];
	for(int i=0;i<mo;i++){
		cin>>cc[i]>>dd[i];
	}
	Alice(no,mo,cc,dd);
	vector<int> ran;
	for(int i=0;i<no+12;i++){
		ran.pb(i);
	}
	random_shuffle(ran.begin(),ran.end());
	for(int i=0;i<bp.size();i++){
		bp[i].a=ran[bp[i].a];
		bp[i].b=ran[bp[i].b];
	}
	random_shuffle(bp.begin(),bp.end());
	for(int i=0;i<bp.size();i++){
		int xo=rng()%2;
		if(xo==1){
			bp[i]={bp[i].b,bp[i].a};
		}
	}


	return 0;
}*/
#include <bits/stdc++.h>
using namespace std;
typedef int64_t llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
#include "Boblib.h"
/*void InitMap(int ac,int bc){
	cout<<ac<<":"<<bc<<endl;
}
void MakeMap(int bc,int cc){
	cout<<bc<<","<<cc<<endl;
}*/

map<int,int> x;
vector<int> adj[1012];
int mat[1012][1012];
int vis[1012];
void Bob(int nn, int m, int aa[], int bb[]){
	for(int i=0;i<1024;i++){
		x[i]=i;
	}
	for(int j=0;j<1012;j++){
		vis[j]=0;
	}
	for(int i=0;i<1012;i++){
		for(int j=0;j<1012;j++){
			mat[i][j]=0;
		}
	}
	for(int i=0;i<nn;i++){
		adj[i].clear();
	}
	for(int i=0;i<m;i++){
		mat[aa[i]][bb[i]]=1;
		mat[bb[i]][aa[i]]=1;
		adj[aa[i]].pb(bb[i]);
		adj[bb[i]].pb(aa[i]);
	}
	x[1003]=511;
	x[1005]=767;
	x[1006]=895;
	x[1011]=959;
	x[1013]=991;
	vector<int> pp={511,767,895,959,991};
	int co[nn];
	for(int i=0;i<nn;i++){
		co[i]=0;
	}
	for(int i=0;i<m;i++){
		co[aa[i]]+=1;
		co[bb[i]]+=1;
	}
	int ind;
	for(int i=0;i<nn;i++){
		if(co[i]==nn-2){
			ind=i;
		}
	}
//	cout<<ind<<endl;
	int ind2;
	for(int j=0;j<nn;j++){
		if(j!=ind and mat[ind][j]==0){
			ind2=j;
		}
	}
//	cout<<ind2<<endl;
	vector<int> ext;
	for(int i=0;i<nn;i++){
		if(i==ind or i==ind2){
			continue;
		}
		if(mat[ind2][i]==0){
			ext.pb(i);
		}
	}
/*	for(auto j:ext){
		cout<<j<<":";
	}
	cout<<endl;*/
	for(int i=0;i<10;i++){
		vis[ext[i]]=1;
	}
	vis[ind]=1;
	vis[ind2]=1;

	/*if(ext.size()!=10){
		while(true){
			continue;
		}
	}*/
	int ext2[10];
	vector<int> co2[10];
	

	for(int ii=0;ii<ext.size();ii++){
		for(int jj=ii+1;jj<ext.size();jj++){
			int i=ext[ii];
			int j=ext[jj];
			if(i==j){
				continue;
			}
			if(mat[i][j]){
				co2[ii].pb(jj);
				co2[jj].pb(ii);
			}
		}
	}
	int ind3=-1;
	int ind4=-1;
	for(int i=0;i<10;i++){
		if(co2[i].size()==1){
			if(ind3==-1){
				ind3=i;
			}
			else if(ind4==-1){
				ind4=i;
			}

		}
	}

	int ko=0;
	for(int i=0;i<nn;i++){
		if(vis[i]==0 and mat[ext[ind3]][i]){
			ko+=1;
		}
	}
	int lo=0;
	for(int i=0;i<nn;i++){
		if(vis[i]==0 and mat[ext[ind4]][i]){
			lo+=1;
		}
	}

//	cout<<ind3<<"/"<<ind4<<endl;;
//	cout<<ind3<<",,"<<ind4<<endl;
	if(ko<lo){
		swap(ind3,ind4);
	}
//	cout<<ko<<"::"<<lo<<endl;
//	cout<<ind3<<",,"<<ind4<<endl;
	//swap(ind3,ind4);
	ext2[0]=ind3;
	int cur=ind3;
	int prev=-1;
	for(int i=0;i<10;i++){
//		cout<<cur<<":"<<prev<<endl;
		int ind5=-1;
		for(auto j:co2[cur]){
			if(j!=prev){
				ind5=j;
				break;
			}
		}
		prev=cur;
		cur=ind5;
		ext2[i]=prev;
	//	cout<<i<<"/"<<prev<<endl;
	}


	for(int i=0;i<10;i++){
		ext2[i]=ext[ext2[i]];
	//	cout<<ext2[i]<<",";
	}
	//cout<<endl;
	for(int i=0;i<10;i++){
		for(int j=0;j<10;j++){
			if(ext2[i]==ext2[j] and i!=j){
				while(true){
					continue;
				}
			}
		}
	}
	//cout<<endl;
	
	for(int i=0;i<10;i++){
		for(auto j:adj[ext2[i]]){
			if(vis[j]<=0){
				vis[j]-=(1<<i);
			}
		}
	}

	vector<pair<int,int>> ans;
	for(int i=0;i<nn;i++){
		for(int j=i+1;j<nn;j++){

			if(mat[i][j]==1 and vis[i]<=0 and vis[j]<=0){
			/*	if(x[-vis[i]]==x[-vis[j]] or x[-vis[i]]>=nn-12 or x[-vis[j]]>=nn-12){
					while(true){
						continue;
					}
				}*/
				ans.pb({x[-vis[i]],x[-vis[j]]});
			}
		}
	}
	InitMap(nn-12,ans.size());
	for(auto i:ans){
		MakeMap(i.a,i.b);
	}
}
/*
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int no,mo;
	cin>>no>>mo;
	int cc[mo];
	int dd[mo];
	for(int i=0;i<mo;i++){
		cin>>cc[i]>>dd[i];
	}
	Bob(no,mo,cc,dd);

	return 0;
}*/

Compilation message

Bob.cpp: In function 'void Bob(int, int, int*, int*)':
Bob.cpp:97:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int ii=0;ii<ext.size();ii++){
               ~~^~~~~~~~~~~
Bob.cpp:98:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int jj=ii+1;jj<ext.size();jj++){
                   ~~^~~~~~~~~~~
Bob.cpp:86:11: warning: 'ind2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  vis[ind2]=1;
  ~~~~~~~~~^~
Bob.cpp:85:10: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized]
  vis[ind]=1;
  ~~~~~~~~^~
# Verdict Execution time Memory Grader output
1 Correct 15 ms 9032 KB Output is correct
2 Correct 16 ms 8968 KB Output is correct
3 Correct 15 ms 8968 KB Output is correct
4 Correct 15 ms 9016 KB Output is correct
5 Correct 16 ms 8960 KB Output is correct
6 Correct 16 ms 9028 KB Output is correct
7 Correct 16 ms 9032 KB Output is correct
8 Correct 16 ms 8968 KB Output is correct
9 Correct 15 ms 8960 KB Output is correct
10 Correct 15 ms 8960 KB Output is correct
11 Correct 16 ms 9016 KB Output is correct
12 Correct 15 ms 9028 KB Output is correct
13 Correct 16 ms 8960 KB Output is correct
14 Correct 16 ms 9032 KB Output is correct
15 Correct 16 ms 9056 KB Output is correct
16 Correct 15 ms 8968 KB Output is correct
17 Correct 15 ms 9024 KB Output is correct
18 Correct 16 ms 8988 KB Output is correct
19 Correct 15 ms 8968 KB Output is correct
20 Correct 15 ms 8960 KB Output is correct
21 Correct 16 ms 9028 KB Output is correct
22 Correct 16 ms 8832 KB Output is correct
23 Correct 15 ms 8960 KB Output is correct
24 Correct 15 ms 8832 KB Output is correct
25 Correct 16 ms 9156 KB Output is correct
26 Correct 17 ms 8960 KB Output is correct
27 Correct 15 ms 9008 KB Output is correct
28 Correct 16 ms 8968 KB Output is correct
29 Correct 15 ms 8832 KB Output is correct
30 Correct 16 ms 9020 KB Output is correct
31 Correct 16 ms 9040 KB Output is correct
32 Correct 15 ms 8960 KB Output is correct
33 Correct 16 ms 8968 KB Output is correct
34 Correct 16 ms 9020 KB Output is correct
35 Correct 15 ms 8960 KB Output is correct
36 Correct 15 ms 9032 KB Output is correct
37 Correct 16 ms 9004 KB Output is correct
38 Correct 16 ms 8960 KB Output is correct
39 Correct 15 ms 9000 KB Output is correct
40 Correct 15 ms 8968 KB Output is correct
41 Correct 15 ms 8960 KB Output is correct
42 Correct 15 ms 8968 KB Output is correct
43 Correct 15 ms 9136 KB Output is correct
44 Correct 15 ms 9036 KB Output is correct
45 Correct 15 ms 8960 KB Output is correct
46 Correct 16 ms 8832 KB Output is correct
47 Correct 15 ms 8856 KB Output is correct
48 Correct 15 ms 9028 KB Output is correct
49 Correct 16 ms 9008 KB Output is correct
50 Correct 15 ms 9016 KB Output is correct
51 Correct 15 ms 9020 KB Output is correct
52 Correct 15 ms 9036 KB Output is correct
53 Correct 15 ms 9032 KB Output is correct
54 Correct 15 ms 9040 KB Output is correct
55 Correct 16 ms 8960 KB Output is correct
56 Correct 16 ms 9016 KB Output is correct
57 Correct 15 ms 8960 KB Output is correct
58 Correct 15 ms 8968 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 9032 KB Output is correct
2 Correct 16 ms 8968 KB Output is correct
3 Correct 15 ms 8968 KB Output is correct
4 Correct 15 ms 9016 KB Output is correct
5 Correct 16 ms 8960 KB Output is correct
6 Correct 16 ms 9028 KB Output is correct
7 Correct 16 ms 9032 KB Output is correct
8 Correct 16 ms 8968 KB Output is correct
9 Correct 15 ms 8960 KB Output is correct
10 Correct 15 ms 8960 KB Output is correct
11 Correct 16 ms 9016 KB Output is correct
12 Correct 15 ms 9028 KB Output is correct
13 Correct 16 ms 8960 KB Output is correct
14 Correct 16 ms 9032 KB Output is correct
15 Correct 16 ms 9056 KB Output is correct
16 Correct 15 ms 8968 KB Output is correct
17 Correct 15 ms 9024 KB Output is correct
18 Correct 16 ms 8988 KB Output is correct
19 Correct 15 ms 8968 KB Output is correct
20 Correct 15 ms 8960 KB Output is correct
21 Correct 16 ms 9028 KB Output is correct
22 Correct 16 ms 8832 KB Output is correct
23 Correct 15 ms 8960 KB Output is correct
24 Correct 15 ms 8832 KB Output is correct
25 Correct 16 ms 9156 KB Output is correct
26 Correct 17 ms 8960 KB Output is correct
27 Correct 15 ms 9008 KB Output is correct
28 Correct 16 ms 8968 KB Output is correct
29 Correct 15 ms 8832 KB Output is correct
30 Correct 16 ms 9020 KB Output is correct
31 Correct 16 ms 9040 KB Output is correct
32 Correct 15 ms 8960 KB Output is correct
33 Correct 16 ms 8968 KB Output is correct
34 Correct 16 ms 9020 KB Output is correct
35 Correct 15 ms 8960 KB Output is correct
36 Correct 15 ms 9032 KB Output is correct
37 Correct 16 ms 9004 KB Output is correct
38 Correct 16 ms 8960 KB Output is correct
39 Correct 15 ms 9000 KB Output is correct
40 Correct 15 ms 8968 KB Output is correct
41 Correct 15 ms 8960 KB Output is correct
42 Correct 15 ms 8968 KB Output is correct
43 Correct 15 ms 9136 KB Output is correct
44 Correct 15 ms 9036 KB Output is correct
45 Correct 15 ms 8960 KB Output is correct
46 Correct 16 ms 8832 KB Output is correct
47 Correct 15 ms 8856 KB Output is correct
48 Correct 15 ms 9028 KB Output is correct
49 Correct 16 ms 9008 KB Output is correct
50 Correct 15 ms 9016 KB Output is correct
51 Correct 15 ms 9020 KB Output is correct
52 Correct 15 ms 9036 KB Output is correct
53 Correct 15 ms 9032 KB Output is correct
54 Correct 15 ms 9040 KB Output is correct
55 Correct 16 ms 8960 KB Output is correct
56 Correct 16 ms 9016 KB Output is correct
57 Correct 15 ms 8960 KB Output is correct
58 Correct 15 ms 8968 KB Output is correct
59 Correct 16 ms 8984 KB Output is correct
60 Correct 16 ms 8960 KB Output is correct
61 Correct 16 ms 9216 KB Output is correct
62 Correct 16 ms 8960 KB Output is correct
63 Correct 17 ms 8960 KB Output is correct
64 Correct 16 ms 8968 KB Output is correct
65 Correct 16 ms 8992 KB Output is correct
66 Correct 16 ms 8960 KB Output is correct
67 Correct 18 ms 8992 KB Output is correct
68 Correct 16 ms 9004 KB Output is correct
69 Correct 17 ms 8996 KB Output is correct
70 Correct 16 ms 9088 KB Output is correct
71 Correct 16 ms 8960 KB Output is correct
72 Correct 16 ms 8960 KB Output is correct
73 Correct 17 ms 8960 KB Output is correct
74 Correct 16 ms 9088 KB Output is correct
75 Correct 16 ms 8960 KB Output is correct
76 Correct 16 ms 8960 KB Output is correct
77 Correct 16 ms 8960 KB Output is correct
78 Correct 17 ms 9096 KB Output is correct
79 Correct 17 ms 8960 KB Output is correct
80 Correct 16 ms 8960 KB Output is correct
81 Correct 16 ms 9028 KB Output is correct
82 Correct 15 ms 8968 KB Output is correct
83 Correct 16 ms 8968 KB Output is correct
84 Correct 16 ms 9012 KB Output is correct
85 Correct 16 ms 9008 KB Output is correct
86 Correct 16 ms 8968 KB Output is correct
87 Correct 16 ms 8960 KB Output is correct
88 Correct 16 ms 8832 KB Output is correct
89 Correct 16 ms 8960 KB Output is correct
90 Correct 17 ms 9012 KB Output is correct
91 Correct 16 ms 8960 KB Output is correct
92 Correct 16 ms 8968 KB Output is correct
93 Correct 16 ms 9224 KB Output is correct
94 Correct 16 ms 8960 KB Output is correct
95 Correct 16 ms 9088 KB Output is correct
96 Correct 16 ms 8960 KB Output is correct
97 Correct 16 ms 9088 KB Output is correct
98 Correct 16 ms 9140 KB Output is correct
99 Correct 16 ms 9016 KB Output is correct
100 Correct 16 ms 9020 KB Output is correct
101 Correct 16 ms 8960 KB Output is correct
102 Correct 15 ms 9096 KB Output is correct
103 Correct 15 ms 8960 KB Output is correct
104 Correct 16 ms 9024 KB Output is correct
105 Correct 16 ms 8988 KB Output is correct
106 Correct 15 ms 8960 KB Output is correct
107 Correct 15 ms 8960 KB Output is correct
108 Correct 16 ms 8960 KB Output is correct
109 Correct 16 ms 8960 KB Output is correct
110 Correct 15 ms 8960 KB Output is correct
111 Correct 16 ms 8960 KB Output is correct
112 Correct 17 ms 8960 KB Output is correct
113 Correct 16 ms 8968 KB Output is correct
114 Correct 16 ms 8968 KB Output is correct
115 Correct 16 ms 8960 KB Output is correct
116 Correct 15 ms 9160 KB Output is correct
117 Correct 16 ms 8960 KB Output is correct
118 Correct 16 ms 9120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 740 ms 33704 KB Output is correct : V - N = 12
2 Correct 565 ms 30156 KB Output is correct : V - N = 12
3 Correct 254 ms 18068 KB Output is correct : V - N = 12
4 Correct 24 ms 9600 KB Output is correct : V - N = 12
5 Correct 166 ms 14368 KB Output is correct : V - N = 12
6 Correct 462 ms 28216 KB Output is correct : V - N = 12
7 Correct 707 ms 33304 KB Output is correct : V - N = 12
8 Correct 604 ms 31644 KB Output is correct : V - N = 12
9 Correct 325 ms 20308 KB Output is correct : V - N = 12
10 Correct 60 ms 10620 KB Output is correct : V - N = 12
11 Correct 79 ms 11908 KB Output is correct : V - N = 12
12 Correct 381 ms 22756 KB Output is correct : V - N = 12
13 Correct 855 ms 32336 KB Output is correct : V - N = 12
14 Correct 738 ms 33004 KB Output is correct : V - N = 12
15 Correct 434 ms 26984 KB Output is correct : V - N = 12
16 Correct 108 ms 12744 KB Output is correct : V - N = 12
17 Correct 34 ms 10216 KB Output is correct : V - N = 12
18 Correct 272 ms 19300 KB Output is correct : V - N = 12
19 Correct 597 ms 30936 KB Output is correct : V - N = 12
20 Correct 731 ms 33364 KB Output is correct : V - N = 12
21 Correct 197 ms 16608 KB Output is correct : V - N = 12
22 Correct 183 ms 14544 KB Output is correct : V - N = 12
23 Correct 72 ms 11644 KB Output is correct : V - N = 12
24 Correct 20 ms 9216 KB Output is correct : V - N = 12
25 Correct 49 ms 10664 KB Output is correct : V - N = 12
26 Correct 170 ms 14184 KB Output is correct : V - N = 12
27 Correct 190 ms 15520 KB Output is correct : V - N = 12
28 Correct 189 ms 15144 KB Output is correct : V - N = 12
29 Correct 116 ms 12140 KB Output is correct : V - N = 12
30 Correct 24 ms 9656 KB Output is correct : V - N = 12
31 Correct 23 ms 9344 KB Output is correct : V - N = 12
32 Correct 24 ms 9444 KB Output is correct : V - N = 12
33 Correct 24 ms 9344 KB Output is correct : V - N = 12
34 Correct 23 ms 9516 KB Output is correct : V - N = 12
35 Correct 23 ms 9464 KB Output is correct : V - N = 12
36 Correct 720 ms 33724 KB Output is correct : V - N = 12
37 Correct 736 ms 33624 KB Output is correct : V - N = 12
38 Correct 706 ms 33708 KB Output is correct : V - N = 12
39 Correct 843 ms 33792 KB Output is correct : V - N = 12
40 Correct 772 ms 33468 KB Output is correct : V - N = 12
41 Correct 137 ms 14412 KB Output is correct : V - N = 12
42 Correct 114 ms 12896 KB Output is correct : V - N = 12
43 Correct 146 ms 13932 KB Output is correct : V - N = 12
44 Correct 25 ms 9476 KB Output is correct : V - N = 12
45 Correct 77 ms 11876 KB Output is correct : V - N = 12
46 Correct 251 ms 18812 KB Output is correct : V - N = 12
47 Correct 139 ms 14056 KB Output is correct : V - N = 12
48 Correct 415 ms 20556 KB Output is correct : V - N = 12
49 Correct 73 ms 11516 KB Output is correct : V - N = 12
50 Correct 31 ms 10348 KB Output is correct : V - N = 12
51 Correct 574 ms 29896 KB Output is correct : V - N = 12
52 Correct 25 ms 9660 KB Output is correct : V - N = 12
53 Correct 478 ms 27744 KB Output is correct : V - N = 12
54 Correct 713 ms 31496 KB Output is correct : V - N = 12
55 Correct 54 ms 10620 KB Output is correct : V - N = 12
56 Correct 358 ms 22292 KB Output is correct : V - N = 12
57 Correct 854 ms 32508 KB Output is correct : V - N = 12
58 Correct 101 ms 12652 KB Output is correct : V - N = 12
59 Correct 270 ms 19284 KB Output is correct : V - N = 12
60 Correct 847 ms 32840 KB Output is correct : V - N = 12
61 Correct 16 ms 9008 KB Output is correct : V - N = 12
62 Correct 16 ms 9004 KB Output is correct : V - N = 12
63 Correct 16 ms 8960 KB Output is correct : V - N = 12
64 Correct 16 ms 8960 KB Output is correct : V - N = 12
65 Correct 15 ms 8968 KB Output is correct : V - N = 12
66 Correct 16 ms 8960 KB Output is correct : V - N = 12
67 Correct 16 ms 8960 KB Output is correct : V - N = 12
68 Correct 16 ms 8980 KB Output is correct : V - N = 12
69 Correct 17 ms 9088 KB Output is correct : V - N = 12
70 Correct 16 ms 8968 KB Output is correct : V - N = 12
71 Correct 15 ms 9024 KB Output is correct : V - N = 12
72 Correct 16 ms 9088 KB Output is correct : V - N = 12
73 Correct 16 ms 9016 KB Output is correct : V - N = 12
74 Correct 17 ms 8980 KB Output is correct : V - N = 12
75 Correct 16 ms 9012 KB Output is correct : V - N = 12
76 Correct 17 ms 9152 KB Output is correct : V - N = 12
77 Correct 16 ms 8960 KB Output is correct : V - N = 12
78 Correct 16 ms 9052 KB Output is correct : V - N = 12
79 Correct 17 ms 8960 KB Output is correct : V - N = 12
80 Correct 16 ms 8960 KB Output is correct : V - N = 12
81 Correct 16 ms 8988 KB Output is correct : V - N = 12
82 Correct 16 ms 9088 KB Output is correct : V - N = 12
83 Correct 16 ms 9164 KB Output is correct : V - N = 12
84 Correct 16 ms 8960 KB Output is correct : V - N = 12
85 Correct 16 ms 9004 KB Output is correct : V - N = 12
86 Correct 16 ms 8992 KB Output is correct : V - N = 12
87 Correct 16 ms 9000 KB Output is correct : V - N = 12
88 Correct 16 ms 8960 KB Output is correct : V - N = 12
89 Correct 16 ms 8960 KB Output is correct : V - N = 12
90 Correct 16 ms 8960 KB Output is correct : V - N = 12
91 Correct 15 ms 9088 KB Output is correct : V - N = 12
92 Correct 15 ms 9012 KB Output is correct : V - N = 12
93 Correct 15 ms 8960 KB Output is correct : V - N = 12
94 Correct 15 ms 9036 KB Output is correct : V - N = 12
95 Correct 15 ms 8960 KB Output is correct : V - N = 12
96 Correct 16 ms 9016 KB Output is correct : V - N = 12
97 Correct 17 ms 9088 KB Output is correct : V - N = 12
98 Correct 17 ms 9124 KB Output is correct : V - N = 12
99 Correct 17 ms 9104 KB Output is correct : V - N = 12
100 Correct 16 ms 8960 KB Output is correct : V - N = 12
101 Correct 16 ms 9020 KB Output is correct : V - N = 12
102 Correct 18 ms 9024 KB Output is correct : V - N = 12
103 Correct 15 ms 8960 KB Output is correct : V - N = 12
104 Correct 15 ms 9048 KB Output is correct : V - N = 12
105 Correct 16 ms 9004 KB Output is correct : V - N = 12
106 Correct 15 ms 9028 KB Output is correct : V - N = 12
107 Correct 16 ms 9008 KB Output is correct : V - N = 12
108 Correct 16 ms 9236 KB Output is correct : V - N = 12
109 Correct 16 ms 8832 KB Output is correct : V - N = 12
110 Correct 15 ms 8960 KB Output is correct : V - N = 12
111 Correct 16 ms 8920 KB Output is correct : V - N = 12
112 Correct 16 ms 9004 KB Output is correct : V - N = 12
113 Correct 16 ms 8960 KB Output is correct : V - N = 12
114 Correct 16 ms 9004 KB Output is correct : V - N = 12
115 Correct 15 ms 9036 KB Output is correct : V - N = 12
116 Correct 16 ms 8960 KB Output is correct : V - N = 12
117 Correct 16 ms 9016 KB Output is correct : V - N = 12
118 Correct 15 ms 8960 KB Output is correct : V - N = 12
119 Correct 15 ms 8960 KB Output is correct : V - N = 12
120 Correct 16 ms 8960 KB Output is correct : V - N = 12
121 Correct 16 ms 9088 KB Output is correct : V - N = 12
122 Correct 16 ms 9028 KB Output is correct : V - N = 12
123 Correct 16 ms 8960 KB Output is correct : V - N = 12
124 Correct 15 ms 8960 KB Output is correct : V - N = 12
125 Correct 15 ms 8960 KB Output is correct : V - N = 12
126 Correct 15 ms 9164 KB Output is correct : V - N = 12
127 Correct 16 ms 9040 KB Output is correct : V - N = 12
128 Correct 15 ms 8960 KB Output is correct : V - N = 12
129 Correct 16 ms 9096 KB Output is correct : V - N = 12
130 Correct 16 ms 9224 KB Output is correct : V - N = 12
131 Correct 16 ms 8960 KB Output is correct : V - N = 12
132 Correct 15 ms 8960 KB Output is correct : V - N = 12
133 Correct 17 ms 8960 KB Output is correct : V - N = 12
134 Correct 16 ms 9004 KB Output is correct : V - N = 12
135 Correct 18 ms 9028 KB Output is correct : V - N = 12
136 Correct 16 ms 9104 KB Output is correct : V - N = 12
137 Correct 16 ms 8960 KB Output is correct : V - N = 12
138 Correct 18 ms 8832 KB Output is correct : V - N = 12
139 Correct 16 ms 8968 KB Output is correct : V - N = 12
140 Correct 16 ms 9156 KB Output is correct : V - N = 12
141 Correct 15 ms 9044 KB Output is correct : V - N = 12
142 Correct 15 ms 8960 KB Output is correct : V - N = 12
143 Correct 15 ms 8832 KB Output is correct : V - N = 12
144 Correct 16 ms 8960 KB Output is correct : V - N = 12
145 Correct 17 ms 8980 KB Output is correct : V - N = 12
146 Correct 16 ms 9008 KB Output is correct : V - N = 12
147 Correct 15 ms 8960 KB Output is correct : V - N = 12
148 Correct 16 ms 8960 KB Output is correct : V - N = 12
149 Correct 16 ms 9032 KB Output is correct : V - N = 12
150 Correct 15 ms 8960 KB Output is correct : V - N = 12
151 Correct 15 ms 8968 KB Output is correct : V - N = 12
152 Correct 16 ms 8972 KB Output is correct : V - N = 12
153 Correct 15 ms 8960 KB Output is correct : V - N = 12
154 Correct 15 ms 8968 KB Output is correct : V - N = 12
155 Correct 15 ms 8960 KB Output is correct : V - N = 12
156 Correct 15 ms 9004 KB Output is correct : V - N = 12
157 Correct 15 ms 9012 KB Output is correct : V - N = 12
158 Correct 15 ms 8960 KB Output is correct : V - N = 12
159 Correct 15 ms 8832 KB Output is correct : V - N = 12
160 Correct 15 ms 9168 KB Output is correct : V - N = 12
161 Correct 15 ms 8960 KB Output is correct : V - N = 12
162 Correct 16 ms 9004 KB Output is correct : V - N = 12
163 Correct 16 ms 9028 KB Output is correct : V - N = 12
164 Correct 16 ms 8960 KB Output is correct : V - N = 12
165 Correct 15 ms 8960 KB Output is correct : V - N = 12
166 Correct 16 ms 8968 KB Output is correct : V - N = 12
167 Correct 15 ms 9088 KB Output is correct : V - N = 12
168 Correct 16 ms 9004 KB Output is correct : V - N = 12
169 Correct 15 ms 8968 KB Output is correct : V - N = 12
170 Correct 16 ms 9032 KB Output is correct : V - N = 12
171 Correct 16 ms 8832 KB Output is correct : V - N = 12
172 Correct 16 ms 9032 KB Output is correct : V - N = 12
173 Correct 16 ms 8960 KB Output is correct : V - N = 12
174 Correct 16 ms 9136 KB Output is correct : V - N = 12
175 Correct 15 ms 8960 KB Output is correct : V - N = 12
176 Correct 15 ms 9156 KB Output is correct : V - N = 12
177 Correct 17 ms 9024 KB Output is correct : V - N = 12
178 Correct 15 ms 8960 KB Output is correct : V - N = 12