Submission #783857

# Submission time Handle Problem Language Result Execution time Memory
783857 2023-07-15T11:29:34 Z YassineBenYounes Council (JOI23_council) C++17
56 / 100
4000 ms 12488 KB
#include<bits/stdc++.h>
typedef long long ll;
#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx2")
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pbds tree<pair<ll, ll>, null_type, less<pair<ll,ll>>,rb_tree_tag, tree_order_statistics_node_update>
using namespace __gnu_pbds;
#define speed ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using namespace std;
////////////////////Only Clear Code//////////////////////////
void usaco_problem(){
    freopen("milkvisits.in", "r", stdin);
    freopen("milkvisits.out", "w", stdout);
}

void init(){
    #ifndef ONLINE_JUDGE
 
freopen("input.txt", "r", stdin);
 
freopen("output.txt", "w", stdout);
 
#endif // ONLINE_JUDGE
}

const int mx = (1 << 20)+5;
const int LOG = 25;
const ll inf = 1e18;
const ll mod = 1e8;

int arr[mx];

int sum[25];

int freq[mx], cnt[mx];

int done[mx];

void run_case(){
    int n, m;cin >> n >> m; 
    for(int i = 0; i < n;i++){
        for(int j = 0;j < m;j++){
            int a;cin >> a;
            arr[i] += (1 << j) * a;
            sum[j] += a;
        }
        freq[arr[i]]++;
    }
    vector<int> v;
    for(int i = 0; i < (1 << m);i++){
        if(freq[i] != 0){
            v.push_back(i);
        }
        for(int j = 0;j < m;j++){
            if((1 << j) & i){
                cnt[i]++;
            }
        }
    }
    memset(done, -1, sizeof done);
    for(int i = 0; i < n;i++){
        if(done[arr[i]] != -1){
            cout << done[arr[i]] << endl;
            continue;
        }
        int res = 0, ans = 0;
        int x = 0;
        for(int j = 0;j < m;j++){
            bool p =(arr[i] & (1 << j));
            sum[j] -= p;
            if(sum[j] == n/2)x += (1 << j);
            if(sum[j] >= n/2)res++;
        }
        //cout << res << endl;
        for(int mask : v){
            int k = x & mask;
            int target = cnt[k];
            //cout << mask << " " << target << endl;
            if(mask == arr[i]){
                if(freq[mask] >= 2){
                    ans = max(ans, res-target);
                }
            }
            else if(freq[mask] >= 1){
                ans = max(ans, res-target);
            }
        }
        cout << ans << endl;
        for(int j = 0;j < m;j++){
            bool p =(arr[i] & (1 << j));
            sum[j] += p;
        }
        done[arr[i]] = ans;
    }
}

int32_t main(){
    speed;
    int t = 1;
    //cin >> t;
    while(t--){
        run_case();
    }
}

/*
    NEVER GIVE UP!
    DOING SMTHNG IS BETTER THAN DOING NTHNG!!!
    Your Guide when stuck:
    - Continue keyword only after reading the whole input
    - Don't use memset with testcases
    - Check for corner cases(n=1, n=0)
    - Check where you declare n(Be careful of declaring it globally and in main)
*/

Compilation message

