#include <bits/stdc++.h>
using namespace std;
int n,m;
int masca[300005];
vector<int>o[(1 << 20) + 5];
int fr[25],rfr[25];
int maskmare;
bool cmp(int x,int y)
{
return __builtin_popcount(masca[x] & maskmare) > __builtin_popcount(masca[y] & maskmare);
}
vector<int> srt(vector<int>v, int mask)
{
maskmare = mask;
sort(v.begin(),v.end(),cmp);
return v;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> n >> m;
for (int i = 1; i <= n; i++)
{
for (int j = 0; j < m; j++)
{
char ch;
cin >> ch;
if (ch == '0')
masca[i] += (1 << j);
if (ch == '1')
fr[j]++;
}
}
for (int i = 1; i <= n; i++)
o[masca[i]].push_back(i);
for (int i = 0; i < (1 << m); i++)
while (o[i].size() > 2)
o[i].pop_back();
for (int mask = (1 << m) - 1; mask >= 0; mask--)
{
for (int b = 0; b < m; b++)
{
if (!(mask & (1 << b)))
{
int msk = mask + (1 << b);
for (int i = 0; i < o[msk].size(); i++)
{
if (o[mask].size() == 0)
o[mask].push_back(o[msk][i]);
else if (o[mask].size() == 1 and o[mask][0] != o[msk][i])
o[mask].push_back(o[msk][i]);
}
}
}
}
for (int mask = 0; mask < (1 << m); mask++)
{
for (int b = 0; b < m; b++)
{
if (mask & (1 << b))
{
int msk = mask - (1 << b);
vector<int>vnou;
vnou = o[mask];
for (int i = 0; i < o[msk].size(); i++)
{
bool rau = false;
for (int j = 0; j < vnou.size(); j++)
if (vnou[j] == o[msk][i])
rau = true;
if (!rau)
vnou.push_back(o[msk][i]);
}
o[mask] = srt(vnou,mask);
while (o[mask].size() > 2)
o[mask].pop_back();
}
}
}
for (int i = 1; i <= n; i++)
{
int curmask = 0;
for (int j = 0; j < m; j++)
rfr[j] = fr[j];
for (int j = 0; j < m; j++)
if (!(masca[i] & (1 << j)))
rfr[j]--;
int cate = 0;
for (int j = 0; j < m; j++)
{
if (rfr[j] == n / 2)
curmask += (1 << j);
else if (rfr[j] > n / 2)
cate++;
}
int cine = o[curmask][0];
if (o[curmask][0] == i)
cine = o[curmask][1];
cout << cate + (int)(__builtin_popcount(masca[cine] & curmask)) << '\n';
}
return 0;
}
Compilation message
council.cpp: In function 'int main()':
council.cpp:54:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for (int i = 0; i < o[msk].size(); i++)
| ~~^~~~~~~~~~~~~~~
council.cpp:73:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for (int i = 0; i < o[msk].size(); i++)
| ~~^~~~~~~~~~~~~~~
council.cpp:76:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for (int j = 0; j < vnou.size(); j++)
| ~~^~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
9 ms |
25180 KB |
Output is correct |
3 |
Correct |
7 ms |
25176 KB |
Output is correct |
4 |
Correct |
7 ms |
25176 KB |
Output is correct |
5 |
Correct |
938 ms |
57860 KB |
Output is correct |
6 |
Correct |
878 ms |
57936 KB |
Output is correct |
7 |
Correct |
1027 ms |
58044 KB |
Output is correct |
8 |
Correct |
1197 ms |
58104 KB |
Output is correct |
9 |
Correct |
1311 ms |
57936 KB |
Output is correct |
10 |
Correct |
1091 ms |
57960 KB |
Output is correct |
11 |
Correct |
1225 ms |
58252 KB |
Output is correct |
12 |
Correct |
1300 ms |
57880 KB |
Output is correct |
13 |
Correct |
8 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25180 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25256 KB |
Output is correct |
19 |
Correct |
8 ms |
25176 KB |
Output is correct |
20 |
Correct |
7 ms |
25176 KB |
Output is correct |
21 |
Correct |
7 ms |
25176 KB |
Output is correct |
22 |
Correct |
7 ms |
25176 KB |
Output is correct |
23 |
Correct |
7 ms |
25176 KB |
Output is correct |
24 |
Correct |
9 ms |
25180 KB |
Output is correct |
25 |
Correct |
7 ms |
25176 KB |
Output is correct |
26 |
Correct |
7 ms |
25180 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
7 ms |
25176 KB |
Output is correct |
29 |
Correct |
7 ms |
25176 KB |
Output is correct |
30 |
Correct |
8 ms |
25180 KB |
Output is correct |
31 |
Correct |
8 ms |
25176 KB |
Output is correct |
32 |
Correct |
8 ms |
25176 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
7 ms |
25180 KB |
Output is correct |
36 |
Correct |
7 ms |
25180 KB |
Output is correct |
37 |
Correct |
7 ms |
25176 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
8 ms |
25180 KB |
Output is correct |
40 |
Correct |
8 ms |
25176 KB |
Output is correct |
41 |
Correct |
18 ms |
25688 KB |
Output is correct |
42 |
Correct |
20 ms |
25688 KB |
Output is correct |
43 |
Correct |
22 ms |
25692 KB |
Output is correct |
44 |
Correct |
20 ms |
25944 KB |
Output is correct |
45 |
Correct |
21 ms |
25688 KB |
Output is correct |
46 |
Correct |
111 ms |
29332 KB |
Output is correct |
47 |
Correct |
118 ms |
29264 KB |
Output is correct |
48 |
Correct |
135 ms |
29264 KB |
Output is correct |
49 |
Correct |
123 ms |
29264 KB |
Output is correct |
50 |
Correct |
129 ms |
29260 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
9 ms |
25180 KB |
Output is correct |
3 |
Correct |
7 ms |
25176 KB |
Output is correct |
4 |
Correct |
7 ms |
25176 KB |
Output is correct |
5 |
Correct |
938 ms |
57860 KB |
Output is correct |
6 |
Correct |
878 ms |
57936 KB |
Output is correct |
7 |
Correct |
1027 ms |
58044 KB |
Output is correct |
8 |
Correct |
1197 ms |
58104 KB |
Output is correct |
9 |
Correct |
1311 ms |
57936 KB |
Output is correct |
10 |
Correct |
1091 ms |
57960 KB |
Output is correct |
11 |
Correct |
1225 ms |
58252 KB |
Output is correct |
12 |
Correct |
1300 ms |
57880 KB |
Output is correct |
13 |
Correct |
8 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25180 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25256 KB |
Output is correct |
19 |
Correct |
8 ms |
25176 KB |
Output is correct |
20 |
Correct |
7 ms |
25176 KB |
Output is correct |
21 |
Correct |
7 ms |
25176 KB |
Output is correct |
22 |
Correct |
7 ms |
25176 KB |
Output is correct |
23 |
Correct |
7 ms |
25176 KB |
Output is correct |
24 |
Correct |
9 ms |
25180 KB |
Output is correct |
25 |
Correct |
7 ms |
25176 KB |
Output is correct |
26 |
Correct |
7 ms |
25180 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
7 ms |
25176 KB |
Output is correct |
29 |
Correct |
7 ms |
25176 KB |
Output is correct |
30 |
Correct |
8 ms |
25180 KB |
Output is correct |
31 |
Correct |
8 ms |
25176 KB |
Output is correct |
32 |
Correct |
8 ms |
25176 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
7 ms |
25180 KB |
Output is correct |
36 |
Correct |
7 ms |
25180 KB |
Output is correct |
37 |
Correct |
7 ms |
25176 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
8 ms |
25180 KB |
Output is correct |
40 |
Correct |
8 ms |
25176 KB |
Output is correct |
41 |
Correct |
18 ms |
25688 KB |
Output is correct |
42 |
Correct |
20 ms |
25688 KB |
Output is correct |
43 |
Correct |
22 ms |
25692 KB |
Output is correct |
44 |
Correct |
20 ms |
25944 KB |
Output is correct |
45 |
Correct |
21 ms |
25688 KB |
Output is correct |
46 |
Correct |
111 ms |
29332 KB |
Output is correct |
47 |
Correct |
118 ms |
29264 KB |
Output is correct |
48 |
Correct |
135 ms |
29264 KB |
Output is correct |
49 |
Correct |
123 ms |
29264 KB |
Output is correct |
50 |
Correct |
129 ms |
29260 KB |
Output is correct |
51 |
Correct |
883 ms |
58056 KB |
Output is correct |
52 |
Correct |
896 ms |
58196 KB |
Output is correct |
53 |
Correct |
1152 ms |
58192 KB |
Output is correct |
54 |
Correct |
1285 ms |
58288 KB |
Output is correct |
55 |
Correct |
8 ms |
25176 KB |
Output is correct |
56 |
Correct |
149 ms |
29264 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
39 ms |
27428 KB |
Output is correct |
3 |
Correct |
37 ms |
28372 KB |
Output is correct |
4 |
Correct |
36 ms |
27852 KB |
Output is correct |
5 |
Correct |
43 ms |
27976 KB |
Output is correct |
6 |
Correct |
37 ms |
27704 KB |
Output is correct |
7 |
Correct |
43 ms |
27804 KB |
Output is correct |
8 |
Correct |
7 ms |
25252 KB |
Output is correct |
9 |
Correct |
7 ms |
25176 KB |
Output is correct |
10 |
Correct |
7 ms |
25176 KB |
Output is correct |
11 |
Correct |
7 ms |
25176 KB |
Output is correct |
12 |
Correct |
8 ms |
25180 KB |
Output is correct |
13 |
Correct |
7 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25176 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
39 ms |
27428 KB |
Output is correct |
3 |
Correct |
37 ms |
28372 KB |
Output is correct |
4 |
Correct |
36 ms |
27852 KB |
Output is correct |
5 |
Correct |
43 ms |
27976 KB |
Output is correct |
6 |
Correct |
37 ms |
27704 KB |
Output is correct |
7 |
Correct |
43 ms |
27804 KB |
Output is correct |
8 |
Correct |
7 ms |
25252 KB |
Output is correct |
9 |
Correct |
7 ms |
25176 KB |
Output is correct |
10 |
Correct |
7 ms |
25176 KB |
Output is correct |
11 |
Correct |
7 ms |
25176 KB |
Output is correct |
12 |
Correct |
8 ms |
25180 KB |
Output is correct |
13 |
Correct |
7 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25176 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25180 KB |
Output is correct |
19 |
Correct |
7 ms |
25176 KB |
Output is correct |
20 |
Correct |
99 ms |
28428 KB |
Output is correct |
21 |
Correct |
94 ms |
28240 KB |
Output is correct |
22 |
Correct |
90 ms |
28236 KB |
Output is correct |
23 |
Correct |
68 ms |
27340 KB |
Output is correct |
24 |
Correct |
68 ms |
28364 KB |
Output is correct |
25 |
Correct |
100 ms |
28500 KB |
Output is correct |
26 |
Correct |
108 ms |
28496 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
6 ms |
25176 KB |
Output is correct |
29 |
Correct |
8 ms |
25188 KB |
Output is correct |
30 |
Correct |
7 ms |
25180 KB |
Output is correct |
31 |
Correct |
7 ms |
25180 KB |
Output is correct |
32 |
Correct |
7 ms |
25180 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
8 ms |
25176 KB |
Output is correct |
36 |
Correct |
8 ms |
25176 KB |
Output is correct |
37 |
Correct |
7 ms |
25248 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
7 ms |
25180 KB |
Output is correct |
40 |
Correct |
7 ms |
25176 KB |
Output is correct |
41 |
Correct |
7 ms |
25180 KB |
Output is correct |
42 |
Correct |
7 ms |
25176 KB |
Output is correct |
43 |
Correct |
7 ms |
25176 KB |
Output is correct |
44 |
Correct |
8 ms |
25176 KB |
Output is correct |
45 |
Correct |
8 ms |
25176 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
39 ms |
27428 KB |
Output is correct |
3 |
Correct |
37 ms |
28372 KB |
Output is correct |
4 |
Correct |
36 ms |
27852 KB |
Output is correct |
5 |
Correct |
43 ms |
27976 KB |
Output is correct |
6 |
Correct |
37 ms |
27704 KB |
Output is correct |
7 |
Correct |
43 ms |
27804 KB |
Output is correct |
8 |
Correct |
7 ms |
25252 KB |
Output is correct |
9 |
Correct |
7 ms |
25176 KB |
Output is correct |
10 |
Correct |
7 ms |
25176 KB |
Output is correct |
11 |
Correct |
7 ms |
25176 KB |
Output is correct |
12 |
Correct |
8 ms |
25180 KB |
Output is correct |
13 |
Correct |
7 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25176 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25180 KB |
Output is correct |
19 |
Correct |
7 ms |
25176 KB |
Output is correct |
20 |
Correct |
99 ms |
28428 KB |
Output is correct |
21 |
Correct |
94 ms |
28240 KB |
Output is correct |
22 |
Correct |
90 ms |
28236 KB |
Output is correct |
23 |
Correct |
68 ms |
27340 KB |
Output is correct |
24 |
Correct |
68 ms |
28364 KB |
Output is correct |
25 |
Correct |
100 ms |
28500 KB |
Output is correct |
26 |
Correct |
108 ms |
28496 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
6 ms |
25176 KB |
Output is correct |
29 |
Correct |
8 ms |
25188 KB |
Output is correct |
30 |
Correct |
7 ms |
25180 KB |
Output is correct |
31 |
Correct |
7 ms |
25180 KB |
Output is correct |
32 |
Correct |
7 ms |
25180 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
8 ms |
25176 KB |
Output is correct |
36 |
Correct |
8 ms |
25176 KB |
Output is correct |
37 |
Correct |
7 ms |
25248 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
7 ms |
25180 KB |
Output is correct |
40 |
Correct |
7 ms |
25176 KB |
Output is correct |
41 |
Correct |
7 ms |
25180 KB |
Output is correct |
42 |
Correct |
7 ms |
25176 KB |
Output is correct |
43 |
Correct |
7 ms |
25176 KB |
Output is correct |
44 |
Correct |
8 ms |
25176 KB |
Output is correct |
45 |
Correct |
8 ms |
25176 KB |
Output is correct |
46 |
Correct |
10 ms |
25176 KB |
Output is correct |
47 |
Correct |
160 ms |
28896 KB |
Output is correct |
48 |
Correct |
139 ms |
28772 KB |
Output is correct |
49 |
Correct |
136 ms |
28756 KB |
Output is correct |
50 |
Correct |
91 ms |
27592 KB |
Output is correct |
51 |
Correct |
90 ms |
28364 KB |
Output is correct |
52 |
Correct |
153 ms |
29684 KB |
Output is correct |
53 |
Correct |
175 ms |
29264 KB |
Output is correct |
54 |
Correct |
18 ms |
25688 KB |
Output is correct |
55 |
Correct |
19 ms |
25688 KB |
Output is correct |
56 |
Correct |
21 ms |
25692 KB |
Output is correct |
57 |
Correct |
20 ms |
25688 KB |
Output is correct |
58 |
Correct |
23 ms |
25540 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
39 ms |
27428 KB |
Output is correct |
3 |
Correct |
37 ms |
28372 KB |
Output is correct |
4 |
Correct |
36 ms |
27852 KB |
Output is correct |
5 |
Correct |
43 ms |
27976 KB |
Output is correct |
6 |
Correct |
37 ms |
27704 KB |
Output is correct |
7 |
Correct |
43 ms |
27804 KB |
Output is correct |
8 |
Correct |
7 ms |
25252 KB |
Output is correct |
9 |
Correct |
7 ms |
25176 KB |
Output is correct |
10 |
Correct |
7 ms |
25176 KB |
Output is correct |
11 |
Correct |
7 ms |
25176 KB |
Output is correct |
12 |
Correct |
8 ms |
25180 KB |
Output is correct |
13 |
Correct |
7 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25176 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25180 KB |
Output is correct |
19 |
Correct |
7 ms |
25176 KB |
Output is correct |
20 |
Correct |
99 ms |
28428 KB |
Output is correct |
21 |
Correct |
94 ms |
28240 KB |
Output is correct |
22 |
Correct |
90 ms |
28236 KB |
Output is correct |
23 |
Correct |
68 ms |
27340 KB |
Output is correct |
24 |
Correct |
68 ms |
28364 KB |
Output is correct |
25 |
Correct |
100 ms |
28500 KB |
Output is correct |
26 |
Correct |
108 ms |
28496 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
6 ms |
25176 KB |
Output is correct |
29 |
Correct |
8 ms |
25188 KB |
Output is correct |
30 |
Correct |
7 ms |
25180 KB |
Output is correct |
31 |
Correct |
7 ms |
25180 KB |
Output is correct |
32 |
Correct |
7 ms |
25180 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
8 ms |
25176 KB |
Output is correct |
36 |
Correct |
8 ms |
25176 KB |
Output is correct |
37 |
Correct |
7 ms |
25248 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
7 ms |
25180 KB |
Output is correct |
40 |
Correct |
7 ms |
25176 KB |
Output is correct |
41 |
Correct |
7 ms |
25180 KB |
Output is correct |
42 |
Correct |
7 ms |
25176 KB |
Output is correct |
43 |
Correct |
7 ms |
25176 KB |
Output is correct |
44 |
Correct |
8 ms |
25176 KB |
Output is correct |
45 |
Correct |
8 ms |
25176 KB |
Output is correct |
46 |
Correct |
10 ms |
25176 KB |
Output is correct |
47 |
Correct |
160 ms |
28896 KB |
Output is correct |
48 |
Correct |
139 ms |
28772 KB |
Output is correct |
49 |
Correct |
136 ms |
28756 KB |
Output is correct |
50 |
Correct |
91 ms |
27592 KB |
Output is correct |
51 |
Correct |
90 ms |
28364 KB |
Output is correct |
52 |
Correct |
153 ms |
29684 KB |
Output is correct |
53 |
Correct |
175 ms |
29264 KB |
Output is correct |
54 |
Correct |
18 ms |
25688 KB |
Output is correct |
55 |
Correct |
19 ms |
25688 KB |
Output is correct |
56 |
Correct |
21 ms |
25692 KB |
Output is correct |
57 |
Correct |
20 ms |
25688 KB |
Output is correct |
58 |
Correct |
23 ms |
25540 KB |
Output is correct |
59 |
Correct |
224 ms |
29520 KB |
Output is correct |
60 |
Correct |
244 ms |
29776 KB |
Output is correct |
61 |
Correct |
248 ms |
29776 KB |
Output is correct |
62 |
Correct |
248 ms |
29860 KB |
Output is correct |
63 |
Correct |
236 ms |
30288 KB |
Output is correct |
64 |
Correct |
354 ms |
31060 KB |
Output is correct |
65 |
Correct |
334 ms |
31436 KB |
Output is correct |
66 |
Correct |
196 ms |
31428 KB |
Output is correct |
67 |
Correct |
188 ms |
31504 KB |
Output is correct |
68 |
Correct |
351 ms |
31292 KB |
Output is correct |
69 |
Correct |
360 ms |
31388 KB |
Output is correct |
70 |
Correct |
109 ms |
29264 KB |
Output is correct |
71 |
Correct |
116 ms |
29264 KB |
Output is correct |
72 |
Correct |
140 ms |
29320 KB |
Output is correct |
73 |
Correct |
122 ms |
29296 KB |
Output is correct |
74 |
Correct |
132 ms |
29264 KB |
Output is correct |
75 |
Correct |
150 ms |
29264 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
7 ms |
25176 KB |
Output is correct |
2 |
Correct |
9 ms |
25180 KB |
Output is correct |
3 |
Correct |
7 ms |
25176 KB |
Output is correct |
4 |
Correct |
7 ms |
25176 KB |
Output is correct |
5 |
Correct |
938 ms |
57860 KB |
Output is correct |
6 |
Correct |
878 ms |
57936 KB |
Output is correct |
7 |
Correct |
1027 ms |
58044 KB |
Output is correct |
8 |
Correct |
1197 ms |
58104 KB |
Output is correct |
9 |
Correct |
1311 ms |
57936 KB |
Output is correct |
10 |
Correct |
1091 ms |
57960 KB |
Output is correct |
11 |
Correct |
1225 ms |
58252 KB |
Output is correct |
12 |
Correct |
1300 ms |
57880 KB |
Output is correct |
13 |
Correct |
8 ms |
25176 KB |
Output is correct |
14 |
Correct |
7 ms |
25180 KB |
Output is correct |
15 |
Correct |
7 ms |
25176 KB |
Output is correct |
16 |
Correct |
7 ms |
25180 KB |
Output is correct |
17 |
Correct |
7 ms |
25176 KB |
Output is correct |
18 |
Correct |
7 ms |
25256 KB |
Output is correct |
19 |
Correct |
8 ms |
25176 KB |
Output is correct |
20 |
Correct |
7 ms |
25176 KB |
Output is correct |
21 |
Correct |
7 ms |
25176 KB |
Output is correct |
22 |
Correct |
7 ms |
25176 KB |
Output is correct |
23 |
Correct |
7 ms |
25176 KB |
Output is correct |
24 |
Correct |
9 ms |
25180 KB |
Output is correct |
25 |
Correct |
7 ms |
25176 KB |
Output is correct |
26 |
Correct |
7 ms |
25180 KB |
Output is correct |
27 |
Correct |
7 ms |
25176 KB |
Output is correct |
28 |
Correct |
7 ms |
25176 KB |
Output is correct |
29 |
Correct |
7 ms |
25176 KB |
Output is correct |
30 |
Correct |
8 ms |
25180 KB |
Output is correct |
31 |
Correct |
8 ms |
25176 KB |
Output is correct |
32 |
Correct |
8 ms |
25176 KB |
Output is correct |
33 |
Correct |
7 ms |
25176 KB |
Output is correct |
34 |
Correct |
7 ms |
25176 KB |
Output is correct |
35 |
Correct |
7 ms |
25180 KB |
Output is correct |
36 |
Correct |
7 ms |
25180 KB |
Output is correct |
37 |
Correct |
7 ms |
25176 KB |
Output is correct |
38 |
Correct |
7 ms |
25176 KB |
Output is correct |
39 |
Correct |
8 ms |
25180 KB |
Output is correct |
40 |
Correct |
8 ms |
25176 KB |
Output is correct |
41 |
Correct |
18 ms |
25688 KB |
Output is correct |
42 |
Correct |
20 ms |
25688 KB |
Output is correct |
43 |
Correct |
22 ms |
25692 KB |
Output is correct |
44 |
Correct |
20 ms |
25944 KB |
Output is correct |
45 |
Correct |
21 ms |
25688 KB |
Output is correct |
46 |
Correct |
111 ms |
29332 KB |
Output is correct |
47 |
Correct |
118 ms |
29264 KB |
Output is correct |
48 |
Correct |
135 ms |
29264 KB |
Output is correct |
49 |
Correct |
123 ms |
29264 KB |
Output is correct |
50 |
Correct |
129 ms |
29260 KB |
Output is correct |
51 |
Correct |
883 ms |
58056 KB |
Output is correct |
52 |
Correct |
896 ms |
58196 KB |
Output is correct |
53 |
Correct |
1152 ms |
58192 KB |
Output is correct |
54 |
Correct |
1285 ms |
58288 KB |
Output is correct |
55 |
Correct |
8 ms |
25176 KB |
Output is correct |
56 |
Correct |
149 ms |
29264 KB |
Output is correct |
57 |
Correct |
7 ms |
25176 KB |
Output is correct |
58 |
Correct |
39 ms |
27428 KB |
Output is correct |
59 |
Correct |
37 ms |
28372 KB |
Output is correct |
60 |
Correct |
36 ms |
27852 KB |
Output is correct |
61 |
Correct |
43 ms |
27976 KB |
Output is correct |
62 |
Correct |
37 ms |
27704 KB |
Output is correct |
63 |
Correct |
43 ms |
27804 KB |
Output is correct |
64 |
Correct |
7 ms |
25252 KB |
Output is correct |
65 |
Correct |
7 ms |
25176 KB |
Output is correct |
66 |
Correct |
7 ms |
25176 KB |
Output is correct |
67 |
Correct |
7 ms |
25176 KB |
Output is correct |
68 |
Correct |
8 ms |
25180 KB |
Output is correct |
69 |
Correct |
7 ms |
25176 KB |
Output is correct |
70 |
Correct |
7 ms |
25176 KB |
Output is correct |
71 |
Correct |
7 ms |
25176 KB |
Output is correct |
72 |
Correct |
7 ms |
25180 KB |
Output is correct |
73 |
Correct |
7 ms |
25176 KB |
Output is correct |
74 |
Correct |
7 ms |
25180 KB |
Output is correct |
75 |
Correct |
7 ms |
25176 KB |
Output is correct |
76 |
Correct |
99 ms |
28428 KB |
Output is correct |
77 |
Correct |
94 ms |
28240 KB |
Output is correct |
78 |
Correct |
90 ms |
28236 KB |
Output is correct |
79 |
Correct |
68 ms |
27340 KB |
Output is correct |
80 |
Correct |
68 ms |
28364 KB |
Output is correct |
81 |
Correct |
100 ms |
28500 KB |
Output is correct |
82 |
Correct |
108 ms |
28496 KB |
Output is correct |
83 |
Correct |
7 ms |
25176 KB |
Output is correct |
84 |
Correct |
6 ms |
25176 KB |
Output is correct |
85 |
Correct |
8 ms |
25188 KB |
Output is correct |
86 |
Correct |
7 ms |
25180 KB |
Output is correct |
87 |
Correct |
7 ms |
25180 KB |
Output is correct |
88 |
Correct |
7 ms |
25180 KB |
Output is correct |
89 |
Correct |
7 ms |
25176 KB |
Output is correct |
90 |
Correct |
7 ms |
25176 KB |
Output is correct |
91 |
Correct |
8 ms |
25176 KB |
Output is correct |
92 |
Correct |
8 ms |
25176 KB |
Output is correct |
93 |
Correct |
7 ms |
25248 KB |
Output is correct |
94 |
Correct |
7 ms |
25176 KB |
Output is correct |
95 |
Correct |
7 ms |
25180 KB |
Output is correct |
96 |
Correct |
7 ms |
25176 KB |
Output is correct |
97 |
Correct |
7 ms |
25180 KB |
Output is correct |
98 |
Correct |
7 ms |
25176 KB |
Output is correct |
99 |
Correct |
7 ms |
25176 KB |
Output is correct |
100 |
Correct |
8 ms |
25176 KB |
Output is correct |
101 |
Correct |
8 ms |
25176 KB |
Output is correct |
102 |
Correct |
10 ms |
25176 KB |
Output is correct |
103 |
Correct |
160 ms |
28896 KB |
Output is correct |
104 |
Correct |
139 ms |
28772 KB |
Output is correct |
105 |
Correct |
136 ms |
28756 KB |
Output is correct |
106 |
Correct |
91 ms |
27592 KB |
Output is correct |
107 |
Correct |
90 ms |
28364 KB |
Output is correct |
108 |
Correct |
153 ms |
29684 KB |
Output is correct |
109 |
Correct |
175 ms |
29264 KB |
Output is correct |
110 |
Correct |
18 ms |
25688 KB |
Output is correct |
111 |
Correct |
19 ms |
25688 KB |
Output is correct |
112 |
Correct |
21 ms |
25692 KB |
Output is correct |
113 |
Correct |
20 ms |
25688 KB |
Output is correct |
114 |
Correct |
23 ms |
25540 KB |
Output is correct |
115 |
Correct |
224 ms |
29520 KB |
Output is correct |
116 |
Correct |
244 ms |
29776 KB |
Output is correct |
117 |
Correct |
248 ms |
29776 KB |
Output is correct |
118 |
Correct |
248 ms |
29860 KB |
Output is correct |
119 |
Correct |
236 ms |
30288 KB |
Output is correct |
120 |
Correct |
354 ms |
31060 KB |
Output is correct |
121 |
Correct |
334 ms |
31436 KB |
Output is correct |
122 |
Correct |
196 ms |
31428 KB |
Output is correct |
123 |
Correct |
188 ms |
31504 KB |
Output is correct |
124 |
Correct |
351 ms |
31292 KB |
Output is correct |
125 |
Correct |
360 ms |
31388 KB |
Output is correct |
126 |
Correct |
109 ms |
29264 KB |
Output is correct |
127 |
Correct |
116 ms |
29264 KB |
Output is correct |
128 |
Correct |
140 ms |
29320 KB |
Output is correct |
129 |
Correct |
122 ms |
29296 KB |
Output is correct |
130 |
Correct |
132 ms |
29264 KB |
Output is correct |
131 |
Correct |
150 ms |
29264 KB |
Output is correct |
132 |
Correct |
1761 ms |
60088 KB |
Output is correct |
133 |
Correct |
1732 ms |
59992 KB |
Output is correct |
134 |
Correct |
1881 ms |
59940 KB |
Output is correct |
135 |
Correct |
1864 ms |
59980 KB |
Output is correct |
136 |
Correct |
1822 ms |
59984 KB |
Output is correct |
137 |
Correct |
992 ms |
43680 KB |
Output is correct |
138 |
Correct |
1075 ms |
43600 KB |
Output is correct |
139 |
Correct |
990 ms |
60100 KB |
Output is correct |
140 |
Correct |
1026 ms |
60080 KB |
Output is correct |
141 |
Correct |
1855 ms |
59712 KB |
Output is correct |
142 |
Correct |
2033 ms |
60076 KB |
Output is correct |