Submission #258255

# Submission time Handle Problem Language Result Execution time Memory
258255 2020-08-05T15:21:57 Z Mercenary Duathlon (APIO18_duathlon) C++14
100 / 100
216 ms 38988 KB
#include<bits/stdc++.h>
#define taskname "A"
#define pb push_back
#define mp make_pair

using namespace std;
const int maxn = 4e5 + 6;
typedef pair<int,int> ii;
typedef long long ll;
typedef long double ld;
int a[maxn];
int n , m;
vector<int> adj[maxn];
struct Tedge{
    int u , v;
    bool used;
}e[maxn];
int num[maxn] , low[maxn]  , dep[maxn];
int sz[maxn];
vector<int> adj1[maxn];
int id[maxn];
vector<int> st;
ll res = 0;

void DFS(int u , int par = 0)
{
    static int nTime = 0;
    static int biconnnect = 0;
    num[u] = low[u] = ++nTime;
    id[nTime] = u;st.pb(u);
    for(int c : adj[u])
    {
        if(e[c].used)continue;
        e[c].used = 1;
        int v = e[c].u + e[c].v - u;
        if(num[v] == 0){
            DFS(v ,u);
            if(low[v] >= num[u]){
                adj1[u].pb(n + ++biconnnect);
//                cout << u << " " << n + biconnnect << endl;
                while(true){
                    int tmp = st.back();st.pop_back();
//                    cout << n + biconnnect << " " << tmp << endl;
                    adj1[n + biconnnect].pb(tmp);
                    if(tmp == v)break;
                }
            }
            low[u] = min(low[u] , low[v]);
        }
        else{
            low[u] = min(low[u] , num[v]);
        }
    }
}
vector<int> now;
int cnt =  0;
void dfs(int u){
    sz[u] = (u <= n);
    if(u > n)now.pb(u);
    else cnt++;
    for(auto c : adj1[u]){
        dfs(c);
        if(u > n)res += 1ll * adj1[u].size() * sz[u] * sz[c];
        sz[u] += sz[c];
    }
}
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);
    if(fopen(taskname".INP","r")){
        freopen(taskname".INP","r",stdin);
        freopen(taskname".OUT","w",stdout);
    }
    cin >> n >> m;
    for(int i = 1; i <= m ; ++i)
    {
        cin >> e[i].u >> e[i].v;e[i].used = 0;
        adj[e[i].u].pb(i);
        adj[e[i].v].pb(i);
    }
    for(int i = 1 ; i <= n ; ++i){
        if(num[i] == 0){
            DFS(i);
            dfs(i);
            for(auto & u : now){
                res += 1ll * adj1[u].size() * sz[u] * (cnt - sz[u]);
            }
            res -= 1ll * cnt * (cnt - 1) / 2;
            now.clear();cnt = 0;
        }
    }
    cout << res * 2;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:70:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
         freopen(taskname".INP","r",stdin);
         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
count_triplets.cpp:71:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
         freopen(taskname".OUT","w",stdout);
         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19200 KB Output is correct
