답안 #840249

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
840249 2023-08-31T08:43:02 Z mohammad_kilani 봉쇄 시간 (IOI23_closing) C++17
83 / 100
1000 ms 37180 KB
#include "closing.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;

int n , x , y;

long long k;
const int N = 200010;

vector< pair< int , int > > g[N];

long long a[N] , b[N];

void DFS(int node,int prnt,long long *a,long long dist){
    a[node] = dist;
    for(int i = 0 ;i < (int)g[node].size();i++){
        if(g[node][i].first != prnt)
            DFS(g[node][i].first , node , a , dist + g[node][i].second);
    }
}

vector< bool > onpath;

bool DFS(int node,int prnt){
    onpath[node] = true;
    if(node == y)
    return true;
    for(int i = 0 ;i < (int)g[node].size();i++){
        if(g[node][i].first == prnt) continue;
        if(DFS(g[node][i].first , node))
        return true;
    }
    onpath[node] = false;
    return false;
}

int max_score(int N, int X, int Y, long long K,std::vector<int> U, std::vector<int> V, std::vector<int> W)
{   
    n = N, x = X , y = Y , k = K;
    for(int i = 0;i < n;i++) g[i].clear();
    onpath = vector< bool > (n , 0);
    for(int i = 0 ;i < (int)U.size();i++){
        g[U[i]].push_back(make_pair(V[i] , W[i]));
        g[V[i]].push_back(make_pair(U[i] , W[i]));
    }
    DFS(X , -1 , a , 0);
    DFS(Y, - 1, b , 0);
    vector< long long > v;
    for(int i = 0 ;i < n;i++){
        if(a[i] > b[i]) swap(a[i] , b[i]);
        v.push_back(a[i]);
    }
    sort(v.begin(),v.end());
    int ans = 0;
    long long cur = 0;
    while(ans < (int)v.size() && v[ans] + cur <= k) cur += v[ans++];

    cur = 0;
    int ans2 = 0;

    DFS(X , -1);

    vector< long long > v1 , v3 , v4;
    vector< pair< long long , long long > > v2;

    int has = 0;
    for(int i = 0 ;i < n;i++){
        if(onpath[i]){
            cur += a[i];
            v1.push_back(b[i] - a[i]);
            has++;
        }
        else{
            v2.push_back(make_pair(a[i] , b[i]));
        }
    }

    ans2 = has;

    if(cur > k) return ans;

    sort(v1.begin(),v1.end());
    sort(v2.begin(),v2.end());

    for(int i = 0 ;i <= (int)v2.size();i++){
        v3.clear();
        v4 = v1;
        long long tmpcur = cur;
        for(int j = i ;j < (int)v2.size();j++){
            v3.push_back(v2[j].second);
        }
        for(int j = 0 ;j < i;j++){
            tmpcur += v2[j].first;
            v4.push_back(v2[j].second - v2[j].first);
        }
        if(tmpcur > k) break;
        sort(v3.begin(),v3.end());
        sort(v4.begin(),v4.end());

        long long tmptake = 0;
        int idx = 0;
        for(idx = 0; idx < (int)v4.size();idx++) tmptake += v4[idx];
        
        for(int j = 0 ;j <= (int)v3.size();j++){
            while(tmptake + tmpcur > k && idx > 0){
                tmptake -= v4[--idx];
            }
            if(tmpcur + tmptake > k) break;
            ans2 = max(ans2 , has + i +  idx + j * 2);
            if(j < (int)v3.size())
                tmpcur += v3[j];
        }
    }
    return max(ans , ans2);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 129 ms 33328 KB Output is correct
2 Correct 122 ms 37180 KB Output is correct
3 Correct 58 ms 7580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 3 ms 4948 KB Output is correct
11 Correct 2 ms 4996 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 3 ms 4948 KB Output is correct
11 Correct 2 ms 4996 KB Output is correct
12 Correct 2 ms 4948 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 4 ms 5076 KB Output is correct
20 Correct 2 ms 5076 KB Output is correct
21 Correct 3 ms 5204 KB Output is correct
22 Correct 2 ms 5076 KB Output is correct
23 Correct 3 ms 5076 KB Output is correct
24 Correct 3 ms 5076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 3 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 3 ms 4948 KB Output is correct
11 Correct 2 ms 4996 KB Output is correct
12 Correct 2 ms 4948 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 4 ms 5076 KB Output is correct
20 Correct 2 ms 5076 KB Output is correct
21 Correct 3 ms 5204 KB Output is correct
22 Correct 2 ms 5076 KB Output is correct
23 Correct 3 ms 5076 KB Output is correct
24 Correct 3 ms 5076 KB Output is correct
25 Correct 4 ms 4948 KB Output is correct
26 Correct 78 ms 5460 KB Output is correct
27 Correct 3 ms 5460 KB Output is correct
28 Correct 3 ms 5460 KB Output is correct
29 Correct 30 ms 5520 KB Output is correct
30 Correct 3 ms 5460 KB Output is correct
31 Correct 4 ms 5460 KB Output is correct
32 Correct 3 ms 5460 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 3 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 3 ms 4948 KB Output is correct
10 Correct 2 ms 4948 KB Output is correct
11 Correct 2 ms 4948 KB Output is correct
12 Correct 2 ms 4948 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 3 ms 5120 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 2 ms 4948 KB Output is correct
21 Correct 3 ms 4948 KB Output is correct
22 Correct 3 ms 5072 KB Output is correct
23 Correct 2 ms 4948 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 3 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 2 ms 4948 KB Output is correct
11 Correct 3 ms 4948 KB Output is correct
12 Correct 2 ms 4996 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 2 ms 4948 KB Output is correct
21 Correct 3 ms 4948 KB Output is correct
22 Correct 2 ms 4948 KB Output is correct
23 Correct 2 ms 4948 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 2 ms 4948 KB Output is correct
26 Correct 2 ms 4948 KB Output is correct
27 Correct 2 ms 4948 KB Output is correct
28 Correct 2 ms 4948 KB Output is correct
29 Correct 3 ms 5120 KB Output is correct
30 Correct 2 ms 4948 KB Output is correct
31 Correct 2 ms 4948 KB Output is correct
32 Correct 2 ms 4948 KB Output is correct
33 Correct 3 ms 4948 KB Output is correct
34 Correct 3 ms 5072 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 2 ms 4948 KB Output is correct
37 Correct 3 ms 4948 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 3 ms 5072 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 2 ms 4948 KB Output is correct
44 Correct 2 ms 4948 KB Output is correct
45 Correct 3 ms 4948 KB Output is correct
46 Correct 2 ms 4948 KB Output is correct
47 Correct 2 ms 4948 KB Output is correct
48 Correct 4 ms 4948 KB Output is correct
49 Correct 2 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 3 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 2 ms 4948 KB Output is correct
11 Correct 3 ms 4948 KB Output is correct
12 Correct 2 ms 4996 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 4 ms 5076 KB Output is correct
21 Correct 2 ms 5076 KB Output is correct
22 Correct 3 ms 5204 KB Output is correct
23 Correct 2 ms 5076 KB Output is correct
24 Correct 3 ms 5076 KB Output is correct
25 Correct 3 ms 5076 KB Output is correct
26 Correct 2 ms 4948 KB Output is correct
27 Correct 2 ms 4948 KB Output is correct
28 Correct 3 ms 4948 KB Output is correct
29 Correct 2 ms 4948 KB Output is correct
30 Correct 2 ms 4948 KB Output is correct
31 Correct 2 ms 4948 KB Output is correct
32 Correct 2 ms 4948 KB Output is correct
33 Correct 2 ms 4948 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 3 ms 5120 KB Output is correct
37 Correct 2 ms 4948 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 3 ms 4948 KB Output is correct
41 Correct 3 ms 5072 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 2 ms 4948 KB Output is correct
44 Correct 3 ms 4948 KB Output is correct
45 Correct 2 ms 4948 KB Output is correct
46 Correct 2 ms 4948 KB Output is correct
47 Correct 2 ms 4948 KB Output is correct
48 Correct 3 ms 5072 KB Output is correct
49 Correct 2 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 4948 KB Output is correct
52 Correct 3 ms 4948 KB Output is correct
53 Correct 2 ms 4948 KB Output is correct
54 Correct 2 ms 4948 KB Output is correct
55 Correct 4 ms 4948 KB Output is correct
56 Correct 2 ms 4948 KB Output is correct
57 Correct 2 ms 4948 KB Output is correct
58 Correct 2 ms 4948 KB Output is correct
59 Correct 3 ms 4948 KB Output is correct
60 Correct 2 ms 4948 KB Output is correct
61 Correct 3 ms 4948 KB Output is correct
62 Correct 3 ms 4948 KB Output is correct
63 Correct 4 ms 4948 KB Output is correct
64 Correct 5 ms 4948 KB Output is correct
65 Correct 4 ms 4948 KB Output is correct
66 Correct 2 ms 4944 KB Output is correct
67 Correct 2 ms 4948 KB Output is correct
68 Correct 2 ms 5076 KB Output is correct
69 Correct 2 ms 5076 KB Output is correct
70 Correct 2 ms 5076 KB Output is correct
71 Correct 2 ms 5076 KB Output is correct
72 Correct 5 ms 4948 KB Output is correct
73 Correct 4 ms 4948 KB Output is correct
74 Correct 3 ms 4948 KB Output is correct
75 Correct 3 ms 5072 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 3 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 2 ms 4948 KB Output is correct
11 Correct 3 ms 4948 KB Output is correct
12 Correct 2 ms 4996 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 4 ms 5076 KB Output is correct
21 Correct 2 ms 5076 KB Output is correct
22 Correct 3 ms 5204 KB Output is correct
23 Correct 2 ms 5076 KB Output is correct
24 Correct 3 ms 5076 KB Output is correct
25 Correct 3 ms 5076 KB Output is correct
26 Correct 4 ms 4948 KB Output is correct
27 Correct 78 ms 5460 KB Output is correct
28 Correct 3 ms 5460 KB Output is correct
29 Correct 3 ms 5460 KB Output is correct
30 Correct 30 ms 5520 KB Output is correct
31 Correct 3 ms 5460 KB Output is correct
32 Correct 4 ms 5460 KB Output is correct
33 Correct 3 ms 5460 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 3 ms 4948 KB Output is correct
37 Correct 2 ms 4948 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 2 ms 4948 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 2 ms 4948 KB Output is correct
44 Correct 3 ms 5120 KB Output is correct
45 Correct 2 ms 4948 KB Output is correct
46 Correct 2 ms 4948 KB Output is correct
47 Correct 2 ms 4948 KB Output is correct
48 Correct 3 ms 4948 KB Output is correct
49 Correct 3 ms 5072 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 4948 KB Output is correct
52 Correct 3 ms 4948 KB Output is correct
53 Correct 2 ms 4948 KB Output is correct
54 Correct 2 ms 4948 KB Output is correct
55 Correct 2 ms 4948 KB Output is correct
56 Correct 3 ms 5072 KB Output is correct
57 Correct 2 ms 4948 KB Output is correct
58 Correct 2 ms 4948 KB Output is correct
59 Correct 2 ms 4948 KB Output is correct
60 Correct 3 ms 4948 KB Output is correct
61 Correct 2 ms 4948 KB Output is correct
62 Correct 2 ms 4948 KB Output is correct
63 Correct 4 ms 4948 KB Output is correct
64 Correct 2 ms 4948 KB Output is correct
65 Correct 2 ms 4948 KB Output is correct
66 Correct 2 ms 4948 KB Output is correct
67 Correct 3 ms 4948 KB Output is correct
68 Correct 2 ms 4948 KB Output is correct
69 Correct 3 ms 4948 KB Output is correct
70 Correct 3 ms 4948 KB Output is correct
71 Correct 4 ms 4948 KB Output is correct
72 Correct 5 ms 4948 KB Output is correct
73 Correct 4 ms 4948 KB Output is correct
74 Correct 2 ms 4944 KB Output is correct
75 Correct 2 ms 4948 KB Output is correct
76 Correct 2 ms 5076 KB Output is correct
77 Correct 2 ms 5076 KB Output is correct
78 Correct 2 ms 5076 KB Output is correct
79 Correct 2 ms 5076 KB Output is correct
80 Correct 5 ms 4948 KB Output is correct
81 Correct 4 ms 4948 KB Output is correct
82 Correct 3 ms 4948 KB Output is correct
83 Correct 3 ms 5072 KB Output is correct
84 Correct 4 ms 4948 KB Output is correct
85 Correct 10 ms 5076 KB Output is correct
86 Correct 4 ms 5076 KB Output is correct
87 Correct 7 ms 5072 KB Output is correct
88 Correct 9 ms 4948 KB Output is correct
89 Correct 73 ms 5368 KB Output is correct
90 Correct 85 ms 5332 KB Output is correct
91 Correct 47 ms 5384 KB Output is correct
92 Correct 4 ms 5332 KB Output is correct
93 Correct 3 ms 5332 KB Output is correct
94 Correct 3 ms 5460 KB Output is correct
95 Correct 5 ms 5460 KB Output is correct
96 Correct 4 ms 5332 KB Output is correct
97 Correct 139 ms 5412 KB Output is correct
98 Correct 63 ms 5332 KB Output is correct
99 Correct 81 ms 5332 KB Output is correct
100 Correct 7 ms 5204 KB Output is correct
101 Correct 10 ms 5076 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 3 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 4948 KB Output is correct
8 Correct 2 ms 4948 KB Output is correct
9 Correct 2 ms 4948 KB Output is correct
10 Correct 2 ms 4948 KB Output is correct
11 Correct 3 ms 4948 KB Output is correct
12 Correct 2 ms 4996 KB Output is correct
13 Correct 2 ms 4948 KB Output is correct
14 Correct 2 ms 4948 KB Output is correct
15 Correct 2 ms 4948 KB Output is correct
16 Correct 2 ms 4948 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 4 ms 5076 KB Output is correct
21 Correct 2 ms 5076 KB Output is correct
22 Correct 3 ms 5204 KB Output is correct
23 Correct 2 ms 5076 KB Output is correct
24 Correct 3 ms 5076 KB Output is correct
25 Correct 3 ms 5076 KB Output is correct
26 Correct 4 ms 4948 KB Output is correct
27 Correct 78 ms 5460 KB Output is correct
28 Correct 3 ms 5460 KB Output is correct
29 Correct 3 ms 5460 KB Output is correct
30 Correct 30 ms 5520 KB Output is correct
31 Correct 3 ms 5460 KB Output is correct
32 Correct 4 ms 5460 KB Output is correct
33 Correct 3 ms 5460 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 3 ms 4948 KB Output is correct
37 Correct 2 ms 4948 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 2 ms 4948 KB Output is correct
42 Correct 2 ms 4948 KB Output is correct
43 Correct 2 ms 4948 KB Output is correct
44 Correct 3 ms 5120 KB Output is correct
45 Correct 2 ms 4948 KB Output is correct
46 Correct 2 ms 4948 KB Output is correct
47 Correct 2 ms 4948 KB Output is correct
48 Correct 3 ms 4948 KB Output is correct
49 Correct 3 ms 5072 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 2 ms 4948 KB Output is correct
52 Correct 3 ms 4948 KB Output is correct
53 Correct 2 ms 4948 KB Output is correct
54 Correct 2 ms 4948 KB Output is correct
55 Correct 2 ms 4948 KB Output is correct
56 Correct 3 ms 5072 KB Output is correct
57 Correct 2 ms 4948 KB Output is correct
58 Correct 2 ms 4948 KB Output is correct
59 Correct 2 ms 4948 KB Output is correct
60 Correct 3 ms 4948 KB Output is correct
61 Correct 2 ms 4948 KB Output is correct
62 Correct 2 ms 4948 KB Output is correct
63 Correct 4 ms 4948 KB Output is correct
64 Correct 2 ms 4948 KB Output is correct
65 Correct 2 ms 4948 KB Output is correct
66 Correct 2 ms 4948 KB Output is correct
67 Correct 3 ms 4948 KB Output is correct
68 Correct 2 ms 4948 KB Output is correct
69 Correct 3 ms 4948 KB Output is correct
70 Correct 3 ms 4948 KB Output is correct
71 Correct 4 ms 4948 KB Output is correct
72 Correct 5 ms 4948 KB Output is correct
73 Correct 4 ms 4948 KB Output is correct
74 Correct 2 ms 4944 KB Output is correct
75 Correct 2 ms 4948 KB Output is correct
76 Correct 2 ms 5076 KB Output is correct
77 Correct 2 ms 5076 KB Output is correct
78 Correct 2 ms 5076 KB Output is correct
79 Correct 2 ms 5076 KB Output is correct
80 Correct 5 ms 4948 KB Output is correct
81 Correct 4 ms 4948 KB Output is correct
82 Correct 3 ms 4948 KB Output is correct
83 Correct 3 ms 5072 KB Output is correct
84 Correct 4 ms 4948 KB Output is correct
85 Correct 10 ms 5076 KB Output is correct
86 Correct 4 ms 5076 KB Output is correct
87 Correct 7 ms 5072 KB Output is correct
88 Correct 9 ms 4948 KB Output is correct
89 Correct 73 ms 5368 KB Output is correct
90 Correct 85 ms 5332 KB Output is correct
91 Correct 47 ms 5384 KB Output is correct
92 Correct 4 ms 5332 KB Output is correct
93 Correct 3 ms 5332 KB Output is correct
94 Correct 3 ms 5460 KB Output is correct
95 Correct 5 ms 5460 KB Output is correct
96 Correct 4 ms 5332 KB Output is correct
97 Correct 139 ms 5412 KB Output is correct
98 Correct 63 ms 5332 KB Output is correct
99 Correct 81 ms 5332 KB Output is correct
100 Correct 7 ms 5204 KB Output is correct
101 Correct 10 ms 5076 KB Output is correct
102 Correct 253 ms 7652 KB Output is correct
103 Correct 761 ms 7472 KB Output is correct
104 Execution timed out 1068 ms 36032 KB Time limit exceeded
105 Halted 0 ms 0 KB -