Submission #783855

# Submission time Handle Problem Language Result Execution time Memory
783855 2023-07-15T11:27:38 Z YassineBenYounes Council (JOI23_council) C++17
56 / 100
4000 ms 12500 KB
#include<bits/stdc++.h>
typedef long long ll;
#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx,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 4456 KB Output is correct
4 Correct 3 ms 4436 KB Output is correct
5 Correct 74 ms 8536 KB Output is correct
6 Correct 69 ms 8448 KB Output is correct
7 Correct 72 ms 8456 KB Output is correct
8 Correct 73 ms 8512 KB Output is correct
9 Correct 69 ms 9480 KB Output is correct
10 Correct 68 ms 8492 KB Output is correct
11 Correct 79 ms 8576 KB Output is correct
12 Correct 69 ms 9548 KB Output is correct
13 Correct 2 ms 4368 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 3 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 4396 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 3 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 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 10 ms 4948 KB Output is correct
47 Correct 11 ms 4948 KB Output is correct
48 Correct 11 ms 4948 KB Output is correct
49 Correct 10 ms 4940 KB Output is correct
50 Correct 10 ms 4952 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 4456 KB Output is correct
4 Correct 3 ms 4436 KB Output is correct
5 Correct 74 ms 8536 KB Output is correct
6 Correct 69 ms 8448 KB Output is correct
7 Correct 72 ms 8456 KB Output is correct
8 Correct 73 ms 8512 KB Output is correct
9 Correct 69 ms 9480 KB Output is correct
10 Correct 68 ms 8492 KB Output is correct
11 Correct 79 ms 8576 KB Output is correct
12 Correct 69 ms 9548 KB Output is correct
13 Correct 2 ms 4368 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 3 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 4396 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 3 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 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 10 ms 4948 KB Output is correct
47 Correct 11 ms 4948 KB Output is correct
48 Correct 11 ms 4948 KB Output is correct
49 Correct 10 ms 4940 KB Output is correct
50 Correct 10 ms 4952 KB Output is correct
51 Correct 73 ms 8456 KB Output is correct
52 Correct 72 ms 8544 KB Output is correct
53 Correct 104 ms 12500 KB Output is correct
54 Correct 105 ms 12488 KB Output is correct
55 Correct 5 ms 4436 KB Output is correct
56 Correct 34 ms 5536 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 334 ms 6152 KB Output is correct
3 Correct 357 ms 6180 KB Output is correct
4 Correct 307 ms 6092 KB Output is correct
5 Correct 326 ms 6192 KB Output is correct
6 Correct 306 ms 6188 KB Output is correct
7 Correct 322 ms 6200 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 3 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 334 ms 6152 KB Output is correct
3 Correct 357 ms 6180 KB Output is correct
4 Correct 307 ms 6092 KB Output is correct
5 Correct 326 ms 6192 KB Output is correct
6 Correct 306 ms 6188 KB Output is correct
7 Correct 322 ms 6200 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 3 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 429 ms 6144 KB Output is correct
21 Correct 410 ms 6196 KB Output is correct
22 Correct 446 ms 6180 KB Output is correct
23 Correct 452 ms 6580 KB Output is correct
24 Correct 402 ms 6092 KB Output is correct
25 Correct 470 ms 6124 KB Output is correct
26 Correct 428 ms 6212 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 334 ms 6152 KB Output is correct
3 Correct 357 ms 6180 KB Output is correct
4 Correct 307 ms 6092 KB Output is correct
5 Correct 326 ms 6192 KB Output is correct
6 Correct 306 ms 6188 KB Output is correct
7 Correct 322 ms 6200 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 3 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 429 ms 6144 KB Output is correct
21 Correct 410 ms 6196 KB Output is correct
22 Correct 446 ms 6180 KB Output is correct
23 Correct 452 ms 6580 KB Output is correct
24 Correct 402 ms 6092 KB Output is correct
25 Correct 470 ms 6124 KB Output is correct
26 Correct 428 ms 6212 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 493 ms 6236 KB Output is correct
48 Correct 522 ms 6220 KB Output is correct
49 Correct 458 ms 6244 KB Output is correct
50 Correct 463 ms 6516 KB Output is correct
51 Correct 457 ms 6156 KB Output is correct
52 Correct 873 ms 6360 KB Output is correct
53 Correct 896 ms 6648 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 4436 KB Output is correct
57 Correct 3 ms 4436 KB Output is correct
58 Correct 3 ms 4436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 4436 KB Output is correct
2 Correct 334 ms 6152 KB Output is correct
3 Correct 357 ms 6180 KB Output is correct
4 Correct 307 ms 6092 KB Output is correct
5 Correct 326 ms 6192 KB Output is correct
6 Correct 306 ms 6188 KB Output is correct
7 Correct 322 ms 6200 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 3 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 429 ms 6144 KB Output is correct
21 Correct 410 ms 6196 KB Output is correct
22 Correct 446 ms 6180 KB Output is correct
23 Correct 452 ms 6580 KB Output is correct
24 Correct 402 ms 6092 KB Output is correct
25 Correct 470 ms 6124 KB Output is correct
26 Correct 428 ms 6212 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 493 ms 6236 KB Output is correct
48 Correct 522 ms 6220 KB Output is correct
49 Correct 458 ms 6244 KB Output is correct
50 Correct 463 ms 6516 KB Output is correct
51 Correct 457 ms 6156 KB Output is correct
52 Correct 873 ms 6360 KB Output is correct
53 Correct 896 ms 6648 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 4436 KB Output is correct
57 Correct 3 ms 4436 KB Output is correct
58 Correct 3 ms 4436 KB Output is correct
59 Correct 2837 ms 7224 KB Output is correct
60 Execution timed out 4077 ms 6460 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 4456 KB Output is correct
4 Correct 3 ms 4436 KB Output is correct
5 Correct 74 ms 8536 KB Output is correct
6 Correct 69 ms 8448 KB Output is correct
7 Correct 72 ms 8456 KB Output is correct
8 Correct 73 ms 8512 KB Output is correct
9 Correct 69 ms 9480 KB Output is correct
10 Correct 68 ms 8492 KB Output is correct
11 Correct 79 ms 8576 KB Output is correct
12 Correct 69 ms 9548 KB Output is correct
13 Correct 2 ms 4368 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 3 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 4396 KB Output is correct
29 Correct 2 ms 4436 KB Output is correct
30 Correct 2 ms 4436 KB Output is correct
31 Correct 3 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 3 ms 4436 KB Output is correct
44 Correct 3 ms 4436 KB Output is correct
45 Correct 3 ms 4436 KB Output is correct
46 Correct 10 ms 4948 KB Output is correct
47 Correct 11 ms 4948 KB Output is correct
48 Correct 11 ms 4948 KB Output is correct
49 Correct 10 ms 4940 KB Output is correct
50 Correct 10 ms 4952 KB Output is correct
51 Correct 73 ms 8456 KB Output is correct
52 Correct 72 ms 8544 KB Output is correct
53 Correct 104 ms 12500 KB Output is correct
54 Correct 105 ms 12488 KB Output is correct
55 Correct 5 ms 4436 KB Output is correct
56 Correct 34 ms 5536 KB Output is correct
57 Correct 2 ms 4436 KB Output is correct
58 Correct 334 ms 6152 KB Output is correct
59 Correct 357 ms 6180 KB Output is correct
60 Correct 307 ms 6092 KB Output is correct
61 Correct 326 ms 6192 KB Output is correct
62 Correct 306 ms 6188 KB Output is correct
63 Correct 322 ms 6200 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 3 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 429 ms 6144 KB Output is correct
77 Correct 410 ms 6196 KB Output is correct
78 Correct 446 ms 6180 KB Output is correct
79 Correct 452 ms 6580 KB Output is correct
80 Correct 402 ms 6092 KB Output is correct
81 Correct 470 ms 6124 KB Output is correct
82 Correct 428 ms 6212 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 493 ms 6236 KB Output is correct
104 Correct 522 ms 6220 KB Output is correct
105 Correct 458 ms 6244 KB Output is correct
106 Correct 463 ms 6516 KB Output is correct
107 Correct 457 ms 6156 KB Output is correct
108 Correct 873 ms 6360 KB Output is correct
109 Correct 896 ms 6648 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 4436 KB Output is correct
113 Correct 3 ms 4436 KB Output is correct
114 Correct 3 ms 4436 KB Output is correct
115 Correct 2837 ms 7224 KB Output is correct
116 Execution timed out 4077 ms 6460 KB Time limit exceeded
117 Halted 0 ms 0 KB -