답안 #76364

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
76364 2018-09-13T06:12:52 Z Simphoni 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
158 ms 102848 KB
#include <cstdio>
#include <iostream>
#include <cstring>
#include <set>
using namespace std;

typedef long long LL;
const int N = 1e5 + 50;

struct edge {
  int nxt, to;
} E[N << 2], G[N << 4];
int fir[N], lst[N << 1], cnt = 1;

int n, m;
int dfn[N], lo[N], top, clo, bcc, sz[N << 1];
pair <int, int> sta[N];
bool vis[N << 1];
LL ans = 0;

inline void addedge(int x, int y, edge *e = E, int *f = fir) {
  e[++ cnt] = (edge) { f[x], y }; f[x] = cnt;
}

inline int Dfs(int x, int f) {
  int low = lo[x] = dfn[x] = ++ clo, o;
  for (int i = fir[x]; i; i = E[i].nxt)
    if (E[i].to != f) {
      if (!dfn[E[i].to]) {
        sta[++ top] = make_pair(x, E[i].to);
        o = Dfs(E[i].to, x);
        low = min(low, o);
        if (o < dfn[x]) continue;
        bcc ++;
        set <int> tmp;
        while (top) {
          if (!tmp.count(sta[top].first)) {
            addedge(bcc, sta[top].first, G, lst);
            addedge(sta[top].first, bcc, G, lst);
            tmp.insert(sta[top].first);
          }
          if (!tmp.count(sta[top].second)) {
            addedge(bcc, sta[top].second, G, lst);
            addedge(sta[top].second, bcc, G, lst);
            tmp.insert(sta[top].second);
          }
          top --; 
          if (sta[top + 1] == make_pair(x, E[i].to)) break;
        }
        sz[bcc] = tmp.size();
      }
      else low = min(low, lo[E[i].to]);
    }
  return lo[x] = low;
}

inline pair <int, LL> Dfs1(int x) {
  vis[x] = 1;
  pair <int, LL> res = make_pair(0, 0), tmp;
  for (int i = lst[x]; i; i = G[i].nxt)
    if (!vis[G[i].to]) {
      tmp = Dfs1(G[i].to);
      ans += res.second * tmp.first + tmp.second * res.first + (LL)(x <= n ? -1 : sz[x]) * res.first * tmp.first;
      res.first += tmp.first;
      res.second += tmp.second;
    }
  res.second += (LL) res.first * (x <= n ? -1 : sz[x]);
  if (x <= n) ans += res.second, res.first ++, res.second --;
  return res;
}

int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1, x, y; i <= m; i ++) {
    scanf("%d%d", &x, &y);
    addedge(x, y); addedge(y, x);
  }
  bcc = n;
  for (int i = 1; i <= n; i ++) if (!dfn[i]) Dfs(i, 0);
  for (int i = 1; i <= n; i ++) if (!vis[i]) Dfs1(i);
  printf("%lld\n", ans * 2);
  return 0;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:73:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &n, &m);
   ~~~~~^~~~~~~~~~~~~~~~
count_triplets.cpp:75:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &x, &y);
     ~~~~~^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 440 KB Output is correct
