Submission #826731

# Submission time Handle Problem Language Result Execution time Memory
826731 2023-08-16T01:05:08 Z Username4132 Radio Towers (IOI22_towers) C++17
100 / 100
1076 ms 65968 KB
#include "towers.h"

#include<iostream>
#include <vector>
#include<algorithm>
using namespace std;
using pii = pair<int, int>;
#define forn(i, n) for(int i=0; i<(int)n; ++i)
#define dforn(i, n) for(int i=(int)n-1; i>=0; --i)
#define PB push_back
#define F first
#define S second
#define MP make_pair

const int MAXN = 100010, INF = 1000000010;

struct node{
  vector<pii> vec;
  vector<int> mn, mx;
  node(){};
  node(int value, int pos){
    vec.PB({value, pos});
    mn.PB(pos);
    mx.PB(pos);
  }
  node(node& a, node& b){
    vec.resize(a.vec.size() + b.vec.size());
    mn.resize(vec.size());
    mx.resize(vec.size());
    merge(a.vec.begin(), a.vec.end(), b.vec.begin(), b.vec.end(), vec.begin());
    int mi=MAXN, ma=-1;
    dforn(i, vec.size()){
      mi=min(mi, vec[i].S);
      ma=max(ma, vec[i].S);
      mn[i]=mi, mx[i]=ma;
    }
  }
};

int n, arr[MAXN], ml[MAXN], mr[MAXN], res[MAXN], sp[19][MAXN];
node tr[2*MAXN];

int spmin(int l, int r){
  if(r<=l) return INF;
  int sz = 8*sizeof(int) - __builtin_clz(r-l) - 1;
  return min(sp[sz][l], sp[sz][r-(1<<sz)]);
}

pair<int, pii> query(int l, int r, int x){
  int ret=0, mn=INF, mx=-1;
  for(l+=n, r+=n; l<r; l>>=1, r>>=1){
    if(l&1){
      auto itr = lower_bound(tr[l].vec.begin(), tr[l].vec.end(), MP(x, -1));
      int pos = (int)(itr - tr[l].vec.begin());
      ret += (int)(tr[l].vec.end() - itr);
      if(itr!=tr[l].vec.end()) mn=min(mn, tr[l].mn[pos]), mx=max(mx, tr[l].mx[pos]);
      ++l;
    }
    if(r&1){
      --r;
      auto itr = lower_bound(tr[r].vec.begin(), tr[r].vec.end(), MP(x, -1));
      int pos = (int)(itr - tr[r].vec.begin());
      ret += (int)(tr[r].vec.end() - itr);
      if(itr!=tr[r].vec.end()) mn=min(mn, tr[r].mn[pos]), mx=max(mx, tr[r].mx[pos]);
    }
  }
  return {ret, {mn, mx}};
}

void init(int N, vector<int> H) {
  n=N;
  forn(i, n) arr[i]=H[i];
  forn(i, n) sp[0][i]=H[i];
  forn(i, 18) forn(j, n-(1<<i)) sp[i+1][j]=min(sp[i][j], sp[i][j+(1<<i)]);

  forn(i, n){
    int x;
    for(x=i-1; x!=-1 && H[x]<H[i]; x=ml[x]);
    ml[i]=x;
  }

  dforn(i, n){
    int x;
    for(x=i+1; x!=n && H[x]<H[i]; x=mr[x]);
    mr[i]=x;
  }
  forn(i, n){
    int l = ml[i], r = mr[i];
    int a = H[i] - spmin(l+1, i);
    int b = H[i] - spmin(i+1, r);
    res[i] = min(a, b);
  }
  forn(i, n) tr[n+i]=node(res[i], i);
  dforn(i, n) tr[i]=node(tr[i<<1], tr[i<<1|1]);
}

