답안 #1061381

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1061381 2024-08-16T08:29:38 Z mychecksedad 봉쇄 시간 (IOI23_closing) C++17
75 / 100
155 ms 13652 KB
#include "closing.h"
#pragma optimize ("O3")
// #pragma target ("avx2")
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define all(x) x.begin(),x.end()
#define ll long long
#define ff first
#define ss second
const int N = 3005;
const ll INF = 1e18;
 
int sz[N];
vector<pair<int, ll>> g[N];
ll val1[N], val2[N], dp[N][N];
void dfs(int v, int p, vector<ll> &D){
  for(auto U: g[v]){
    int u = U.ff;
    if(u != p){
      D[u] = D[v] + U.ss;
      dfs(u, v, D);
    }
  }
}
vector<int> euler;
bool pre(int v, int p, int t){
  euler.pb(v);
  if(v == t){
    return 1;
  }
  for(auto U: g[v]){
    int u = U.ff;
    if(u != p){
      bool ok = pre(u, v, t);
      if(ok) return 1;
    }
  }
  euler.pop_back();
  return 0;
}
void p(int v, int pp){
  sz[v] = 1;
  for(auto U: g[v]){
    int u = U.ff;
    if(u != pp && val2[u] != -1){
      p(u, v);
      sz[v] += sz[u];
    }
  }
}
void calc(int v, int p){
  dp[v][0] = 0;
  dp[v][1] = val1[v];
  dp[v][2] = (val2[v] == -1 ? INF : val2[v]) + val1[v];
  for(int j = 3; j <= sz[v]*2; ++j) dp[v][j] = INF;
  sz[v] = 2;
  for(auto U: g[v]){
    int u = U.ff;
    if(u != p && val2[u] != -1){
      calc(u, v);
      sz[v] += sz[u];
      for(int j = sz[v]; j >= 1; --j){
        for(int l = 1; l <= min(j, sz[u]); ++l){
          dp[v][j] = min(dp[v][j], dp[v][j - l] + dp[u][l]);
        }
      }
    }
  }
}
 
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; ++i) g[i].clear();
  euler.clear();
  for(int i = 0; i < n - 1; ++i){
    g[V[i]].pb({U[i], W[i]});
    g[U[i]].pb({V[i], W[i]});
  }
  if(X > Y) swap(X,Y);
  vector<ll> D1(n), D2(n);
  dfs(X, X, D1);
  dfs(Y, Y, D2);
 
 
  vector<ll> A;
  for(int i =0 ; i < n; ++i) A.pb(D1[i]); 
  for(int i =0 ; i < n; ++i) A.pb(D2[i]); 
  sort(all(A));
  int anss = 0; ll tot = 0;
  for(int i = 0; i < A.size(); ++i){
    if(tot + A[i] <= K) tot += A[i], ++anss;
  }
 
  pre(X, X, Y);
  vector<bool> s(n);
  for(int v: euler) s[v] = 1;
 
  for(int i = 0; i < n; ++i){
    if(s[i]){
      val1[i] = max(D1[i], D2[i]) - min(D1[i], D2[i]);
      val2[i] = -1;
      K -= min(D1[i], D2[i]);
    }else{
      val1[i] = min(D1[i], D2[i]);
      val2[i] = max(D1[i], D2[i]) - val1[i];
    }
  }
  if(K<0) return anss;
  // for(int v: euler){
  //   p(v, v);
  //   calc(v, v);
  // }
  vector<ll> DP(2*n + 5, INF);
  DP[0] = 0;
  int S = 0;
  for(int i = 0; i < n; ++i){
    S+=2;
    // cout << val1[i] << ' '
    for(int j = S; j >= 1; --j){
      DP[j] = min(DP[j], DP[j - 1] + val1[i]);
      if(j > 1 && val2[i] != -1)
        DP[j] = min(DP[j], DP[j - 2] + val2[i] + val1[i]);
    }
  }
  // for(int u: euler){
  //   S += sz[u];
  //   for(int j = S; j >= 1; --j){
  //     for(int l = 1; l <= min(sz[u], j); ++l){
  //       DP[j] = min(DP[j], DP[j - l] + dp[u][l]);
  //     }
  //   }
  // }
  for(int i = 2*n; i >= 0; --i){
    if(DP[i] <= K){
      return max(i + int(euler.size()), anss);
    }
  }
 
  return anss;
}

