답안 #889601

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
889601 2023-12-20T03:43:19 Z vjudge1 Council (JOI23_council) C++17
56 / 100
4000 ms 60000 KB
#include <bits/stdc++.h>

using namespace std;

#define all(x) x.begin(), x.end()
#define ar array
#define pb push_back
#define ln '\n'
#define int long long

using i64 = long long;

template <class F, class _S>
bool chmin(F &u, const _S &v){
    bool flag = false;
    if ( u > v ){
        u = v; flag |= true;
    }
    return flag;
}

template <class F, class _S>
bool chmax(F &u, const _S &v){
    bool flag = false;
    if ( u < v ){
        u = v; flag |= true;
    }
    return flag;
}

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, m; cin >> n >> m;
    vector <vector<int>> a(n, vector <int> (m));
    for ( auto &u: a ){
        for ( auto &v: u ) cin >> v;
    }
    vector <int> cnt(m);
    for ( int i = 0; i < n; i++ ){
        for ( int j = 0; j < m; j++ ){
            cnt[j] += a[i][j];
        }
    }
    int tot = 0;
    for ( auto &x: cnt ){
        tot += (x >= n / 2);
    }
    const int S = 1 << m;
    vector <ar<int,2>> us(S, {-1, -1});
    for ( int i = 0; i < n; i++ ){
        int b = 0;
        for ( int j = 0; j < m; j++ ){
            b |= a[i][j] << j;
        }
        if ( us[b][0] != -1 ){
            swap(us[b][0], us[b][1]);
        }
        us[b][0] = i;
    }
    if ( m <= 14 ){
        vector <vector<ar<int,2>>> lst(S, vector <ar<int,2>> (m + 1, {-1, -1}));
        auto ins = [&](auto &a, int u){
            if ( a[0] == -1 ){
                a[0] = u;
            } else if ( a[1] == -1 ){
                a[1] = u;
            } else if ( a[0] == a[1] ){
                a[0] = u;
            }
        };
        for ( int i = 0; i < S; i++ ){
            for ( int j = 0; j < S; j++ ){
                int b = __builtin_popcount(i & j);
                if ( us[j][0] != -1 ){
                    ins(lst[i][b], us[j][0]);
                }
                if ( us[j][1] != -1 ){
                    ins(lst[i][b], us[j][1]);
                }
            }
        }
        for ( auto &u: lst ){
            for ( auto &v: u ){
                sort(all(v));
            }
        }
        for ( int i = 0; i < n; i++ ){
            auto tmp = cnt;
            int b = 0, q = tot;
            for ( int j = 0; j < m; j++ ){
                if ( a[i][j] && tmp[j] == n / 2 ){
                    --q;
                } tmp[j] -= a[i][j];
                if ( tmp[j] == n / 2 ){
                    b |= 1 << j;
                }
            }
            for ( int j = 0; j <= m; j++ ){
                auto &tmp = lst[b][j];
                bool flag = false;
                for ( auto k: {0, 1} ){
                    if ( tmp[k] != -1 && tmp[k] != i ){
                        flag = true;
                    }
                }
                if ( flag ){
                    q -= j;
                    break;
                }
            }
            cout << q << ln;
        }
    } else{
        for ( int i = 0; i < n; i++ ){
            int mx = 0, q = tot;
            auto tmp = cnt;
            for ( int j = 0; j < m; j++ ){
                if ( a[i][j] && cnt[j] == n / 2 ){
                    --q;
                } cnt[j] -= a[i][j];
            }
            for ( int j = 0; j < n; j++ ){
                if ( j == i ) continue;
                int tq = q;
                for ( int k = 0; k < m; k++ ){
                    if ( a[j][k] && cnt[k] == n / 2 ){
                        --tq;
                    }
                }
                chmax(mx, tq);
            }
            cout << mx << ln;
            swap(tmp, cnt);
        }
    }

    cout << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 1372 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 3 ms 16732 KB Output is correct