int max_towers(int L, int R, int D) {
  pair<int, pii> ans = query(L, R+1, D);
  if(ans.F == 0) return 1;
  int sa = (spmin(L, ans.S.F) > arr[ans.S.F] - D);
  int sb = (spmin(ans.S.S+1, R+1) > arr[ans.S.S] - D);
  return max(0, ans.F - sa - sb) + 1;
}
# Verdict Execution time Memory Grader output
1 Correct 392 ms 44232 KB Output is correct
2 Correct 939 ms 65892 KB Output is correct
3 Correct 748 ms 65860 KB Output is correct
4 Correct 844 ms 65908 KB Output is correct
5 Correct 802 ms 65860 KB Output is correct
6 Correct 887 ms 65840 KB Output is correct
7 Correct 795 ms 65864 KB Output is correct
8 Correct 7 ms 14416 KB Output is correct
9 Correct 8 ms 15184 KB Output is correct
10 Correct 8 ms 15184 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14544 KB Output is correct
2 Correct 8 ms 15184 KB Output is correct
3 Correct 8 ms 15264 KB Output is correct
4 Correct 8 ms 15184 KB Output is correct
5 Correct 8 ms 15184 KB Output is correct
6 Correct 8 ms 15184 KB Output is correct
7 Correct 8 ms 15268 KB Output is correct
8 Correct 8 ms 15172 KB Output is correct
9 Correct 9 ms 15184 KB Output is correct
10 Correct 10 ms 15184 KB Output is correct
11 Correct 8 ms 15184 KB Output is correct
12 Correct 7 ms 14428 KB Output is correct
13 Correct 8 ms 15184 KB Output is correct
14 Correct 8 ms 15232 KB Output is correct
15 Correct 8 ms 15184 KB Output is correct
16 Correct 8 ms 15184 KB Output is correct
17 Correct 8 ms 15184 KB Output is correct
18 Correct 8 ms 15184 KB Output is correct
19 Correct 8 ms 15184 KB Output is correct
20 Correct 8 ms 15184 KB Output is correct
21 Correct 8 ms 15184 KB Output is correct
22 Correct 8 ms 15184 KB Output is correct
23 Correct 9 ms 15184 KB Output is correct
24 Correct 8 ms 15184 KB Output is correct
25 Correct 9 ms 14728 KB Output is correct
26 Correct 8 ms 15184 KB Output is correct
27 Correct 8 ms 15192 KB Output is correct
28 Correct 8 ms 15184 KB Output is correct
29 Correct 7 ms 15184 KB Output is correct
30 Correct 7 ms 15184 KB Output is correct
31 Correct 7 ms 15184 KB Output is correct
32 Correct 8 ms 15244 KB Output is correct
33 Correct 8 ms 15184 KB Output is correct
34 Correct 7 ms 15272 KB Output is correct
35 Correct 8 ms 15256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14544 KB Output is correct
2 Correct 8 ms 15184 KB Output is correct
3 Correct 8 ms 15264 KB Output is correct
4 Correct 8 ms 15184 KB Output is correct
5 Correct 8 ms 15184 KB Output is correct
6 Correct 8 ms 15184 KB Output is correct
7 Correct 8 ms 15268 KB Output is correct
8 Correct 8 ms 15172 KB Output is correct
9 Correct 9 ms 15184 KB Output is correct
10 Correct 10 ms 15184 KB Output is correct
11 Correct 8 ms 15184 KB Output is correct
12 Correct 7 ms 14428 KB Output is correct
13 Correct 8 ms 15184 KB Output is correct
14 Correct 8 ms 15232 KB Output is correct
15 Correct 8 ms 15184 KB Output is correct
16 Correct 8 ms 15184 KB Output is correct
17 Correct 8 ms 15184 KB Output is correct
18 Correct 8 ms 15184 KB Output is correct
19 Correct 8 ms 15184 KB Output is correct
20 Correct 8 ms 15184 KB Output is correct
21 Correct 8 ms 15184 KB Output is correct
22 Correct 8 ms 15184 KB Output is correct
23 Correct 9 ms 15184 KB Output is correct
24 Correct 8 ms 15184 KB Output is correct
25 Correct 9 ms 14728 KB Output is correct
26 Correct 8 ms 15184 KB Output is correct
27 Correct 8 ms 15192 KB Output is correct
28 Correct 8 ms 15184 KB Output is correct
29 Correct 7 ms 15184 KB Output is correct
30 Correct 7 ms 15184 KB Output is correct
31 Correct 7 ms 15184 KB Output is correct
32 Correct 8 ms 15244 KB Output is correct
33 Correct 8 ms 15184 KB Output is correct
34 Correct 7 ms 15272 KB Output is correct
35 Correct 8 ms 15256 KB Output is correct
36 Correct 49 ms 47096 KB Output is correct
37 Correct 72 ms 65848 KB Output is correct
38 Correct 82 ms 65920 KB Output is correct
39 Correct 71 ms 65856 KB Output is correct
40 Correct 73 ms 65864 KB Output is correct
41 Correct 72 ms 65872 KB Output is correct
42 Correct 71 ms 65900 KB Output is correct
43 Correct 74 ms 65860 KB Output is correct
44 Correct 72 ms 65868 KB Output is correct
45 Correct 64 ms 65840 KB Output is correct
46 Correct 70 ms 65840 KB Output is correct
47 Correct 72 ms 65876 KB Output is correct
48 Correct 71 ms 65908 KB Output is correct
49 Correct 70 ms 65864 KB Output is correct
50 Correct 70 ms 65832 KB Output is correct
51 Correct 69 ms 65852 KB Output is correct
52 Correct 71 ms 65840 KB Output is correct
53 Correct 78 ms 65892 KB Output is correct
54 Correct 74 ms 65968 KB Output is correct
55 Correct 71 ms 65844 KB Output is correct
56 Correct 64 ms 65844 KB Output is correct
57 Correct 70 ms 64016 KB Output is correct
58 Correct 72 ms 65900 KB Output is correct
59 Correct 71 ms 65828 KB Output is correct
60 Correct 70 ms 65864 KB Output is correct
61 Correct 71 ms 65900 KB Output is correct
62 Correct 71 ms 65848 KB Output is correct
63 Correct 71 ms 65860 KB Output is correct
64 Correct 67 ms 65884 KB Output is correct
65 Correct 64 ms 65848 KB Output is correct
66 Correct 63 ms 65876 KB Output is correct
67 Correct 65 ms 65848 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 703 ms 65476 KB Output is correct
2 Correct 969 ms 65808 KB Output is correct
3 Correct 956 ms 65936 KB Output is correct
4 Correct 789 ms 65860 KB Output is correct
5 Correct 771 ms 65868 KB Output is correct
6 Correct 871 ms 65908 KB Output is correct
7 Correct 806 ms 65864 KB Output is correct
8 Correct 867 ms 65848 KB Output is correct
9 Correct 891 ms 65868 KB Output is correct
10 Correct 960 ms 65808 KB Output is correct
11 Correct 804 ms 65844 KB Output is correct
12 Correct 866 ms 65864 KB Output is correct
13 Correct 896 ms 65848 KB Output is correct
14 Correct 7 ms 14416 KB Output is correct
15 Correct 8 ms 15184 KB Output is correct
16 Correct 8 ms 15240 KB Output is correct
17 Correct 72 ms 65876 KB Output is correct
18 Correct 71 ms 65888 KB Output is correct
19 Correct 90 ms 65832 KB Output is correct
20 Correct 65 ms 65828 KB Output is correct
21 Correct 65 ms 65908 KB Output is correct
22 Correct 72 ms 65860 KB Output is correct
23 Correct 72 ms 65876 KB Output is correct
24 Correct 72 ms 65844 KB Output is correct
25 Correct 64 ms 65848 KB Output is correct
26 Correct 65 ms 65856 KB Output is correct
27 Correct 8 ms 15200 KB Output is correct
28 Correct 8 ms 15184 KB Output is correct
29 Correct 8 ms 15164 KB Output is correct
30 Correct 8 ms 15184 KB Output is correct
31 Correct 8 ms 15184 KB Output is correct
32 Correct 8 ms 15184 KB Output is correct
33 Correct 8 ms 15184 KB Output is correct
34 Correct 8 ms 15272 KB Output is correct
35 Correct 8 ms 15148 KB Output is correct
36 Correct 8 ms 15184 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 233 ms 25680 KB Output is correct
2 Correct 742 ms 65860 KB Output is correct
3 Correct 797 ms 65848 KB Output is correct
4 Correct 805 ms 65888 KB Output is correct
5 Correct 829 ms 65844 KB Output is correct
6 Correct 829 ms 65852 KB Output is correct
7 Correct 937 ms 65856 KB Output is correct
8 Correct 659 ms 65824 KB Output is correct
9 Correct 741 ms 65844 KB Output is correct
10 Correct 707 ms 65840 KB Output is correct
11 Correct 807 ms 65816 KB Output is correct
12 Correct 71 ms 65896 KB Output is correct
13 Correct 72 ms 65908 KB Output is correct
14 Correct 73 ms 65868 KB Output is correct
15 Correct 63 ms 65864 KB Output is correct
16 Correct 64 ms 65924 KB Output is correct
17 Correct 71 ms 64040 KB Output is correct
18 Correct 71 ms 65836 KB Output is correct
19 Correct 81 ms 65856 KB Output is correct
20 Correct 70 ms 65824 KB Output is correct
21 Correct 70 ms 65888 KB Output is correct
22 Correct 70 ms 65868 KB Output is correct
23 Correct 74 ms 65888 KB Output is correct
24 Correct 66 ms 65840 KB Output is correct
25 Correct 63 ms 65844 KB Output is correct
26 Correct 71 ms 65864 KB Output is correct
27 Correct 63 ms 65872 KB Output is correct
28 Correct 8 ms 15276 KB Output is correct
29 Correct 8 ms 15184 KB Output is correct
30 Correct 8 ms 15184 KB Output is correct
31 Correct 8 ms 15164 KB Output is correct
32 Correct 8 ms 15188 KB Output is correct
33 Correct 7 ms 14800 KB Output is correct
34 Correct 9 ms 15152 KB Output is correct
35 Correct 8 ms 15184 KB Output is correct
36 Correct 8 ms 15184 KB Output is correct
37 Correct 8 ms 15184 KB Output is correct
38 Correct 8 ms 15184 KB Output is correct
39 Correct 8 ms 15264 KB Output is correct
40 Correct 8 ms 15184 KB Output is correct
41 Correct 7 ms 15184 KB Output is correct
42 Correct 8 ms 15184 KB Output is correct
43 Correct 8 ms 15184 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 14544 KB Output is correct
2 Correct 8 ms 15184 KB Output is correct
3 Correct 8 ms 15264 KB Output is correct
4 Correct 8 ms 15184 KB Output is correct
5 Correct 8 ms 15184 KB Output is correct
6 Correct 8 ms 15184 KB Output is correct
7 Correct 8 ms 15268 KB Output is correct
8 Correct 8 ms 15172 KB Output is correct
9 Correct 9 ms 15184 KB Output is correct
10 Correct 10 ms 15184 KB Output is correct
11 Correct 8 ms 15184 KB Output is correct
12 Correct 7 ms 14428 KB Output is correct
13 Correct 8 ms 15184 KB Output is correct
14 Correct 8 ms 15232 KB Output is correct
15 Correct 8 ms 15184 KB Output is correct
16 Correct 8 ms 15184 KB Output is correct
17 Correct 8 ms 15184 KB Output is correct
18 Correct 8 ms 15184 KB Output is correct
19 Correct 8 ms 15184 KB Output is correct
20 Correct 8 ms 15184 KB Output is correct
21 Correct 8 ms 15184 KB Output is correct
22 Correct 8 ms 15184 KB Output is correct
23 Correct 9 ms 15184 KB Output is correct
24 Correct 8 ms 15184 KB Output is correct
25 Correct 9 ms 14728 KB Output is correct
26 Correct 8 ms 15184 KB Output is correct
27 Correct 8 ms 15192 KB Output is correct
28 Correct 8 ms 15184 KB Output is correct
29 Correct 7 ms 15184 KB Output is correct
30 Correct 7 ms 15184 KB Output is correct
31 Correct 7 ms 15184 KB Output is correct
32 Correct 8 ms 15244 KB Output is correct
33 Correct 8 ms 15184 KB Output is correct
34 Correct 7 ms 15272 KB Output is correct
35 Correct 8 ms 15256 KB Output is correct
36 Correct 49 ms 47096 KB Output is correct
37 Correct 72 ms 65848 KB Output is correct
38 Correct 82 ms 65920 KB Output is correct
39 Correct 71 ms 65856 KB Output is correct
40 Correct 73 ms 65864 KB Output is correct
41 Correct 72 ms 65872 KB Output is correct
42 Correct 71 ms 65900 KB Output is correct
43 Correct 74 ms 65860 KB Output is correct
44 Correct 72 ms 65868 KB Output is correct
45 Correct 64 ms 65840 KB Output is correct
46 Correct 70 ms 65840 KB Output is correct
47 Correct 72 ms 65876 KB Output is correct
48 Correct 71 ms 65908 KB Output is correct
49 Correct 70 ms 65864 KB Output is correct
50 Correct 70 ms 65832 KB Output is correct
51 Correct 69 ms 65852 KB Output is correct
52 Correct 71 ms 65840 KB Output is correct
53 Correct 78 ms 65892 KB Output is correct
54 Correct 74 ms 65968 KB Output is correct
55 Correct 71 ms 65844 KB Output is correct
56 Correct 64 ms 65844 KB Output is correct
57 Correct 70 ms 64016 KB Output is correct
58 Correct 72 ms 65900 KB Output is correct
59 Correct 71 ms 65828 KB Output is correct
60 Correct 70 ms 65864 KB Output is correct
61 Correct 71 ms 65900 KB Output is correct
62 Correct 71 ms 65848 KB Output is correct
63 Correct 71 ms 65860 KB Output is correct
64 Correct 67 ms 65884 KB Output is correct
65 Correct 64 ms 65848 KB Output is correct
66 Correct 63 ms 65876 KB Output is correct
67 Correct 65 ms 65848 KB Output is correct
68 Correct 703 ms 65476 KB Output is correct
69 Correct 969 ms 65808 KB Output is correct
70 Correct 956 ms 65936 KB Output is correct
71 Correct 789 ms 65860 KB Output is correct
72 Correct 771 ms 65868 KB Output is correct
73 Correct 871 ms 65908 KB Output is correct
74 Correct 806 ms 65864 KB Output is correct
75 Correct 867 ms 65848 KB Output is correct
76 Correct 891 ms 65868 KB Output is correct
77 Correct 960 ms 65808 KB Output is correct
78 Correct 804 ms 65844 KB Output is correct
79 Correct 866 ms 65864 KB Output is correct
80 Correct 896 ms 65848 KB Output is correct
81 Correct 7 ms 14416 KB Output is correct
82 Correct 8 ms 15184 KB Output is correct
83 Correct 8 ms 15240 KB Output is correct
84 Correct 72 ms 65876 KB Output is correct
85 Correct 71 ms 65888 KB Output is correct
86 Correct 90 ms 65832 KB Output is correct
87 Correct 65 ms 65828 KB Output is correct
88 Correct 65 ms 65908 KB Output is correct
89 Correct 72 ms 65860 KB Output is correct
90 Correct 72 ms 65876 KB Output is correct
91 Correct 72 ms 65844 KB Output is correct
92 Correct 64 ms 65848 KB Output is correct
93 Correct 65 ms 65856 KB Output is correct
94 Correct 8 ms 15200 KB Output is correct
95 Correct 8 ms 15184 KB Output is correct
96 Correct 8 ms 15164 KB Output is correct
97 Correct 8 ms 15184 KB Output is correct
98 Correct 8 ms 15184 KB Output is correct
99 Correct 8 ms 15184 KB Output is correct
100 Correct 8 ms 15184 KB Output is correct
101 Correct 8 ms 15272 KB Output is correct
102 Correct 8 ms 15148 KB Output is correct
103 Correct 8 ms 15184 KB Output is correct
104 Correct 628 ms 59832 KB Output is correct
105 Correct 1076 ms 65868 KB Output is correct
106 Correct 916 ms 65820 KB Output is correct
107 Correct 870 ms 65848 KB Output is correct
108 Correct 878 ms 65844 KB Output is correct
109 Correct 871 ms 65828 KB Output is correct
110 Correct 907 ms 65864 KB Output is correct
111 Correct 875 ms 65880 KB Output is correct
112 Correct 922 ms 65864 KB Output is correct
113 Correct 734 ms 65820 KB Output is correct
114 Correct 890 ms 65868 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 392 ms 44232 KB Output is correct
2 Correct 939 ms 65892 KB Output is correct
3 Correct 748 ms 65860 KB Output is correct
4 Correct 844 ms 65908 KB Output is correct
5 Correct 802 ms 65860 KB Output is correct
6 Correct 887 ms 65840 KB Output is correct
7 Correct 795 ms 65864 KB Output is correct
8 Correct 7 ms 14416 KB Output is correct
9 Correct 8 ms 15184 KB Output is correct
10 Correct 8 ms 15184 KB Output is correct
11 Correct 7 ms 14544 KB Output is correct
12 Correct 8 ms 15184 KB Output is correct
13 Correct 8 ms 15264 KB Output is correct
14 Correct 8 ms 15184 KB Output is correct
15 Correct 8 ms 15184 KB Output is correct
16 Correct 8 ms 15184 KB Output is correct
17 Correct 8 ms 15268 KB Output is correct
18 Correct 8 ms 15172 KB Output is correct
19 Correct 9 ms 15184 KB Output is correct
20 Correct 10 ms 15184 KB Output is correct
21 Correct 8 ms 15184 KB Output is correct
22 Correct 7 ms 14428 KB Output is correct
23 Correct 8 ms 15184 KB Output is correct
24 Correct 8 ms 15232 KB Output is correct
25 Correct 8 ms 15184 KB Output is correct
26 Correct 8 ms 15184 KB Output is correct
27 Correct 8 ms 15184 KB Output is correct
28 Correct 8 ms 15184 KB Output is correct
29 Correct 8 ms 15184 KB Output is correct
30 Correct 8 ms 15184 KB Output is correct
31 Correct 8 ms 15184 KB Output is correct
32 Correct 8 ms 15184 KB Output is correct
33 Correct 9 ms 15184 KB Output is correct
34 Correct 8 ms 15184 KB Output is correct
35 Correct 9 ms 14728 KB Output is correct
36 Correct 8 ms 15184 KB Output is correct
37 Correct 8 ms 15192 KB Output is correct
38 Correct 8 ms 15184 KB Output is correct
39 Correct 7 ms 15184 KB Output is correct
40 Correct 7 ms 15184 KB Output is correct
41 Correct 7 ms 15184 KB Output is correct
42 Correct 8 ms 15244 KB Output is correct
43 Correct 8 ms 15184 KB Output is correct
44 Correct 7 ms 15272 KB Output is correct
45 Correct 8 ms 15256 KB Output is correct
46 Correct 49 ms 47096 KB Output is correct
47 Correct 72 ms 65848 KB Output is correct
48 Correct 82 ms 65920 KB Output is correct
49 Correct 71 ms 65856 KB Output is correct
50 Correct 73 ms 65864 KB Output is correct
51 Correct 72 ms 65872 KB Output is correct
52 Correct 71 ms 65900 KB Output is correct
53 Correct 74 ms 65860 KB Output is correct
54 Correct 72 ms 65868 KB Output is correct
55 Correct 64 ms 65840 KB Output is correct
56 Correct 70 ms 65840 KB Output is correct
57 Correct 72 ms 65876 KB Output is correct
58 Correct 71 ms 65908 KB Output is correct
59 Correct 70 ms 65864 KB Output is correct
60 Correct 70 ms 65832 KB Output is correct
61 Correct 69 ms 65852 KB Output is correct
62 Correct 71 ms 65840 KB Output is correct
63 Correct 78 ms 65892 KB Output is correct
64 Correct 74 ms 65968 KB Output is correct
65 Correct 71 ms 65844 KB Output is correct
66 Correct 64 ms 65844 KB Output is correct
67 Correct 70 ms 64016 KB Output is correct
68 Correct 72 ms 65900 KB Output is correct
69 Correct 71 ms 65828 KB Output is correct
70 Correct 70 ms 65864 KB Output is correct
71 Correct 71 ms 65900 KB Output is correct
72 Correct 71 ms 65848 KB Output is correct
73 Correct 71 ms 65860 KB Output is correct
74 Correct 67 ms 65884 KB Output is correct
75 Correct 64 ms 65848 KB Output is correct
76 Correct 63 ms 65876 KB Output is correct
77 Correct 65 ms 65848 KB Output is correct
78 Correct 703 ms 65476 KB Output is correct
79 Correct 969 ms 65808 KB Output is correct
80 Correct 956 ms 65936 KB Output is correct
81 Correct 789 ms 65860 KB Output is correct
82 Correct 771 ms 65868 KB Output is correct
83 Correct 871 ms 65908 KB Output is correct
84 Correct 806 ms 65864 KB Output is correct
85 Correct 867 ms 65848 KB Output is correct
86 Correct 891 ms 65868 KB Output is correct
87 Correct 960 ms 65808 KB Output is correct
88 Correct 804 ms 65844 KB Output is correct
89 Correct 866 ms 65864 KB Output is correct
90 Correct 896 ms 65848 KB Output is correct
91 Correct 7 ms 14416 KB Output is correct
92 Correct 8 ms 15184 KB Output is correct
93 Correct 8 ms 15240 KB Output is correct
94 Correct 72 ms 65876 KB Output is correct
95 Correct 71 ms 65888 KB Output is correct
96 Correct 90 ms 65832 KB Output is correct
97 Correct 65 ms 65828 KB Output is correct
98 Correct 65 ms 65908 KB Output is correct
99 Correct 72 ms 65860 KB Output is correct
100 Correct 72 ms 65876 KB Output is correct
101 Correct 72 ms 65844 KB Output is correct
102 Correct 64 ms 65848 KB Output is correct
103 Correct 65 ms 65856 KB Output is correct
104 Correct 8 ms 15200 KB Output is correct
105 Correct 8 ms 15184 KB Output is correct
106 Correct 8 ms 15164 KB Output is correct
107 Correct 8 ms 15184 KB Output is correct
108 Correct 8 ms 15184 KB Output is correct
109 Correct 8 ms 15184 KB Output is correct
110 Correct 8 ms 15184 KB Output is correct
111 Correct 8 ms 15272 KB Output is correct
112 Correct 8 ms 15148 KB Output is correct
113 Correct 8 ms 15184 KB Output is correct
114 Correct 233 ms 25680 KB Output is correct
115 Correct 742 ms 65860 KB Output is correct
116 Correct 797 ms 65848 KB Output is correct
117 Correct 805 ms 65888 KB Output is correct
118 Correct 829 ms 65844 KB Output is correct
119 Correct 829 ms 65852 KB Output is correct
120 Correct 937 ms 65856 KB Output is correct
121 Correct 659 ms 65824 KB Output is correct
122 Correct 741 ms 65844 KB Output is correct
123 Correct 707 ms 65840 KB Output is correct
124 Correct 807 ms 65816 KB Output is correct
125 Correct 71 ms 65896 KB Output is correct
126 Correct 72 ms 65908 KB Output is correct
127 Correct 73 ms 65868 KB Output is correct
128 Correct 63 ms 65864 KB Output is correct
129 Correct 64 ms 65924 KB Output is correct
130 Correct 71 ms 64040 KB Output is correct
131 Correct 71 ms 65836 KB Output is correct
132 Correct 81 ms 65856 KB Output is correct
133 Correct 70 ms 65824 KB Output is correct
134 Correct 70 ms 65888 KB Output is correct
135 Correct 70 ms 65868 KB Output is correct
136 Correct 74 ms 65888 KB Output is correct
137 Correct 66 ms 65840 KB Output is correct
138 Correct 63 ms 65844 KB Output is correct
139 Correct 71 ms 65864 KB Output is correct
140 Correct 63 ms 65872 KB Output is correct
141 Correct 8 ms 15276 KB Output is correct
142 Correct 8 ms 15184 KB Output is correct
143 Correct 8 ms 15184 KB Output is correct
144 Correct 8 ms 15164 KB Output is correct
145 Correct 8 ms 15188 KB Output is correct
146 Correct 7 ms 14800 KB Output is correct
147 Correct 9 ms 15152 KB Output is correct
148 Correct 8 ms 15184 KB Output is correct
149 Correct 8 ms 15184 KB Output is correct
150 Correct 8 ms 15184 KB Output is correct
151 Correct 8 ms 15184 KB Output is correct
152 Correct 8 ms 15264 KB Output is correct
153 Correct 8 ms 15184 KB Output is correct
154 Correct 7 ms 15184 KB Output is correct
155 Correct 8 ms 15184 KB Output is correct
156 Correct 8 ms 15184 KB Output is correct
157 Correct 628 ms 59832 KB Output is correct
158 Correct 1076 ms 65868 KB Output is correct
159 Correct 916 ms 65820 KB Output is correct
160 Correct 870 ms 65848 KB Output is correct
161 Correct 878 ms 65844 KB Output is correct
162 Correct 871 ms 65828 KB Output is correct
163 Correct 907 ms 65864 KB Output is correct
164 Correct 875 ms 65880 KB Output is correct
165 Correct 922 ms 65864 KB Output is correct
166 Correct 734 ms 65820 KB Output is correct
167 Correct 890 ms 65868 KB Output is correct
168 Correct 7 ms 14416 KB Output is correct
169 Correct 680 ms 31212 KB Output is correct
170 Correct 963 ms 65864 KB Output is correct
171 Correct 970 ms 65820 KB Output is correct
172 Correct 890 ms 65848 KB Output is correct
173 Correct 1008 ms 65844 KB Output is correct
174 Correct 914 ms 65832 KB Output is correct
175 Correct 854 ms 65840 KB Output is correct
176 Correct 696 ms 65828 KB Output is correct
177 Correct 784 ms 65888 KB Output is correct
178 Correct 893 ms 65864 KB Output is correct
179 Correct 930 ms 65844 KB Output is correct