council.cpp: In function 'void usaco_problem()':
council.cpp:13:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   13 |     freopen("milkvisits.in", "r", stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
council.cpp:14:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |     freopen("milkvisits.out", "w", stdout);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
council.cpp: In function 'void init()':
council.cpp:20:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   20 | freopen("input.txt", "r", stdin);
      | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
council.cpp:22:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 | freopen("output.txt", "w", stdout);
      | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 2 ms 4436 KB Output is correct
3 Correct 2 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 68 ms 8492 KB Output is correct
6 Correct 68 ms 8504 KB Output is correct
7 Correct 68 ms 8436 KB Output is correct
8 Correct 68 ms 8592 KB Output is correct
9 Correct 76 ms 9516 KB Output is correct
10 Correct 70 ms 8636 KB Output is correct
11 Correct 69 ms 8476 KB Output is correct
12 Correct 69 ms 9488 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 2 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 2 ms 4436 KB Output is correct
22 Correct 2 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 2 ms 4436 KB Output is correct
26 Correct 2 ms 4436 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 3 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 9 ms 4896 KB Output is correct
47 Correct 9 ms 4948 KB Output is correct
48 Correct 9 ms 5020 KB Output is correct
49 Correct 11 ms 4932 KB Output is correct
50 Correct 9 ms 4948 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 2 ms 4436 KB Output is correct
3 Correct 2 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 68 ms 8492 KB Output is correct
6 Correct 68 ms 8504 KB Output is correct
7 Correct 68 ms 8436 KB Output is correct
8 Correct 68 ms 8592 KB Output is correct
9 Correct 76 ms 9516 KB Output is correct
10 Correct 70 ms 8636 KB Output is correct
11 Correct 69 ms 8476 KB Output is correct
12 Correct 69 ms 9488 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 2 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 2 ms 4436 KB Output is correct
22 Correct 2 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 2 ms 4436 KB Output is correct
26 Correct 2 ms 4436 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 3 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 9 ms 4896 KB Output is correct
47 Correct 9 ms 4948 KB Output is correct
48 Correct 9 ms 5020 KB Output is correct
49 Correct 11 ms 4932 KB Output is correct
50 Correct 9 ms 4948 KB Output is correct
51 Correct 74 ms 8440 KB Output is correct
52 Correct 74 ms 8544 KB Output is correct
53 Correct 92 ms 12476 KB Output is correct
54 Correct 100 ms 12488 KB Output is correct
55 Correct 5 ms 4436 KB Output is correct
56 Correct 36 ms 5528 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 317 ms 6164 KB Output is correct
3 Correct 315 ms 6164 KB Output is correct
4 Correct 304 ms 6188 KB Output is correct
5 Correct 319 ms 6092 KB Output is correct
6 Correct 313 ms 6252 KB Output is correct
7 Correct 323 ms 6292 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 2 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 5 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 317 ms 6164 KB Output is correct
3 Correct 315 ms 6164 KB Output is correct
4 Correct 304 ms 6188 KB Output is correct
5 Correct 319 ms 6092 KB Output is correct
6 Correct 313 ms 6252 KB Output is correct
7 Correct 323 ms 6292 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 2 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 5 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 415 ms 6216 KB Output is correct
21 Correct 399 ms 6128 KB Output is correct
22 Correct 407 ms 6208 KB Output is correct
23 Correct 401 ms 6496 KB Output is correct
24 Correct 404 ms 6272 KB Output is correct
25 Correct 416 ms 6164 KB Output is correct
26 Correct 417 ms 6132 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 2 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 2 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 317 ms 6164 KB Output is correct
3 Correct 315 ms 6164 KB Output is correct
4 Correct 304 ms 6188 KB Output is correct
5 Correct 319 ms 6092 KB Output is correct
6 Correct 313 ms 6252 KB Output is correct
7 Correct 323 ms 6292 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 2 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 5 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 415 ms 6216 KB Output is correct
21 Correct 399 ms 6128 KB Output is correct
22 Correct 407 ms 6208 KB Output is correct
23 Correct 401 ms 6496 KB Output is correct
24 Correct 404 ms 6272 KB Output is correct
25 Correct 416 ms 6164 KB Output is correct
26 Correct 417 ms 6132 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 2 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 2 ms 4436 KB Output is correct
46 Correct 2 ms 4436 KB Output is correct
47 Correct 482 ms 6364 KB Output is correct
48 Correct 471 ms 6268 KB Output is correct
49 Correct 454 ms 6284 KB Output is correct
50 Correct 449 ms 6524 KB Output is correct
51 Correct 449 ms 6208 KB Output is correct
52 Correct 857 ms 6348 KB Output is correct
53 Correct 906 ms 6928 KB Output is correct
54 Correct 3 ms 4436 KB Output is correct
55 Correct 3 ms 4436 KB Output is correct
56 Correct 3 ms 4520 KB Output is correct
57 Correct 3 ms 4436 KB Output is correct
58 Correct 2 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 317 ms 6164 KB Output is correct
3 Correct 315 ms 6164 KB Output is correct
4 Correct 304 ms 6188 KB Output is correct
5 Correct 319 ms 6092 KB Output is correct
6 Correct 313 ms 6252 KB Output is correct
7 Correct 323 ms 6292 KB Output is correct
8 Correct 2 ms 4436 KB Output is correct
9 Correct 2 ms 4436 KB Output is correct
10 Correct 2 ms 4436 KB Output is correct
11 Correct 2 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 5 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 415 ms 6216 KB Output is correct
21 Correct 399 ms 6128 KB Output is correct
22 Correct 407 ms 6208 KB Output is correct
23 Correct 401 ms 6496 KB Output is correct
24 Correct 404 ms 6272 KB Output is correct
25 Correct 416 ms 6164 KB Output is correct
26 Correct 417 ms 6132 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 2 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 2 ms 4436 KB Output is correct
46 Correct 2 ms 4436 KB Output is correct
47 Correct 482 ms 6364 KB Output is correct
48 Correct 471 ms 6268 KB Output is correct
49 Correct 454 ms 6284 KB Output is correct
50 Correct 449 ms 6524 KB Output is correct
51 Correct 449 ms 6208 KB Output is correct
52 Correct 857 ms 6348 KB Output is correct
53 Correct 906 ms 6928 KB Output is correct
54 Correct 3 ms 4436 KB Output is correct
55 Correct 3 ms 4436 KB Output is correct
56 Correct 3 ms 4520 KB Output is correct
57 Correct 3 ms 4436 KB Output is correct
58 Correct 2 ms 4436 KB Output is correct
59 Correct 2820 ms 7256 KB Output is correct
60 Execution timed out 4054 ms 6732 KB Time limit exceeded
61 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 2 ms 4436 KB Output is correct
3 Correct 2 ms 4436 KB Output is correct
4 Correct 2 ms 4436 KB Output is correct
5 Correct 68 ms 8492 KB Output is correct
6 Correct 68 ms 8504 KB Output is correct
7 Correct 68 ms 8436 KB Output is correct
8 Correct 68 ms 8592 KB Output is correct
9 Correct 76 ms 9516 KB Output is correct
10 Correct 70 ms 8636 KB Output is correct
11 Correct 69 ms 8476 KB Output is correct
12 Correct 69 ms 9488 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 2 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 2 ms 4436 KB Output is correct
17 Correct 2 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 2 ms 4436 KB Output is correct
21 Correct 2 ms 4436 KB Output is correct
22 Correct 2 ms 4436 KB Output is correct
23 Correct 2 ms 4436 KB Output is correct
24 Correct 2 ms 4436 KB Output is correct
25 Correct 2 ms 4436 KB Output is correct
26 Correct 2 ms 4436 KB Output is correct
27 Correct 2 ms 4436 KB Output is correct
28 Correct 2 ms 4436 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 2 ms 4436 KB Output is correct
32 Correct 2 ms 4436 KB Output is correct
33 Correct 2 ms 4436 KB Output is correct
34 Correct 2 ms 4436 KB Output is correct
35 Correct 2 ms 4436 KB Output is correct
36 Correct 2 ms 4436 KB Output is correct
37 Correct 2 ms 4436 KB Output is correct
38 Correct 2 ms 4436 KB Output is correct
39 Correct 2 ms 4436 KB Output is correct
40 Correct 2 ms 4436 KB Output is correct
41 Correct 3 ms 4436 KB Output is correct
42 Correct 2 ms 4436 KB Output is correct
43 Correct 2 ms 4436 KB Output is correct
44 Correct 2 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 9 ms 4896 KB Output is correct
47 Correct 9 ms 4948 KB Output is correct
48 Correct 9 ms 5020 KB Output is correct
49 Correct 11 ms 4932 KB Output is correct
50 Correct 9 ms 4948 KB Output is correct
51 Correct 74 ms 8440 KB Output is correct
52 Correct 74 ms 8544 KB Output is correct
53 Correct 92 ms 12476 KB Output is correct
54 Correct 100 ms 12488 KB Output is correct
55 Correct 5 ms 4436 KB Output is correct
56 Correct 36 ms 5528 KB Output is correct
57 Correct 2 ms 4436 KB Output is correct
58 Correct 317 ms 6164 KB Output is correct
59 Correct 315 ms 6164 KB Output is correct
60 Correct 304 ms 6188 KB Output is correct
61 Correct 319 ms 6092 KB Output is correct
62 Correct 313 ms 6252 KB Output is correct
63 Correct 323 ms 6292 KB Output is correct
64 Correct 2 ms 4436 KB Output is correct
65 Correct 2 ms 4436 KB Output is correct
66 Correct 2 ms 4436 KB Output is correct
67 Correct 2 ms 4436 KB Output is correct
68 Correct 2 ms 4436 KB Output is correct
69 Correct 2 ms 4436 KB Output is correct
70 Correct 2 ms 4436 KB Output is correct
71 Correct 2 ms 4436 KB Output is correct
72 Correct 2 ms 4436 KB Output is correct
73 Correct 5 ms 4436 KB Output is correct
74 Correct 2 ms 4436 KB Output is correct
75 Correct 2 ms 4436 KB Output is correct
76 Correct 415 ms 6216 KB Output is correct
77 Correct 399 ms 6128 KB Output is correct
78 Correct 407 ms 6208 KB Output is correct
79 Correct 401 ms 6496 KB Output is correct
80 Correct 404 ms 6272 KB Output is correct
81 Correct 416 ms 6164 KB Output is correct
82 Correct 417 ms 6132 KB Output is correct
83 Correct 2 ms 4436 KB Output is correct
84 Correct 2 ms 4436 KB Output is correct
85 Correct 2 ms 4436 KB Output is correct
86 Correct 2 ms 4436 KB Output is correct
87 Correct 2 ms 4436 KB Output is correct
88 Correct 2 ms 4436 KB Output is correct
89 Correct 2 ms 4436 KB Output is correct
90 Correct 2 ms 4436 KB Output is correct
91 Correct 2 ms 4436 KB Output is correct
92 Correct 2 ms 4436 KB Output is correct
93 Correct 2 ms 4436 KB Output is correct
94 Correct 2 ms 4436 KB Output is correct
95 Correct 2 ms 4436 KB Output is correct
96 Correct 2 ms 4436 KB Output is correct
97 Correct 2 ms 4436 KB Output is correct
98 Correct 2 ms 4436 KB Output is correct
99 Correct 2 ms 4436 KB Output is correct
100 Correct 2 ms 4436 KB Output is correct
101 Correct 2 ms 4436 KB Output is correct
102 Correct 2 ms 4436 KB Output is correct
103 Correct 482 ms 6364 KB Output is correct
104 Correct 471 ms 6268 KB Output is correct
105 Correct 454 ms 6284 KB Output is correct
106 Correct 449 ms 6524 KB Output is correct
107 Correct 449 ms 6208 KB Output is correct
108 Correct 857 ms 6348 KB Output is correct
109 Correct 906 ms 6928 KB Output is correct
110 Correct 3 ms 4436 KB Output is correct
111 Correct 3 ms 4436 KB Output is correct
112 Correct 3 ms 4520 KB Output is correct
113 Correct 3 ms 4436 KB Output is correct
114 Correct 2 ms 4436 KB Output is correct
115 Correct 2820 ms 7256 KB Output is correct
116 Execution timed out 4054 ms 6732 KB Time limit exceeded
117 Halted 0 ms 0 KB -