답안 #783348

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
783348 2023-07-14T21:14:59 Z fuad27 Council (JOI23_council) C++17
100 / 100
197 ms 59832 KB
#include<bits/stdc++.h>
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
using namespace std;
const int M=20, N=300'010;
const int INF=1e9;
struct i2 {
  int mx=0, mx2=0;
  int i=-1,j=-2;
};
int m;
i2 max(i2 a, i2 b) {
  if(a.mx<b.mx)swap(a,b);
  i2 res=a;
  if(b.i==a.i){
    swap(b.mx,b.mx2);
    swap(b.i,b.j);
  }
  if(a.mx2<b.mx) {
    res.mx2=b.mx;
    res.j=b.i;
  }
  else {
    res.mx2=a.mx2;
    res.j=a.j;
  }
  return res;
}
struct bf {
  vector<int> point;
  vector<pair<int,int>> all;
  i2 dp[(1<<M)];
  bf() {
  }
  void build() {
    for(auto i:all) {
      if(dp[(1<<m)-i.first-1].i<0) {
        dp[(1<<m)-i.first-1].mx=__builtin_popcount(i.first);
        dp[(1<<m)-i.first-1].i=i.second;
      }
      else {
        dp[(1<<m)-i.first-1].mx2=__builtin_popcount(i.first);
        dp[(1<<m)-i.first-1].j=i.second;
      }
    }
    for(int j = 0;j<m;j++) {
      for(int mask=0;mask<(1<<m);mask++) {
        if(mask&(1<<j)) {
          i2 tmp=dp[mask^(1<<j)];
          tmp.mx--,tmp.mx2--;
          dp[mask]=max(dp[mask],tmp);
        }
      }
    }
    reverse(dp,dp+(1<<m));
    for(int i = 0;i<m;i++) {
      for(int mask=0;mask<(1<<m);mask++) {
        if(mask&(1<<i)) {
          dp[mask]=max(dp[mask], dp[mask^(1<<i)]);
        }
      }
    }
  }
  void add(int x, int i) {
    all.push_back({x,i});
  }
  int get(int x, int i) {
    i2 mx;
    mx=max(mx, dp[x]);
    if(mx.i==i)return mx.mx2;
    return mx.mx;
  }
};
int tot[M], kek[N][M];
int a[N], b[N];
int main () {
  cin.tie(0)->sync_with_stdio(0);
  int n;
  cin >> n >> m;
  for(int i = 0;i<n;i++) {
    string s;
    if(i==0)getline(cin,s);
    getline(cin,s);
    for(int j = 0;j<m;j++) {
      kek[i][j]=s[2*j]-'0';
      a[i]*=2;
      a[i]+=!kek[i][j];
      tot[j]+=kek[i][j];
    }
  }
  for(int i = 0;i<n;i++) {
    for(int j = 0;j<m;j++) {
      b[i]*=2;
      b[i]+=(tot[j]-kek[i][j])==(n/2);
    }
  }
  int res[n];
  bf c;
  for(int i = 0;i<n;i++) {
    c.add(a[i],i);
  }
  c.build();
  for(int i = 0;i<n;i++) {
    res[i]=c.get(b[i],i);
  }
  for(int i = 0;i<n;i++) {
    for(int j = 0;j<m;j++) {
      b[i]*=2;
      if((tot[j]-kek[i][j]-1)>=(n/2)) {
        res[i]++;
      }
    }
    cout << res[i] << "\n";
  }
}


# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 9 ms 16724 KB Output is correct
3 Correct 8 ms 16724 KB Output is correct
4 Correct 8 ms 16724 KB Output is correct
5 Correct 79 ms 16692 KB Output is correct
6 Correct 86 ms 16788 KB Output is correct
7 Correct 82 ms 16744 KB Output is correct
8 Correct 87 ms 16724 KB Output is correct
9 Correct 108 ms 16788 KB Output is correct
10 Correct 85 ms 16736 KB Output is correct
11 Correct 89 ms 16744 KB Output is correct
12 Correct 111 ms 16724 KB Output is correct
13 Correct 10 ms 16724 KB Output is correct
14 Correct 9 ms 16724 KB Output is correct
15 Correct 10 ms 16724 KB Output is correct
16 Correct 8 ms 16724 KB Output is correct
17 Correct 8 ms 16672 KB Output is correct
18 Correct 9 ms 16664 KB Output is correct
19 Correct 11 ms 16760 KB Output is correct
20 Correct 8 ms 16740 KB Output is correct
21 Correct 8 ms 16724 KB Output is correct
22 Correct 10 ms 16656 KB Output is correct
23 Correct 10 ms 16716 KB Output is correct
24 Correct 8 ms 16744 KB Output is correct
25 Correct 8 ms 16724 KB Output is correct
26 Correct 8 ms 16756 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16656 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16696 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 9 ms 16748 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 9 ms 16712 KB Output is correct
36 Correct 8 ms 16724 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 8 ms 16744 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16792 KB Output is correct
41 Correct 9 ms 16724 KB Output is correct
42 Correct 9 ms 16740 KB Output is correct
43 Correct 9 ms 16724 KB Output is correct
44 Correct 9 ms 16724 KB Output is correct
45 Correct 9 ms 16748 KB Output is correct
46 Correct 15 ms 16744 KB Output is correct
47 Correct 15 ms 16724 KB Output is correct
48 Correct 15 ms 16744 KB Output is correct
49 Correct 15 ms 16764 KB Output is correct
50 Correct 15 ms 16724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 9 ms 16724 KB Output is correct
3 Correct 8 ms 16724 KB Output is correct
4 Correct 8 ms 16724 KB Output is correct
5 Correct 79 ms 16692 KB Output is correct
6 Correct 86 ms 16788 KB Output is correct
7 Correct 82 ms 16744 KB Output is correct
8 Correct 87 ms 16724 KB Output is correct
9 Correct 108 ms 16788 KB Output is correct
10 Correct 85 ms 16736 KB Output is correct
11 Correct 89 ms 16744 KB Output is correct
12 Correct 111 ms 16724 KB Output is correct
13 Correct 10 ms 16724 KB Output is correct
14 Correct 9 ms 16724 KB Output is correct
15 Correct 10 ms 16724 KB Output is correct
16 Correct 8 ms 16724 KB Output is correct
17 Correct 8 ms 16672 KB Output is correct
18 Correct 9 ms 16664 KB Output is correct
19 Correct 11 ms 16760 KB Output is correct
20 Correct 8 ms 16740 KB Output is correct
21 Correct 8 ms 16724 KB Output is correct
22 Correct 10 ms 16656 KB Output is correct
23 Correct 10 ms 16716 KB Output is correct
24 Correct 8 ms 16744 KB Output is correct
25 Correct 8 ms 16724 KB Output is correct
26 Correct 8 ms 16756 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16656 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16696 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 9 ms 16748 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 9 ms 16712 KB Output is correct
36 Correct 8 ms 16724 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 8 ms 16744 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16792 KB Output is correct
41 Correct 9 ms 16724 KB Output is correct
42 Correct 9 ms 16740 KB Output is correct
43 Correct 9 ms 16724 KB Output is correct
44 Correct 9 ms 16724 KB Output is correct
45 Correct 9 ms 16748 KB Output is correct
46 Correct 15 ms 16744 KB Output is correct
47 Correct 15 ms 16724 KB Output is correct
48 Correct 15 ms 16744 KB Output is correct
49 Correct 15 ms 16764 KB Output is correct
50 Correct 15 ms 16724 KB Output is correct
51 Correct 84 ms 17188 KB Output is correct
52 Correct 82 ms 17152 KB Output is correct
53 Correct 110 ms 17184 KB Output is correct
54 Correct 112 ms 17200 KB Output is correct
55 Correct 10 ms 17004 KB Output is correct
56 Correct 21 ms 17136 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 51 ms 49092 KB Output is correct
3 Correct 49 ms 49064 KB Output is correct
4 Correct 45 ms 48540 KB Output is correct
5 Correct 48 ms 49084 KB Output is correct
6 Correct 48 ms 48492 KB Output is correct
7 Correct 50 ms 49120 KB Output is correct
8 Correct 7 ms 16724 KB Output is correct
9 Correct 7 ms 16744 KB Output is correct
10 Correct 8 ms 16744 KB Output is correct
11 Correct 8 ms 16760 KB Output is correct
12 Correct 8 ms 16724 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 8 ms 16636 KB Output is correct
15 Correct 8 ms 16748 KB Output is correct
16 Correct 8 ms 16744 KB Output is correct
17 Correct 9 ms 16988 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 51 ms 49092 KB Output is correct
3 Correct 49 ms 49064 KB Output is correct
4 Correct 45 ms 48540 KB Output is correct
5 Correct 48 ms 49084 KB Output is correct
6 Correct 48 ms 48492 KB Output is correct
7 Correct 50 ms 49120 KB Output is correct
8 Correct 7 ms 16724 KB Output is correct
9 Correct 7 ms 16744 KB Output is correct
10 Correct 8 ms 16744 KB Output is correct
11 Correct 8 ms 16760 KB Output is correct
12 Correct 8 ms 16724 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 8 ms 16636 KB Output is correct
15 Correct 8 ms 16748 KB Output is correct
16 Correct 8 ms 16744 KB Output is correct
17 Correct 9 ms 16988 KB Output is correct
18 Correct 8 ms 16724 KB Output is correct
19 Correct 10 ms 16708 KB Output is correct
20 Correct 64 ms 53736 KB Output is correct
21 Correct 67 ms 53316 KB Output is correct
22 Correct 63 ms 53232 KB Output is correct
23 Correct 62 ms 53748 KB Output is correct
24 Correct 62 ms 53852 KB Output is correct
25 Correct 68 ms 53764 KB Output is correct
26 Correct 68 ms 53812 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 8 ms 16652 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16748 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 8 ms 16744 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 8 ms 16652 KB Output is correct
36 Correct 8 ms 16744 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 10 ms 16852 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16712 KB Output is correct
41 Correct 8 ms 16724 KB Output is correct
42 Correct 8 ms 16724 KB Output is correct
43 Correct 8 ms 16716 KB Output is correct
44 Correct 9 ms 16740 KB Output is correct
45 Correct 8 ms 16724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 51 ms 49092 KB Output is correct
3 Correct 49 ms 49064 KB Output is correct
4 Correct 45 ms 48540 KB Output is correct
5 Correct 48 ms 49084 KB Output is correct
6 Correct 48 ms 48492 KB Output is correct
7 Correct 50 ms 49120 KB Output is correct
8 Correct 7 ms 16724 KB Output is correct
9 Correct 7 ms 16744 KB Output is correct
10 Correct 8 ms 16744 KB Output is correct
11 Correct 8 ms 16760 KB Output is correct
12 Correct 8 ms 16724 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 8 ms 16636 KB Output is correct
15 Correct 8 ms 16748 KB Output is correct
16 Correct 8 ms 16744 KB Output is correct
17 Correct 9 ms 16988 KB Output is correct
18 Correct 8 ms 16724 KB Output is correct
19 Correct 10 ms 16708 KB Output is correct
20 Correct 64 ms 53736 KB Output is correct
21 Correct 67 ms 53316 KB Output is correct
22 Correct 63 ms 53232 KB Output is correct
23 Correct 62 ms 53748 KB Output is correct
24 Correct 62 ms 53852 KB Output is correct
25 Correct 68 ms 53764 KB Output is correct
26 Correct 68 ms 53812 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 8 ms 16652 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16748 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 8 ms 16744 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 8 ms 16652 KB Output is correct
36 Correct 8 ms 16744 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 10 ms 16852 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16712 KB Output is correct
41 Correct 8 ms 16724 KB Output is correct
42 Correct 8 ms 16724 KB Output is correct
43 Correct 8 ms 16716 KB Output is correct
44 Correct 9 ms 16740 KB Output is correct
45 Correct 8 ms 16724 KB Output is correct
46 Correct 8 ms 16724 KB Output is correct
47 Correct 66 ms 56200 KB Output is correct
48 Correct 67 ms 55584 KB Output is correct
49 Correct 72 ms 55672 KB Output is correct
50 Correct 65 ms 56104 KB Output is correct
51 Correct 70 ms 56084 KB Output is correct
52 Correct 67 ms 56108 KB Output is correct
53 Correct 75 ms 56088 KB Output is correct
54 Correct 8 ms 16724 KB Output is correct
55 Correct 9 ms 16752 KB Output is correct
56 Correct 9 ms 16724 KB Output is correct
57 Correct 11 ms 16724 KB Output is correct
58 Correct 9 ms 16724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 51 ms 49092 KB Output is correct
3 Correct 49 ms 49064 KB Output is correct
4 Correct 45 ms 48540 KB Output is correct
5 Correct 48 ms 49084 KB Output is correct
6 Correct 48 ms 48492 KB Output is correct
7 Correct 50 ms 49120 KB Output is correct
8 Correct 7 ms 16724 KB Output is correct
9 Correct 7 ms 16744 KB Output is correct
10 Correct 8 ms 16744 KB Output is correct
11 Correct 8 ms 16760 KB Output is correct
12 Correct 8 ms 16724 KB Output is correct
13 Correct 9 ms 16724 KB Output is correct
14 Correct 8 ms 16636 KB Output is correct
15 Correct 8 ms 16748 KB Output is correct
16 Correct 8 ms 16744 KB Output is correct
17 Correct 9 ms 16988 KB Output is correct
18 Correct 8 ms 16724 KB Output is correct
19 Correct 10 ms 16708 KB Output is correct
20 Correct 64 ms 53736 KB Output is correct
21 Correct 67 ms 53316 KB Output is correct
22 Correct 63 ms 53232 KB Output is correct
23 Correct 62 ms 53748 KB Output is correct
24 Correct 62 ms 53852 KB Output is correct
25 Correct 68 ms 53764 KB Output is correct
26 Correct 68 ms 53812 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 8 ms 16652 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16748 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 8 ms 16744 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 8 ms 16652 KB Output is correct
36 Correct 8 ms 16744 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 10 ms 16852 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16712 KB Output is correct
41 Correct 8 ms 16724 KB Output is correct
42 Correct 8 ms 16724 KB Output is correct
43 Correct 8 ms 16716 KB Output is correct
44 Correct 9 ms 16740 KB Output is correct
45 Correct 8 ms 16724 KB Output is correct
46 Correct 8 ms 16724 KB Output is correct
47 Correct 66 ms 56200 KB Output is correct
48 Correct 67 ms 55584 KB Output is correct
49 Correct 72 ms 55672 KB Output is correct
50 Correct 65 ms 56104 KB Output is correct
51 Correct 70 ms 56084 KB Output is correct
52 Correct 67 ms 56108 KB Output is correct
53 Correct 75 ms 56088 KB Output is correct
54 Correct 8 ms 16724 KB Output is correct
55 Correct 9 ms 16752 KB Output is correct
56 Correct 9 ms 16724 KB Output is correct
57 Correct 11 ms 16724 KB Output is correct
58 Correct 9 ms 16724 KB Output is correct
59 Correct 74 ms 57356 KB Output is correct
60 Correct 46 ms 32188 KB Output is correct
61 Correct 49 ms 33344 KB Output is correct
62 Correct 57 ms 33916 KB Output is correct
63 Correct 74 ms 57268 KB Output is correct
64 Correct 81 ms 57936 KB Output is correct
65 Correct 85 ms 57956 KB Output is correct
66 Correct 76 ms 57940 KB Output is correct
67 Correct 78 ms 57960 KB Output is correct
68 Correct 76 ms 57844 KB Output is correct
69 Correct 97 ms 58048 KB Output is correct
70 Correct 15 ms 16724 KB Output is correct
71 Correct 17 ms 16748 KB Output is correct
72 Correct 16 ms 16760 KB Output is correct
73 Correct 15 ms 16724 KB Output is correct
74 Correct 16 ms 16652 KB Output is correct
75 Correct 20 ms 17140 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 16724 KB Output is correct
2 Correct 9 ms 16724 KB Output is correct
3 Correct 8 ms 16724 KB Output is correct
4 Correct 8 ms 16724 KB Output is correct
5 Correct 79 ms 16692 KB Output is correct
6 Correct 86 ms 16788 KB Output is correct
7 Correct 82 ms 16744 KB Output is correct
8 Correct 87 ms 16724 KB Output is correct
9 Correct 108 ms 16788 KB Output is correct
10 Correct 85 ms 16736 KB Output is correct
11 Correct 89 ms 16744 KB Output is correct
12 Correct 111 ms 16724 KB Output is correct
13 Correct 10 ms 16724 KB Output is correct
14 Correct 9 ms 16724 KB Output is correct
15 Correct 10 ms 16724 KB Output is correct
16 Correct 8 ms 16724 KB Output is correct
17 Correct 8 ms 16672 KB Output is correct
18 Correct 9 ms 16664 KB Output is correct
19 Correct 11 ms 16760 KB Output is correct
20 Correct 8 ms 16740 KB Output is correct
21 Correct 8 ms 16724 KB Output is correct
22 Correct 10 ms 16656 KB Output is correct
23 Correct 10 ms 16716 KB Output is correct
24 Correct 8 ms 16744 KB Output is correct
25 Correct 8 ms 16724 KB Output is correct
26 Correct 8 ms 16756 KB Output is correct
27 Correct 9 ms 16724 KB Output is correct
28 Correct 9 ms 16656 KB Output is correct
29 Correct 8 ms 16724 KB Output is correct
30 Correct 8 ms 16696 KB Output is correct
31 Correct 8 ms 16724 KB Output is correct
32 Correct 9 ms 16748 KB Output is correct
33 Correct 8 ms 16724 KB Output is correct
34 Correct 8 ms 16724 KB Output is correct
35 Correct 9 ms 16712 KB Output is correct
36 Correct 8 ms 16724 KB Output is correct
37 Correct 8 ms 16724 KB Output is correct
38 Correct 8 ms 16744 KB Output is correct
39 Correct 8 ms 16724 KB Output is correct
40 Correct 8 ms 16792 KB Output is correct
41 Correct 9 ms 16724 KB Output is correct
42 Correct 9 ms 16740 KB Output is correct
43 Correct 9 ms 16724 KB Output is correct
44 Correct 9 ms 16724 KB Output is correct
45 Correct 9 ms 16748 KB Output is correct
46 Correct 15 ms 16744 KB Output is correct
47 Correct 15 ms 16724 KB Output is correct
48 Correct 15 ms 16744 KB Output is correct
49 Correct 15 ms 16764 KB Output is correct
50 Correct 15 ms 16724 KB Output is correct
51 Correct 84 ms 17188 KB Output is correct
52 Correct 82 ms 17152 KB Output is correct
53 Correct 110 ms 17184 KB Output is correct
54 Correct 112 ms 17200 KB Output is correct
55 Correct 10 ms 17004 KB Output is correct
56 Correct 21 ms 17136 KB Output is correct
57 Correct 8 ms 16724 KB Output is correct
58 Correct 51 ms 49092 KB Output is correct
59 Correct 49 ms 49064 KB Output is correct
60 Correct 45 ms 48540 KB Output is correct
61 Correct 48 ms 49084 KB Output is correct
62 Correct 48 ms 48492 KB Output is correct
63 Correct 50 ms 49120 KB Output is correct
64 Correct 7 ms 16724 KB Output is correct
65 Correct 7 ms 16744 KB Output is correct
66 Correct 8 ms 16744 KB Output is correct
67 Correct 8 ms 16760 KB Output is correct
68 Correct 8 ms 16724 KB Output is correct
69 Correct 9 ms 16724 KB Output is correct
70 Correct 8 ms 16636 KB Output is correct
71 Correct 8 ms 16748 KB Output is correct
72 Correct 8 ms 16744 KB Output is correct
73 Correct 9 ms 16988 KB Output is correct
74 Correct 8 ms 16724 KB Output is correct
75 Correct 10 ms 16708 KB Output is correct
76 Correct 64 ms 53736 KB Output is correct
77 Correct 67 ms 53316 KB Output is correct
78 Correct 63 ms 53232 KB Output is correct
79 Correct 62 ms 53748 KB Output is correct
80 Correct 62 ms 53852 KB Output is correct
81 Correct 68 ms 53764 KB Output is correct
82 Correct 68 ms 53812 KB Output is correct
83 Correct 9 ms 16724 KB Output is correct
84 Correct 8 ms 16652 KB Output is correct
85 Correct 8 ms 16724 KB Output is correct
86 Correct 8 ms 16748 KB Output is correct
87 Correct 8 ms 16724 KB Output is correct
88 Correct 8 ms 16744 KB Output is correct
89 Correct 8 ms 16724 KB Output is correct
90 Correct 8 ms 16724 KB Output is correct
91 Correct 8 ms 16652 KB Output is correct
92 Correct 8 ms 16744 KB Output is correct
93 Correct 8 ms 16724 KB Output is correct
94 Correct 10 ms 16852 KB Output is correct
95 Correct 8 ms 16724 KB Output is correct
96 Correct 8 ms 16712 KB Output is correct
97 Correct 8 ms 16724 KB Output is correct
98 Correct 8 ms 16724 KB Output is correct
99 Correct 8 ms 16716 KB Output is correct
100 Correct 9 ms 16740 KB Output is correct
101 Correct 8 ms 16724 KB Output is correct
102 Correct 8 ms 16724 KB Output is correct
103 Correct 66 ms 56200 KB Output is correct
104 Correct 67 ms 55584 KB Output is correct
105 Correct 72 ms 55672 KB Output is correct
106 Correct 65 ms 56104 KB Output is correct
107 Correct 70 ms 56084 KB Output is correct
108 Correct 67 ms 56108 KB Output is correct
109 Correct 75 ms 56088 KB Output is correct
110 Correct 8 ms 16724 KB Output is correct
111 Correct 9 ms 16752 KB Output is correct
112 Correct 9 ms 16724 KB Output is correct
113 Correct 11 ms 16724 KB Output is correct
114 Correct 9 ms 16724 KB Output is correct
115 Correct 74 ms 57356 KB Output is correct
116 Correct 46 ms 32188 KB Output is correct
117 Correct 49 ms 33344 KB Output is correct
118 Correct 57 ms 33916 KB Output is correct
119 Correct 74 ms 57268 KB Output is correct
120 Correct 81 ms 57936 KB Output is correct
121 Correct 85 ms 57956 KB Output is correct
122 Correct 76 ms 57940 KB Output is correct
123 Correct 78 ms 57960 KB Output is correct
124 Correct 76 ms 57844 KB Output is correct
125 Correct 97 ms 58048 KB Output is correct
126 Correct 15 ms 16724 KB Output is correct
127 Correct 17 ms 16748 KB Output is correct
128 Correct 16 ms 16760 KB Output is correct
129 Correct 15 ms 16724 KB Output is correct
130 Correct 16 ms 16652 KB Output is correct
131 Correct 20 ms 17140 KB Output is correct
132 Correct 184 ms 59668 KB Output is correct
133 Correct 163 ms 59716 KB Output is correct
134 Correct 178 ms 59652 KB Output is correct
135 Correct 174 ms 59632 KB Output is correct
136 Correct 181 ms 59608 KB Output is correct
137 Correct 111 ms 59068 KB Output is correct
138 Correct 131 ms 59036 KB Output is correct
139 Correct 148 ms 59728 KB Output is correct
140 Correct 151 ms 59620 KB Output is correct
141 Correct 180 ms 59832 KB Output is correct
142 Correct 197 ms 59672 KB Output is correct