답안 #434321

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
434321 2021-06-20T23:34:43 Z JerryLiu06 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
123 ms 28248 KB
#include <bits/stdc++.h>
 
using namespace std;
 
using ll = long long;
using db = long double;
using str = string;
 
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using pd = pair<db, db>;
 
using vi = vector<int>;
using vb = vector<bool>;
using vl = vector<ll>;
using vd = vector<db>;
using vs = vector<str>;
using vpi = vector<pi>;
using vpl = vector<pl>;
using vpd = vector<pd>;
 
#define mp make_pair
#define f first
#define s second
 
#define sz(x) (int)(x).size()
#define bg(x) begin(x)
#define all(x) bg(x), end(x)
#define sor(x) sort(all(x))
#define ft front()
#define bk back()
#define pb push_back
#define pf push_front
 
#define lb lower_bound
#define ub upper_bound
 
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define F0R(i, a) FOR(i, 0, a)
#define ROF(i, a, b) for (int i = (b) - 1; i >= (a); i--)
#define R0F(i, a) ROF(i, 0, a)
#define EACH(a, x) for (auto& a : x)
 
const int MOD = 1e9 + 7;
const int MX = 1e5 + 10;
const ll INF = 1e18;
 
int N, M; vi adj[MX], BCC[3 * MX]; stack<int> stck; ll ans = 0;
 
int timer = 1; int in[MX], low[MX]; int numBCC = 1; ll SZ, sz[3 * MX];
 
// Generate Block-Cut Tree ~ O(N + M)
 
void DFS1(int X) {
    SZ++; in[X] = low[X] = timer++; stck.push(X);
 
    EACH(Y, adj[X]) {
        if (in[Y]) { low[X] = min(low[X], in[Y]); continue; }
 
        adj[Y].erase(find(all(adj[Y]), X)); DFS1(Y); low[X] = min(low[X], low[Y]);
 
        if (low[Y] >= in[X]) {
            int cur = N + numBCC; BCC[X].pb(cur);
 
            while (BCC[cur].empty() || BCC[cur].back() != Y) {
                BCC[cur].pb(stck.top()); stck.pop();
            }
            numBCC++;
        }
    }
}
void DFS2(int X) {
    sz[X] = (X <= N); EACH(Y, BCC[X]) {
        DFS2(Y); sz[X] += sz[Y]; if (X > N) ans -= sz(BCC[X]) * sz[Y] * (sz[Y] - 1);
    }
    if (X > N) ans -= sz(BCC[X]) * (SZ - sz[X]) * (SZ - sz[X] - 1);
}
 
