답안 #628281

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
628281 2022-08-13T09:31:28 Z Do_you_copy 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
125 ms 35396 KB
#include <bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define pb push_back
#define faster ios_base::sync_with_stdio(0); cin.tie(0);
using namespace std;
using ll = long long;
using ull = unsigned ll;
using ld = long double;
using pii = pair <int, int>;
using pil = pair <int, ll>;
using pli = pair <ll, int>;
using pll = pair <ll, ll>;
mt19937 Rand(chrono::steady_clock::now().time_since_epoch().count());

ll min(const ll &a, const ll &b){
    return (a < b) ? a : b;
}

ll max(const ll &a, const ll &b){
    return (a > b) ? a : b;
}

//const ll Mod = 1000000007;
//const ll Mod2 = 999999999989;
//only use when required
const int maxN = 3e5 + 1;
int n, m;
vector <int> adj[maxN];
int low[maxN], num[maxN], timedfs;
vector <int> S;
vector <int> adj1[maxN];
int bcc;
ll sz[maxN];

ll cnt, ans;
void pre_dfs(int u, int p){
    low[u] = num[u] = ++timedfs;
    S.pb(u);
    ++cnt;
    int child = 0;
    for (const int &i: adj[u]){
        if (i == p) continue;
        if (!num[i]){
            pre_dfs(i, u);
            ++child;
            low[u] = min(low[u], low[i]);
            if (low[i] >= num[u]){
                ++bcc;
                adj1[u].pb(n + bcc);
                int v;
                do{
                    v = S.back();
                    S.pop_back();
                    adj1[bcc + n].pb(v);
                } while (v != i);
            }
        }
        else low[u] = min(low[u], num[i]);
    }
}

void dfs(int u, int p){
    sz[u] = (u <= n);
    for (auto i: adj1[u]){
        dfs(i, u);
        sz[u] += sz[i];
        if (u > n) ans -= adj1[u].size() * sz[i] * (sz[i] - 1);
    }
    if (u > n) ans -= adj1[u].size() * (cnt - sz[u]) * (cnt - sz[u] - 1);
}

void Init(){
    cin >> n >> m;
    for (int i = 1; i <= m; ++i){
        int u, v;
        cin >> u >> v;
        adj[u].pb(v);
        adj[v].pb(u);
    }
    for (int i = 1; i <= n; ++i){
        if (!num[i]){
            cnt = 0;
            pre_dfs(i, i);
            ans += cnt * (cnt - 1) * (cnt - 2);
            dfs(i, i);
        }
    }
    cout << ans;
}