6 Correct 6 ms 16984 KB Output is correct
7 Correct 3 ms 16728 KB Output is correct
8 Correct 3 ms 16732 KB Output is correct
9 Correct 12 ms 16732 KB Output is correct
10 Correct 3 ms 16732 KB Output is correct
11 Correct 3 ms 16732 KB Output is correct
12 Correct 15 ms 16732 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 3 ms 692 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 1 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 3 ms 604 KB Output is correct
31 Correct 4 ms 604 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 420 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 4 ms 604 KB Output is correct
40 Correct 4 ms 600 KB Output is correct
41 Correct 595 ms 5204 KB Output is correct
42 Correct 603 ms 5208 KB Output is correct
43 Correct 585 ms 5212 KB Output is correct
44 Correct 587 ms 5212 KB Output is correct
45 Correct 590 ms 5212 KB Output is correct
46 Correct 1 ms 2648 KB Output is correct
47 Correct 1 ms 2396 KB Output is correct
48 Correct 1 ms 2396 KB Output is correct
49 Correct 1 ms 2396 KB Output is correct
50 Correct 1 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 1372 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 3 ms 16732 KB Output is correct
6 Correct 6 ms 16984 KB Output is correct
7 Correct 3 ms 16728 KB Output is correct
8 Correct 3 ms 16732 KB Output is correct
9 Correct 12 ms 16732 KB Output is correct
10 Correct 3 ms 16732 KB Output is correct
11 Correct 3 ms 16732 KB Output is correct
12 Correct 15 ms 16732 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 3 ms 692 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 1 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 3 ms 604 KB Output is correct
31 Correct 4 ms 604 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 420 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 4 ms 604 KB Output is correct
40 Correct 4 ms 600 KB Output is correct
41 Correct 595 ms 5204 KB Output is correct
42 Correct 603 ms 5208 KB Output is correct
43 Correct 585 ms 5212 KB Output is correct
44 Correct 587 ms 5212 KB Output is correct
45 Correct 590 ms 5212 KB Output is correct
46 Correct 1 ms 2648 KB Output is correct
47 Correct 1 ms 2396 KB Output is correct
48 Correct 1 ms 2396 KB Output is correct
49 Correct 1 ms 2396 KB Output is correct
50 Correct 1 ms 2396 KB Output is correct
51 Correct 258 ms 17460 KB Output is correct
52 Correct 257 ms 17244 KB Output is correct
53 Correct 957 ms 17460 KB Output is correct
54 Correct 1127 ms 17460 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 952 ms 2996 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 59 ms 17252 KB Output is correct
3 Correct 59 ms 18512 KB Output is correct
4 Correct 50 ms 17936 KB Output is correct
5 Correct 66 ms 18552 KB Output is correct
6 Correct 50 ms 17904 KB Output is correct
7 Correct 72 ms 18576 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 59 ms 17252 KB Output is correct
3 Correct 59 ms 18512 KB Output is correct
4 Correct 50 ms 17936 KB Output is correct
5 Correct 66 ms 18552 KB Output is correct
6 Correct 50 ms 17904 KB Output is correct
7 Correct 72 ms 18576 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 352 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 186 ms 42240 KB Output is correct
21 Correct 170 ms 36944 KB Output is correct
22 Correct 170 ms 36712 KB Output is correct
23 Correct 169 ms 42572 KB Output is correct
24 Correct 164 ms 42320 KB Output is correct
25 Correct 193 ms 42428 KB Output is correct
26 Correct 192 ms 42308 KB Output is correct
27 Correct 3 ms 600 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 3 ms 604 KB Output is correct
36 Correct 4 ms 604 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 3 ms 696 KB Output is correct
45 Correct 4 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 59 ms 17252 KB Output is correct
3 Correct 59 ms 18512 KB Output is correct
4 Correct 50 ms 17936 KB Output is correct
5 Correct 66 ms 18552 KB Output is correct
6 Correct 50 ms 17904 KB Output is correct
7 Correct 72 ms 18576 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 352 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 186 ms 42240 KB Output is correct
21 Correct 170 ms 36944 KB Output is correct
22 Correct 170 ms 36712 KB Output is correct
23 Correct 169 ms 42572 KB Output is correct
24 Correct 164 ms 42320 KB Output is correct
25 Correct 193 ms 42428 KB Output is correct
26 Correct 192 ms 42308 KB Output is correct
27 Correct 3 ms 600 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 3 ms 604 KB Output is correct
36 Correct 4 ms 604 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 3 ms 696 KB Output is correct
45 Correct 4 ms 604 KB Output is correct
46 Correct 42 ms 1372 KB Output is correct
47 Correct 985 ms 58572 KB Output is correct
48 Correct 412 ms 50736 KB Output is correct
49 Correct 418 ms 50988 KB Output is correct
50 Correct 804 ms 58876 KB Output is correct
51 Correct 790 ms 58708 KB Output is correct
52 Correct 1094 ms 58632 KB Output is correct
53 Correct 1093 ms 58804 KB Output is correct
54 Correct 598 ms 5212 KB Output is correct
55 Correct 591 ms 5212 KB Output is correct
56 Correct 614 ms 5208 KB Output is correct
57 Correct 604 ms 5212 KB Output is correct
58 Correct 621 ms 5212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 59 ms 17252 KB Output is correct
3 Correct 59 ms 18512 KB Output is correct
4 Correct 50 ms 17936 KB Output is correct
5 Correct 66 ms 18552 KB Output is correct
6 Correct 50 ms 17904 KB Output is correct
7 Correct 72 ms 18576 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 352 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 186 ms 42240 KB Output is correct
21 Correct 170 ms 36944 KB Output is correct
22 Correct 170 ms 36712 KB Output is correct
23 Correct 169 ms 42572 KB Output is correct
24 Correct 164 ms 42320 KB Output is correct
25 Correct 193 ms 42428 KB Output is correct
26 Correct 192 ms 42308 KB Output is correct
27 Correct 3 ms 600 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 3 ms 604 KB Output is correct
36 Correct 4 ms 604 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 348 KB Output is correct
44 Correct 3 ms 696 KB Output is correct
45 Correct 4 ms 604 KB Output is correct
46 Correct 42 ms 1372 KB Output is correct
47 Correct 985 ms 58572 KB Output is correct
48 Correct 412 ms 50736 KB Output is correct
49 Correct 418 ms 50988 KB Output is correct
50 Correct 804 ms 58876 KB Output is correct
51 Correct 790 ms 58708 KB Output is correct
52 Correct 1094 ms 58632 KB Output is correct
53 Correct 1093 ms 58804 KB Output is correct
54 Correct 598 ms 5212 KB Output is correct
55 Correct 591 ms 5212 KB Output is correct
56 Correct 614 ms 5208 KB Output is correct
57 Correct 604 ms 5212 KB Output is correct
58 Correct 621 ms 5212 KB Output is correct
59 Execution timed out 4030 ms 60000 KB Time limit exceeded
60 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 38 ms 1372 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 3 ms 16732 KB Output is correct
6 Correct 6 ms 16984 KB Output is correct
7 Correct 3 ms 16728 KB Output is correct
8 Correct 3 ms 16732 KB Output is correct
9 Correct 12 ms 16732 KB Output is correct
10 Correct 3 ms 16732 KB Output is correct
11 Correct 3 ms 16732 KB Output is correct
12 Correct 15 ms 16732 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 3 ms 692 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 1 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 3 ms 604 KB Output is correct
31 Correct 4 ms 604 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 0 ms 420 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 348 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 348 KB Output is correct
39 Correct 4 ms 604 KB Output is correct
40 Correct 4 ms 600 KB Output is correct
41 Correct 595 ms 5204 KB Output is correct
42 Correct 603 ms 5208 KB Output is correct
43 Correct 585 ms 5212 KB Output is correct
44 Correct 587 ms 5212 KB Output is correct
45 Correct 590 ms 5212 KB Output is correct
46 Correct 1 ms 2648 KB Output is correct
47 Correct 1 ms 2396 KB Output is correct
48 Correct 1 ms 2396 KB Output is correct
49 Correct 1 ms 2396 KB Output is correct
50 Correct 1 ms 2396 KB Output is correct
51 Correct 258 ms 17460 KB Output is correct
52 Correct 257 ms 17244 KB Output is correct
53 Correct 957 ms 17460 KB Output is correct
54 Correct 1127 ms 17460 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 952 ms 2996 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 59 ms 17252 KB Output is correct
59 Correct 59 ms 18512 KB Output is correct
60 Correct 50 ms 17936 KB Output is correct
61 Correct 66 ms 18552 KB Output is correct
62 Correct 50 ms 17904 KB Output is correct
63 Correct 72 ms 18576 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 ms 344 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 352 KB Output is correct
75 Correct 1 ms 348 KB Output is correct
76 Correct 186 ms 42240 KB Output is correct
77 Correct 170 ms 36944 KB Output is correct
78 Correct 170 ms 36712 KB Output is correct
79 Correct 169 ms 42572 KB Output is correct
80 Correct 164 ms 42320 KB Output is correct
81 Correct 193 ms 42428 KB Output is correct
82 Correct 192 ms 42308 KB Output is correct
83 Correct 3 ms 600 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 1 ms 348 KB Output is correct
91 Correct 3 ms 604 KB Output is correct
92 Correct 4 ms 604 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 348 KB Output is correct
100 Correct 3 ms 696 KB Output is correct
101 Correct 4 ms 604 KB Output is correct
102 Correct 42 ms 1372 KB Output is correct
103 Correct 985 ms 58572 KB Output is correct
104 Correct 412 ms 50736 KB Output is correct
105 Correct 418 ms 50988 KB Output is correct
106 Correct 804 ms 58876 KB Output is correct
107 Correct 790 ms 58708 KB Output is correct
108 Correct 1094 ms 58632 KB Output is correct
109 Correct 1093 ms 58804 KB Output is correct
110 Correct 598 ms 5212 KB Output is correct
111 Correct 591 ms 5212 KB Output is correct
112 Correct 614 ms 5208 KB Output is correct
113 Correct 604 ms 5212 KB Output is correct
114 Correct 621 ms 5212 KB Output is correct
115 Execution timed out 4030 ms 60000 KB Time limit exceeded
116 Halted 0 ms 0 KB -