Submission #501573

# Submission time Handle Problem Language Result Execution time Memory
501573 2022-01-04T04:19:25 Z kaxzert Duathlon (APIO18_duathlon) C++17
100 / 100
107 ms 30276 KB
/**
      ⚡⚡  ⚡⚡      ⚡⚡⚡     ⚡⚡  ⚡⚡  ⚡⚡⚡⚡⚡⚡   ⚡⚡⚡⚡⚡  ⚡⚡⚡⚡⚡⚡  ⚡⚡⚡⚡⚡⚡
      ⚡⚡ ⚡⚡      ⚡⚡⚡⚡     ⚡⚡⚡⚡      ⚡⚡      ⚡⚡       ⚡⚡    ⚡⚡  ⚡⚡⚡⚡⚡⚡
      ⚡⚡⚡⚡      ⚡⚡  ⚡⚡      ⚡⚡      ⚡⚡       ⚡⚡⚡⚡⚡   ⚡⚡⚡⚡⚡⚡     ⚡⚡
      ⚡⚡ ⚡⚡    ⚡⚡⚡⚡⚡⚡     ⚡⚡     ⚡⚡         ⚡⚡       ⚡⚡  ⚡⚡       ⚡⚡
      ⚡⚡  ⚡⚡  ⚡⚡     ⚡⚡  ⚡⚡ ⚡⚡  ⚡⚡⚡⚡⚡⚡  ⚡⚡⚡⚡⚡    ⚡⚡   ⚡⚡     ⚡⚡
**/

#include<bits/stdc++.h>

using namespace std;

#define fto(i, a, b) for(int i = a; i <= b; ++i)
#define fdto(i, a, b) for(int i = a; i >= b; --i)
#define bugarr(a, i, j) cout << #a << "{" << i << "..." << j << "}:"; fto(k, i, j-1) cout << a[k] << ", "; cout << a[j] << endl;
#define ll long long
#define db double
#define ldb long double
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define vt vector
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define trav(i, a) for(auto &i : a)
#define sz(a) (ll)a.size()
#define pi(a, b) pair<a, b>
#define fast ios::sync_with_stdio(false); cin.tie(0)

string to_bit(int n) {
    string res = "";
    while(n > 0) {
        res += to_string(n&1);
        n >>= 1;
    }
    return res;
}


void setIO(string s) {
    if (sz(s) != 0) {
        freopen((s+".inp").c_str(),"r",stdin);
        freopen((s+".out").c_str(),"w",stdout);
    }
}

void setIOusaco(string s) {
    if (sz(s) != 0) {
        freopen((s+".in").c_str(),"r",stdin);
        freopen((s+".out").c_str(),"w",stdout);
    }
}

template<typename T, typename V>
bool ckmin(T &a, V b) {return (b < a)? a = b, true : false;}
template<typename T, typename V>
bool ckmax(T &a, V b) {return (b > a)? a = b, true : false;}

void print(int x) {cout << x;}
void print(long long x) {cout << x;}
void print(unsigned x) {cout << x;}
void print(unsigned long long x) {cout << x;}
void print(double x) {cout << fixed << x;}
void print(long double x) {cout << fixed << x;}
void print(char x) {cout << "'" << x << "'";}
void print(string x) {cout << '"' << x << '"';}
void print(bool x) {cout << (x ? "true" : "false");}

template<typename T, typename V>
void print(const pair<T, V> &x) {cout << '{'; print(x.ff); cout << ", "; print(x.ss); cout << '}';}
template<typename T>
void print(const T &x) {int f = 0; cout << '{'; for (auto &i: x) cout << (f++ ? ", " : ""), print(i); cout << "}";}
void _print() {cout << "]" << endl;}
template <typename T, typename... V>
void _print(T t, V... v) {print(t); if (sizeof...(v)) cout << ", "; _print(v...);}

#ifdef TAP
#define bug(x...) cout << "[" << #x << "] = ["; _print(x)
#else
#define bug(x...) 
#endif

const int maxN = 200008;
ll low[maxN], num[maxN], bvcccnt = 1, N, cnt, n, sz[maxN];
vt<int> bvccs_ke[maxN], ke[maxN];
stack<int> s;
ll ans;

