답안 #960430

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
960430 2024-04-10T12:53:05 Z Prieved1 봉쇄 시간 (IOI23_closing) C++17
75 / 100
1000 ms 1617180 KB
#include "closing.h"
#include<iostream>
#include<vector>
#include<queue>
#include<cstring>
using namespace std;
const int MAXN=200010;
vector<pair<int,int>> g[MAXN];
long long distX[MAXN], distY[MAXN];
int dd[MAXN];
vector<int> path;
void dfsx(int at, int p) {
  for(auto [to,w]:g[at]) {
    if(to==p)continue;
    distX[to]=distX[at]+w;
    dfsx(to, at);
  }
}
void dfsy(int at, int p) {
  for(auto [to,w]:g[at]) {
    if(to==p)continue;
    distY[to]=distY[at]+w;
    dfsy(to, at);
    dd[at]|=dd[to];
  }
  if(dd[at])path.push_back(at);
}
int max_score(int N, int X, int Y, long long K,
              std::vector<int> U, std::vector<int> V, std::vector<int> W)
{
  for(int i = 0;i<N-1;i++) {
    g[U[i]].push_back({V[i], W[i]});
    g[V[i]].push_back({U[i], W[i]});
  }
  dd[X]=1;
  dfsx(X, -1);
  dfsy(Y, -1);
  int ans=0;
  // case 1
  {
    int cnt=0;
    priority_queue<long long> pq;
    for(int i = 0;i<N;i++) {
      pq.push(-distX[i]);
      pq.push(-distY[i]);
    }
    long long sum=0;
    while(sum<=K and pq.size()) {
      sum-=pq.top();
      cnt++;
      pq.pop();
      if(sum<=K)ans=max(ans,cnt);
    }
  }
  // case 2
  {
    for(int i = 0;i<N;i++) {
      if(distX[i]>distY[i])swap(distX[i], distY[i]);
    }
    int upd[N];
    memset(upd, 0, sizeof upd);
    for(int i:path) {
      upd[i]++;
    }
    vector<vector<long long>> dp(N+1, vector<long long> (2*N+1));
    for(int i = 0;i<=N;i++)
      for(int j = 0;j<=2*N;j++)
        dp[i][j]=1e18;
    dp[0][0]=0;
    for(int i = 1;i<=N;i++) {
      if(upd[i-1]==0) { 
        for(int j = 0;j<=2*N;j++){
          dp[i][j]=dp[i-1][j];
        }
      }
      for(int j = 1;j<=2*N;j++) {
        dp[i][j]=min(dp[i][j], dp[i-1][j-1]+distX[i-1]);
      }
      for(int j = 2;j<=2*N;j++) {
        dp[i][j]=min(dp[i][j], dp[i-1][j-2]+distY[i-1]);
      }
    }
    for(int j = 0;j<=2*N;j++) {
      if(dp[N][j]<=K){
        ans=max(ans,j);
      }
    }
  }
  for(int i = 0;i<=N;i++) {
    dd[i]=0;
    distX[i]=distY[i]=0;
    g[i].clear();
  }
  path.clear();
  return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 1129 ms 1401748 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6752 KB Output is correct
2 Correct 1 ms 6748 KB Output is correct
3 Correct 2 ms 6748 KB Output is correct
4 Correct 1 ms 6760 KB Output is correct
5 Correct 2 ms 6848 KB Output is correct
6 Correct 2 ms 6744 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6748 KB Output is correct
10 Correct 1 ms 6744 KB Output is correct
11 Correct 2 ms 6744 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6752 KB Output is correct
2 Correct 1 ms 6748 KB Output is correct
3 Correct 2 ms 6748 KB Output is correct
4 Correct 1 ms 6760 KB Output is correct
5 Correct 2 ms 6848 KB Output is correct
6 Correct 2 ms 6744 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6748 KB Output is correct
10 Correct 1 ms 6744 KB Output is correct
11 Correct 2 ms 6744 KB Output is correct
12 Correct 2 ms 6968 KB Output is correct
13 Correct 3 ms 7000 KB Output is correct
14 Correct 2 ms 6748 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 7004 KB Output is correct
17 Correct 1 ms 6828 KB Output is correct
18 Correct 2 ms 6748 KB Output is correct
19 Correct 6 ms 10844 KB Output is correct
20 Correct 4 ms 10072 KB Output is correct
21 Correct 5 ms 10332 KB Output is correct
22 Correct 4 ms 10588 KB Output is correct
23 Correct 4 ms 10844 KB Output is correct
24 Correct 6 ms 10844 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6752 KB Output is correct
2 Correct 1 ms 6748 KB Output is correct
3 Correct 2 ms 6748 KB Output is correct
4 Correct 1 ms 6760 KB Output is correct
5 Correct 2 ms 6848 KB Output is correct
6 Correct 2 ms 6744 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6748 KB Output is correct
10 Correct 1 ms 6744 KB Output is correct
11 Correct 2 ms 6744 KB Output is correct
12 Correct 2 ms 6968 KB Output is correct
13 Correct 3 ms 7000 KB Output is correct
14 Correct 2 ms 6748 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 7004 KB Output is correct
17 Correct 1 ms 6828 KB Output is correct
18 Correct 2 ms 6748 KB Output is correct
19 Correct 6 ms 10844 KB Output is correct
20 Correct 4 ms 10072 KB Output is correct
21 Correct 5 ms 10332 KB Output is correct
22 Correct 4 ms 10588 KB Output is correct
23 Correct 4 ms 10844 KB Output is correct
24 Correct 6 ms 10844 KB Output is correct
25 Correct 4 ms 6744 KB Output is correct
26 Correct 112 ms 148312 KB Output is correct
27 Correct 108 ms 129076 KB Output is correct
28 Correct 99 ms 130936 KB Output is correct
29 Correct 102 ms 141040 KB Output is correct
30 Correct 97 ms 127828 KB Output is correct
31 Correct 112 ms 148248 KB Output is correct
32 Correct 109 ms 148336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 2 ms 6752 KB Output is correct
3 Correct 1 ms 6748 KB Output is correct
4 Correct 2 ms 6748 KB Output is correct
5 Correct 1 ms 6760 KB Output is correct
6 Correct 2 ms 6848 KB Output is correct
7 Correct 1 ms 6744 KB Output is correct
8 Correct 2 ms 6748 KB Output is correct
9 Correct 2 ms 6748 KB Output is correct
10 Correct 1 ms 6748 KB Output is correct
11 Correct 2 ms 6744 KB Output is correct
12 Correct 3 ms 6748 KB Output is correct
13 Correct 2 ms 6828 KB Output is correct
14 Correct 1 ms 6748 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 1 ms 6748 KB Output is correct
17 Correct 1 ms 6744 KB Output is correct
18 Correct 2 ms 6744 KB Output is correct
19 Correct 2 ms 6752 KB Output is correct
20 Correct 2 ms 6744 KB Output is correct
21 Correct 2 ms 6744 KB Output is correct
22 Correct 2 ms 6748 KB Output is correct
23 Correct 2 ms 6844 KB Output is correct
24 Correct 1 ms 6744 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 2 ms 6752 KB Output is correct
3 Correct 1 ms 6748 KB Output is correct
4 Correct 2 ms 6748 KB Output is correct
5 Correct 1 ms 6760 KB Output is correct
6 Correct 2 ms 6848 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6744 KB Output is correct
10 Correct 2 ms 6748 KB Output is correct
11 Correct 1 ms 6744 KB Output is correct
12 Correct 2 ms 6744 KB Output is correct
13 Correct 2 ms 6968 KB Output is correct
14 Correct 3 ms 7000 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 6748 KB Output is correct
17 Correct 2 ms 7004 KB Output is correct
18 Correct 1 ms 6828 KB Output is correct
19 Correct 1 ms 6744 KB Output is correct
20 Correct 2 ms 6748 KB Output is correct
21 Correct 2 ms 6748 KB Output is correct
22 Correct 1 ms 6748 KB Output is correct
23 Correct 2 ms 6744 KB Output is correct
24 Correct 3 ms 6748 KB Output is correct
25 Correct 2 ms 6828 KB Output is correct
26 Correct 1 ms 6748 KB Output is correct
27 Correct 2 ms 6748 KB Output is correct
28 Correct 1 ms 6748 KB Output is correct
29 Correct 1 ms 6744 KB Output is correct
30 Correct 2 ms 6744 KB Output is correct
31 Correct 2 ms 6752 KB Output is correct
32 Correct 2 ms 6744 KB Output is correct
33 Correct 2 ms 6744 KB Output is correct
34 Correct 2 ms 6748 KB Output is correct
35 Correct 2 ms 6844 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 2 ms 6752 KB Output is correct
38 Correct 2 ms 6744 KB Output is correct
39 Correct 2 ms 6964 KB Output is correct
40 Correct 2 ms 6748 KB Output is correct
41 Correct 2 ms 6968 KB Output is correct
42 Correct 2 ms 6748 KB Output is correct
43 Correct 2 ms 6748 KB Output is correct
44 Correct 2 ms 6748 KB Output is correct
45 Correct 2 ms 6836 KB Output is correct
46 Correct 2 ms 6744 KB Output is correct
47 Correct 2 ms 7004 KB Output is correct
48 Correct 2 ms 6748 KB Output is correct
49 Correct 2 ms 6744 KB Output is correct
50 Correct 2 ms 6748 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 2 ms 6752 KB Output is correct
3 Correct 1 ms 6748 KB Output is correct
4 Correct 2 ms 6748 KB Output is correct
5 Correct 1 ms 6760 KB Output is correct
6 Correct 2 ms 6848 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6744 KB Output is correct
10 Correct 2 ms 6748 KB Output is correct
11 Correct 1 ms 6744 KB Output is correct
12 Correct 2 ms 6744 KB Output is correct
13 Correct 2 ms 6968 KB Output is correct
14 Correct 3 ms 7000 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 6748 KB Output is correct
17 Correct 2 ms 7004 KB Output is correct
18 Correct 1 ms 6828 KB Output is correct
19 Correct 2 ms 6748 KB Output is correct
20 Correct 6 ms 10844 KB Output is correct
21 Correct 4 ms 10072 KB Output is correct
22 Correct 5 ms 10332 KB Output is correct
23 Correct 4 ms 10588 KB Output is correct
24 Correct 4 ms 10844 KB Output is correct
25 Correct 6 ms 10844 KB Output is correct
26 Correct 1 ms 6744 KB Output is correct
27 Correct 2 ms 6748 KB Output is correct
28 Correct 2 ms 6748 KB Output is correct
29 Correct 1 ms 6748 KB Output is correct
30 Correct 2 ms 6744 KB Output is correct
31 Correct 3 ms 6748 KB Output is correct
32 Correct 2 ms 6828 KB Output is correct
33 Correct 1 ms 6748 KB Output is correct
34 Correct 2 ms 6748 KB Output is correct
35 Correct 1 ms 6748 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 2 ms 6744 KB Output is correct
38 Correct 2 ms 6752 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 6744 KB Output is correct
41 Correct 2 ms 6748 KB Output is correct
42 Correct 2 ms 6844 KB Output is correct
43 Correct 1 ms 6744 KB Output is correct
44 Correct 2 ms 6752 KB Output is correct
45 Correct 2 ms 6744 KB Output is correct
46 Correct 2 ms 6964 KB Output is correct
47 Correct 2 ms 6748 KB Output is correct
48 Correct 2 ms 6968 KB Output is correct
49 Correct 2 ms 6748 KB Output is correct
50 Correct 2 ms 6748 KB Output is correct
51 Correct 2 ms 6748 KB Output is correct
52 Correct 2 ms 6836 KB Output is correct
53 Correct 2 ms 6744 KB Output is correct
54 Correct 2 ms 7004 KB Output is correct
55 Correct 2 ms 6748 KB Output is correct
56 Correct 2 ms 6744 KB Output is correct
57 Correct 2 ms 6748 KB Output is correct
58 Correct 2 ms 6748 KB Output is correct
59 Correct 2 ms 6988 KB Output is correct
60 Correct 2 ms 7004 KB Output is correct
61 Correct 3 ms 7048 KB Output is correct
62 Correct 2 ms 7048 KB Output is correct
63 Correct 5 ms 10584 KB Output is correct
64 Correct 6 ms 10076 KB Output is correct
65 Correct 4 ms 10076 KB Output is correct
66 Correct 5 ms 10164 KB Output is correct
67 Correct 5 ms 10588 KB Output is correct
68 Correct 4 ms 10164 KB Output is correct
69 Correct 5 ms 10588 KB Output is correct
70 Correct 4 ms 10332 KB Output is correct
71 Correct 5 ms 10332 KB Output is correct
72 Correct 5 ms 10328 KB Output is correct
73 Correct 4 ms 9048 KB Output is correct
74 Correct 3 ms 9308 KB Output is correct
75 Correct 2 ms 7004 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 2 ms 6752 KB Output is correct
3 Correct 1 ms 6748 KB Output is correct
4 Correct 2 ms 6748 KB Output is correct
5 Correct 1 ms 6760 KB Output is correct
6 Correct 2 ms 6848 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6744 KB Output is correct
10 Correct 2 ms 6748 KB Output is correct
11 Correct 1 ms 6744 KB Output is correct
12 Correct 2 ms 6744 KB Output is correct
13 Correct 2 ms 6968 KB Output is correct
14 Correct 3 ms 7000 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 6748 KB Output is correct
17 Correct 2 ms 7004 KB Output is correct
18 Correct 1 ms 6828 KB Output is correct
19 Correct 2 ms 6748 KB Output is correct
20 Correct 6 ms 10844 KB Output is correct
21 Correct 4 ms 10072 KB Output is correct
22 Correct 5 ms 10332 KB Output is correct
23 Correct 4 ms 10588 KB Output is correct
24 Correct 4 ms 10844 KB Output is correct
25 Correct 6 ms 10844 KB Output is correct
26 Correct 4 ms 6744 KB Output is correct
27 Correct 112 ms 148312 KB Output is correct
28 Correct 108 ms 129076 KB Output is correct
29 Correct 99 ms 130936 KB Output is correct
30 Correct 102 ms 141040 KB Output is correct
31 Correct 97 ms 127828 KB Output is correct
32 Correct 112 ms 148248 KB Output is correct
33 Correct 109 ms 148336 KB Output is correct
34 Correct 1 ms 6744 KB Output is correct
35 Correct 2 ms 6748 KB Output is correct
36 Correct 2 ms 6748 KB Output is correct
37 Correct 1 ms 6748 KB Output is correct
38 Correct 2 ms 6744 KB Output is correct
39 Correct 3 ms 6748 KB Output is correct
40 Correct 2 ms 6828 KB Output is correct
41 Correct 1 ms 6748 KB Output is correct
42 Correct 2 ms 6748 KB Output is correct
43 Correct 1 ms 6748 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 2 ms 6744 KB Output is correct
46 Correct 2 ms 6752 KB Output is correct
47 Correct 2 ms 6744 KB Output is correct
48 Correct 2 ms 6744 KB Output is correct
49 Correct 2 ms 6748 KB Output is correct
50 Correct 2 ms 6844 KB Output is correct
51 Correct 1 ms 6744 KB Output is correct
52 Correct 2 ms 6752 KB Output is correct
53 Correct 2 ms 6744 KB Output is correct
54 Correct 2 ms 6964 KB Output is correct
55 Correct 2 ms 6748 KB Output is correct
56 Correct 2 ms 6968 KB Output is correct
57 Correct 2 ms 6748 KB Output is correct
58 Correct 2 ms 6748 KB Output is correct
59 Correct 2 ms 6748 KB Output is correct
60 Correct 2 ms 6836 KB Output is correct
61 Correct 2 ms 6744 KB Output is correct
62 Correct 2 ms 7004 KB Output is correct
63 Correct 2 ms 6748 KB Output is correct
64 Correct 2 ms 6744 KB Output is correct
65 Correct 2 ms 6748 KB Output is correct
66 Correct 2 ms 6748 KB Output is correct
67 Correct 2 ms 6988 KB Output is correct
68 Correct 2 ms 7004 KB Output is correct
69 Correct 3 ms 7048 KB Output is correct
70 Correct 2 ms 7048 KB Output is correct
71 Correct 5 ms 10584 KB Output is correct
72 Correct 6 ms 10076 KB Output is correct
73 Correct 4 ms 10076 KB Output is correct
74 Correct 5 ms 10164 KB Output is correct
75 Correct 5 ms 10588 KB Output is correct
76 Correct 4 ms 10164 KB Output is correct
77 Correct 5 ms 10588 KB Output is correct
78 Correct 4 ms 10332 KB Output is correct
79 Correct 5 ms 10332 KB Output is correct
80 Correct 5 ms 10328 KB Output is correct
81 Correct 4 ms 9048 KB Output is correct
82 Correct 3 ms 9308 KB Output is correct
83 Correct 2 ms 7004 KB Output is correct
84 Correct 3 ms 7004 KB Output is correct
85 Correct 9 ms 8028 KB Output is correct
86 Correct 4 ms 7068 KB Output is correct
87 Correct 6 ms 7268 KB Output is correct
88 Correct 6 ms 7264 KB Output is correct
89 Correct 115 ms 148200 KB Output is correct
90 Correct 99 ms 122480 KB Output is correct
91 Correct 114 ms 146876 KB Output is correct
92 Correct 100 ms 128520 KB Output is correct
93 Correct 99 ms 130896 KB Output is correct
94 Correct 102 ms 134736 KB Output is correct
95 Correct 102 ms 141328 KB Output is correct
96 Correct 93 ms 124456 KB Output is correct
97 Correct 106 ms 140628 KB Output is correct
98 Correct 104 ms 136956 KB Output is correct
99 Correct 115 ms 148192 KB Output is correct
100 Correct 69 ms 75152 KB Output is correct
101 Correct 13 ms 10736 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 2 ms 6752 KB Output is correct
3 Correct 1 ms 6748 KB Output is correct
4 Correct 2 ms 6748 KB Output is correct
5 Correct 1 ms 6760 KB Output is correct
6 Correct 2 ms 6848 KB Output is correct
7 Correct 2 ms 6744 KB Output is correct
8 Correct 2 ms 6744 KB Output is correct
9 Correct 2 ms 6744 KB Output is correct
10 Correct 2 ms 6748 KB Output is correct
11 Correct 1 ms 6744 KB Output is correct
12 Correct 2 ms 6744 KB Output is correct
13 Correct 2 ms 6968 KB Output is correct
14 Correct 3 ms 7000 KB Output is correct
15 Correct 2 ms 6748 KB Output is correct
16 Correct 2 ms 6748 KB Output is correct
17 Correct 2 ms 7004 KB Output is correct
18 Correct 1 ms 6828 KB Output is correct
19 Correct 2 ms 6748 KB Output is correct
20 Correct 6 ms 10844 KB Output is correct
21 Correct 4 ms 10072 KB Output is correct
22 Correct 5 ms 10332 KB Output is correct
23 Correct 4 ms 10588 KB Output is correct
24 Correct 4 ms 10844 KB Output is correct
25 Correct 6 ms 10844 KB Output is correct
26 Correct 4 ms 6744 KB Output is correct
27 Correct 112 ms 148312 KB Output is correct
28 Correct 108 ms 129076 KB Output is correct
29 Correct 99 ms 130936 KB Output is correct
30 Correct 102 ms 141040 KB Output is correct
31 Correct 97 ms 127828 KB Output is correct
32 Correct 112 ms 148248 KB Output is correct
33 Correct 109 ms 148336 KB Output is correct
34 Correct 1 ms 6744 KB Output is correct
35 Correct 2 ms 6748 KB Output is correct
36 Correct 2 ms 6748 KB Output is correct
37 Correct 1 ms 6748 KB Output is correct
38 Correct 2 ms 6744 KB Output is correct
39 Correct 3 ms 6748 KB Output is correct
40 Correct 2 ms 6828 KB Output is correct
41 Correct 1 ms 6748 KB Output is correct
42 Correct 2 ms 6748 KB Output is correct
43 Correct 1 ms 6748 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 2 ms 6744 KB Output is correct
46 Correct 2 ms 6752 KB Output is correct
47 Correct 2 ms 6744 KB Output is correct
48 Correct 2 ms 6744 KB Output is correct
49 Correct 2 ms 6748 KB Output is correct
50 Correct 2 ms 6844 KB Output is correct
51 Correct 1 ms 6744 KB Output is correct
52 Correct 2 ms 6752 KB Output is correct
53 Correct 2 ms 6744 KB Output is correct
54 Correct 2 ms 6964 KB Output is correct
55 Correct 2 ms 6748 KB Output is correct
56 Correct 2 ms 6968 KB Output is correct
57 Correct 2 ms 6748 KB Output is correct
58 Correct 2 ms 6748 KB Output is correct
59 Correct 2 ms 6748 KB Output is correct
60 Correct 2 ms 6836 KB Output is correct
61 Correct 2 ms 6744 KB Output is correct
62 Correct 2 ms 7004 KB Output is correct
63 Correct 2 ms 6748 KB Output is correct
64 Correct 2 ms 6744 KB Output is correct
65 Correct 2 ms 6748 KB Output is correct
66 Correct 2 ms 6748 KB Output is correct
67 Correct 2 ms 6988 KB Output is correct
68 Correct 2 ms 7004 KB Output is correct
69 Correct 3 ms 7048 KB Output is correct
70 Correct 2 ms 7048 KB Output is correct
71 Correct 5 ms 10584 KB Output is correct
72 Correct 6 ms 10076 KB Output is correct
73 Correct 4 ms 10076 KB Output is correct
74 Correct 5 ms 10164 KB Output is correct
75 Correct 5 ms 10588 KB Output is correct
76 Correct 4 ms 10164 KB Output is correct
77 Correct 5 ms 10588 KB Output is correct
78 Correct 4 ms 10332 KB Output is correct
79 Correct 5 ms 10332 KB Output is correct
80 Correct 5 ms 10328 KB Output is correct
81 Correct 4 ms 9048 KB Output is correct
82 Correct 3 ms 9308 KB Output is correct
83 Correct 2 ms 7004 KB Output is correct
84 Correct 3 ms 7004 KB Output is correct
85 Correct 9 ms 8028 KB Output is correct
86 Correct 4 ms 7068 KB Output is correct
87 Correct 6 ms 7268 KB Output is correct
88 Correct 6 ms 7264 KB Output is correct
89 Correct 115 ms 148200 KB Output is correct
90 Correct 99 ms 122480 KB Output is correct
91 Correct 114 ms 146876 KB Output is correct
92 Correct 100 ms 128520 KB Output is correct
93 Correct 99 ms 130896 KB Output is correct
94 Correct 102 ms 134736 KB Output is correct
95 Correct 102 ms 141328 KB Output is correct
96 Correct 93 ms 124456 KB Output is correct
97 Correct 106 ms 140628 KB Output is correct
98 Correct 104 ms 136956 KB Output is correct
99 Correct 115 ms 148192 KB Output is correct
100 Correct 69 ms 75152 KB Output is correct
101 Correct 13 ms 10736 KB Output is correct
102 Correct 194 ms 12080 KB Output is correct
103 Correct 763 ms 14796 KB Output is correct
104 Execution timed out 1110 ms 1617180 KB Time limit exceeded
105 Halted 0 ms 0 KB -