#define debu
#define taskname "test"
signed main(){
    if (fopen(taskname".inp", "r")){
        freopen(taskname".inp", "r", stdin);
        #ifdef debug
        freopen(taskname".out", "w", stdout);
        #endif
    }
    faster;
    ll tt = 1;
    //cin >> tt;
    while (tt--){
        Init();
    }
    if (fopen("timeout.txt", "r")){
        ofstream timeout("timeout.txt");
        timeout << 1000 * double(clock()) / CLOCKS_PER_SEC;
        #ifndef debug
        cerr << "\nTime elapsed: " << 1000 * double(clock()) / CLOCKS_PER_SEC << "ms\n";
        #endif
    }
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:97:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   97 |         freopen(taskname".inp", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 14392 KB Output is correct
2 Correct 8 ms 14420 KB Output is correct
3 Correct 7 ms 14420 KB Output is correct
4 Correct 8 ms 14360 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14412 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 7 ms 14420 KB Output is correct
10 Correct 7 ms 14420 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 7 ms 14420 KB Output is correct
13 Correct 7 ms 14420 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 8 ms 14352 KB Output is correct
19 Correct 8 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14396 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 9 ms 14372 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14444 KB Output is correct
33 Correct 7 ms 14396 KB Output is correct
34 Correct 8 ms 14420 KB Output is correct
35 Correct 7 ms 14420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 14392 KB Output is correct
2 Correct 8 ms 14420 KB Output is correct
3 Correct 7 ms 14420 KB Output is correct
4 Correct 8 ms 14360 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14412 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 7 ms 14420 KB Output is correct
10 Correct 7 ms 14420 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 7 ms 14420 KB Output is correct
13 Correct 7 ms 14420 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 8 ms 14352 KB Output is correct
19 Correct 8 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14396 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 9 ms 14372 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14444 KB Output is correct
33 Correct 7 ms 14396 KB Output is correct
34 Correct 8 ms 14420 KB Output is correct
35 Correct 7 ms 14420 KB Output is correct
36 Correct 8 ms 14420 KB Output is correct
37 Correct 7 ms 14420 KB Output is correct
38 Correct 7 ms 14420 KB Output is correct
39 Correct 7 ms 14420 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14328 KB Output is correct
42 Correct 7 ms 14420 KB Output is correct
43 Correct 8 ms 14380 KB Output is correct
44 Correct 8 ms 14332 KB Output is correct
45 Correct 7 ms 14388 KB Output is correct
46 Correct 8 ms 14412 KB Output is correct
47 Correct 8 ms 14376 KB Output is correct
48 Correct 8 ms 14444 KB Output is correct
49 Correct 8 ms 14392 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 8 ms 14352 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 7 ms 14420 KB Output is correct
54 Correct 9 ms 14432 KB Output is correct
55 Correct 8 ms 14420 KB Output is correct
56 Correct 8 ms 14420 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 8 ms 14404 KB Output is correct
60 Correct 7 ms 14420 KB Output is correct
61 Correct 7 ms 14444 KB Output is correct
62 Correct 7 ms 14420 KB Output is correct
63 Correct 8 ms 14444 KB Output is correct
64 Correct 7 ms 14420 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 59 ms 30912 KB Output is correct
2 Correct 63 ms 32200 KB Output is correct
3 Correct 82 ms 30544 KB Output is correct
4 Correct 68 ms 32060 KB Output is correct
5 Correct 69 ms 27500 KB Output is correct
6 Correct 74 ms 29936 KB Output is correct
7 Correct 73 ms 28420 KB Output is correct
8 Correct 74 ms 28872 KB Output is correct
9 Correct 76 ms 26944 KB Output is correct
10 Correct 71 ms 27032 KB Output is correct
11 Correct 69 ms 24500 KB Output is correct
12 Correct 83 ms 24468 KB Output is correct
13 Correct 56 ms 24520 KB Output is correct
14 Correct 55 ms 24244 KB Output is correct
15 Correct 42 ms 23136 KB Output is correct
16 Correct 46 ms 22984 KB Output is correct
17 Correct 11 ms 17764 KB Output is correct
18 Correct 12 ms 17688 KB Output is correct
19 Correct 14 ms 17620 KB Output is correct
20 Correct 11 ms 17644 KB Output is correct
21 Correct 11 ms 17648 KB Output is correct
22 Correct 11 ms 17616 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 14468 KB Output is correct
2 Correct 8 ms 14488 KB Output is correct
3 Correct 8 ms 14548 KB Output is correct
4 Correct 8 ms 14548 KB Output is correct
5 Correct 8 ms 14548 KB Output is correct
6 Correct 8 ms 14548 KB Output is correct
7 Correct 8 ms 14548 KB Output is correct
8 Correct 8 ms 14548 KB Output is correct
9 Correct 8 ms 14548 KB Output is correct
10 Correct 9 ms 14548 KB Output is correct
11 Correct 9 ms 14548 KB Output is correct
12 Correct 8 ms 14548 KB Output is correct
13 Correct 8 ms 14548 KB Output is correct
14 Correct 8 ms 14548 KB Output is correct
15 Correct 8 ms 14548 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 8 ms 14548 KB Output is correct
18 Correct 8 ms 14548 KB Output is correct
19 Correct 8 ms 14536 KB Output is correct
20 Correct 9 ms 14548 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 74 ms 26280 KB Output is correct
2 Correct 77 ms 27504 KB Output is correct
3 Correct 81 ms 27532 KB Output is correct
4 Correct 73 ms 27472 KB Output is correct
5 Correct 71 ms 27436 KB Output is correct
6 Correct 90 ms 35396 KB Output is correct
7 Correct 86 ms 32548 KB Output is correct
8 Correct 84 ms 31304 KB Output is correct
9 Correct 92 ms 30084 KB Output is correct
10 Correct 73 ms 27440 KB Output is correct
11 Correct 75 ms 27536 KB Output is correct
12 Correct 75 ms 27464 KB Output is correct
13 Correct 76 ms 27536 KB Output is correct
14 Correct 72 ms 26840 KB Output is correct
15 Correct 62 ms 26076 KB Output is correct
16 Correct 43 ms 23408 KB Output is correct
17 Correct 55 ms 26576 KB Output is correct
18 Correct 50 ms 26580 KB Output is correct
19 Correct 48 ms 26932 KB Output is correct
20 Correct 48 ms 26580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 14548 KB Output is correct
2 Correct 8 ms 14492 KB Output is correct
3 Correct 9 ms 14464 KB Output is correct
4 Correct 8 ms 14548 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14508 KB Output is correct
7 Correct 9 ms 14528 KB Output is correct
8 Correct 7 ms 14420 KB Output is correct
9 Correct 8 ms 14500 KB Output is correct
10 Correct 8 ms 14464 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 8 ms 14548 KB Output is correct
13 Correct 8 ms 14532 KB Output is correct
14 Correct 9 ms 14548 KB Output is correct
15 Correct 8 ms 14548 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 9 ms 14524 KB Output is correct
18 Correct 8 ms 14420 KB Output is correct
19 Correct 8 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 7 ms 14548 KB Output is correct
22 Correct 8 ms 14548 KB Output is correct
23 Correct 9 ms 14548 KB Output is correct
24 Correct 7 ms 14548 KB Output is correct
25 Correct 7 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 71 ms 26172 KB Output is correct
2 Correct 80 ms 27656 KB Output is correct
3 Correct 103 ms 27144 KB Output is correct
4 Correct 97 ms 26060 KB Output is correct
5 Correct 71 ms 24548 KB Output is correct
6 Correct 68 ms 23976 KB Output is correct
7 Correct 92 ms 23572 KB Output is correct
8 Correct 64 ms 23112 KB Output is correct
9 Correct 62 ms 22992 KB Output is correct
10 Correct 60 ms 22796 KB Output is correct
11 Correct 56 ms 22616 KB Output is correct
12 Correct 55 ms 22516 KB Output is correct
13 Correct 54 ms 22656 KB Output is correct
14 Correct 59 ms 25076 KB Output is correct
15 Correct 92 ms 32436 KB Output is correct
16 Correct 93 ms 30632 KB Output is correct
17 Correct 94 ms 31112 KB Output is correct
18 Correct 95 ms 29636 KB Output is correct
19 Correct 84 ms 26044 KB Output is correct
20 Correct 86 ms 26048 KB Output is correct
21 Correct 84 ms 25996 KB Output is correct
22 Correct 78 ms 25240 KB Output is correct
23 Correct 66 ms 24388 KB Output is correct
24 Correct 70 ms 26692 KB Output is correct
25 Correct 79 ms 26784 KB Output is correct
26 Correct 73 ms 26192 KB Output is correct
27 Correct 85 ms 26172 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 14392 KB Output is correct
2 Correct 8 ms 14420 KB Output is correct
3 Correct 7 ms 14420 KB Output is correct
4 Correct 8 ms 14360 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14412 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 7 ms 14420 KB Output is correct
10 Correct 7 ms 14420 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 7 ms 14420 KB Output is correct
13 Correct 7 ms 14420 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 8 ms 14352 KB Output is correct
19 Correct 8 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14396 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 9 ms 14372 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14444 KB Output is correct
33 Correct 7 ms 14396 KB Output is correct
34 Correct 8 ms 14420 KB Output is correct
35 Correct 7 ms 14420 KB Output is correct
36 Correct 8 ms 14420 KB Output is correct
37 Correct 7 ms 14420 KB Output is correct
38 Correct 7 ms 14420 KB Output is correct
39 Correct 7 ms 14420 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14328 KB Output is correct
42 Correct 7 ms 14420 KB Output is correct
43 Correct 8 ms 14380 KB Output is correct
44 Correct 8 ms 14332 KB Output is correct
45 Correct 7 ms 14388 KB Output is correct
46 Correct 8 ms 14412 KB Output is correct
47 Correct 8 ms 14376 KB Output is correct
48 Correct 8 ms 14444 KB Output is correct
49 Correct 8 ms 14392 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 8 ms 14352 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 7 ms 14420 KB Output is correct
54 Correct 9 ms 14432 KB Output is correct
55 Correct 8 ms 14420 KB Output is correct
56 Correct 8 ms 14420 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 8 ms 14404 KB Output is correct
60 Correct 7 ms 14420 KB Output is correct
61 Correct 7 ms 14444 KB Output is correct
62 Correct 7 ms 14420 KB Output is correct
63 Correct 8 ms 14444 KB Output is correct
64 Correct 7 ms 14420 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
66 Correct 8 ms 14420 KB Output is correct
67 Correct 10 ms 14420 KB Output is correct
68 Correct 10 ms 14548 KB Output is correct
69 Correct 9 ms 14540 KB Output is correct
70 Correct 10 ms 14572 KB Output is correct
71 Correct 9 ms 14420 KB Output is correct
72 Correct 12 ms 14532 KB Output is correct
73 Correct 10 ms 14548 KB Output is correct
74 Correct 9 ms 14548 KB Output is correct
75 Correct 9 ms 14548 KB Output is correct
76 Correct 9 ms 14420 KB Output is correct
77 Correct 9 ms 14548 KB Output is correct
78 Correct 9 ms 14420 KB Output is correct
79 Correct 9 ms 14432 KB Output is correct
80 Correct 10 ms 14424 KB Output is correct
81 Correct 9 ms 14432 KB Output is correct
82 Correct 8 ms 14548 KB Output is correct
83 Correct 9 ms 14548 KB Output is correct
84 Correct 9 ms 14568 KB Output is correct
85 Correct 9 ms 14548 KB Output is correct
86 Correct 8 ms 14480 KB Output is correct
87 Correct 9 ms 14420 KB Output is correct
88 Correct 10 ms 14440 KB Output is correct
89 Correct 9 ms 14564 KB Output is correct
90 Correct 8 ms 14444 KB Output is correct
91 Correct 9 ms 14440 KB Output is correct
92 Correct 9 ms 14444 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 14392 KB Output is correct
2 Correct 8 ms 14420 KB Output is correct
3 Correct 7 ms 14420 KB Output is correct
4 Correct 8 ms 14360 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 8 ms 14412 KB Output is correct
7 Correct 8 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 7 ms 14420 KB Output is correct
10 Correct 7 ms 14420 KB Output is correct
11 Correct 8 ms 14420 KB Output is correct
12 Correct 7 ms 14420 KB Output is correct
13 Correct 7 ms 14420 KB Output is correct
14 Correct 8 ms 14420 KB Output is correct
15 Correct 8 ms 14420 KB Output is correct
16 Correct 8 ms 14420 KB Output is correct
17 Correct 8 ms 14420 KB Output is correct
18 Correct 8 ms 14352 KB Output is correct
19 Correct 8 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 8 ms 14420 KB Output is correct
23 Correct 8 ms 14396 KB Output is correct
24 Correct 8 ms 14420 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
28 Correct 8 ms 14420 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 9 ms 14372 KB Output is correct
31 Correct 8 ms 14420 KB Output is correct
32 Correct 8 ms 14444 KB Output is correct
33 Correct 7 ms 14396 KB Output is correct
34 Correct 8 ms 14420 KB Output is correct
35 Correct 7 ms 14420 KB Output is correct
36 Correct 8 ms 14420 KB Output is correct
37 Correct 7 ms 14420 KB Output is correct
38 Correct 7 ms 14420 KB Output is correct
39 Correct 7 ms 14420 KB Output is correct
40 Correct 8 ms 14420 KB Output is correct
41 Correct 8 ms 14328 KB Output is correct
42 Correct 7 ms 14420 KB Output is correct
43 Correct 8 ms 14380 KB Output is correct
44 Correct 8 ms 14332 KB Output is correct
45 Correct 7 ms 14388 KB Output is correct
46 Correct 8 ms 14412 KB Output is correct
47 Correct 8 ms 14376 KB Output is correct
48 Correct 8 ms 14444 KB Output is correct
49 Correct 8 ms 14392 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 8 ms 14352 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 7 ms 14420 KB Output is correct
54 Correct 9 ms 14432 KB Output is correct
55 Correct 8 ms 14420 KB Output is correct
56 Correct 8 ms 14420 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 8 ms 14420 KB Output is correct
59 Correct 8 ms 14404 KB Output is correct
60 Correct 7 ms 14420 KB Output is correct
61 Correct 7 ms 14444 KB Output is correct
62 Correct 7 ms 14420 KB Output is correct
63 Correct 8 ms 14444 KB Output is correct
64 Correct 7 ms 14420 KB Output is correct
65 Correct 8 ms 14420 KB Output is correct
66 Correct 59 ms 30912 KB Output is correct
67 Correct 63 ms 32200 KB Output is correct
68 Correct 82 ms 30544 KB Output is correct
69 Correct 68 ms 32060 KB Output is correct
70 Correct 69 ms 27500 KB Output is correct
71 Correct 74 ms 29936 KB Output is correct
72 Correct 73 ms 28420 KB Output is correct
73 Correct 74 ms 28872 KB Output is correct
74 Correct 76 ms 26944 KB Output is correct
75 Correct 71 ms 27032 KB Output is correct
76 Correct 69 ms 24500 KB Output is correct
77 Correct 83 ms 24468 KB Output is correct
78 Correct 56 ms 24520 KB Output is correct
79 Correct 55 ms 24244 KB Output is correct
80 Correct 42 ms 23136 KB Output is correct
81 Correct 46 ms 22984 KB Output is correct
82 Correct 11 ms 17764 KB Output is correct
83 Correct 12 ms 17688 KB Output is correct
84 Correct 14 ms 17620 KB Output is correct
85 Correct 11 ms 17644 KB Output is correct
86 Correct 11 ms 17648 KB Output is correct
87 Correct 11 ms 17616 KB Output is correct
88 Correct 10 ms 14468 KB Output is correct
89 Correct 8 ms 14488 KB Output is correct
90 Correct 8 ms 14548 KB Output is correct
91 Correct 8 ms 14548 KB Output is correct
92 Correct 8 ms 14548 KB Output is correct
93 Correct 8 ms 14548 KB Output is correct
94 Correct 8 ms 14548 KB Output is correct
95 Correct 8 ms 14548 KB Output is correct
96 Correct 8 ms 14548 KB Output is correct
97 Correct 9 ms 14548 KB Output is correct
98 Correct 9 ms 14548 KB Output is correct
99 Correct 8 ms 14548 KB Output is correct
100 Correct 8 ms 14548 KB Output is correct
101 Correct 8 ms 14548 KB Output is correct
102 Correct 8 ms 14548 KB Output is correct
103 Correct 7 ms 14420 KB Output is correct
104 Correct 8 ms 14548 KB Output is correct
105 Correct 8 ms 14548 KB Output is correct
106 Correct 8 ms 14536 KB Output is correct
107 Correct 9 ms 14548 KB Output is correct
108 Correct 74 ms 26280 KB Output is correct
109 Correct 77 ms 27504 KB Output is correct
110 Correct 81 ms 27532 KB Output is correct
111 Correct 73 ms 27472 KB Output is correct
112 Correct 71 ms 27436 KB Output is correct
113 Correct 90 ms 35396 KB Output is correct
114 Correct 86 ms 32548 KB Output is correct
115 Correct 84 ms 31304 KB Output is correct
116 Correct 92 ms 30084 KB Output is correct
117 Correct 73 ms 27440 KB Output is correct
118 Correct 75 ms 27536 KB Output is correct
119 Correct 75 ms 27464 KB Output is correct
120 Correct 76 ms 27536 KB Output is correct
121 Correct 72 ms 26840 KB Output is correct
122 Correct 62 ms 26076 KB Output is correct
123 Correct 43 ms 23408 KB Output is correct
124 Correct 55 ms 26576 KB Output is correct
125 Correct 50 ms 26580 KB Output is correct
126 Correct 48 ms 26932 KB Output is correct
127 Correct 48 ms 26580 KB Output is correct
128 Correct 8 ms 14548 KB Output is correct
129 Correct 8 ms 14492 KB Output is correct
130 Correct 9 ms 14464 KB Output is correct
131 Correct 8 ms 14548 KB Output is correct
132 Correct 8 ms 14420 KB Output is correct
133 Correct 8 ms 14508 KB Output is correct
134 Correct 9 ms 14528 KB Output is correct
135 Correct 7 ms 14420 KB Output is correct
136 Correct 8 ms 14500 KB Output is correct
137 Correct 8 ms 14464 KB Output is correct
138 Correct 8 ms 14420 KB Output is correct
139 Correct 8 ms 14548 KB Output is correct
140 Correct 8 ms 14532 KB Output is correct
141 Correct 9 ms 14548 KB Output is correct
142 Correct 8 ms 14548 KB Output is correct
143 Correct 8 ms 14420 KB Output is correct
144 Correct 9 ms 14524 KB Output is correct
145 Correct 8 ms 14420 KB Output is correct
146 Correct 8 ms 14420 KB Output is correct
147 Correct 7 ms 14420 KB Output is correct
148 Correct 7 ms 14548 KB Output is correct
149 Correct 8 ms 14548 KB Output is correct
150 Correct 9 ms 14548 KB Output is correct
151 Correct 7 ms 14548 KB Output is correct
152 Correct 7 ms 14420 KB Output is correct
153 Correct 8 ms 14420 KB Output is correct
154 Correct 8 ms 14420 KB Output is correct
155 Correct 71 ms 26172 KB Output is correct
156 Correct 80 ms 27656 KB Output is correct
157 Correct 103 ms 27144 KB Output is correct
158 Correct 97 ms 26060 KB Output is correct
159 Correct 71 ms 24548 KB Output is correct
160 Correct 68 ms 23976 KB Output is correct
161 Correct 92 ms 23572 KB Output is correct
162 Correct 64 ms 23112 KB Output is correct
163 Correct 62 ms 22992 KB Output is correct
164 Correct 60 ms 22796 KB Output is correct
165 Correct 56 ms 22616 KB Output is correct
166 Correct 55 ms 22516 KB Output is correct
167 Correct 54 ms 22656 KB Output is correct
168 Correct 59 ms 25076 KB Output is correct
169 Correct 92 ms 32436 KB Output is correct
170 Correct 93 ms 30632 KB Output is correct
171 Correct 94 ms 31112 KB Output is correct
172 Correct 95 ms 29636 KB Output is correct
173 Correct 84 ms 26044 KB Output is correct
174 Correct 86 ms 26048 KB Output is correct
175 Correct 84 ms 25996 KB Output is correct
176 Correct 78 ms 25240 KB Output is correct
177 Correct 66 ms 24388 KB Output is correct
178 Correct 70 ms 26692 KB Output is correct
179 Correct 79 ms 26784 KB Output is correct
180 Correct 73 ms 26192 KB Output is correct
181 Correct 85 ms 26172 KB Output is correct
182 Correct 8 ms 14420 KB Output is correct
183 Correct 10 ms 14420 KB Output is correct
184 Correct 10 ms 14548 KB Output is correct
185 Correct 9 ms 14540 KB Output is correct
186 Correct 10 ms 14572 KB Output is correct
187 Correct 9 ms 14420 KB Output is correct
188 Correct 12 ms 14532 KB Output is correct
189 Correct 10 ms 14548 KB Output is correct
190 Correct 9 ms 14548 KB Output is correct
191 Correct 9 ms 14548 KB Output is correct
192 Correct 9 ms 14420 KB Output is correct
193 Correct 9 ms 14548 KB Output is correct
194 Correct 9 ms 14420 KB Output is correct
195 Correct 9 ms 14432 KB Output is correct
196 Correct 10 ms 14424 KB Output is correct
197 Correct 9 ms 14432 KB Output is correct
198 Correct 8 ms 14548 KB Output is correct
199 Correct 9 ms 14548 KB Output is correct
200 Correct 9 ms 14568 KB Output is correct
201 Correct 9 ms 14548 KB Output is correct
202 Correct 8 ms 14480 KB Output is correct
203 Correct 9 ms 14420 KB Output is correct
204 Correct 10 ms 14440 KB Output is correct
205 Correct 9 ms 14564 KB Output is correct
206 Correct 8 ms 14444 KB Output is correct
207 Correct 9 ms 14440 KB Output is correct
208 Correct 9 ms 14444 KB Output is correct
209 Correct 11 ms 17616 KB Output is correct
210 Correct 46 ms 23012 KB Output is correct
211 Correct 70 ms 26964 KB Output is correct
212 Correct 94 ms 30016 KB Output is correct
213 Correct 125 ms 32692 KB Output is correct
214 Correct 45 ms 25064 KB Output is correct
215 Correct 52 ms 24776 KB Output is correct
216 Correct 83 ms 26356 KB Output is correct
217 Correct 74 ms 24860 KB Output is correct
218 Correct 62 ms 23184 KB Output is correct
219 Correct 61 ms 22660 KB Output is correct
220 Correct 57 ms 22616 KB Output is correct
221 Correct 53 ms 22476 KB Output is correct
222 Correct 56 ms 23740 KB Output is correct
223 Correct 87 ms 27964 KB Output is correct
224 Correct 86 ms 26980 KB Output is correct
225 Correct 83 ms 24440 KB Output is correct
226 Correct 78 ms 24508 KB Output is correct
227 Correct 80 ms 24548 KB Output is correct
228 Correct 72 ms 24080 KB Output is correct
229 Correct 65 ms 23620 KB Output is correct
230 Correct 69 ms 24416 KB Output is correct
231 Correct 68 ms 24580 KB Output is correct