void dfs1(int u, int p = 0) {
    low[u] = num[u] = ++cnt;
    s.push(u);
    ++N;
    trav(v, ke[u]) {
        if (v == p) continue;
        if (num[v] == 0) {
            dfs1(v, u);
            ckmin(low[u], low[v]);
            if (low[v] >= num[u]) {
               // bug(u, v);
                bvccs_ke[u].pb(n+bvcccnt);
                while(s.top() != v) {
                    bvccs_ke[n+bvcccnt].pb(s.top());
                    s.pop();
                }
                bvccs_ke[n+bvcccnt].pb(s.top());
                s.pop();
               // bug(bvccs_ke[n+bvcccnt]);
                ++bvcccnt;
            }
        } else ckmin(low[u], num[v]);
    }
}

void dfs2(int u) {
    sz[u] = (u <= n);
    trav(v, bvccs_ke[u]) {
        dfs2(v);
        sz[u] += sz[v];
        if (u > n) ans -= sz(bvccs_ke[u])*sz[v]*(sz[v]-1);
       // bug(u, bvccs_ke[u]);
    //   bug(sz[v]);
    //   bug(ans);
    }
    if (u > n) ans -= sz(bvccs_ke[u])*(N-sz[u])*(N-sz[u]-1);
   // bug(u, bvccs_ke[u]);
   // bug(sz[u]);
 //   bug(ans);
}

int main() {
    #ifndef TAP 
    setIO("");
    //setIOusaco("duatholon2018");
    #endif

    fast;
    int m;
    cin >> n >> m;
    fto(i, 1, m){
        int u, v;
        cin >> u >> v;
        ke[u].pb(v);
        ke[v].pb(u);
    }

    fto(i, 1, n) {
        if (num[i] == 0) {
            N = 0;
            dfs1(i);
            ans += N*(N-1)*(N-2);
            dfs2(i);
        }
    }

    cout << ans << '\n';

    return 0;
}

Compilation message