Compilation message

closing.cpp:2: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
    2 | #pragma optimize ("O3")
      | 
closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:90:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   90 |   for(int i = 0; i < A.size(); ++i){
      |                  ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Runtime error 44 ms 10064 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 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 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 612 KB Output is correct
22 Correct 0 ms 612 KB Output is correct
23 Correct 1 ms 616 KB Output is correct
24 Correct 0 ms 528 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 1 ms 344 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 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 612 KB Output is correct
22 Correct 0 ms 612 KB Output is correct
23 Correct 1 ms 616 KB Output is correct
24 Correct 0 ms 528 KB Output is correct
25 Correct 2 ms 608 KB Output is correct
26 Correct 12 ms 1116 KB Output is correct
27 Correct 12 ms 864 KB Output is correct
28 Correct 9 ms 1112 KB Output is correct
29 Correct 11 ms 1116 KB Output is correct
30 Correct 1 ms 860 KB Output is correct
31 Correct 2 ms 1116 KB Output is correct
32 Correct 3 ms 1116 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 516 KB Output is correct
10 Correct 0 ms 344 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 0 ms 348 KB Output is correct
15 Correct 0 ms 516 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 1 ms 344 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 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 344 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 516 KB Output is correct
22 Correct 0 ms 344 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 0 ms 348 KB Output is correct
27 Correct 0 ms 516 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 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 0 ms 348 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 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 1 ms 348 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 520 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 1 ms 344 KB Output is correct
49 Correct 0 ms 524 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 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 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 612 KB Output is correct
23 Correct 0 ms 612 KB Output is correct
24 Correct 1 ms 616 KB Output is correct
25 Correct 0 ms 528 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 516 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 0 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 0 ms 348 KB Output is correct
34 Correct 0 ms 516 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 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 1 ms 344 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 1 ms 348 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 520 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 1 ms 344 KB Output is correct
56 Correct 0 ms 524 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 352 KB Output is correct
60 Correct 1 ms 360 KB Output is correct
61 Correct 1 ms 356 KB Output is correct
62 Correct 1 ms 356 KB Output is correct
63 Correct 1 ms 616 KB Output is correct
64 Correct 1 ms 360 KB Output is correct
65 Correct 1 ms 356 KB Output is correct
66 Correct 1 ms 360 KB Output is correct
67 Correct 0 ms 360 KB Output is correct
68 Correct 1 ms 616 KB Output is correct
69 Correct 1 ms 556 KB Output is correct
70 Correct 1 ms 360 KB Output is correct
71 Correct 1 ms 616 KB Output is correct
72 Correct 1 ms 616 KB Output is correct
73 Correct 1 ms 360 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 1 ms 360 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 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 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 612 KB Output is correct
23 Correct 0 ms 612 KB Output is correct
24 Correct 1 ms 616 KB Output is correct
25 Correct 0 ms 528 KB Output is correct
26 Correct 2 ms 608 KB Output is correct
27 Correct 12 ms 1116 KB Output is correct
28 Correct 12 ms 864 KB Output is correct
29 Correct 9 ms 1112 KB Output is correct
30 Correct 11 ms 1116 KB Output is correct
31 Correct 1 ms 860 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 3 ms 1116 KB Output is correct
34 Correct 0 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 516 KB Output is correct
37 Correct 0 ms 344 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 0 ms 516 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 520 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 0 ms 524 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 1 ms 352 KB Output is correct
68 Correct 1 ms 360 KB Output is correct
69 Correct 1 ms 356 KB Output is correct
70 Correct 1 ms 356 KB Output is correct
71 Correct 1 ms 616 KB Output is correct
72 Correct 1 ms 360 KB Output is correct
73 Correct 1 ms 356 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 0 ms 360 KB Output is correct
76 Correct 1 ms 616 KB Output is correct
77 Correct 1 ms 556 KB Output is correct
78 Correct 1 ms 360 KB Output is correct
79 Correct 1 ms 616 KB Output is correct
80 Correct 1 ms 616 KB Output is correct
81 Correct 1 ms 360 KB Output is correct
82 Correct 1 ms 360 KB Output is correct
83 Correct 1 ms 360 KB Output is correct
84 Correct 1 ms 612 KB Output is correct
85 Correct 2 ms 572 KB Output is correct
86 Correct 1 ms 532 KB Output is correct
87 Correct 2 ms 600 KB Output is correct
88 Correct 2 ms 604 KB Output is correct
89 Correct 12 ms 1008 KB Output is correct
90 Correct 11 ms 860 KB Output is correct
91 Correct 14 ms 860 KB Output is correct
92 Correct 11 ms 860 KB Output is correct
93 Correct 2 ms 860 KB Output is correct
94 Correct 18 ms 1144 KB Output is correct
95 Correct 11 ms 1112 KB Output is correct
96 Correct 2 ms 856 KB Output is correct
97 Correct 11 ms 860 KB Output is correct
98 Correct 11 ms 980 KB Output is correct
99 Correct 12 ms 856 KB Output is correct
100 Correct 7 ms 860 KB Output is correct
101 Correct 3 ms 572 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 1 ms 344 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 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 612 KB Output is correct
23 Correct 0 ms 612 KB Output is correct
24 Correct 1 ms 616 KB Output is correct
25 Correct 0 ms 528 KB Output is correct
26 Correct 2 ms 608 KB Output is correct
27 Correct 12 ms 1116 KB Output is correct
28 Correct 12 ms 864 KB Output is correct
29 Correct 9 ms 1112 KB Output is correct
30 Correct 11 ms 1116 KB Output is correct
31 Correct 1 ms 860 KB Output is correct
32 Correct 2 ms 1116 KB Output is correct
33 Correct 3 ms 1116 KB Output is correct
34 Correct 0 ms 344 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 516 KB Output is correct
37 Correct 0 ms 344 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 0 ms 516 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 348 KB Output is correct
57 Correct 0 ms 348 KB Output is correct
58 Correct 0 ms 348 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 520 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 0 ms 524 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 1 ms 352 KB Output is correct
68 Correct 1 ms 360 KB Output is correct
69 Correct 1 ms 356 KB Output is correct
70 Correct 1 ms 356 KB Output is correct
71 Correct 1 ms 616 KB Output is correct
72 Correct 1 ms 360 KB Output is correct
73 Correct 1 ms 356 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 0 ms 360 KB Output is correct
76 Correct 1 ms 616 KB Output is correct
77 Correct 1 ms 556 KB Output is correct
78 Correct 1 ms 360 KB Output is correct
79 Correct 1 ms 616 KB Output is correct
80 Correct 1 ms 616 KB Output is correct
81 Correct 1 ms 360 KB Output is correct
82 Correct 1 ms 360 KB Output is correct
83 Correct 1 ms 360 KB Output is correct
84 Correct 1 ms 612 KB Output is correct
85 Correct 2 ms 572 KB Output is correct
86 Correct 1 ms 532 KB Output is correct
87 Correct 2 ms 600 KB Output is correct
88 Correct 2 ms 604 KB Output is correct
89 Correct 12 ms 1008 KB Output is correct
90 Correct 11 ms 860 KB Output is correct
91 Correct 14 ms 860 KB Output is correct
92 Correct 11 ms 860 KB Output is correct
93 Correct 2 ms 860 KB Output is correct
94 Correct 18 ms 1144 KB Output is correct
95 Correct 11 ms 1112 KB Output is correct
96 Correct 2 ms 856 KB Output is correct
97 Correct 11 ms 860 KB Output is correct
98 Correct 11 ms 980 KB Output is correct
99 Correct 12 ms 856 KB Output is correct
100 Correct 7 ms 860 KB Output is correct
101 Correct 3 ms 572 KB Output is correct
102 Correct 70 ms 5648 KB Output is correct
103 Correct 155 ms 5620 KB Output is correct
104 Runtime error 39 ms 13652 KB Execution killed with signal 11
105 Halted 0 ms 0 KB -