# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
796066 | 2023-07-28T05:43:30 Z | vjudge1 | Council (JOI23_council) | C++17 | 2279 ms | 90476 KB |
// Author : حسن #include <bits/stdc++.h> using namespace std; #define TL ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); #define rall(s) s.rbegin(),s.rend() #define all(s) s.begin(),s.end() #define pb push_back #define fi first #define se second #define ll long long #define ld long double #define YES cout<<"YES\n" #define Yes cout<<"Yes\n" #define yes cout<<"yes\n" #define NO cout<<"NO\n" #define No cout<<"No\n" #define no cout<<"no\n" const int N = 3e5 + 9 , mod = 1e9 + 7; ll c[N] = {} , d[N] = {} , a[N][22] = {}, b[N] = {} , us[N] , dp[N * 4][4] = {}; void solve(){ ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0; cin>>n>>m; for(i = 0; i <= (1 << 20); i++) dp[i][0] = dp[i][1] = dp[i][2] = dp[i][3] = 0 , dp[i][1] = -1; for(i = 1;i <= n; i++) for(j = 0; j < m; j++){ cin>>a[i][j] , b[j] += a[i][j]; if(a[i][j]) d[i] += a[i][j] , c[i] += (1 << j); } y = n / 2; for(i = 1; i <= n; i++){ x = c[i] , c[i] = ((1 << m) - 1) ^ c[i]; if(dp[c[i]][1] == -1) dp[c[i]][1] = i , dp[c[i]][0] = m - d[i]; else dp[c[i]][3] = i , dp[c[i]][2] = m - d[i]; c[i] = x; } for(i = (1 << m) - 1; i >= 0; i--){ for(j = 0; j < m; j++){ if(i & (1 << j)){ x = i ^ (1 << j); dp[i][0]--; dp[i][2]--; vector<pair<ll,ll>>v; v.pb({dp[i][0] , dp[i][1]}); v.pb({dp[i][2] , dp[i][3]}); v.pb({dp[x][0] , dp[x][1]}); v.pb({dp[x][2] , dp[x][3]}); sort(rall(v)); dp[x][0] = v[0].fi , dp[x][1] = v[0].se; for(auto to : v) if(to.se != dp[x][1]){ dp[x][2] = to.fi , dp[x][3] = to.se; break; } dp[i][0]++; dp[i][2]++; } } } for(i = 0; i < (1<<m); i++){ for(j = 0; j < m; j++){ if(!((1 << j) & i)){ x = i ^ (1 << j); vector<pair<ll,ll>>v; v.pb({dp[i][0] , dp[i][1]}); v.pb({dp[i][2] , dp[i][3]}); v.pb({dp[x][0] , dp[x][1]}); v.pb({dp[x][2] , dp[x][3]}); sort(rall(v)); dp[x][0] = v[0].fi , dp[x][1] = v[0].se; for(auto to : v) if(to.se != dp[x][1]){ dp[x][2] = to.fi , dp[x][3] = to.se; break; } } } } for(j = 0; j < m; j++) s += (b[j] >= y); for(i = 1; i <= n; i++){ mx = 0; for(j = 0; j < m; j++){ b[j] -= a[i][j]; if(a[i][j] == 1 && b[j] == y - 1) s--; } f =x = 0; for(j = 0; j < m; j++){ if(b[j] == y) x += (1 << j); else if(b[j] > y) f++; } k = dp[x][0]; if(dp[x][1] == i) k = dp[x][2]; //cout<<s<<" "; cout<<f + k<<"\n"; for(j = 0; j < m; j++){ b[j] += a[i][j]; if(a[i][j] == 1 && b[j] == y) s++; } } } int main(){ TL; /* #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif */ int t = 1; //cin>>t; while(t--) { solve(); } } // Author : حسن
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 33108 KB | Output is correct |
2 | Correct | 17 ms | 33068 KB | Output is correct |
3 | Correct | 13 ms | 33108 KB | Output is correct |
4 | Correct | 12 ms | 33088 KB | Output is correct |
5 | Correct | 1746 ms | 33176 KB | Output is correct |
6 | Correct | 1780 ms | 33228 KB | Output is correct |
7 | Correct | 1856 ms | 33180 KB | Output is correct |
8 | Correct | 1861 ms | 33176 KB | Output is correct |
9 | Correct | 2060 ms | 33228 KB | Output is correct |
10 | Correct | 1927 ms | 33088 KB | Output is correct |
11 | Correct | 1928 ms | 33168 KB | Output is correct |
12 | Correct | 1954 ms | 33236 KB | Output is correct |
13 | Correct | 13 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33144 KB | Output is correct |
15 | Correct | 14 ms | 33136 KB | Output is correct |
16 | Correct | 12 ms | 33076 KB | Output is correct |
17 | Correct | 15 ms | 33176 KB | Output is correct |
18 | Correct | 15 ms | 33108 KB | Output is correct |
19 | Correct | 16 ms | 33184 KB | Output is correct |
20 | Correct | 16 ms | 33076 KB | Output is correct |
21 | Correct | 14 ms | 33236 KB | Output is correct |
22 | Correct | 15 ms | 33164 KB | Output is correct |
23 | Correct | 15 ms | 33108 KB | Output is correct |
24 | Correct | 14 ms | 33140 KB | Output is correct |
25 | Correct | 15 ms | 33072 KB | Output is correct |
26 | Correct | 15 ms | 33108 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 14 ms | 33144 KB | Output is correct |
29 | Correct | 13 ms | 33108 KB | Output is correct |
30 | Correct | 16 ms | 33192 KB | Output is correct |
31 | Correct | 15 ms | 33236 KB | Output is correct |
32 | Correct | 15 ms | 33180 KB | Output is correct |
33 | Correct | 13 ms | 33108 KB | Output is correct |
34 | Correct | 14 ms | 33156 KB | Output is correct |
35 | Correct | 17 ms | 33224 KB | Output is correct |
36 | Correct | 14 ms | 33108 KB | Output is correct |
37 | Correct | 15 ms | 33088 KB | Output is correct |
38 | Correct | 15 ms | 33116 KB | Output is correct |
39 | Correct | 15 ms | 33096 KB | Output is correct |
40 | Correct | 14 ms | 33236 KB | Output is correct |
41 | Correct | 45 ms | 33172 KB | Output is correct |
42 | Correct | 31 ms | 33088 KB | Output is correct |
43 | Correct | 39 ms | 33172 KB | Output is correct |
44 | Correct | 33 ms | 33184 KB | Output is correct |
45 | Correct | 32 ms | 33108 KB | Output is correct |
46 | Correct | 210 ms | 33172 KB | Output is correct |
47 | Correct | 236 ms | 33168 KB | Output is correct |
48 | Correct | 216 ms | 33172 KB | Output is correct |
49 | Correct | 232 ms | 33168 KB | Output is correct |
50 | Correct | 217 ms | 33168 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 33108 KB | Output is correct |
2 | Correct | 17 ms | 33068 KB | Output is correct |
3 | Correct | 13 ms | 33108 KB | Output is correct |
4 | Correct | 12 ms | 33088 KB | Output is correct |
5 | Correct | 1746 ms | 33176 KB | Output is correct |
6 | Correct | 1780 ms | 33228 KB | Output is correct |
7 | Correct | 1856 ms | 33180 KB | Output is correct |
8 | Correct | 1861 ms | 33176 KB | Output is correct |
9 | Correct | 2060 ms | 33228 KB | Output is correct |
10 | Correct | 1927 ms | 33088 KB | Output is correct |
11 | Correct | 1928 ms | 33168 KB | Output is correct |
12 | Correct | 1954 ms | 33236 KB | Output is correct |
13 | Correct | 13 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33144 KB | Output is correct |
15 | Correct | 14 ms | 33136 KB | Output is correct |
16 | Correct | 12 ms | 33076 KB | Output is correct |
17 | Correct | 15 ms | 33176 KB | Output is correct |
18 | Correct | 15 ms | 33108 KB | Output is correct |
19 | Correct | 16 ms | 33184 KB | Output is correct |
20 | Correct | 16 ms | 33076 KB | Output is correct |
21 | Correct | 14 ms | 33236 KB | Output is correct |
22 | Correct | 15 ms | 33164 KB | Output is correct |
23 | Correct | 15 ms | 33108 KB | Output is correct |
24 | Correct | 14 ms | 33140 KB | Output is correct |
25 | Correct | 15 ms | 33072 KB | Output is correct |
26 | Correct | 15 ms | 33108 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 14 ms | 33144 KB | Output is correct |
29 | Correct | 13 ms | 33108 KB | Output is correct |
30 | Correct | 16 ms | 33192 KB | Output is correct |
31 | Correct | 15 ms | 33236 KB | Output is correct |
32 | Correct | 15 ms | 33180 KB | Output is correct |
33 | Correct | 13 ms | 33108 KB | Output is correct |
34 | Correct | 14 ms | 33156 KB | Output is correct |
35 | Correct | 17 ms | 33224 KB | Output is correct |
36 | Correct | 14 ms | 33108 KB | Output is correct |
37 | Correct | 15 ms | 33088 KB | Output is correct |
38 | Correct | 15 ms | 33116 KB | Output is correct |
39 | Correct | 15 ms | 33096 KB | Output is correct |
40 | Correct | 14 ms | 33236 KB | Output is correct |
41 | Correct | 45 ms | 33172 KB | Output is correct |
42 | Correct | 31 ms | 33088 KB | Output is correct |
43 | Correct | 39 ms | 33172 KB | Output is correct |
44 | Correct | 33 ms | 33184 KB | Output is correct |
45 | Correct | 32 ms | 33108 KB | Output is correct |
46 | Correct | 210 ms | 33172 KB | Output is correct |
47 | Correct | 236 ms | 33168 KB | Output is correct |
48 | Correct | 216 ms | 33172 KB | Output is correct |
49 | Correct | 232 ms | 33168 KB | Output is correct |
50 | Correct | 217 ms | 33168 KB | Output is correct |
51 | Correct | 1710 ms | 33732 KB | Output is correct |
52 | Correct | 1735 ms | 33620 KB | Output is correct |
53 | Correct | 1817 ms | 33744 KB | Output is correct |
54 | Correct | 1874 ms | 33736 KB | Output is correct |
55 | Correct | 15 ms | 33748 KB | Output is correct |
56 | Correct | 209 ms | 33660 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 33124 KB | Output is correct |
2 | Correct | 74 ms | 90004 KB | Output is correct |
3 | Correct | 80 ms | 87688 KB | Output is correct |
4 | Correct | 62 ms | 90000 KB | Output is correct |
5 | Correct | 82 ms | 90060 KB | Output is correct |
6 | Correct | 64 ms | 90024 KB | Output is correct |
7 | Correct | 83 ms | 90004 KB | Output is correct |
8 | Correct | 14 ms | 33108 KB | Output is correct |
9 | Correct | 14 ms | 33188 KB | Output is correct |
10 | Correct | 14 ms | 33068 KB | Output is correct |
11 | Correct | 14 ms | 33188 KB | Output is correct |
12 | Correct | 16 ms | 33160 KB | Output is correct |
13 | Correct | 16 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33108 KB | Output is correct |
15 | Correct | 14 ms | 33108 KB | Output is correct |
16 | Correct | 14 ms | 33232 KB | Output is correct |
17 | Correct | 15 ms | 33716 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 33124 KB | Output is correct |
2 | Correct | 74 ms | 90004 KB | Output is correct |
3 | Correct | 80 ms | 87688 KB | Output is correct |
4 | Correct | 62 ms | 90000 KB | Output is correct |
5 | Correct | 82 ms | 90060 KB | Output is correct |
6 | Correct | 64 ms | 90024 KB | Output is correct |
7 | Correct | 83 ms | 90004 KB | Output is correct |
8 | Correct | 14 ms | 33108 KB | Output is correct |
9 | Correct | 14 ms | 33188 KB | Output is correct |
10 | Correct | 14 ms | 33068 KB | Output is correct |
11 | Correct | 14 ms | 33188 KB | Output is correct |
12 | Correct | 16 ms | 33160 KB | Output is correct |
13 | Correct | 16 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33108 KB | Output is correct |
15 | Correct | 14 ms | 33108 KB | Output is correct |
16 | Correct | 14 ms | 33232 KB | Output is correct |
17 | Correct | 15 ms | 33716 KB | Output is correct |
18 | Correct | 14 ms | 33108 KB | Output is correct |
19 | Correct | 14 ms | 33108 KB | Output is correct |
20 | Correct | 196 ms | 90012 KB | Output is correct |
21 | Correct | 170 ms | 89988 KB | Output is correct |
22 | Correct | 172 ms | 90000 KB | Output is correct |
23 | Correct | 190 ms | 90476 KB | Output is correct |
24 | Correct | 157 ms | 87684 KB | Output is correct |
25 | Correct | 187 ms | 90068 KB | Output is correct |
26 | Correct | 240 ms | 90056 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 13 ms | 33100 KB | Output is correct |
29 | Correct | 15 ms | 33108 KB | Output is correct |
30 | Correct | 11 ms | 33108 KB | Output is correct |
31 | Correct | 15 ms | 33164 KB | Output is correct |
32 | Correct | 14 ms | 33100 KB | Output is correct |
33 | Correct | 14 ms | 33076 KB | Output is correct |
34 | Correct | 12 ms | 33108 KB | Output is correct |
35 | Correct | 12 ms | 33200 KB | Output is correct |
36 | Correct | 16 ms | 33244 KB | Output is correct |
37 | Correct | 11 ms | 33152 KB | Output is correct |
38 | Correct | 12 ms | 33108 KB | Output is correct |
39 | Correct | 11 ms | 33076 KB | Output is correct |
40 | Correct | 15 ms | 33108 KB | Output is correct |
41 | Correct | 14 ms | 33152 KB | Output is correct |
42 | Correct | 14 ms | 33124 KB | Output is correct |
43 | Correct | 12 ms | 33104 KB | Output is correct |
44 | Correct | 12 ms | 33108 KB | Output is correct |
45 | Correct | 18 ms | 33188 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 33124 KB | Output is correct |
2 | Correct | 74 ms | 90004 KB | Output is correct |
3 | Correct | 80 ms | 87688 KB | Output is correct |
4 | Correct | 62 ms | 90000 KB | Output is correct |
5 | Correct | 82 ms | 90060 KB | Output is correct |
6 | Correct | 64 ms | 90024 KB | Output is correct |
7 | Correct | 83 ms | 90004 KB | Output is correct |
8 | Correct | 14 ms | 33108 KB | Output is correct |
9 | Correct | 14 ms | 33188 KB | Output is correct |
10 | Correct | 14 ms | 33068 KB | Output is correct |
11 | Correct | 14 ms | 33188 KB | Output is correct |
12 | Correct | 16 ms | 33160 KB | Output is correct |
13 | Correct | 16 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33108 KB | Output is correct |
15 | Correct | 14 ms | 33108 KB | Output is correct |
16 | Correct | 14 ms | 33232 KB | Output is correct |
17 | Correct | 15 ms | 33716 KB | Output is correct |
18 | Correct | 14 ms | 33108 KB | Output is correct |
19 | Correct | 14 ms | 33108 KB | Output is correct |
20 | Correct | 196 ms | 90012 KB | Output is correct |
21 | Correct | 170 ms | 89988 KB | Output is correct |
22 | Correct | 172 ms | 90000 KB | Output is correct |
23 | Correct | 190 ms | 90476 KB | Output is correct |
24 | Correct | 157 ms | 87684 KB | Output is correct |
25 | Correct | 187 ms | 90068 KB | Output is correct |
26 | Correct | 240 ms | 90056 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 13 ms | 33100 KB | Output is correct |
29 | Correct | 15 ms | 33108 KB | Output is correct |
30 | Correct | 11 ms | 33108 KB | Output is correct |
31 | Correct | 15 ms | 33164 KB | Output is correct |
32 | Correct | 14 ms | 33100 KB | Output is correct |
33 | Correct | 14 ms | 33076 KB | Output is correct |
34 | Correct | 12 ms | 33108 KB | Output is correct |
35 | Correct | 12 ms | 33200 KB | Output is correct |
36 | Correct | 16 ms | 33244 KB | Output is correct |
37 | Correct | 11 ms | 33152 KB | Output is correct |
38 | Correct | 12 ms | 33108 KB | Output is correct |
39 | Correct | 11 ms | 33076 KB | Output is correct |
40 | Correct | 15 ms | 33108 KB | Output is correct |
41 | Correct | 14 ms | 33152 KB | Output is correct |
42 | Correct | 14 ms | 33124 KB | Output is correct |
43 | Correct | 12 ms | 33104 KB | Output is correct |
44 | Correct | 12 ms | 33108 KB | Output is correct |
45 | Correct | 18 ms | 33188 KB | Output is correct |
46 | Correct | 23 ms | 33192 KB | Output is correct |
47 | Correct | 269 ms | 90020 KB | Output is correct |
48 | Correct | 280 ms | 90084 KB | Output is correct |
49 | Correct | 238 ms | 90080 KB | Output is correct |
50 | Correct | 250 ms | 90308 KB | Output is correct |
51 | Correct | 225 ms | 87764 KB | Output is correct |
52 | Correct | 245 ms | 90076 KB | Output is correct |
53 | Correct | 275 ms | 90272 KB | Output is correct |
54 | Correct | 33 ms | 33108 KB | Output is correct |
55 | Correct | 46 ms | 33168 KB | Output is correct |
56 | Correct | 35 ms | 33108 KB | Output is correct |
57 | Correct | 34 ms | 33176 KB | Output is correct |
58 | Correct | 39 ms | 33176 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 33124 KB | Output is correct |
2 | Correct | 74 ms | 90004 KB | Output is correct |
3 | Correct | 80 ms | 87688 KB | Output is correct |
4 | Correct | 62 ms | 90000 KB | Output is correct |
5 | Correct | 82 ms | 90060 KB | Output is correct |
6 | Correct | 64 ms | 90024 KB | Output is correct |
7 | Correct | 83 ms | 90004 KB | Output is correct |
8 | Correct | 14 ms | 33108 KB | Output is correct |
9 | Correct | 14 ms | 33188 KB | Output is correct |
10 | Correct | 14 ms | 33068 KB | Output is correct |
11 | Correct | 14 ms | 33188 KB | Output is correct |
12 | Correct | 16 ms | 33160 KB | Output is correct |
13 | Correct | 16 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33108 KB | Output is correct |
15 | Correct | 14 ms | 33108 KB | Output is correct |
16 | Correct | 14 ms | 33232 KB | Output is correct |
17 | Correct | 15 ms | 33716 KB | Output is correct |
18 | Correct | 14 ms | 33108 KB | Output is correct |
19 | Correct | 14 ms | 33108 KB | Output is correct |
20 | Correct | 196 ms | 90012 KB | Output is correct |
21 | Correct | 170 ms | 89988 KB | Output is correct |
22 | Correct | 172 ms | 90000 KB | Output is correct |
23 | Correct | 190 ms | 90476 KB | Output is correct |
24 | Correct | 157 ms | 87684 KB | Output is correct |
25 | Correct | 187 ms | 90068 KB | Output is correct |
26 | Correct | 240 ms | 90056 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 13 ms | 33100 KB | Output is correct |
29 | Correct | 15 ms | 33108 KB | Output is correct |
30 | Correct | 11 ms | 33108 KB | Output is correct |
31 | Correct | 15 ms | 33164 KB | Output is correct |
32 | Correct | 14 ms | 33100 KB | Output is correct |
33 | Correct | 14 ms | 33076 KB | Output is correct |
34 | Correct | 12 ms | 33108 KB | Output is correct |
35 | Correct | 12 ms | 33200 KB | Output is correct |
36 | Correct | 16 ms | 33244 KB | Output is correct |
37 | Correct | 11 ms | 33152 KB | Output is correct |
38 | Correct | 12 ms | 33108 KB | Output is correct |
39 | Correct | 11 ms | 33076 KB | Output is correct |
40 | Correct | 15 ms | 33108 KB | Output is correct |
41 | Correct | 14 ms | 33152 KB | Output is correct |
42 | Correct | 14 ms | 33124 KB | Output is correct |
43 | Correct | 12 ms | 33104 KB | Output is correct |
44 | Correct | 12 ms | 33108 KB | Output is correct |
45 | Correct | 18 ms | 33188 KB | Output is correct |
46 | Correct | 23 ms | 33192 KB | Output is correct |
47 | Correct | 269 ms | 90020 KB | Output is correct |
48 | Correct | 280 ms | 90084 KB | Output is correct |
49 | Correct | 238 ms | 90080 KB | Output is correct |
50 | Correct | 250 ms | 90308 KB | Output is correct |
51 | Correct | 225 ms | 87764 KB | Output is correct |
52 | Correct | 245 ms | 90076 KB | Output is correct |
53 | Correct | 275 ms | 90272 KB | Output is correct |
54 | Correct | 33 ms | 33108 KB | Output is correct |
55 | Correct | 46 ms | 33168 KB | Output is correct |
56 | Correct | 35 ms | 33108 KB | Output is correct |
57 | Correct | 34 ms | 33176 KB | Output is correct |
58 | Correct | 39 ms | 33176 KB | Output is correct |
59 | Correct | 355 ms | 90392 KB | Output is correct |
60 | Correct | 332 ms | 54988 KB | Output is correct |
61 | Correct | 340 ms | 56512 KB | Output is correct |
62 | Correct | 353 ms | 57404 KB | Output is correct |
63 | Correct | 368 ms | 90084 KB | Output is correct |
64 | Correct | 495 ms | 90044 KB | Output is correct |
65 | Correct | 524 ms | 90032 KB | Output is correct |
66 | Correct | 476 ms | 90404 KB | Output is correct |
67 | Correct | 450 ms | 87684 KB | Output is correct |
68 | Correct | 458 ms | 90020 KB | Output is correct |
69 | Correct | 494 ms | 90400 KB | Output is correct |
70 | Correct | 198 ms | 33172 KB | Output is correct |
71 | Correct | 214 ms | 33168 KB | Output is correct |
72 | Correct | 213 ms | 33168 KB | Output is correct |
73 | Correct | 210 ms | 33088 KB | Output is correct |
74 | Correct | 217 ms | 33108 KB | Output is correct |
75 | Correct | 209 ms | 33736 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 33108 KB | Output is correct |
2 | Correct | 17 ms | 33068 KB | Output is correct |
3 | Correct | 13 ms | 33108 KB | Output is correct |
4 | Correct | 12 ms | 33088 KB | Output is correct |
5 | Correct | 1746 ms | 33176 KB | Output is correct |
6 | Correct | 1780 ms | 33228 KB | Output is correct |
7 | Correct | 1856 ms | 33180 KB | Output is correct |
8 | Correct | 1861 ms | 33176 KB | Output is correct |
9 | Correct | 2060 ms | 33228 KB | Output is correct |
10 | Correct | 1927 ms | 33088 KB | Output is correct |
11 | Correct | 1928 ms | 33168 KB | Output is correct |
12 | Correct | 1954 ms | 33236 KB | Output is correct |
13 | Correct | 13 ms | 33108 KB | Output is correct |
14 | Correct | 14 ms | 33144 KB | Output is correct |
15 | Correct | 14 ms | 33136 KB | Output is correct |
16 | Correct | 12 ms | 33076 KB | Output is correct |
17 | Correct | 15 ms | 33176 KB | Output is correct |
18 | Correct | 15 ms | 33108 KB | Output is correct |
19 | Correct | 16 ms | 33184 KB | Output is correct |
20 | Correct | 16 ms | 33076 KB | Output is correct |
21 | Correct | 14 ms | 33236 KB | Output is correct |
22 | Correct | 15 ms | 33164 KB | Output is correct |
23 | Correct | 15 ms | 33108 KB | Output is correct |
24 | Correct | 14 ms | 33140 KB | Output is correct |
25 | Correct | 15 ms | 33072 KB | Output is correct |
26 | Correct | 15 ms | 33108 KB | Output is correct |
27 | Correct | 14 ms | 33108 KB | Output is correct |
28 | Correct | 14 ms | 33144 KB | Output is correct |
29 | Correct | 13 ms | 33108 KB | Output is correct |
30 | Correct | 16 ms | 33192 KB | Output is correct |
31 | Correct | 15 ms | 33236 KB | Output is correct |
32 | Correct | 15 ms | 33180 KB | Output is correct |
33 | Correct | 13 ms | 33108 KB | Output is correct |
34 | Correct | 14 ms | 33156 KB | Output is correct |
35 | Correct | 17 ms | 33224 KB | Output is correct |
36 | Correct | 14 ms | 33108 KB | Output is correct |
37 | Correct | 15 ms | 33088 KB | Output is correct |
38 | Correct | 15 ms | 33116 KB | Output is correct |
39 | Correct | 15 ms | 33096 KB | Output is correct |
40 | Correct | 14 ms | 33236 KB | Output is correct |
41 | Correct | 45 ms | 33172 KB | Output is correct |
42 | Correct | 31 ms | 33088 KB | Output is correct |
43 | Correct | 39 ms | 33172 KB | Output is correct |
44 | Correct | 33 ms | 33184 KB | Output is correct |
45 | Correct | 32 ms | 33108 KB | Output is correct |
46 | Correct | 210 ms | 33172 KB | Output is correct |
47 | Correct | 236 ms | 33168 KB | Output is correct |
48 | Correct | 216 ms | 33172 KB | Output is correct |
49 | Correct | 232 ms | 33168 KB | Output is correct |
50 | Correct | 217 ms | 33168 KB | Output is correct |
51 | Correct | 1710 ms | 33732 KB | Output is correct |
52 | Correct | 1735 ms | 33620 KB | Output is correct |
53 | Correct | 1817 ms | 33744 KB | Output is correct |
54 | Correct | 1874 ms | 33736 KB | Output is correct |
55 | Correct | 15 ms | 33748 KB | Output is correct |
56 | Correct | 209 ms | 33660 KB | Output is correct |
57 | Correct | 14 ms | 33124 KB | Output is correct |
58 | Correct | 74 ms | 90004 KB | Output is correct |
59 | Correct | 80 ms | 87688 KB | Output is correct |
60 | Correct | 62 ms | 90000 KB | Output is correct |
61 | Correct | 82 ms | 90060 KB | Output is correct |
62 | Correct | 64 ms | 90024 KB | Output is correct |
63 | Correct | 83 ms | 90004 KB | Output is correct |
64 | Correct | 14 ms | 33108 KB | Output is correct |
65 | Correct | 14 ms | 33188 KB | Output is correct |
66 | Correct | 14 ms | 33068 KB | Output is correct |
67 | Correct | 14 ms | 33188 KB | Output is correct |
68 | Correct | 16 ms | 33160 KB | Output is correct |
69 | Correct | 16 ms | 33108 KB | Output is correct |
70 | Correct | 14 ms | 33108 KB | Output is correct |
71 | Correct | 14 ms | 33108 KB | Output is correct |
72 | Correct | 14 ms | 33232 KB | Output is correct |
73 | Correct | 15 ms | 33716 KB | Output is correct |
74 | Correct | 14 ms | 33108 KB | Output is correct |
75 | Correct | 14 ms | 33108 KB | Output is correct |
76 | Correct | 196 ms | 90012 KB | Output is correct |
77 | Correct | 170 ms | 89988 KB | Output is correct |
78 | Correct | 172 ms | 90000 KB | Output is correct |
79 | Correct | 190 ms | 90476 KB | Output is correct |
80 | Correct | 157 ms | 87684 KB | Output is correct |
81 | Correct | 187 ms | 90068 KB | Output is correct |
82 | Correct | 240 ms | 90056 KB | Output is correct |
83 | Correct | 14 ms | 33108 KB | Output is correct |
84 | Correct | 13 ms | 33100 KB | Output is correct |
85 | Correct | 15 ms | 33108 KB | Output is correct |
86 | Correct | 11 ms | 33108 KB | Output is correct |
87 | Correct | 15 ms | 33164 KB | Output is correct |
88 | Correct | 14 ms | 33100 KB | Output is correct |
89 | Correct | 14 ms | 33076 KB | Output is correct |
90 | Correct | 12 ms | 33108 KB | Output is correct |
91 | Correct | 12 ms | 33200 KB | Output is correct |
92 | Correct | 16 ms | 33244 KB | Output is correct |
93 | Correct | 11 ms | 33152 KB | Output is correct |
94 | Correct | 12 ms | 33108 KB | Output is correct |
95 | Correct | 11 ms | 33076 KB | Output is correct |
96 | Correct | 15 ms | 33108 KB | Output is correct |
97 | Correct | 14 ms | 33152 KB | Output is correct |
98 | Correct | 14 ms | 33124 KB | Output is correct |
99 | Correct | 12 ms | 33104 KB | Output is correct |
100 | Correct | 12 ms | 33108 KB | Output is correct |
101 | Correct | 18 ms | 33188 KB | Output is correct |
102 | Correct | 23 ms | 33192 KB | Output is correct |
103 | Correct | 269 ms | 90020 KB | Output is correct |
104 | Correct | 280 ms | 90084 KB | Output is correct |
105 | Correct | 238 ms | 90080 KB | Output is correct |
106 | Correct | 250 ms | 90308 KB | Output is correct |
107 | Correct | 225 ms | 87764 KB | Output is correct |
108 | Correct | 245 ms | 90076 KB | Output is correct |
109 | Correct | 275 ms | 90272 KB | Output is correct |
110 | Correct | 33 ms | 33108 KB | Output is correct |
111 | Correct | 46 ms | 33168 KB | Output is correct |
112 | Correct | 35 ms | 33108 KB | Output is correct |
113 | Correct | 34 ms | 33176 KB | Output is correct |
114 | Correct | 39 ms | 33176 KB | Output is correct |
115 | Correct | 355 ms | 90392 KB | Output is correct |
116 | Correct | 332 ms | 54988 KB | Output is correct |
117 | Correct | 340 ms | 56512 KB | Output is correct |
118 | Correct | 353 ms | 57404 KB | Output is correct |
119 | Correct | 368 ms | 90084 KB | Output is correct |
120 | Correct | 495 ms | 90044 KB | Output is correct |
121 | Correct | 524 ms | 90032 KB | Output is correct |
122 | Correct | 476 ms | 90404 KB | Output is correct |
123 | Correct | 450 ms | 87684 KB | Output is correct |
124 | Correct | 458 ms | 90020 KB | Output is correct |
125 | Correct | 494 ms | 90400 KB | Output is correct |
126 | Correct | 198 ms | 33172 KB | Output is correct |
127 | Correct | 214 ms | 33168 KB | Output is correct |
128 | Correct | 213 ms | 33168 KB | Output is correct |
129 | Correct | 210 ms | 33088 KB | Output is correct |
130 | Correct | 217 ms | 33108 KB | Output is correct |
131 | Correct | 209 ms | 33736 KB | Output is correct |
132 | Correct | 2089 ms | 90404 KB | Output is correct |
133 | Correct | 2087 ms | 90144 KB | Output is correct |
134 | Correct | 2094 ms | 90408 KB | Output is correct |
135 | Correct | 2279 ms | 90272 KB | Output is correct |
136 | Correct | 2207 ms | 90404 KB | Output is correct |
137 | Correct | 1213 ms | 90144 KB | Output is correct |
138 | Correct | 1208 ms | 90400 KB | Output is correct |
139 | Correct | 1973 ms | 90400 KB | Output is correct |
140 | Correct | 1955 ms | 87680 KB | Output is correct |
141 | Correct | 2079 ms | 90084 KB | Output is correct |
142 | Correct | 2141 ms | 90404 KB | Output is correct |