2 Correct 12 ms 19200 KB Output is correct
3 Correct 15 ms 19200 KB Output is correct
4 Correct 11 ms 19200 KB Output is correct
5 Correct 12 ms 19200 KB Output is correct
6 Correct 11 ms 19200 KB Output is correct
7 Correct 11 ms 19200 KB Output is correct
8 Correct 13 ms 19200 KB Output is correct
9 Correct 13 ms 19200 KB Output is correct
10 Correct 11 ms 19200 KB Output is correct
11 Correct 12 ms 19200 KB Output is correct
12 Correct 14 ms 19200 KB Output is correct
13 Correct 10 ms 19200 KB Output is correct
14 Correct 13 ms 19200 KB Output is correct
15 Correct 12 ms 19200 KB Output is correct
16 Correct 12 ms 19200 KB Output is correct
17 Correct 11 ms 19200 KB Output is correct
18 Correct 17 ms 19200 KB Output is correct
19 Correct 16 ms 19200 KB Output is correct
20 Correct 13 ms 19200 KB Output is correct
21 Correct 15 ms 19200 KB Output is correct
22 Correct 13 ms 19200 KB Output is correct
23 Correct 15 ms 19200 KB Output is correct
24 Correct 16 ms 19208 KB Output is correct
25 Correct 12 ms 19200 KB Output is correct
26 Correct 14 ms 19200 KB Output is correct
27 Correct 12 ms 19200 KB Output is correct
28 Correct 16 ms 19200 KB Output is correct
29 Correct 12 ms 19204 KB Output is correct
30 Correct 12 ms 19200 KB Output is correct
31 Correct 12 ms 19200 KB Output is correct
32 Correct 12 ms 19200 KB Output is correct
33 Correct 16 ms 19200 KB Output is correct
34 Correct 15 ms 19200 KB Output is correct
35 Correct 15 ms 19200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19200 KB Output is correct
2 Correct 12 ms 19200 KB Output is correct
3 Correct 15 ms 19200 KB Output is correct
4 Correct 11 ms 19200 KB Output is correct
5 Correct 12 ms 19200 KB Output is correct
6 Correct 11 ms 19200 KB Output is correct
7 Correct 11 ms 19200 KB Output is correct
8 Correct 13 ms 19200 KB Output is correct
9 Correct 13 ms 19200 KB Output is correct
10 Correct 11 ms 19200 KB Output is correct
11 Correct 12 ms 19200 KB Output is correct
12 Correct 14 ms 19200 KB Output is correct
13 Correct 10 ms 19200 KB Output is correct
14 Correct 13 ms 19200 KB Output is correct
15 Correct 12 ms 19200 KB Output is correct
16 Correct 12 ms 19200 KB Output is correct
17 Correct 11 ms 19200 KB Output is correct
18 Correct 17 ms 19200 KB Output is correct
19 Correct 16 ms 19200 KB Output is correct
20 Correct 13 ms 19200 KB Output is correct
21 Correct 15 ms 19200 KB Output is correct
22 Correct 13 ms 19200 KB Output is correct
23 Correct 15 ms 19200 KB Output is correct
24 Correct 16 ms 19208 KB Output is correct
25 Correct 12 ms 19200 KB Output is correct
26 Correct 14 ms 19200 KB Output is correct
27 Correct 12 ms 19200 KB Output is correct
28 Correct 16 ms 19200 KB Output is correct
29 Correct 12 ms 19204 KB Output is correct
30 Correct 12 ms 19200 KB Output is correct
31 Correct 12 ms 19200 KB Output is correct
32 Correct 12 ms 19200 KB Output is correct
33 Correct 16 ms 19200 KB Output is correct
34 Correct 15 ms 19200 KB Output is correct
35 Correct 15 ms 19200 KB Output is correct
36 Correct 11 ms 19200 KB Output is correct
37 Correct 12 ms 19200 KB Output is correct
38 Correct 11 ms 19200 KB Output is correct
39 Correct 16 ms 19200 KB Output is correct
40 Correct 12 ms 19200 KB Output is correct
41 Correct 12 ms 19200 KB Output is correct
42 Correct 12 ms 19200 KB Output is correct
43 Correct 12 ms 19200 KB Output is correct
44 Correct 12 ms 19200 KB Output is correct
45 Correct 12 ms 19200 KB Output is correct
46 Correct 12 ms 19200 KB Output is correct
47 Correct 18 ms 19196 KB Output is correct
48 Correct 16 ms 19200 KB Output is correct
49 Correct 17 ms 19200 KB Output is correct
50 Correct 14 ms 19200 KB Output is correct
51 Correct 12 ms 19200 KB Output is correct
52 Correct 17 ms 19200 KB Output is correct
53 Correct 18 ms 19104 KB Output is correct
54 Correct 20 ms 19200 KB Output is correct
55 Correct 23 ms 19196 KB Output is correct
56 Correct 14 ms 19200 KB Output is correct
57 Correct 15 ms 19176 KB Output is correct
58 Correct 12 ms 19200 KB Output is correct
59 Correct 13 ms 19200 KB Output is correct
60 Correct 12 ms 19200 KB Output is correct
61 Correct 12 ms 19200 KB Output is correct
62 Correct 12 ms 19200 KB Output is correct
63 Correct 13 ms 19200 KB Output is correct
64 Correct 12 ms 19200 KB Output is correct
65 Correct 19 ms 19200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 117 ms 35056 KB Output is correct
2 Correct 126 ms 35056 KB Output is correct
3 Correct 137 ms 34292 KB Output is correct
4 Correct 152 ms 35060 KB Output is correct
5 Correct 140 ms 31860 KB Output is correct
6 Correct 142 ms 33780 KB Output is correct
7 Correct 151 ms 32504 KB Output is correct
8 Correct 213 ms 33056 KB Output is correct
9 Correct 216 ms 31548 KB Output is correct
10 Correct 206 ms 31528 KB Output is correct
11 Correct 143 ms 29136 KB Output is correct
12 Correct 142 ms 28976 KB Output is correct
13 Correct 129 ms 28920 KB Output is correct
14 Correct 114 ms 28724 KB Output is correct
15 Correct 82 ms 27508 KB Output is correct
16 Correct 76 ms 27268 KB Output is correct
17 Correct 20 ms 21256 KB Output is correct
18 Correct 15 ms 21256 KB Output is correct
19 Correct 15 ms 21252 KB Output is correct
20 Correct 14 ms 21256 KB Output is correct
21 Correct 14 ms 21248 KB Output is correct
22 Correct 16 ms 21244 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 19328 KB Output is correct
2 Correct 12 ms 19328 KB Output is correct
3 Correct 13 ms 19328 KB Output is correct
4 Correct 14 ms 19328 KB Output is correct
5 Correct 12 ms 19328 KB Output is correct
6 Correct 14 ms 19328 KB Output is correct
7 Correct 16 ms 19328 KB Output is correct
8 Correct 14 ms 19328 KB Output is correct
9 Correct 14 ms 19328 KB Output is correct
10 Correct 14 ms 19328 KB Output is correct
11 Correct 16 ms 19328 KB Output is correct
12 Correct 13 ms 19328 KB Output is correct
13 Correct 13 ms 19328 KB Output is correct
14 Correct 14 ms 19328 KB Output is correct
15 Correct 12 ms 19328 KB Output is correct
16 Correct 13 ms 19200 KB Output is correct
17 Correct 12 ms 19328 KB Output is correct
18 Correct 12 ms 19416 KB Output is correct
19 Correct 16 ms 19328 KB Output is correct
20 Correct 16 ms 19328 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 135 ms 32116 KB Output is correct
2 Correct 134 ms 32116 KB Output is correct
3 Correct 120 ms 32032 KB Output is correct
4 Correct 140 ms 32176 KB Output is correct
5 Correct 121 ms 32116 KB Output is correct
6 Correct 167 ms 38988 KB Output is correct
7 Correct 141 ms 36336 KB Output is correct
8 Correct 152 ms 35184 KB Output is correct
9 Correct 150 ms 34296 KB Output is correct
10 Correct 127 ms 31736 KB Output is correct
11 Correct 138 ms 31860 KB Output is correct
12 Correct 139 ms 31736 KB Output is correct
13 Correct 152 ms 31608 KB Output is correct
14 Correct 112 ms 30968 KB Output is correct
15 Correct 101 ms 30200 KB Output is correct
16 Correct 67 ms 27508 KB Output is correct
17 Correct 74 ms 31316 KB Output is correct
18 Correct 80 ms 31216 KB Output is correct
19 Correct 78 ms 31212 KB Output is correct
20 Correct 74 ms 31092 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19328 KB Output is correct
2 Correct 11 ms 19328 KB Output is correct
3 Correct 12 ms 19328 KB Output is correct
4 Correct 12 ms 19328 KB Output is correct
5 Correct 11 ms 19200 KB Output is correct
6 Correct 11 ms 19200 KB Output is correct
7 Correct 11 ms 19200 KB Output is correct
8 Correct 12 ms 19200 KB Output is correct
9 Correct 12 ms 19200 KB Output is correct
10 Correct 13 ms 19200 KB Output is correct
11 Correct 12 ms 19200 KB Output is correct
12 Correct 13 ms 19328 KB Output is correct
13 Correct 11 ms 19328 KB Output is correct
14 Correct 11 ms 19328 KB Output is correct
15 Correct 14 ms 19328 KB Output is correct
16 Correct 11 ms 19328 KB Output is correct
17 Correct 13 ms 19328 KB Output is correct
18 Correct 13 ms 19292 KB Output is correct
19 Correct 11 ms 19328 KB Output is correct
20 Correct 13 ms 19200 KB Output is correct
21 Correct 11 ms 19456 KB Output is correct
22 Correct 11 ms 19328 KB Output is correct
23 Correct 12 ms 19328 KB Output is correct
24 Correct 12 ms 19328 KB Output is correct
25 Correct 11 ms 19200 KB Output is correct
26 Correct 14 ms 19200 KB Output is correct
27 Correct 12 ms 19200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 182 ms 32116 KB Output is correct
2 Correct 147 ms 32360 KB Output is correct
3 Correct 147 ms 32092 KB Output is correct
4 Correct 132 ms 30708 KB Output is correct
5 Correct 124 ms 29304 KB Output is correct
6 Correct 119 ms 28568 KB Output is correct
7 Correct 114 ms 28400 KB Output is correct
8 Correct 125 ms 27772 KB Output is correct
9 Correct 105 ms 27640 KB Output is correct
10 Correct 121 ms 27496 KB Output is correct
11 Correct 108 ms 27256 KB Output is correct
12 Correct 110 ms 27092 KB Output is correct
13 Correct 141 ms 27128 KB Output is correct
14 Correct 120 ms 29176 KB Output is correct
15 Correct 193 ms 36208 KB Output is correct
16 Correct 187 ms 34544 KB Output is correct
17 Correct 201 ms 34932 KB Output is correct
18 Correct 169 ms 33780 KB Output is correct
19 Correct 181 ms 30584 KB Output is correct
20 Correct 131 ms 30452 KB Output is correct
21 Correct 126 ms 30456 KB Output is correct
22 Correct 121 ms 29616 KB Output is correct
23 Correct 117 ms 28792 KB Output is correct
24 Correct 105 ms 31680 KB Output is correct
25 Correct 114 ms 31752 KB Output is correct
26 Correct 113 ms 31088 KB Output is correct
27 Correct 130 ms 31140 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19200 KB Output is correct
2 Correct 12 ms 19200 KB Output is correct
3 Correct 15 ms 19200 KB Output is correct
4 Correct 11 ms 19200 KB Output is correct
5 Correct 12 ms 19200 KB Output is correct
6 Correct 11 ms 19200 KB Output is correct
7 Correct 11 ms 19200 KB Output is correct
8 Correct 13 ms 19200 KB Output is correct
9 Correct 13 ms 19200 KB Output is correct
10 Correct 11 ms 19200 KB Output is correct
11 Correct 12 ms 19200 KB Output is correct
12 Correct 14 ms 19200 KB Output is correct
13 Correct 10 ms 19200 KB Output is correct
14 Correct 13 ms 19200 KB Output is correct
15 Correct 12 ms 19200 KB Output is correct
16 Correct 12 ms 19200 KB Output is correct
17 Correct 11 ms 19200 KB Output is correct
18 Correct 17 ms 19200 KB Output is correct
19 Correct 16 ms 19200 KB Output is correct
20 Correct 13 ms 19200 KB Output is correct
21 Correct 15 ms 19200 KB Output is correct
22 Correct 13 ms 19200 KB Output is correct
23 Correct 15 ms 19200 KB Output is correct
24 Correct 16 ms 19208 KB Output is correct
25 Correct 12 ms 19200 KB Output is correct
26 Correct 14 ms 19200 KB Output is correct
27 Correct 12 ms 19200 KB Output is correct
28 Correct 16 ms 19200 KB Output is correct
29 Correct 12 ms 19204 KB Output is correct
30 Correct 12 ms 19200 KB Output is correct
31 Correct 12 ms 19200 KB Output is correct
32 Correct 12 ms 19200 KB Output is correct
33 Correct 16 ms 19200 KB Output is correct
34 Correct 15 ms 19200 KB Output is correct
35 Correct 15 ms 19200 KB Output is correct
36 Correct 11 ms 19200 KB Output is correct
37 Correct 12 ms 19200 KB Output is correct
38 Correct 11 ms 19200 KB Output is correct
39 Correct 16 ms 19200 KB Output is correct
40 Correct 12 ms 19200 KB Output is correct
41 Correct 12 ms 19200 KB Output is correct
42 Correct 12 ms 19200 KB Output is correct
43 Correct 12 ms 19200 KB Output is correct
44 Correct 12 ms 19200 KB Output is correct
45 Correct 12 ms 19200 KB Output is correct
46 Correct 12 ms 19200 KB Output is correct
47 Correct 18 ms 19196 KB Output is correct
48 Correct 16 ms 19200 KB Output is correct
49 Correct 17 ms 19200 KB Output is correct
50 Correct 14 ms 19200 KB Output is correct
51 Correct 12 ms 19200 KB Output is correct
52 Correct 17 ms 19200 KB Output is correct
53 Correct 18 ms 19104 KB Output is correct
54 Correct 20 ms 19200 KB Output is correct
55 Correct 23 ms 19196 KB Output is correct
56 Correct 14 ms 19200 KB Output is correct
57 Correct 15 ms 19176 KB Output is correct
58 Correct 12 ms 19200 KB Output is correct
59 Correct 13 ms 19200 KB Output is correct
60 Correct 12 ms 19200 KB Output is correct
61 Correct 12 ms 19200 KB Output is correct
62 Correct 12 ms 19200 KB Output is correct
63 Correct 13 ms 19200 KB Output is correct
64 Correct 12 ms 19200 KB Output is correct
65 Correct 19 ms 19200 KB Output is correct
66 Correct 12 ms 19200 KB Output is correct
67 Correct 12 ms 19200 KB Output is correct
68 Correct 16 ms 19320 KB Output is correct
69 Correct 11 ms 19328 KB Output is correct
70 Correct 12 ms 19328 KB Output is correct
71 Correct 11 ms 19200 KB Output is correct
72 Correct 12 ms 19200 KB Output is correct
73 Correct 12 ms 19200 KB Output is correct
74 Correct 12 ms 19200 KB Output is correct
75 Correct 13 ms 19200 KB Output is correct
76 Correct 12 ms 19200 KB Output is correct
77 Correct 11 ms 19328 KB Output is correct
78 Correct 12 ms 19328 KB Output is correct
79 Correct 11 ms 19200 KB Output is correct
80 Correct 13 ms 19328 KB Output is correct
81 Correct 13 ms 19200 KB Output is correct
82 Correct 12 ms 19328 KB Output is correct
83 Correct 12 ms 19328 KB Output is correct
84 Correct 13 ms 19328 KB Output is correct
85 Correct 12 ms 19328 KB Output is correct
86 Correct 11 ms 19200 KB Output is correct
87 Correct 12 ms 19200 KB Output is correct
88 Correct 11 ms 19200 KB Output is correct
89 Correct 11 ms 19200 KB Output is correct
90 Correct 15 ms 19200 KB Output is correct
91 Correct 13 ms 19328 KB Output is correct
92 Correct 12 ms 19200 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 19200 KB Output is correct
2 Correct 12 ms 19200 KB Output is correct
3 Correct 15 ms 19200 KB Output is correct
4 Correct 11 ms 19200 KB Output is correct
5 Correct 12 ms 19200 KB Output is correct
6 Correct 11 ms 19200 KB Output is correct
7 Correct 11 ms 19200 KB Output is correct
8 Correct 13 ms 19200 KB Output is correct
9 Correct 13 ms 19200 KB Output is correct
10 Correct 11 ms 19200 KB Output is correct
11 Correct 12 ms 19200 KB Output is correct
12 Correct 14 ms 19200 KB Output is correct
13 Correct 10 ms 19200 KB Output is correct
14 Correct 13 ms 19200 KB Output is correct
15 Correct 12 ms 19200 KB Output is correct
16 Correct 12 ms 19200 KB Output is correct
17 Correct 11 ms 19200 KB Output is correct
18 Correct 17 ms 19200 KB Output is correct
19 Correct 16 ms 19200 KB Output is correct
20 Correct 13 ms 19200 KB Output is correct
21 Correct 15 ms 19200 KB Output is correct
22 Correct 13 ms 19200 KB Output is correct
23 Correct 15 ms 19200 KB Output is correct
24 Correct 16 ms 19208 KB Output is correct
25 Correct 12 ms 19200 KB Output is correct
26 Correct 14 ms 19200 KB Output is correct
27 Correct 12 ms 19200 KB Output is correct
28 Correct 16 ms 19200 KB Output is correct
29 Correct 12 ms 19204 KB Output is correct
30 Correct 12 ms 19200 KB Output is correct
31 Correct 12 ms 19200 KB Output is correct
32 Correct 12 ms 19200 KB Output is correct
33 Correct 16 ms 19200 KB Output is correct
34 Correct 15 ms 19200 KB Output is correct
35 Correct 15 ms 19200 KB Output is correct
36 Correct 11 ms 19200 KB Output is correct
37 Correct 12 ms 19200 KB Output is correct
38 Correct 11 ms 19200 KB Output is correct
39 Correct 16 ms 19200 KB Output is correct
40 Correct 12 ms 19200 KB Output is correct
41 Correct 12 ms 19200 KB Output is correct
42 Correct 12 ms 19200 KB Output is correct
43 Correct 12 ms 19200 KB Output is correct
44 Correct 12 ms 19200 KB Output is correct
45 Correct 12 ms 19200 KB Output is correct
46 Correct 12 ms 19200 KB Output is correct
47 Correct 18 ms 19196 KB Output is correct
48 Correct 16 ms 19200 KB Output is correct
49 Correct 17 ms 19200 KB Output is correct
50 Correct 14 ms 19200 KB Output is correct
51 Correct 12 ms 19200 KB Output is correct
52 Correct 17 ms 19200 KB Output is correct
53 Correct 18 ms 19104 KB Output is correct
54 Correct 20 ms 19200 KB Output is correct
55 Correct 23 ms 19196 KB Output is correct
56 Correct 14 ms 19200 KB Output is correct
57 Correct 15 ms 19176 KB Output is correct
58 Correct 12 ms 19200 KB Output is correct
59 Correct 13 ms 19200 KB Output is correct
60 Correct 12 ms 19200 KB Output is correct
61 Correct 12 ms 19200 KB Output is correct
62 Correct 12 ms 19200 KB Output is correct
63 Correct 13 ms 19200 KB Output is correct
64 Correct 12 ms 19200 KB Output is correct
65 Correct 19 ms 19200 KB Output is correct
66 Correct 117 ms 35056 KB Output is correct
67 Correct 126 ms 35056 KB Output is correct
68 Correct 137 ms 34292 KB Output is correct
69 Correct 152 ms 35060 KB Output is correct
70 Correct 140 ms 31860 KB Output is correct
71 Correct 142 ms 33780 KB Output is correct
72 Correct 151 ms 32504 KB Output is correct
73 Correct 213 ms 33056 KB Output is correct
74 Correct 216 ms 31548 KB Output is correct
75 Correct 206 ms 31528 KB Output is correct
76 Correct 143 ms 29136 KB Output is correct
77 Correct 142 ms 28976 KB Output is correct
78 Correct 129 ms 28920 KB Output is correct
79 Correct 114 ms 28724 KB Output is correct
80 Correct 82 ms 27508 KB Output is correct
81 Correct 76 ms 27268 KB Output is correct
82 Correct 20 ms 21256 KB Output is correct
83 Correct 15 ms 21256 KB Output is correct
84 Correct 15 ms 21252 KB Output is correct
85 Correct 14 ms 21256 KB Output is correct
86 Correct 14 ms 21248 KB Output is correct
87 Correct 16 ms 21244 KB Output is correct
88 Correct 13 ms 19328 KB Output is correct
89 Correct 12 ms 19328 KB Output is correct
90 Correct 13 ms 19328 KB Output is correct
91 Correct 14 ms 19328 KB Output is correct
92 Correct 12 ms 19328 KB Output is correct
93 Correct 14 ms 19328 KB Output is correct
94 Correct 16 ms 19328 KB Output is correct
95 Correct 14 ms 19328 KB Output is correct
96 Correct 14 ms 19328 KB Output is correct
97 Correct 14 ms 19328 KB Output is correct
98 Correct 16 ms 19328 KB Output is correct
99 Correct 13 ms 19328 KB Output is correct
100 Correct 13 ms 19328 KB Output is correct
101 Correct 14 ms 19328 KB Output is correct
102 Correct 12 ms 19328 KB Output is correct
103 Correct 13 ms 19200 KB Output is correct
104 Correct 12 ms 19328 KB Output is correct
105 Correct 12 ms 19416 KB Output is correct
106 Correct 16 ms 19328 KB Output is correct
107 Correct 16 ms 19328 KB Output is correct
108 Correct 135 ms 32116 KB Output is correct
109 Correct 134 ms 32116 KB Output is correct
110 Correct 120 ms 32032 KB Output is correct
111 Correct 140 ms 32176 KB Output is correct
112 Correct 121 ms 32116 KB Output is correct
113 Correct 167 ms 38988 KB Output is correct
114 Correct 141 ms 36336 KB Output is correct
115 Correct 152 ms 35184 KB Output is correct
116 Correct 150 ms 34296 KB Output is correct
117 Correct 127 ms 31736 KB Output is correct
118 Correct 138 ms 31860 KB Output is correct
119 Correct 139 ms 31736 KB Output is correct
120 Correct 152 ms 31608 KB Output is correct
121 Correct 112 ms 30968 KB Output is correct
122 Correct 101 ms 30200 KB Output is correct
123 Correct 67 ms 27508 KB Output is correct
124 Correct 74 ms 31316 KB Output is correct
125 Correct 80 ms 31216 KB Output is correct
126 Correct 78 ms 31212 KB Output is correct
127 Correct 74 ms 31092 KB Output is correct
128 Correct 12 ms 19328 KB Output is correct
129 Correct 11 ms 19328 KB Output is correct
130 Correct 12 ms 19328 KB Output is correct
131 Correct 12 ms 19328 KB Output is correct
132 Correct 11 ms 19200 KB Output is correct
133 Correct 11 ms 19200 KB Output is correct
134 Correct 11 ms 19200 KB Output is correct
135 Correct 12 ms 19200 KB Output is correct
136 Correct 12 ms 19200 KB Output is correct
137 Correct 13 ms 19200 KB Output is correct
138 Correct 12 ms 19200 KB Output is correct
139 Correct 13 ms 19328 KB Output is correct
140 Correct 11 ms 19328 KB Output is correct
141 Correct 11 ms 19328 KB Output is correct
142 Correct 14 ms 19328 KB Output is correct
143 Correct 11 ms 19328 KB Output is correct
144 Correct 13 ms 19328 KB Output is correct
145 Correct 13 ms 19292 KB Output is correct
146 Correct 11 ms 19328 KB Output is correct
147 Correct 13 ms 19200 KB Output is correct
148 Correct 11 ms 19456 KB Output is correct
149 Correct 11 ms 19328 KB Output is correct
150 Correct 12 ms 19328 KB Output is correct
151 Correct 12 ms 19328 KB Output is correct
152 Correct 11 ms 19200 KB Output is correct
153 Correct 14 ms 19200 KB Output is correct
154 Correct 12 ms 19200 KB Output is correct
155 Correct 182 ms 32116 KB Output is correct
156 Correct 147 ms 32360 KB Output is correct
157 Correct 147 ms 32092 KB Output is correct
158 Correct 132 ms 30708 KB Output is correct
159 Correct 124 ms 29304 KB Output is correct
160 Correct 119 ms 28568 KB Output is correct
161 Correct 114 ms 28400 KB Output is correct
162 Correct 125 ms 27772 KB Output is correct
163 Correct 105 ms 27640 KB Output is correct
164 Correct 121 ms 27496 KB Output is correct
165 Correct 108 ms 27256 KB Output is correct
166 Correct 110 ms 27092 KB Output is correct
167 Correct 141 ms 27128 KB Output is correct
168 Correct 120 ms 29176 KB Output is correct
169 Correct 193 ms 36208 KB Output is correct
170 Correct 187 ms 34544 KB Output is correct
171 Correct 201 ms 34932 KB Output is correct
172 Correct 169 ms 33780 KB Output is correct
173 Correct 181 ms 30584 KB Output is correct
174 Correct 131 ms 30452 KB Output is correct
175 Correct 126 ms 30456 KB Output is correct
176 Correct 121 ms 29616 KB Output is correct
177 Correct 117 ms 28792 KB Output is correct
178 Correct 105 ms 31680 KB Output is correct
179 Correct 114 ms 31752 KB Output is correct
180 Correct 113 ms 31088 KB Output is correct
181 Correct 130 ms 31140 KB Output is correct
182 Correct 12 ms 19200 KB Output is correct
183 Correct 12 ms 19200 KB Output is correct
184 Correct 16 ms 19320 KB Output is correct
185 Correct 11 ms 19328 KB Output is correct
186 Correct 12 ms 19328 KB Output is correct
187 Correct 11 ms 19200 KB Output is correct
188 Correct 12 ms 19200 KB Output is correct
189 Correct 12 ms 19200 KB Output is correct
190 Correct 12 ms 19200 KB Output is correct
191 Correct 13 ms 19200 KB Output is correct
192 Correct 12 ms 19200 KB Output is correct
193 Correct 11 ms 19328 KB Output is correct
194 Correct 12 ms 19328 KB Output is correct
195 Correct 11 ms 19200 KB Output is correct
196 Correct 13 ms 19328 KB Output is correct
197 Correct 13 ms 19200 KB Output is correct
198 Correct 12 ms 19328 KB Output is correct
199 Correct 12 ms 19328 KB Output is correct
200 Correct 13 ms 19328 KB Output is correct
201 Correct 12 ms 19328 KB Output is correct
202 Correct 11 ms 19200 KB Output is correct
203 Correct 12 ms 19200 KB Output is correct
204 Correct 11 ms 19200 KB Output is correct
205 Correct 11 ms 19200 KB Output is correct
206 Correct 15 ms 19200 KB Output is correct
207 Correct 13 ms 19328 KB Output is correct
208 Correct 12 ms 19200 KB Output is correct
209 Correct 13 ms 21244 KB Output is correct
210 Correct 62 ms 27124 KB Output is correct
211 Correct 107 ms 30708 KB Output is correct
212 Correct 145 ms 33280 KB Output is correct
213 Correct 172 ms 35312 KB Output is correct
214 Correct 67 ms 29076 KB Output is correct
215 Correct 69 ms 28920 KB Output is correct
216 Correct 157 ms 31352 KB Output is correct
217 Correct 124 ms 29688 KB Output is correct
218 Correct 114 ms 27896 KB Output is correct
219 Correct 108 ms 27384 KB Output is correct
220 Correct 99 ms 27256 KB Output is correct
221 Correct 101 ms 27000 KB Output is correct
222 Correct 110 ms 28152 KB Output is correct
223 Correct 156 ms 32248 KB Output is correct
224 Correct 137 ms 31608 KB Output is correct
225 Correct 127 ms 29176 KB Output is correct
226 Correct 155 ms 29360 KB Output is correct
227 Correct 133 ms 29176 KB Output is correct
228 Correct 128 ms 28744 KB Output is correct
229 Correct 107 ms 28312 KB Output is correct
230 Correct 125 ms 29504 KB Output is correct
231 Correct 120 ms 29560 KB Output is correct