count_triplets.cpp: In function 'void setIO(std::string)':
count_triplets.cpp:44:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   44 |         freopen((s+".inp").c_str(),"r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
count_triplets.cpp:45:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   45 |         freopen((s+".out").c_str(),"w",stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
count_triplets.cpp: In function 'void setIOusaco(std::string)':
count_triplets.cpp:51:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   51 |         freopen((s+".in").c_str(),"r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
count_triplets.cpp:52:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   52 |         freopen((s+".out").c_str(),"w",stdout);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 5 ms 9676 KB Output is correct
4 Correct 5 ms 9676 KB Output is correct
5 Correct 5 ms 9676 KB Output is correct
6 Correct 6 ms 9676 KB Output is correct
7 Correct 5 ms 9676 KB Output is correct
8 Correct 4 ms 9676 KB Output is correct
9 Correct 4 ms 9676 KB Output is correct
10 Correct 5 ms 9676 KB Output is correct
11 Correct 5 ms 9724 KB Output is correct
12 Correct 4 ms 9676 KB Output is correct
13 Correct 6 ms 9676 KB Output is correct
14 Correct 4 ms 9676 KB Output is correct
15 Correct 5 ms 9676 KB Output is correct
16 Correct 5 ms 9676 KB Output is correct
17 Correct 5 ms 9676 KB Output is correct
18 Correct 5 ms 9624 KB Output is correct
19 Correct 4 ms 9676 KB Output is correct
20 Correct 4 ms 9676 KB Output is correct
21 Correct 5 ms 9676 KB Output is correct
22 Correct 5 ms 9676 KB Output is correct
23 Correct 5 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 5 ms 9676 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9676 KB Output is correct
28 Correct 5 ms 9604 KB Output is correct
29 Correct 5 ms 9676 KB Output is correct
30 Correct 4 ms 9676 KB Output is correct
31 Correct 5 ms 9676 KB Output is correct
32 Correct 5 ms 9676 KB Output is correct
33 Correct 5 ms 9676 KB Output is correct
34 Correct 4 ms 9676 KB Output is correct
35 Correct 5 ms 9720 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 5 ms 9676 KB Output is correct
4 Correct 5 ms 9676 KB Output is correct
5 Correct 5 ms 9676 KB Output is correct
6 Correct 6 ms 9676 KB Output is correct
7 Correct 5 ms 9676 KB Output is correct
8 Correct 4 ms 9676 KB Output is correct
9 Correct 4 ms 9676 KB Output is correct
10 Correct 5 ms 9676 KB Output is correct
11 Correct 5 ms 9724 KB Output is correct
12 Correct 4 ms 9676 KB Output is correct
13 Correct 6 ms 9676 KB Output is correct
14 Correct 4 ms 9676 KB Output is correct
15 Correct 5 ms 9676 KB Output is correct
16 Correct 5 ms 9676 KB Output is correct
17 Correct 5 ms 9676 KB Output is correct
18 Correct 5 ms 9624 KB Output is correct
19 Correct 4 ms 9676 KB Output is correct
20 Correct 4 ms 9676 KB Output is correct
21 Correct 5 ms 9676 KB Output is correct
22 Correct 5 ms 9676 KB Output is correct
23 Correct 5 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 5 ms 9676 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9676 KB Output is correct
28 Correct 5 ms 9604 KB Output is correct
29 Correct 5 ms 9676 KB Output is correct
30 Correct 4 ms 9676 KB Output is correct
31 Correct 5 ms 9676 KB Output is correct
32 Correct 5 ms 9676 KB Output is correct
33 Correct 5 ms 9676 KB Output is correct
34 Correct 4 ms 9676 KB Output is correct
35 Correct 5 ms 9720 KB Output is correct
36 Correct 5 ms 9676 KB Output is correct
37 Correct 4 ms 9676 KB Output is correct
38 Correct 5 ms 9732 KB Output is correct
39 Correct 5 ms 9640 KB Output is correct
40 Correct 5 ms 9676 KB Output is correct
41 Correct 6 ms 9688 KB Output is correct
42 Correct 6 ms 9804 KB Output is correct
43 Correct 5 ms 9676 KB Output is correct
44 Correct 5 ms 9840 KB Output is correct
45 Correct 5 ms 9676 KB Output is correct
46 Correct 5 ms 9676 KB Output is correct
47 Correct 5 ms 9676 KB Output is correct
48 Correct 6 ms 9676 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 5 ms 9676 KB Output is correct
53 Correct 5 ms 9676 KB Output is correct
54 Correct 5 ms 9676 KB Output is correct
55 Correct 5 ms 9676 KB Output is correct
56 Correct 6 ms 9676 KB Output is correct
57 Correct 5 ms 9676 KB Output is correct
58 Correct 5 ms 9676 KB Output is correct
59 Correct 5 ms 9676 KB Output is correct
60 Correct 5 ms 9676 KB Output is correct
61 Correct 5 ms 9676 KB Output is correct
62 Correct 5 ms 9676 KB Output is correct
63 Correct 6 ms 9804 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 5 ms 9676 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 57 ms 27032 KB Output is correct
2 Correct 67 ms 28304 KB Output is correct
3 Correct 71 ms 25612 KB Output is correct
4 Correct 66 ms 27364 KB Output is correct
5 Correct 70 ms 22672 KB Output is correct
6 Correct 73 ms 24792 KB Output is correct
7 Correct 68 ms 23408 KB Output is correct
8 Correct 81 ms 24044 KB Output is correct
9 Correct 92 ms 22124 KB Output is correct
10 Correct 79 ms 22216 KB Output is correct
11 Correct 62 ms 19560 KB Output is correct
12 Correct 61 ms 19396 KB Output is correct
13 Correct 57 ms 19352 KB Output is correct
14 Correct 48 ms 19064 KB Output is correct
15 Correct 38 ms 18244 KB Output is correct
16 Correct 45 ms 18064 KB Output is correct
17 Correct 8 ms 12492 KB Output is correct
18 Correct 12 ms 12384 KB Output is correct
19 Correct 7 ms 12384 KB Output is correct
20 Correct 8 ms 12484 KB Output is correct
21 Correct 8 ms 12404 KB Output is correct
22 Correct 8 ms 12408 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 9804 KB Output is correct
2 Correct 5 ms 9804 KB Output is correct
3 Correct 5 ms 9804 KB Output is correct
4 Correct 5 ms 9932 KB Output is correct
5 Correct 5 ms 9804 KB Output is correct
6 Correct 5 ms 9804 KB Output is correct
7 Correct 5 ms 9804 KB Output is correct
8 Correct 5 ms 9804 KB Output is correct
9 Correct 5 ms 9804 KB Output is correct
10 Correct 5 ms 9804 KB Output is correct
11 Correct 7 ms 9804 KB Output is correct
12 Correct 5 ms 9804 KB Output is correct
13 Correct 5 ms 9804 KB Output is correct
14 Correct 5 ms 9804 KB Output is correct
15 Correct 5 ms 9804 KB Output is correct
16 Correct 5 ms 9804 KB Output is correct
17 Correct 5 ms 9804 KB Output is correct
18 Correct 6 ms 9804 KB Output is correct
19 Correct 5 ms 9804 KB Output is correct
20 Correct 5 ms 9804 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 64 ms 20708 KB Output is correct
2 Correct 71 ms 22080 KB Output is correct
3 Correct 82 ms 21992 KB Output is correct
4 Correct 75 ms 21956 KB Output is correct
5 Correct 88 ms 22028 KB Output is correct
6 Correct 107 ms 30276 KB Output is correct
7 Correct 80 ms 27256 KB Output is correct
8 Correct 104 ms 25872 KB Output is correct
9 Correct 81 ms 24644 KB Output is correct
10 Correct 72 ms 21952 KB Output is correct
11 Correct 68 ms 21968 KB Output is correct
12 Correct 69 ms 22004 KB Output is correct
13 Correct 73 ms 22000 KB Output is correct
14 Correct 71 ms 21464 KB Output is correct
15 Correct 57 ms 20816 KB Output is correct
16 Correct 42 ms 18452 KB Output is correct
17 Correct 45 ms 21144 KB Output is correct
18 Correct 43 ms 21108 KB Output is correct
19 Correct 46 ms 21184 KB Output is correct
20 Correct 43 ms 21068 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 9724 KB Output is correct
2 Correct 5 ms 9804 KB Output is correct
3 Correct 5 ms 9804 KB Output is correct
4 Correct 6 ms 9824 KB Output is correct
5 Correct 5 ms 9804 KB Output is correct
6 Correct 6 ms 9804 KB Output is correct
7 Correct 8 ms 9760 KB Output is correct
8 Correct 6 ms 9804 KB Output is correct
9 Correct 5 ms 9784 KB Output is correct
10 Correct 5 ms 9676 KB Output is correct
11 Correct 5 ms 9804 KB Output is correct
12 Correct 5 ms 9804 KB Output is correct
13 Correct 5 ms 9804 KB Output is correct
14 Correct 6 ms 9804 KB Output is correct
15 Correct 6 ms 9804 KB Output is correct
16 Correct 5 ms 9804 KB Output is correct
17 Correct 5 ms 9804 KB Output is correct
18 Correct 5 ms 9744 KB Output is correct
19 Correct 6 ms 9804 KB Output is correct
20 Correct 5 ms 9804 KB Output is correct
21 Correct 5 ms 9804 KB Output is correct
22 Correct 5 ms 9804 KB Output is correct
23 Correct 5 ms 9804 KB Output is correct
24 Correct 5 ms 9804 KB Output is correct
25 Correct 5 ms 9780 KB Output is correct
26 Correct 5 ms 9748 KB Output is correct
27 Correct 5 ms 9676 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 65 ms 20808 KB Output is correct
2 Correct 89 ms 22308 KB Output is correct
3 Correct 78 ms 21632 KB Output is correct
4 Correct 89 ms 20428 KB Output is correct
5 Correct 79 ms 19000 KB Output is correct
6 Correct 77 ms 18372 KB Output is correct
7 Correct 68 ms 18156 KB Output is correct
8 Correct 69 ms 17692 KB Output is correct
9 Correct 63 ms 17620 KB Output is correct
10 Correct 56 ms 17516 KB Output is correct
11 Correct 51 ms 17284 KB Output is correct
12 Correct 64 ms 17272 KB Output is correct
13 Correct 53 ms 17412 KB Output is correct
14 Correct 53 ms 19972 KB Output is correct
15 Correct 85 ms 26812 KB Output is correct
16 Correct 89 ms 24956 KB Output is correct
17 Correct 104 ms 25484 KB Output is correct
18 Correct 88 ms 23904 KB Output is correct
19 Correct 72 ms 20336 KB Output is correct
20 Correct 87 ms 20392 KB Output is correct
21 Correct 75 ms 20416 KB Output is correct
22 Correct 77 ms 19820 KB Output is correct
23 Correct 61 ms 19020 KB Output is correct
24 Correct 71 ms 21344 KB Output is correct
25 Correct 91 ms 21536 KB Output is correct
26 Correct 78 ms 20668 KB Output is correct
27 Correct 70 ms 20640 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 5 ms 9676 KB Output is correct
4 Correct 5 ms 9676 KB Output is correct
5 Correct 5 ms 9676 KB Output is correct
6 Correct 6 ms 9676 KB Output is correct
7 Correct 5 ms 9676 KB Output is correct
8 Correct 4 ms 9676 KB Output is correct
9 Correct 4 ms 9676 KB Output is correct
10 Correct 5 ms 9676 KB Output is correct
11 Correct 5 ms 9724 KB Output is correct
12 Correct 4 ms 9676 KB Output is correct
13 Correct 6 ms 9676 KB Output is correct
14 Correct 4 ms 9676 KB Output is correct
15 Correct 5 ms 9676 KB Output is correct
16 Correct 5 ms 9676 KB Output is correct
17 Correct 5 ms 9676 KB Output is correct
18 Correct 5 ms 9624 KB Output is correct
19 Correct 4 ms 9676 KB Output is correct
20 Correct 4 ms 9676 KB Output is correct
21 Correct 5 ms 9676 KB Output is correct
22 Correct 5 ms 9676 KB Output is correct
23 Correct 5 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 5 ms 9676 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9676 KB Output is correct
28 Correct 5 ms 9604 KB Output is correct
29 Correct 5 ms 9676 KB Output is correct
30 Correct 4 ms 9676 KB Output is correct
31 Correct 5 ms 9676 KB Output is correct
32 Correct 5 ms 9676 KB Output is correct
33 Correct 5 ms 9676 KB Output is correct
34 Correct 4 ms 9676 KB Output is correct
35 Correct 5 ms 9720 KB Output is correct
36 Correct 5 ms 9676 KB Output is correct
37 Correct 4 ms 9676 KB Output is correct
38 Correct 5 ms 9732 KB Output is correct
39 Correct 5 ms 9640 KB Output is correct
40 Correct 5 ms 9676 KB Output is correct
41 Correct 6 ms 9688 KB Output is correct
42 Correct 6 ms 9804 KB Output is correct
43 Correct 5 ms 9676 KB Output is correct
44 Correct 5 ms 9840 KB Output is correct
45 Correct 5 ms 9676 KB Output is correct
46 Correct 5 ms 9676 KB Output is correct
47 Correct 5 ms 9676 KB Output is correct
48 Correct 6 ms 9676 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 5 ms 9676 KB Output is correct
53 Correct 5 ms 9676 KB Output is correct
54 Correct 5 ms 9676 KB Output is correct
55 Correct 5 ms 9676 KB Output is correct
56 Correct 6 ms 9676 KB Output is correct
57 Correct 5 ms 9676 KB Output is correct
58 Correct 5 ms 9676 KB Output is correct
59 Correct 5 ms 9676 KB Output is correct
60 Correct 5 ms 9676 KB Output is correct
61 Correct 5 ms 9676 KB Output is correct
62 Correct 5 ms 9676 KB Output is correct
63 Correct 6 ms 9804 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 5 ms 9676 KB Output is correct
66 Correct 6 ms 9676 KB Output is correct
67 Correct 7 ms 9804 KB Output is correct
68 Correct 6 ms 9804 KB Output is correct
69 Correct 5 ms 9804 KB Output is correct
70 Correct 7 ms 9804 KB Output is correct
71 Correct 5 ms 9804 KB Output is correct
72 Correct 6 ms 9804 KB Output is correct
73 Correct 5 ms 9804 KB Output is correct
74 Correct 5 ms 9804 KB Output is correct
75 Correct 5 ms 9676 KB Output is correct
76 Correct 5 ms 9676 KB Output is correct
77 Correct 5 ms 9804 KB Output is correct
78 Correct 5 ms 9676 KB Output is correct
79 Correct 5 ms 9676 KB Output is correct
80 Correct 6 ms 9708 KB Output is correct
81 Correct 5 ms 9676 KB Output is correct
82 Correct 5 ms 9804 KB Output is correct
83 Correct 5 ms 9804 KB Output is correct
84 Correct 5 ms 9804 KB Output is correct
85 Correct 6 ms 9804 KB Output is correct
86 Correct 5 ms 9676 KB Output is correct
87 Correct 6 ms 9804 KB Output is correct
88 Correct 6 ms 9696 KB Output is correct
89 Correct 5 ms 9676 KB Output is correct
90 Correct 5 ms 9804 KB Output is correct
91 Correct 7 ms 9760 KB Output is correct
92 Correct 6 ms 9804 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 5 ms 9676 KB Output is correct
4 Correct 5 ms 9676 KB Output is correct
5 Correct 5 ms 9676 KB Output is correct
6 Correct 6 ms 9676 KB Output is correct
7 Correct 5 ms 9676 KB Output is correct
8 Correct 4 ms 9676 KB Output is correct
9 Correct 4 ms 9676 KB Output is correct
10 Correct 5 ms 9676 KB Output is correct
11 Correct 5 ms 9724 KB Output is correct
12 Correct 4 ms 9676 KB Output is correct
13 Correct 6 ms 9676 KB Output is correct
14 Correct 4 ms 9676 KB Output is correct
15 Correct 5 ms 9676 KB Output is correct
16 Correct 5 ms 9676 KB Output is correct
17 Correct 5 ms 9676 KB Output is correct
18 Correct 5 ms 9624 KB Output is correct
19 Correct 4 ms 9676 KB Output is correct
20 Correct 4 ms 9676 KB Output is correct
21 Correct 5 ms 9676 KB Output is correct
22 Correct 5 ms 9676 KB Output is correct
23 Correct 5 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 5 ms 9676 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9676 KB Output is correct
28 Correct 5 ms 9604 KB Output is correct
29 Correct 5 ms 9676 KB Output is correct
30 Correct 4 ms 9676 KB Output is correct
31 Correct 5 ms 9676 KB Output is correct
32 Correct 5 ms 9676 KB Output is correct
33 Correct 5 ms 9676 KB Output is correct
34 Correct 4 ms 9676 KB Output is correct
35 Correct 5 ms 9720 KB Output is correct
36 Correct 5 ms 9676 KB Output is correct
37 Correct 4 ms 9676 KB Output is correct
38 Correct 5 ms 9732 KB Output is correct
39 Correct 5 ms 9640 KB Output is correct
40 Correct 5 ms 9676 KB Output is correct
41 Correct 6 ms 9688 KB Output is correct
42 Correct 6 ms 9804 KB Output is correct
43 Correct 5 ms 9676 KB Output is correct
44 Correct 5 ms 9840 KB Output is correct
45 Correct 5 ms 9676 KB Output is correct
46 Correct 5 ms 9676 KB Output is correct
47 Correct 5 ms 9676 KB Output is correct
48 Correct 6 ms 9676 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 6 ms 9676 KB Output is correct
52 Correct 5 ms 9676 KB Output is correct
53 Correct 5 ms 9676 KB Output is correct
54 Correct 5 ms 9676 KB Output is correct
55 Correct 5 ms 9676 KB Output is correct
56 Correct 6 ms 9676 KB Output is correct
57 Correct 5 ms 9676 KB Output is correct
58 Correct 5 ms 9676 KB Output is correct
59 Correct 5 ms 9676 KB Output is correct
60 Correct 5 ms 9676 KB Output is correct
61 Correct 5 ms 9676 KB Output is correct
62 Correct 5 ms 9676 KB Output is correct
63 Correct 6 ms 9804 KB Output is correct
64 Correct 6 ms 9676 KB Output is correct
65 Correct 5 ms 9676 KB Output is correct
66 Correct 57 ms 27032 KB Output is correct
67 Correct 67 ms 28304 KB Output is correct
68 Correct 71 ms 25612 KB Output is correct
69 Correct 66 ms 27364 KB Output is correct
70 Correct 70 ms 22672 KB Output is correct
71 Correct 73 ms 24792 KB Output is correct
72 Correct 68 ms 23408 KB Output is correct
73 Correct 81 ms 24044 KB Output is correct
74 Correct 92 ms 22124 KB Output is correct
75 Correct 79 ms 22216 KB Output is correct
76 Correct 62 ms 19560 KB Output is correct
77 Correct 61 ms 19396 KB Output is correct
78 Correct 57 ms 19352 KB Output is correct
79 Correct 48 ms 19064 KB Output is correct
80 Correct 38 ms 18244 KB Output is correct
81 Correct 45 ms 18064 KB Output is correct
82 Correct 8 ms 12492 KB Output is correct
83 Correct 12 ms 12384 KB Output is correct
84 Correct 7 ms 12384 KB Output is correct
85 Correct 8 ms 12484 KB Output is correct
86 Correct 8 ms 12404 KB Output is correct
87 Correct 8 ms 12408 KB Output is correct
88 Correct 5 ms 9804 KB Output is correct
89 Correct 5 ms 9804 KB Output is correct
90 Correct 5 ms 9804 KB Output is correct
91 Correct 5 ms 9932 KB Output is correct
92 Correct 5 ms 9804 KB Output is correct
93 Correct 5 ms 9804 KB Output is correct
94 Correct 5 ms 9804 KB Output is correct
95 Correct 5 ms 9804 KB Output is correct
96 Correct 5 ms 9804 KB Output is correct
97 Correct 5 ms 9804 KB Output is correct
98 Correct 7 ms 9804 KB Output is correct
99 Correct 5 ms 9804 KB Output is correct
100 Correct 5 ms 9804 KB Output is correct
101 Correct 5 ms 9804 KB Output is correct
102 Correct 5 ms 9804 KB Output is correct
103 Correct 5 ms 9804 KB Output is correct
104 Correct 5 ms 9804 KB Output is correct
105 Correct 6 ms 9804 KB Output is correct
106 Correct 5 ms 9804 KB Output is correct
107 Correct 5 ms 9804 KB Output is correct
108 Correct 64 ms 20708 KB Output is correct
109 Correct 71 ms 22080 KB Output is correct
110 Correct 82 ms 21992 KB Output is correct
111 Correct 75 ms 21956 KB Output is correct
112 Correct 88 ms 22028 KB Output is correct
113 Correct 107 ms 30276 KB Output is correct
114 Correct 80 ms 27256 KB Output is correct
115 Correct 104 ms 25872 KB Output is correct
116 Correct 81 ms 24644 KB Output is correct
117 Correct 72 ms 21952 KB Output is correct
118 Correct 68 ms 21968 KB Output is correct
119 Correct 69 ms 22004 KB Output is correct
120 Correct 73 ms 22000 KB Output is correct
121 Correct 71 ms 21464 KB Output is correct
122 Correct 57 ms 20816 KB Output is correct
123 Correct 42 ms 18452 KB Output is correct
124 Correct 45 ms 21144 KB Output is correct
125 Correct 43 ms 21108 KB Output is correct
126 Correct 46 ms 21184 KB Output is correct
127 Correct 43 ms 21068 KB Output is correct
128 Correct 7 ms 9724 KB Output is correct
129 Correct 5 ms 9804 KB Output is correct
130 Correct 5 ms 9804 KB Output is correct
131 Correct 6 ms 9824 KB Output is correct
132 Correct 5 ms 9804 KB Output is correct
133 Correct 6 ms 9804 KB Output is correct
134 Correct 8 ms 9760 KB Output is correct
135 Correct 6 ms 9804 KB Output is correct
136 Correct 5 ms 9784 KB Output is correct
137 Correct 5 ms 9676 KB Output is correct
138 Correct 5 ms 9804 KB Output is correct
139 Correct 5 ms 9804 KB Output is correct
140 Correct 5 ms 9804 KB Output is correct
141 Correct 6 ms 9804 KB Output is correct
142 Correct 6 ms 9804 KB Output is correct
143 Correct 5 ms 9804 KB Output is correct
144 Correct 5 ms 9804 KB Output is correct
145 Correct 5 ms 9744 KB Output is correct
146 Correct 6 ms 9804 KB Output is correct
147 Correct 5 ms 9804 KB Output is correct
148 Correct 5 ms 9804 KB Output is correct
149 Correct 5 ms 9804 KB Output is correct
150 Correct 5 ms 9804 KB Output is correct
151 Correct 5 ms 9804 KB Output is correct
152 Correct 5 ms 9780 KB Output is correct
153 Correct 5 ms 9748 KB Output is correct
154 Correct 5 ms 9676 KB Output is correct
155 Correct 65 ms 20808 KB Output is correct
156 Correct 89 ms 22308 KB Output is correct
157 Correct 78 ms 21632 KB Output is correct
158 Correct 89 ms 20428 KB Output is correct
159 Correct 79 ms 19000 KB Output is correct
160 Correct 77 ms 18372 KB Output is correct
161 Correct 68 ms 18156 KB Output is correct
162 Correct 69 ms 17692 KB Output is correct
163 Correct 63 ms 17620 KB Output is correct
164 Correct 56 ms 17516 KB Output is correct
165 Correct 51 ms 17284 KB Output is correct
166 Correct 64 ms 17272 KB Output is correct
167 Correct 53 ms 17412 KB Output is correct
168 Correct 53 ms 19972 KB Output is correct
169 Correct 85 ms 26812 KB Output is correct
170 Correct 89 ms 24956 KB Output is correct
171 Correct 104 ms 25484 KB Output is correct
172 Correct 88 ms 23904 KB Output is correct
173 Correct 72 ms 20336 KB Output is correct
174 Correct 87 ms 20392 KB Output is correct
175 Correct 75 ms 20416 KB Output is correct
176 Correct 77 ms 19820 KB Output is correct
177 Correct 61 ms 19020 KB Output is correct
178 Correct 71 ms 21344 KB Output is correct
179 Correct 91 ms 21536 KB Output is correct
180 Correct 78 ms 20668 KB Output is correct
181 Correct 70 ms 20640 KB Output is correct
182 Correct 6 ms 9676 KB Output is correct
183 Correct 7 ms 9804 KB Output is correct
184 Correct 6 ms 9804 KB Output is correct
185 Correct 5 ms 9804 KB Output is correct
186 Correct 7 ms 9804 KB Output is correct
187 Correct 5 ms 9804 KB Output is correct
188 Correct 6 ms 9804 KB Output is correct
189 Correct 5 ms 9804 KB Output is correct
190 Correct 5 ms 9804 KB Output is correct
191 Correct 5 ms 9676 KB Output is correct
192 Correct 5 ms 9676 KB Output is correct
193 Correct 5 ms 9804 KB Output is correct
194 Correct 5 ms 9676 KB Output is correct
195 Correct 5 ms 9676 KB Output is correct
196 Correct 6 ms 9708 KB Output is correct
197 Correct 5 ms 9676 KB Output is correct
198 Correct 5 ms 9804 KB Output is correct
199 Correct 5 ms 9804 KB Output is correct
200 Correct 5 ms 9804 KB Output is correct
201 Correct 6 ms 9804 KB Output is correct
202 Correct 5 ms 9676 KB Output is correct
203 Correct 6 ms 9804 KB Output is correct
204 Correct 6 ms 9696 KB Output is correct
205 Correct 5 ms 9676 KB Output is correct
206 Correct 5 ms 9804 KB Output is correct
207 Correct 7 ms 9760 KB Output is correct
208 Correct 6 ms 9804 KB Output is correct
209 Correct 7 ms 12392 KB Output is correct
210 Correct 46 ms 17988 KB Output is correct
211 Correct 64 ms 21556 KB Output is correct
212 Correct 97 ms 24168 KB Output is correct
213 Correct 98 ms 26304 KB Output is correct
214 Correct 41 ms 19104 KB Output is correct
215 Correct 62 ms 18740 KB Output is correct
216 Correct 89 ms 20728 KB Output is correct
217 Correct 74 ms 19224 KB Output is correct
218 Correct 75 ms 17880 KB Output is correct
219 Correct 53 ms 17348 KB Output is correct
220 Correct 51 ms 17220 KB Output is correct
221 Correct 61 ms 17160 KB Output is correct
222 Correct 53 ms 18708 KB Output is correct
223 Correct 90 ms 22524 KB Output is correct
224 Correct 80 ms 21440 KB Output is correct
225 Correct 69 ms 18956 KB Output is correct
226 Correct 82 ms 18872 KB Output is correct
227 Correct 99 ms 18872 KB Output is correct
228 Correct 66 ms 18628 KB Output is correct
229 Correct 62 ms 18352 KB Output is correct
230 Correct 74 ms 18860 KB Output is correct
231 Correct 70 ms 18928 KB Output is correct