3 Correct 2 ms 440 KB Output is correct
4 Correct 2 ms 516 KB Output is correct
5 Correct 2 ms 516 KB Output is correct
6 Correct 2 ms 516 KB Output is correct
7 Correct 2 ms 516 KB Output is correct
8 Correct 2 ms 532 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 2 ms 724 KB Output is correct
11 Correct 2 ms 724 KB Output is correct
12 Correct 2 ms 724 KB Output is correct
13 Correct 2 ms 724 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 2 ms 724 KB Output is correct
17 Correct 2 ms 724 KB Output is correct
18 Correct 2 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 3 ms 724 KB Output is correct
21 Correct 2 ms 724 KB Output is correct
22 Correct 2 ms 724 KB Output is correct
23 Correct 2 ms 728 KB Output is correct
24 Correct 2 ms 728 KB Output is correct
25 Correct 2 ms 728 KB Output is correct
26 Correct 2 ms 740 KB Output is correct
27 Correct 2 ms 744 KB Output is correct
28 Correct 2 ms 748 KB Output is correct
29 Correct 2 ms 752 KB Output is correct
30 Correct 2 ms 760 KB Output is correct
31 Correct 2 ms 764 KB Output is correct
32 Correct 2 ms 764 KB Output is correct
33 Correct 2 ms 768 KB Output is correct
34 Correct 2 ms 772 KB Output is correct
35 Correct 2 ms 780 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 440 KB Output is correct
3 Correct 2 ms 440 KB Output is correct
4 Correct 2 ms 516 KB Output is correct
5 Correct 2 ms 516 KB Output is correct
6 Correct 2 ms 516 KB Output is correct
7 Correct 2 ms 516 KB Output is correct
8 Correct 2 ms 532 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 2 ms 724 KB Output is correct
11 Correct 2 ms 724 KB Output is correct
12 Correct 2 ms 724 KB Output is correct
13 Correct 2 ms 724 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 2 ms 724 KB Output is correct
17 Correct 2 ms 724 KB Output is correct
18 Correct 2 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 3 ms 724 KB Output is correct
21 Correct 2 ms 724 KB Output is correct
22 Correct 2 ms 724 KB Output is correct
23 Correct 2 ms 728 KB Output is correct
24 Correct 2 ms 728 KB Output is correct
25 Correct 2 ms 728 KB Output is correct
26 Correct 2 ms 740 KB Output is correct
27 Correct 2 ms 744 KB Output is correct
28 Correct 2 ms 748 KB Output is correct
29 Correct 2 ms 752 KB Output is correct
30 Correct 2 ms 760 KB Output is correct
31 Correct 2 ms 764 KB Output is correct
32 Correct 2 ms 764 KB Output is correct
33 Correct 2 ms 768 KB Output is correct
34 Correct 2 ms 772 KB Output is correct
35 Correct 2 ms 780 KB Output is correct
36 Correct 2 ms 784 KB Output is correct
37 Correct 2 ms 788 KB Output is correct
38 Correct 3 ms 788 KB Output is correct
39 Correct 2 ms 796 KB Output is correct
40 Correct 2 ms 800 KB Output is correct
41 Correct 2 ms 936 KB Output is correct
42 Correct 2 ms 936 KB Output is correct
43 Correct 2 ms 936 KB Output is correct
44 Correct 2 ms 936 KB Output is correct
45 Correct 2 ms 980 KB Output is correct
46 Correct 3 ms 980 KB Output is correct
47 Correct 2 ms 980 KB Output is correct
48 Correct 2 ms 980 KB Output is correct
49 Correct 2 ms 980 KB Output is correct
50 Correct 2 ms 980 KB Output is correct
51 Correct 1 ms 980 KB Output is correct
52 Correct 2 ms 980 KB Output is correct
53 Correct 2 ms 980 KB Output is correct
54 Correct 2 ms 980 KB Output is correct
55 Correct 2 ms 980 KB Output is correct
56 Correct 2 ms 980 KB Output is correct
57 Correct 2 ms 980 KB Output is correct
58 Correct 2 ms 980 KB Output is correct
59 Correct 2 ms 980 KB Output is correct
60 Correct 4 ms 980 KB Output is correct
61 Correct 2 ms 980 KB Output is correct
62 Correct 2 ms 984 KB Output is correct
63 Correct 2 ms 992 KB Output is correct
64 Correct 2 ms 996 KB Output is correct
65 Correct 2 ms 1000 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 127 ms 20332 KB Output is correct
2 Correct 133 ms 21572 KB Output is correct
3 Correct 98 ms 21572 KB Output is correct
4 Correct 133 ms 21572 KB Output is correct
5 Correct 100 ms 21572 KB Output is correct
6 Correct 91 ms 21572 KB Output is correct
7 Correct 86 ms 21572 KB Output is correct
8 Correct 83 ms 21572 KB Output is correct
9 Correct 73 ms 21572 KB Output is correct
10 Correct 86 ms 22076 KB Output is correct
11 Correct 51 ms 22076 KB Output is correct
12 Correct 50 ms 22076 KB Output is correct
13 Correct 42 ms 22076 KB Output is correct
14 Correct 49 ms 22484 KB Output is correct
15 Correct 36 ms 22592 KB Output is correct
16 Correct 33 ms 23172 KB Output is correct
17 Correct 5 ms 23172 KB Output is correct
18 Correct 5 ms 23172 KB Output is correct
19 Correct 5 ms 23172 KB Output is correct
20 Correct 5 ms 23172 KB Output is correct
21 Correct 4 ms 23172 KB Output is correct
22 Correct 4 ms 23172 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 23172 KB Output is correct
2 Correct 4 ms 23172 KB Output is correct
3 Correct 2 ms 23172 KB Output is correct
4 Correct 3 ms 23172 KB Output is correct
5 Correct 3 ms 23172 KB Output is correct
6 Correct 3 ms 23172 KB Output is correct
7 Correct 3 ms 23172 KB Output is correct
8 Correct 3 ms 23172 KB Output is correct
9 Correct 3 ms 23172 KB Output is correct
10 Correct 3 ms 23172 KB Output is correct
11 Correct 3 ms 23172 KB Output is correct
12 Correct 2 ms 23172 KB Output is correct
13 Correct 3 ms 23172 KB Output is correct
14 Correct 3 ms 23172 KB Output is correct
15 Correct 3 ms 23172 KB Output is correct
16 Correct 2 ms 23172 KB Output is correct
17 Correct 3 ms 23172 KB Output is correct
18 Correct 2 ms 23172 KB Output is correct
19 Correct 3 ms 23172 KB Output is correct
20 Correct 3 ms 23172 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 66 ms 27588 KB Output is correct
2 Correct 66 ms 28836 KB Output is correct
3 Correct 59 ms 30088 KB Output is correct
4 Correct 59 ms 31328 KB Output is correct
5 Correct 59 ms 32576 KB Output is correct
6 Correct 65 ms 38816 KB Output is correct
7 Correct 62 ms 38816 KB Output is correct
8 Correct 89 ms 38880 KB Output is correct
9 Correct 68 ms 39232 KB Output is correct
10 Correct 75 ms 39232 KB Output is correct
11 Correct 61 ms 40064 KB Output is correct
12 Correct 60 ms 41356 KB Output is correct
13 Correct 65 ms 42564 KB Output is correct
14 Correct 70 ms 43172 KB Output is correct
15 Correct 63 ms 43616 KB Output is correct
16 Correct 31 ms 43616 KB Output is correct
17 Correct 49 ms 46584 KB Output is correct
18 Correct 52 ms 47772 KB Output is correct
19 Correct 88 ms 49040 KB Output is correct
20 Correct 56 ms 50308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 50308 KB Output is correct
2 Correct 2 ms 50308 KB Output is correct
3 Correct 2 ms 50308 KB Output is correct
4 Correct 2 ms 50308 KB Output is correct
5 Correct 2 ms 50308 KB Output is correct
6 Correct 3 ms 50308 KB Output is correct
7 Correct 3 ms 50308 KB Output is correct
8 Correct 3 ms 50308 KB Output is correct
9 Correct 3 ms 50308 KB Output is correct
10 Correct 2 ms 50308 KB Output is correct
11 Correct 3 ms 50308 KB Output is correct
12 Correct 3 ms 50308 KB Output is correct
13 Correct 3 ms 50308 KB Output is correct
14 Correct 3 ms 50308 KB Output is correct
15 Correct 3 ms 50308 KB Output is correct
16 Correct 3 ms 50308 KB Output is correct
17 Correct 3 ms 50308 KB Output is correct
18 Correct 3 ms 50308 KB Output is correct
19 Correct 2 ms 50308 KB Output is correct
20 Correct 2 ms 50308 KB Output is correct
21 Correct 3 ms 50308 KB Output is correct
22 Correct 2 ms 50308 KB Output is correct
23 Correct 3 ms 50308 KB Output is correct
24 Correct 2 ms 50308 KB Output is correct
25 Correct 2 ms 50308 KB Output is correct
26 Correct 2 ms 50308 KB Output is correct
27 Correct 2 ms 50308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 61 ms 51852 KB Output is correct
2 Correct 62 ms 53104 KB Output is correct
3 Correct 69 ms 54424 KB Output is correct
4 Correct 69 ms 54912 KB Output is correct
5 Correct 62 ms 54912 KB Output is correct
6 Correct 61 ms 54912 KB Output is correct
7 Correct 60 ms 54912 KB Output is correct
8 Correct 65 ms 54912 KB Output is correct
9 Correct 60 ms 55584 KB Output is correct
10 Correct 62 ms 56900 KB Output is correct
11 Correct 65 ms 58060 KB Output is correct
12 Correct 75 ms 59300 KB Output is correct
13 Correct 75 ms 60712 KB Output is correct
14 Correct 88 ms 63892 KB Output is correct
15 Correct 76 ms 68968 KB Output is correct
16 Correct 78 ms 69220 KB Output is correct
17 Correct 77 ms 71308 KB Output is correct
18 Correct 70 ms 71308 KB Output is correct
19 Correct 66 ms 71308 KB Output is correct
20 Correct 66 ms 71308 KB Output is correct
21 Correct 70 ms 71308 KB Output is correct
22 Correct 63 ms 71308 KB Output is correct
23 Correct 55 ms 71308 KB Output is correct
24 Correct 68 ms 71308 KB Output is correct
25 Correct 67 ms 71308 KB Output is correct
26 Correct 66 ms 71308 KB Output is correct
27 Correct 79 ms 71308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 440 KB Output is correct
3 Correct 2 ms 440 KB Output is correct
4 Correct 2 ms 516 KB Output is correct
5 Correct 2 ms 516 KB Output is correct
6 Correct 2 ms 516 KB Output is correct
7 Correct 2 ms 516 KB Output is correct
8 Correct 2 ms 532 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 2 ms 724 KB Output is correct
11 Correct 2 ms 724 KB Output is correct
12 Correct 2 ms 724 KB Output is correct
13 Correct 2 ms 724 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 2 ms 724 KB Output is correct
17 Correct 2 ms 724 KB Output is correct
18 Correct 2 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 3 ms 724 KB Output is correct
21 Correct 2 ms 724 KB Output is correct
22 Correct 2 ms 724 KB Output is correct
23 Correct 2 ms 728 KB Output is correct
24 Correct 2 ms 728 KB Output is correct
25 Correct 2 ms 728 KB Output is correct
26 Correct 2 ms 740 KB Output is correct
27 Correct 2 ms 744 KB Output is correct
28 Correct 2 ms 748 KB Output is correct
29 Correct 2 ms 752 KB Output is correct
30 Correct 2 ms 760 KB Output is correct
31 Correct 2 ms 764 KB Output is correct
32 Correct 2 ms 764 KB Output is correct
33 Correct 2 ms 768 KB Output is correct
34 Correct 2 ms 772 KB Output is correct
35 Correct 2 ms 780 KB Output is correct
36 Correct 2 ms 784 KB Output is correct
37 Correct 2 ms 788 KB Output is correct
38 Correct 3 ms 788 KB Output is correct
39 Correct 2 ms 796 KB Output is correct
40 Correct 2 ms 800 KB Output is correct
41 Correct 2 ms 936 KB Output is correct
42 Correct 2 ms 936 KB Output is correct
43 Correct 2 ms 936 KB Output is correct
44 Correct 2 ms 936 KB Output is correct
45 Correct 2 ms 980 KB Output is correct
46 Correct 3 ms 980 KB Output is correct
47 Correct 2 ms 980 KB Output is correct
48 Correct 2 ms 980 KB Output is correct
49 Correct 2 ms 980 KB Output is correct
50 Correct 2 ms 980 KB Output is correct
51 Correct 1 ms 980 KB Output is correct
52 Correct 2 ms 980 KB Output is correct
53 Correct 2 ms 980 KB Output is correct
54 Correct 2 ms 980 KB Output is correct
55 Correct 2 ms 980 KB Output is correct
56 Correct 2 ms 980 KB Output is correct
57 Correct 2 ms 980 KB Output is correct
58 Correct 2 ms 980 KB Output is correct
59 Correct 2 ms 980 KB Output is correct
60 Correct 4 ms 980 KB Output is correct
61 Correct 2 ms 980 KB Output is correct
62 Correct 2 ms 984 KB Output is correct
63 Correct 2 ms 992 KB Output is correct
64 Correct 2 ms 996 KB Output is correct
65 Correct 2 ms 1000 KB Output is correct
66 Correct 2 ms 71308 KB Output is correct
67 Correct 2 ms 71308 KB Output is correct
68 Correct 3 ms 71308 KB Output is correct
69 Correct 4 ms 71308 KB Output is correct
70 Correct 3 ms 71308 KB Output is correct
71 Correct 2 ms 71308 KB Output is correct
72 Correct 2 ms 71308 KB Output is correct
73 Correct 2 ms 71308 KB Output is correct
74 Correct 2 ms 71308 KB Output is correct
75 Correct 2 ms 71308 KB Output is correct
76 Correct 2 ms 71308 KB Output is correct
77 Correct 3 ms 71308 KB Output is correct
78 Correct 3 ms 71308 KB Output is correct
79 Correct 3 ms 71308 KB Output is correct
80 Correct 3 ms 71308 KB Output is correct
81 Correct 2 ms 71308 KB Output is correct
82 Correct 3 ms 71308 KB Output is correct
83 Correct 3 ms 71308 KB Output is correct
84 Correct 3 ms 71308 KB Output is correct
85 Correct 3 ms 71308 KB Output is correct
86 Correct 3 ms 71308 KB Output is correct
87 Correct 3 ms 71308 KB Output is correct
88 Correct 2 ms 71308 KB Output is correct
89 Correct 2 ms 71308 KB Output is correct
90 Correct 2 ms 71308 KB Output is correct
91 Correct 2 ms 71308 KB Output is correct
92 Correct 3 ms 71308 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 440 KB Output is correct
3 Correct 2 ms 440 KB Output is correct
4 Correct 2 ms 516 KB Output is correct
5 Correct 2 ms 516 KB Output is correct
6 Correct 2 ms 516 KB Output is correct
7 Correct 2 ms 516 KB Output is correct
8 Correct 2 ms 532 KB Output is correct
9 Correct 2 ms 724 KB Output is correct
10 Correct 2 ms 724 KB Output is correct
11 Correct 2 ms 724 KB Output is correct
12 Correct 2 ms 724 KB Output is correct
13 Correct 2 ms 724 KB Output is correct
14 Correct 2 ms 724 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 2 ms 724 KB Output is correct
17 Correct 2 ms 724 KB Output is correct
18 Correct 2 ms 724 KB Output is correct
19 Correct 2 ms 724 KB Output is correct
20 Correct 3 ms 724 KB Output is correct
21 Correct 2 ms 724 KB Output is correct
22 Correct 2 ms 724 KB Output is correct
23 Correct 2 ms 728 KB Output is correct
24 Correct 2 ms 728 KB Output is correct
25 Correct 2 ms 728 KB Output is correct
26 Correct 2 ms 740 KB Output is correct
27 Correct 2 ms 744 KB Output is correct
28 Correct 2 ms 748 KB Output is correct
29 Correct 2 ms 752 KB Output is correct
30 Correct 2 ms 760 KB Output is correct
31 Correct 2 ms 764 KB Output is correct
32 Correct 2 ms 764 KB Output is correct
33 Correct 2 ms 768 KB Output is correct
34 Correct 2 ms 772 KB Output is correct
35 Correct 2 ms 780 KB Output is correct
36 Correct 2 ms 784 KB Output is correct
37 Correct 2 ms 788 KB Output is correct
38 Correct 3 ms 788 KB Output is correct
39 Correct 2 ms 796 KB Output is correct
40 Correct 2 ms 800 KB Output is correct
41 Correct 2 ms 936 KB Output is correct
42 Correct 2 ms 936 KB Output is correct
43 Correct 2 ms 936 KB Output is correct
44 Correct 2 ms 936 KB Output is correct
45 Correct 2 ms 980 KB Output is correct
46 Correct 3 ms 980 KB Output is correct
47 Correct 2 ms 980 KB Output is correct
48 Correct 2 ms 980 KB Output is correct
49 Correct 2 ms 980 KB Output is correct
50 Correct 2 ms 980 KB Output is correct
51 Correct 1 ms 980 KB Output is correct
52 Correct 2 ms 980 KB Output is correct
53 Correct 2 ms 980 KB Output is correct
54 Correct 2 ms 980 KB Output is correct
55 Correct 2 ms 980 KB Output is correct
56 Correct 2 ms 980 KB Output is correct
57 Correct 2 ms 980 KB Output is correct
58 Correct 2 ms 980 KB Output is correct
59 Correct 2 ms 980 KB Output is correct
60 Correct 4 ms 980 KB Output is correct
61 Correct 2 ms 980 KB Output is correct
62 Correct 2 ms 984 KB Output is correct
63 Correct 2 ms 992 KB Output is correct
64 Correct 2 ms 996 KB Output is correct
65 Correct 2 ms 1000 KB Output is correct
66 Correct 127 ms 20332 KB Output is correct
67 Correct 133 ms 21572 KB Output is correct
68 Correct 98 ms 21572 KB Output is correct
69 Correct 133 ms 21572 KB Output is correct
70 Correct 100 ms 21572 KB Output is correct
71 Correct 91 ms 21572 KB Output is correct
72 Correct 86 ms 21572 KB Output is correct
73 Correct 83 ms 21572 KB Output is correct
74 Correct 73 ms 21572 KB Output is correct
75 Correct 86 ms 22076 KB Output is correct
76 Correct 51 ms 22076 KB Output is correct
77 Correct 50 ms 22076 KB Output is correct
78 Correct 42 ms 22076 KB Output is correct
79 Correct 49 ms 22484 KB Output is correct
80 Correct 36 ms 22592 KB Output is correct
81 Correct 33 ms 23172 KB Output is correct
82 Correct 5 ms 23172 KB Output is correct
83 Correct 5 ms 23172 KB Output is correct
84 Correct 5 ms 23172 KB Output is correct
85 Correct 5 ms 23172 KB Output is correct
86 Correct 4 ms 23172 KB Output is correct
87 Correct 4 ms 23172 KB Output is correct
88 Correct 3 ms 23172 KB Output is correct
89 Correct 4 ms 23172 KB Output is correct
90 Correct 2 ms 23172 KB Output is correct
91 Correct 3 ms 23172 KB Output is correct
92 Correct 3 ms 23172 KB Output is correct
93 Correct 3 ms 23172 KB Output is correct
94 Correct 3 ms 23172 KB Output is correct
95 Correct 3 ms 23172 KB Output is correct
96 Correct 3 ms 23172 KB Output is correct
97 Correct 3 ms 23172 KB Output is correct
98 Correct 3 ms 23172 KB Output is correct
99 Correct 2 ms 23172 KB Output is correct
100 Correct 3 ms 23172 KB Output is correct
101 Correct 3 ms 23172 KB Output is correct
102 Correct 3 ms 23172 KB Output is correct
103 Correct 2 ms 23172 KB Output is correct
104 Correct 3 ms 23172 KB Output is correct
105 Correct 2 ms 23172 KB Output is correct
106 Correct 3 ms 23172 KB Output is correct
107 Correct 3 ms 23172 KB Output is correct
108 Correct 66 ms 27588 KB Output is correct
109 Correct 66 ms 28836 KB Output is correct
110 Correct 59 ms 30088 KB Output is correct
111 Correct 59 ms 31328 KB Output is correct
112 Correct 59 ms 32576 KB Output is correct
113 Correct 65 ms 38816 KB Output is correct
114 Correct 62 ms 38816 KB Output is correct
115 Correct 89 ms 38880 KB Output is correct
116 Correct 68 ms 39232 KB Output is correct
117 Correct 75 ms 39232 KB Output is correct
118 Correct 61 ms 40064 KB Output is correct
119 Correct 60 ms 41356 KB Output is correct
120 Correct 65 ms 42564 KB Output is correct
121 Correct 70 ms 43172 KB Output is correct
122 Correct 63 ms 43616 KB Output is correct
123 Correct 31 ms 43616 KB Output is correct
124 Correct 49 ms 46584 KB Output is correct
125 Correct 52 ms 47772 KB Output is correct
126 Correct 88 ms 49040 KB Output is correct
127 Correct 56 ms 50308 KB Output is correct
128 Correct 2 ms 50308 KB Output is correct
129 Correct 2 ms 50308 KB Output is correct
130 Correct 2 ms 50308 KB Output is correct
131 Correct 2 ms 50308 KB Output is correct
132 Correct 2 ms 50308 KB Output is correct
133 Correct 3 ms 50308 KB Output is correct
134 Correct 3 ms 50308 KB Output is correct
135 Correct 3 ms 50308 KB Output is correct
136 Correct 3 ms 50308 KB Output is correct
137 Correct 2 ms 50308 KB Output is correct
138 Correct 3 ms 50308 KB Output is correct
139 Correct 3 ms 50308 KB Output is correct
140 Correct 3 ms 50308 KB Output is correct
141 Correct 3 ms 50308 KB Output is correct
142 Correct 3 ms 50308 KB Output is correct
143 Correct 3 ms 50308 KB Output is correct
144 Correct 3 ms 50308 KB Output is correct
145 Correct 3 ms 50308 KB Output is correct
146 Correct 2 ms 50308 KB Output is correct
147 Correct 2 ms 50308 KB Output is correct
148 Correct 3 ms 50308 KB Output is correct
149 Correct 2 ms 50308 KB Output is correct
150 Correct 3 ms 50308 KB Output is correct
151 Correct 2 ms 50308 KB Output is correct
152 Correct 2 ms 50308 KB Output is correct
153 Correct 2 ms 50308 KB Output is correct
154 Correct 2 ms 50308 KB Output is correct
155 Correct 61 ms 51852 KB Output is correct
156 Correct 62 ms 53104 KB Output is correct
157 Correct 69 ms 54424 KB Output is correct
158 Correct 69 ms 54912 KB Output is correct
159 Correct 62 ms 54912 KB Output is correct
160 Correct 61 ms 54912 KB Output is correct
161 Correct 60 ms 54912 KB Output is correct
162 Correct 65 ms 54912 KB Output is correct
163 Correct 60 ms 55584 KB Output is correct
164 Correct 62 ms 56900 KB Output is correct
165 Correct 65 ms 58060 KB Output is correct
166 Correct 75 ms 59300 KB Output is correct
167 Correct 75 ms 60712 KB Output is correct
168 Correct 88 ms 63892 KB Output is correct
169 Correct 76 ms 68968 KB Output is correct
170 Correct 78 ms 69220 KB Output is correct
171 Correct 77 ms 71308 KB Output is correct
172 Correct 70 ms 71308 KB Output is correct
173 Correct 66 ms 71308 KB Output is correct
174 Correct 66 ms 71308 KB Output is correct
175 Correct 70 ms 71308 KB Output is correct
176 Correct 63 ms 71308 KB Output is correct
177 Correct 55 ms 71308 KB Output is correct
178 Correct 68 ms 71308 KB Output is correct
179 Correct 67 ms 71308 KB Output is correct
180 Correct 66 ms 71308 KB Output is correct
181 Correct 79 ms 71308 KB Output is correct
182 Correct 2 ms 71308 KB Output is correct
183 Correct 2 ms 71308 KB Output is correct
184 Correct 3 ms 71308 KB Output is correct
185 Correct 4 ms 71308 KB Output is correct
186 Correct 3 ms 71308 KB Output is correct
187 Correct 2 ms 71308 KB Output is correct
188 Correct 2 ms 71308 KB Output is correct
189 Correct 2 ms 71308 KB Output is correct
190 Correct 2 ms 71308 KB Output is correct
191 Correct 2 ms 71308 KB Output is correct
192 Correct 2 ms 71308 KB Output is correct
193 Correct 3 ms 71308 KB Output is correct
194 Correct 3 ms 71308 KB Output is correct
195 Correct 3 ms 71308 KB Output is correct
196 Correct 3 ms 71308 KB Output is correct
197 Correct 2 ms 71308 KB Output is correct
198 Correct 3 ms 71308 KB Output is correct
199 Correct 3 ms 71308 KB Output is correct
200 Correct 3 ms 71308 KB Output is correct
201 Correct 3 ms 71308 KB Output is correct
202 Correct 3 ms 71308 KB Output is correct
203 Correct 3 ms 71308 KB Output is correct
204 Correct 2 ms 71308 KB Output is correct
205 Correct 2 ms 71308 KB Output is correct
206 Correct 2 ms 71308 KB Output is correct
207 Correct 2 ms 71308 KB Output is correct
208 Correct 3 ms 71308 KB Output is correct
209 Correct 3 ms 71308 KB Output is correct
210 Correct 35 ms 71308 KB Output is correct
211 Correct 88 ms 74236 KB Output is correct
212 Correct 124 ms 79804 KB Output is correct
213 Correct 158 ms 84716 KB Output is correct
214 Correct 46 ms 84716 KB Output is correct
215 Correct 45 ms 84716 KB Output is correct
216 Correct 69 ms 84716 KB Output is correct
217 Correct 68 ms 84716 KB Output is correct
218 Correct 67 ms 84716 KB Output is correct
219 Correct 60 ms 84716 KB Output is correct
220 Correct 65 ms 84716 KB Output is correct
221 Correct 74 ms 85340 KB Output is correct
222 Correct 91 ms 89368 KB Output is correct
223 Correct 72 ms 92044 KB Output is correct
224 Correct 89 ms 93088 KB Output is correct
225 Correct 73 ms 93088 KB Output is correct
226 Correct 80 ms 94540 KB Output is correct
227 Correct 75 ms 96188 KB Output is correct
228 Correct 70 ms 97312 KB Output is correct
229 Correct 56 ms 98068 KB Output is correct
230 Correct 80 ms 101052 KB Output is correct
231 Correct 71 ms 102848 KB Output is correct