int main() {
    ios_base::sync_with_stdio(false); cin.tie(0);
 
    cin >> N >> M; F0R(i, M) { int A, B; cin >> A >> B; adj[A].pb(B), adj[B].pb(A); }
 
    FOR(i, 1, N + 1) if (!in[i]) { SZ = 0; DFS1(i); ans += SZ * (SZ - 1) * (SZ - 2); DFS2(i); } cout << ans;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:38:22: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   38 | #define FOR(i, a, b) for (int i = (a); i < (b); i++)
      |                      ^~~
count_triplets.cpp:84:5: note: in expansion of macro 'FOR'
   84 |     FOR(i, 1, N + 1) if (!in[i]) { SZ = 0; DFS1(i); ans += SZ * (SZ - 1) * (SZ - 2); DFS2(i); } cout << ans;
      |     ^~~
count_triplets.cpp:84:97: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   84 |     FOR(i, 1, N + 1) if (!in[i]) { SZ = 0; DFS1(i); ans += SZ * (SZ - 1) * (SZ - 2); DFS2(i); } cout << ans;
      |                                                                                                 ^~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9676 KB Output is correct
5 Correct 6 ms 9676 KB Output is correct
6 Correct 6 ms 9716 KB Output is correct
7 Correct 6 ms 9716 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 7 ms 9720 KB Output is correct
10 Correct 6 ms 9716 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9676 KB Output is correct
13 Correct 6 ms 9692 KB Output is correct
14 Correct 6 ms 9724 KB Output is correct
15 Correct 7 ms 9716 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9716 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9676 KB Output is correct
20 Correct 6 ms 9648 KB Output is correct
21 Correct 7 ms 9676 KB Output is correct
22 Correct 6 ms 9636 KB Output is correct
23 Correct 8 ms 9712 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9676 KB Output is correct
26 Correct 6 ms 9660 KB Output is correct
27 Correct 7 ms 9676 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9676 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9676 KB Output is correct
5 Correct 6 ms 9676 KB Output is correct
6 Correct 6 ms 9716 KB Output is correct
7 Correct 6 ms 9716 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 7 ms 9720 KB Output is correct
10 Correct 6 ms 9716 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9676 KB Output is correct
13 Correct 6 ms 9692 KB Output is correct
14 Correct 6 ms 9724 KB Output is correct
15 Correct 7 ms 9716 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9716 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9676 KB Output is correct
20 Correct 6 ms 9648 KB Output is correct
21 Correct 7 ms 9676 KB Output is correct
22 Correct 6 ms 9636 KB Output is correct
23 Correct 8 ms 9712 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9676 KB Output is correct
26 Correct 6 ms 9660 KB Output is correct
27 Correct 7 ms 9676 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9676 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9720 KB Output is correct
37 Correct 6 ms 9676 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 6 ms 9676 KB Output is correct
42 Correct 7 ms 9676 KB Output is correct
43 Correct 6 ms 9696 KB Output is correct
44 Correct 6 ms 9852 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 6 ms 9676 KB Output is correct
47 Correct 6 ms 9716 KB Output is correct
48 Correct 6 ms 9720 KB Output is correct
49 Correct 6 ms 9712 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 6 ms 9720 KB Output is correct
53 Correct 6 ms 9676 KB Output is correct
54 Correct 6 ms 9712 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9676 KB Output is correct
57 Correct 6 ms 9656 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9720 KB Output is correct
61 Correct 5 ms 9716 KB Output is correct
62 Correct 6 ms 9676 KB Output is correct
63 Correct 6 ms 9676 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 73 ms 26176 KB Output is correct
2 Correct 72 ms 26400 KB Output is correct
3 Correct 90 ms 23512 KB Output is correct
4 Correct 78 ms 26552 KB Output is correct
5 Correct 76 ms 21824 KB Output is correct
6 Correct 85 ms 23976 KB Output is correct
7 Correct 88 ms 22608 KB Output is correct
8 Correct 87 ms 23252 KB Output is correct
9 Correct 92 ms 21424 KB Output is correct
10 Correct 82 ms 21464 KB Output is correct
11 Correct 68 ms 18796 KB Output is correct
12 Correct 67 ms 18628 KB Output is correct
13 Correct 62 ms 18552 KB Output is correct
14 Correct 62 ms 18336 KB Output is correct
15 Correct 56 ms 17432 KB Output is correct
16 Correct 60 ms 17276 KB Output is correct
17 Correct 9 ms 11644 KB Output is correct
18 Correct 9 ms 11648 KB Output is correct
19 Correct 9 ms 11724 KB Output is correct
20 Correct 9 ms 11596 KB Output is correct
21 Correct 9 ms 11636 KB Output is correct
22 Correct 9 ms 11644 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9804 KB Output is correct
2 Correct 6 ms 9804 KB Output is correct
3 Correct 6 ms 9772 KB Output is correct
4 Correct 7 ms 9844 KB Output is correct
5 Correct 8 ms 9804 KB Output is correct
6 Correct 7 ms 9804 KB Output is correct
7 Correct 7 ms 9804 KB Output is correct
8 Correct 7 ms 9804 KB Output is correct
9 Correct 7 ms 9804 KB Output is correct
10 Correct 7 ms 9804 KB Output is correct
11 Correct 6 ms 9804 KB Output is correct
12 Correct 6 ms 9760 KB Output is correct
13 Correct 6 ms 9724 KB Output is correct
14 Correct 6 ms 9804 KB Output is correct
15 Correct 6 ms 9804 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9804 KB Output is correct
18 Correct 7 ms 9728 KB Output is correct
19 Correct 6 ms 9804 KB Output is correct
20 Correct 6 ms 9804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 85 ms 19932 KB Output is correct
2 Correct 91 ms 20180 KB Output is correct
3 Correct 84 ms 19964 KB Output is correct
4 Correct 82 ms 20036 KB Output is correct
5 Correct 83 ms 19924 KB Output is correct
6 Correct 100 ms 28248 KB Output is correct
7 Correct 94 ms 25220 KB Output is correct
8 Correct 101 ms 23876 KB Output is correct
9 Correct 95 ms 22700 KB Output is correct
10 Correct 88 ms 20036 KB Output is correct
11 Correct 103 ms 21172 KB Output is correct
12 Correct 123 ms 21272 KB Output is correct
13 Correct 101 ms 21296 KB Output is correct
14 Correct 96 ms 20676 KB Output is correct
15 Correct 89 ms 20096 KB Output is correct
16 Correct 49 ms 17672 KB Output is correct
17 Correct 54 ms 20284 KB Output is correct
18 Correct 54 ms 20244 KB Output is correct
19 Correct 61 ms 20564 KB Output is correct
20 Correct 57 ms 20364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9804 KB Output is correct
2 Correct 6 ms 9804 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9804 KB Output is correct
5 Correct 7 ms 9676 KB Output is correct
6 Correct 6 ms 9676 KB Output is correct
7 Correct 7 ms 9676 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 6 ms 9676 KB Output is correct
10 Correct 6 ms 9676 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9804 KB Output is correct
13 Correct 6 ms 9808 KB Output is correct
14 Correct 7 ms 9860 KB Output is correct
15 Correct 6 ms 9804 KB Output is correct
16 Correct 6 ms 9804 KB Output is correct
17 Correct 6 ms 9756 KB Output is correct
18 Correct 7 ms 9728 KB Output is correct
19 Correct 7 ms 9804 KB Output is correct
20 Correct 6 ms 9804 KB Output is correct
21 Correct 6 ms 9804 KB Output is correct
22 Correct 7 ms 9804 KB Output is correct
23 Correct 7 ms 9804 KB Output is correct
24 Correct 6 ms 9804 KB Output is correct
25 Correct 6 ms 9676 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9720 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 97 ms 20036 KB Output is correct
2 Correct 101 ms 20344 KB Output is correct
3 Correct 105 ms 19424 KB Output is correct
4 Correct 92 ms 18116 KB Output is correct
5 Correct 81 ms 16804 KB Output is correct
6 Correct 76 ms 16264 KB Output is correct
7 Correct 77 ms 15968 KB Output is correct
8 Correct 78 ms 15684 KB Output is correct
9 Correct 68 ms 15476 KB Output is correct
10 Correct 69 ms 15448 KB Output is correct
11 Correct 67 ms 15252 KB Output is correct
12 Correct 87 ms 15336 KB Output is correct
13 Correct 62 ms 15320 KB Output is correct
14 Correct 67 ms 17916 KB Output is correct
15 Correct 100 ms 24584 KB Output is correct
16 Correct 99 ms 22796 KB Output is correct
17 Correct 101 ms 23108 KB Output is correct
18 Correct 114 ms 21644 KB Output is correct
19 Correct 90 ms 18088 KB Output is correct
20 Correct 97 ms 19652 KB Output is correct
21 Correct 94 ms 19548 KB Output is correct
22 Correct 96 ms 19008 KB Output is correct
23 Correct 98 ms 18272 KB Output is correct
24 Correct 83 ms 20480 KB Output is correct
25 Correct 84 ms 20536 KB Output is correct
26 Correct 82 ms 19860 KB Output is correct
27 Correct 86 ms 19860 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9676 KB Output is correct
5 Correct 6 ms 9676 KB Output is correct
6 Correct 6 ms 9716 KB Output is correct
7 Correct 6 ms 9716 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 7 ms 9720 KB Output is correct
10 Correct 6 ms 9716 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9676 KB Output is correct
13 Correct 6 ms 9692 KB Output is correct
14 Correct 6 ms 9724 KB Output is correct
15 Correct 7 ms 9716 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9716 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9676 KB Output is correct
20 Correct 6 ms 9648 KB Output is correct
21 Correct 7 ms 9676 KB Output is correct
22 Correct 6 ms 9636 KB Output is correct
23 Correct 8 ms 9712 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9676 KB Output is correct
26 Correct 6 ms 9660 KB Output is correct
27 Correct 7 ms 9676 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9676 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9720 KB Output is correct
37 Correct 6 ms 9676 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 6 ms 9676 KB Output is correct
42 Correct 7 ms 9676 KB Output is correct
43 Correct 6 ms 9696 KB Output is correct
44 Correct 6 ms 9852 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 6 ms 9676 KB Output is correct
47 Correct 6 ms 9716 KB Output is correct
48 Correct 6 ms 9720 KB Output is correct
49 Correct 6 ms 9712 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 6 ms 9720 KB Output is correct
53 Correct 6 ms 9676 KB Output is correct
54 Correct 6 ms 9712 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9676 KB Output is correct
57 Correct 6 ms 9656 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9720 KB Output is correct
61 Correct 5 ms 9716 KB Output is correct
62 Correct 6 ms 9676 KB Output is correct
63 Correct 6 ms 9676 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
66 Correct 6 ms 9676 KB Output is correct
67 Correct 7 ms 9736 KB Output is correct
68 Correct 6 ms 9804 KB Output is correct
69 Correct 7 ms 9804 KB Output is correct
70 Correct 7 ms 9804 KB Output is correct
71 Correct 6 ms 9728 KB Output is correct
72 Correct 6 ms 9804 KB Output is correct
73 Correct 6 ms 9804 KB Output is correct
74 Correct 7 ms 9804 KB Output is correct
75 Correct 7 ms 9804 KB Output is correct
76 Correct 6 ms 9720 KB Output is correct
77 Correct 8 ms 9804 KB Output is correct
78 Correct 8 ms 9804 KB Output is correct
79 Correct 6 ms 9804 KB Output is correct
80 Correct 6 ms 9676 KB Output is correct
81 Correct 6 ms 9804 KB Output is correct
82 Correct 6 ms 9932 KB Output is correct
83 Correct 6 ms 9804 KB Output is correct
84 Correct 7 ms 9804 KB Output is correct
85 Correct 8 ms 9752 KB Output is correct
86 Correct 7 ms 9740 KB Output is correct
87 Correct 6 ms 9804 KB Output is correct
88 Correct 6 ms 9804 KB Output is correct
89 Correct 6 ms 9676 KB Output is correct
90 Correct 6 ms 9804 KB Output is correct
91 Correct 6 ms 9804 KB Output is correct
92 Correct 6 ms 9720 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9676 KB Output is correct
5 Correct 6 ms 9676 KB Output is correct
6 Correct 6 ms 9716 KB Output is correct
7 Correct 6 ms 9716 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 7 ms 9720 KB Output is correct
10 Correct 6 ms 9716 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9676 KB Output is correct
13 Correct 6 ms 9692 KB Output is correct
14 Correct 6 ms 9724 KB Output is correct
15 Correct 7 ms 9716 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9716 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9676 KB Output is correct
20 Correct 6 ms 9648 KB Output is correct
21 Correct 7 ms 9676 KB Output is correct
22 Correct 6 ms 9636 KB Output is correct
23 Correct 8 ms 9712 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9676 KB Output is correct
26 Correct 6 ms 9660 KB Output is correct
27 Correct 7 ms 9676 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9676 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9720 KB Output is correct
37 Correct 6 ms 9676 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 6 ms 9676 KB Output is correct
42 Correct 7 ms 9676 KB Output is correct
43 Correct 6 ms 9696 KB Output is correct
44 Correct 6 ms 9852 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 6 ms 9676 KB Output is correct
47 Correct 6 ms 9716 KB Output is correct
48 Correct 6 ms 9720 KB Output is correct
49 Correct 6 ms 9712 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 6 ms 9720 KB Output is correct
53 Correct 6 ms 9676 KB Output is correct
54 Correct 6 ms 9712 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9676 KB Output is correct
57 Correct 6 ms 9656 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9720 KB Output is correct
61 Correct 5 ms 9716 KB Output is correct
62 Correct 6 ms 9676 KB Output is correct
63 Correct 6 ms 9676 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
66 Correct 73 ms 26176 KB Output is correct
67 Correct 72 ms 26400 KB Output is correct
68 Correct 90 ms 23512 KB Output is correct
69 Correct 78 ms 26552 KB Output is correct
70 Correct 76 ms 21824 KB Output is correct
71 Correct 85 ms 23976 KB Output is correct
72 Correct 88 ms 22608 KB Output is correct
73 Correct 87 ms 23252 KB Output is correct
74 Correct 92 ms 21424 KB Output is correct
75 Correct 82 ms 21464 KB Output is correct
76 Correct 68 ms 18796 KB Output is correct
77 Correct 67 ms 18628 KB Output is correct
78 Correct 62 ms 18552 KB Output is correct
79 Correct 62 ms 18336 KB Output is correct
80 Correct 56 ms 17432 KB Output is correct
81 Correct 60 ms 17276 KB Output is correct
82 Correct 9 ms 11644 KB Output is correct
83 Correct 9 ms 11648 KB Output is correct
84 Correct 9 ms 11724 KB Output is correct
85 Correct 9 ms 11596 KB Output is correct
86 Correct 9 ms 11636 KB Output is correct
87 Correct 9 ms 11644 KB Output is correct
88 Correct 6 ms 9804 KB Output is correct
89 Correct 6 ms 9804 KB Output is correct
90 Correct 6 ms 9772 KB Output is correct
91 Correct 7 ms 9844 KB Output is correct
92 Correct 8 ms 9804 KB Output is correct
93 Correct 7 ms 9804 KB Output is correct
94 Correct 7 ms 9804 KB Output is correct
95 Correct 7 ms 9804 KB Output is correct
96 Correct 7 ms 9804 KB Output is correct
97 Correct 7 ms 9804 KB Output is correct
98 Correct 6 ms 9804 KB Output is correct
99 Correct 6 ms 9760 KB Output is correct
100 Correct 6 ms 9724 KB Output is correct
101 Correct 6 ms 9804 KB Output is correct
102 Correct 6 ms 9804 KB Output is correct
103 Correct 6 ms 9676 KB Output is correct
104 Correct 6 ms 9804 KB Output is correct
105 Correct 7 ms 9728 KB Output is correct
106 Correct 6 ms 9804 KB Output is correct
107 Correct 6 ms 9804 KB Output is correct
108 Correct 85 ms 19932 KB Output is correct
109 Correct 91 ms 20180 KB Output is correct
110 Correct 84 ms 19964 KB Output is correct
111 Correct 82 ms 20036 KB Output is correct
112 Correct 83 ms 19924 KB Output is correct
113 Correct 100 ms 28248 KB Output is correct
114 Correct 94 ms 25220 KB Output is correct
115 Correct 101 ms 23876 KB Output is correct
116 Correct 95 ms 22700 KB Output is correct
117 Correct 88 ms 20036 KB Output is correct
118 Correct 103 ms 21172 KB Output is correct
119 Correct 123 ms 21272 KB Output is correct
120 Correct 101 ms 21296 KB Output is correct
121 Correct 96 ms 20676 KB Output is correct
122 Correct 89 ms 20096 KB Output is correct
123 Correct 49 ms 17672 KB Output is correct
124 Correct 54 ms 20284 KB Output is correct
125 Correct 54 ms 20244 KB Output is correct
126 Correct 61 ms 20564 KB Output is correct
127 Correct 57 ms 20364 KB Output is correct
128 Correct 6 ms 9804 KB Output is correct
129 Correct 6 ms 9804 KB Output is correct
130 Correct 6 ms 9804 KB Output is correct
131 Correct 6 ms 9804 KB Output is correct
132 Correct 7 ms 9676 KB Output is correct
133 Correct 6 ms 9676 KB Output is correct
134 Correct 7 ms 9676 KB Output is correct
135 Correct 6 ms 9676 KB Output is correct
136 Correct 6 ms 9676 KB Output is correct
137 Correct 6 ms 9676 KB Output is correct
138 Correct 6 ms 9676 KB Output is correct
139 Correct 6 ms 9804 KB Output is correct
140 Correct 6 ms 9808 KB Output is correct
141 Correct 7 ms 9860 KB Output is correct
142 Correct 6 ms 9804 KB Output is correct
143 Correct 6 ms 9804 KB Output is correct
144 Correct 6 ms 9756 KB Output is correct
145 Correct 7 ms 9728 KB Output is correct
146 Correct 7 ms 9804 KB Output is correct
147 Correct 6 ms 9804 KB Output is correct
148 Correct 6 ms 9804 KB Output is correct
149 Correct 7 ms 9804 KB Output is correct
150 Correct 7 ms 9804 KB Output is correct
151 Correct 6 ms 9804 KB Output is correct
152 Correct 6 ms 9676 KB Output is correct
153 Correct 6 ms 9676 KB Output is correct
154 Correct 6 ms 9720 KB Output is correct
155 Correct 97 ms 20036 KB Output is correct
156 Correct 101 ms 20344 KB Output is correct
157 Correct 105 ms 19424 KB Output is correct
158 Correct 92 ms 18116 KB Output is correct
159 Correct 81 ms 16804 KB Output is correct
160 Correct 76 ms 16264 KB Output is correct
161 Correct 77 ms 15968 KB Output is correct
162 Correct 78 ms 15684 KB Output is correct
163 Correct 68 ms 15476 KB Output is correct
164 Correct 69 ms 15448 KB Output is correct
165 Correct 67 ms 15252 KB Output is correct
166 Correct 87 ms 15336 KB Output is correct
167 Correct 62 ms 15320 KB Output is correct
168 Correct 67 ms 17916 KB Output is correct
169 Correct 100 ms 24584 KB Output is correct
170 Correct 99 ms 22796 KB Output is correct
171 Correct 101 ms 23108 KB Output is correct
172 Correct 114 ms 21644 KB Output is correct
173 Correct 90 ms 18088 KB Output is correct
174 Correct 97 ms 19652 KB Output is correct
175 Correct 94 ms 19548 KB Output is correct
176 Correct 96 ms 19008 KB Output is correct
177 Correct 98 ms 18272 KB Output is correct
178 Correct 83 ms 20480 KB Output is correct
179 Correct 84 ms 20536 KB Output is correct
180 Correct 82 ms 19860 KB Output is correct
181 Correct 86 ms 19860 KB Output is correct
182 Correct 6 ms 9676 KB Output is correct
183 Correct 7 ms 9736 KB Output is correct
184 Correct 6 ms 9804 KB Output is correct
185 Correct 7 ms 9804 KB Output is correct
186 Correct 7 ms 9804 KB Output is correct
187 Correct 6 ms 9728 KB Output is correct
188 Correct 6 ms 9804 KB Output is correct
189 Correct 6 ms 9804 KB Output is correct
190 Correct 7 ms 9804 KB Output is correct
191 Correct 7 ms 9804 KB Output is correct
192 Correct 6 ms 9720 KB Output is correct
193 Correct 8 ms 9804 KB Output is correct
194 Correct 8 ms 9804 KB Output is correct
195 Correct 6 ms 9804 KB Output is correct
196 Correct 6 ms 9676 KB Output is correct
197 Correct 6 ms 9804 KB Output is correct
198 Correct 6 ms 9932 KB Output is correct
199 Correct 6 ms 9804 KB Output is correct
200 Correct 7 ms 9804 KB Output is correct
201 Correct 8 ms 9752 KB Output is correct
202 Correct 7 ms 9740 KB Output is correct
203 Correct 6 ms 9804 KB Output is correct
204 Correct 6 ms 9804 KB Output is correct
205 Correct 6 ms 9676 KB Output is correct
206 Correct 6 ms 9804 KB Output is correct
207 Correct 6 ms 9804 KB Output is correct
208 Correct 6 ms 9720 KB Output is correct
209 Correct 8 ms 11596 KB Output is correct
210 Correct 50 ms 17216 KB Output is correct
211 Correct 73 ms 20776 KB Output is correct
212 Correct 109 ms 23364 KB Output is correct
213 Correct 116 ms 25376 KB Output is correct
214 Correct 52 ms 18372 KB Output is correct
215 Correct 56 ms 18040 KB Output is correct
216 Correct 102 ms 19844 KB Output is correct
217 Correct 95 ms 18464 KB Output is correct
218 Correct 78 ms 16960 KB Output is correct
219 Correct 81 ms 16596 KB Output is correct
220 Correct 77 ms 16516 KB Output is correct
221 Correct 62 ms 16356 KB Output is correct
222 Correct 65 ms 17984 KB Output is correct
223 Correct 102 ms 21616 KB Output is correct
224 Correct 97 ms 20636 KB Output is correct
225 Correct 89 ms 18112 KB Output is correct
226 Correct 91 ms 18068 KB Output is correct
227 Correct 88 ms 18116 KB Output is correct
228 Correct 89 ms 18004 KB Output is correct
229 Correct 76 ms 17604 KB Output is correct
230 Correct 78 ms 18076 KB Output is correct
231 Correct 82 ms 18180 KB Output is correct