/*
ID: varunra2
LANG: C++
TASK: dreaming
*/
#include <bits/stdc++.h>
#include "dreaming.h"
using namespace std;
#ifdef DEBUG
#include "lib/debug.h"
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#define debug_arr(...) \
cerr << "[" << #__VA_ARGS__ << "]:", debug_arr(__VA_ARGS__)
#pragma GCC diagnostic ignored "-Wsign-compare"
//#pragma GCC diagnostic ignored "-Wunused-parameter"
//#pragma GCC diagnostic ignored "-Wunused-variable"
#else
#define debug(...) 42
#endif
#define EPS 1e-9
#define IN(A, B, C) assert(B <= A && A <= C)
#define INF (int)1e9
#define MEM(a, b) memset(a, (b), sizeof(a))
#define MOD 1000000007
#define MP make_pair
#define PB push_back
#define all(cont) cont.begin(), cont.end()
#define rall(cont) cont.end(), cont.begin()
#define x first
#define y second
const double PI = acos(-1.0);
typedef long long ll;
typedef long double ld;
typedef pair<int, int> PII;
typedef map<int, int> MPII;
typedef multiset<int> MSETI;
typedef set<int> SETI;
typedef set<string> SETS;
typedef vector<int> VI;
typedef vector<PII> VII;
typedef vector<VI> VVI;
typedef vector<string> VS;
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define trav(a, x) for (auto& a : x)
#define sz(x) (int)(x).size()
typedef pair<int, int> pii;
typedef vector<int> vi;
#pragma GCC diagnostic ignored "-Wsign-compare"
// util functions
vector<VII> adj;
vector<bool> vis;
int n, m, ext;
void init() {
adj.resize(n);
vis.assign(n, false);
}
void dfscomps(int u, VI& cmp) {
if (vis[u]) return;
vis[u] = true;
cmp.PB(u);
for (auto& x : adj[u]) {
dfscomps(x.x, cmp);
}
}
struct comp {
VI vals;
int n;
void init(int _n, VI& _vals) {
n = _n;
vals = _vals;
}
// we need to get the diameters
MPII d[3];
void dfsDist(int u, int v, int ind) {
for (auto& x : adj[u]) {
if (x.x == v) continue;
d[ind][x.x] = d[ind][u] + x.y;
dfsDist(x.x, u, ind);
}
}
int getFarthest(int u, int ind) {
dfsDist(u, -1, ind);
int ret = u;
for (auto& x : vals) {
if (d[ind][x] > d[ind][ret]) ret = x;
}
return ret;
}
int diam;
int end1, end2;
PII calc() {
end1 = getFarthest(vals[0], 0);
end2 = getFarthest(end1, 1);
diam = d[1][end2];
getFarthest(end2, 2);
int ret = 2 * INF;
int ind = vals[0];
for (auto& x : vals) {
if (ret > max(d[1][x], d[2][x])) {
ret = max(d[1][x], d[2][x]);
ind = x;
}
}
return MP(ret, ind);
}
int getDiameter() { return diam; }
void deb() {
debug("debugging a comp");
debug(vals);
debug(diam);
debug(end1, end2);
debug(d[0], "from vals[0");
debug(d[1], "from end1");
debug(d[2], "from end2");
debug("doneeeeeeeeeeeeeeeeeeeee");
}
};
vector<comp> comps;
void genComps() {
for (int i = 0; i < n; i++) {
if (vis[i]) continue;
VI cur;
dfscomps(i, cur);
if (cur.empty()) continue;
// debug(cur);
comp psh;
psh.init(sz(cur), cur);
comps.PB(psh);
}
}
int travelTime(int N, int M, int L, int* A, int* B, int* T) {
n = N;
m = M;
ext = L;
init();
for (int i = 0; i < m; i++) {
int u, v, w;
u = A[i];
v = B[i];
w = T[i];
adj[u].PB(MP(v, w));
adj[v].PB(MP(u, w));
}
genComps();
VII dists;
for (int i = 0; i < sz(comps); i++) {
dists.PB(comps[i].calc());
}
// comps[0].deb();
sort(all(dists), greater<PII>());
// debug(dists);
for (int i = 1; i < sz(dists); i++) {
int u, v;
u = dists[0].y;
v = dists[i].y;
adj[u].PB(MP(v, ext));
adj[v].PB(MP(u, ext));
}
VI nodes(n);
iota(all(nodes), 0);
comp tot;
tot.init(n, nodes);
tot.calc();
return tot.getDiameter();
}
// int main() {
// #ifndef ONLINE_JUDGE
// freopen("dreaming.in", "r", stdin);
// freopen("dreaming.out", "w", stdout);
// #endif
// cin.sync_with_stdio(0);
// cin.tie(0);
// int n, m, l;
// cin >> n >> m >> l;
// int a[m], b[m], t[m];
// for (int i = 0; i < m; i++) {
// cin >> a[i] >> b[i] >> t[i];
// }
// cout << travelTime(n, m, l, a, b, t) << '\n';
// return 0;
// }
Compilation message
dreaming.cpp: In member function 'void comp::deb()':
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:120:5: note: in expansion of macro 'debug'
120 | debug("debugging a comp");
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:121:5: note: in expansion of macro 'debug'
121 | debug(vals);
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:122:5: note: in expansion of macro 'debug'
122 | debug(diam);
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:123:5: note: in expansion of macro 'debug'
123 | debug(end1, end2);
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:124:5: note: in expansion of macro 'debug'
124 | debug(d[0], "from vals[0");
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:125:5: note: in expansion of macro 'debug'
125 | debug(d[1], "from end1");
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:126:5: note: in expansion of macro 'debug'
126 | debug(d[2], "from end2");
| ^~~~~
dreaming.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | #define debug(...) 42
| ^~
dreaming.cpp:127:5: note: in expansion of macro 'debug'
127 | debug("doneeeeeeeeeeeeeeeeeeeee");
| ^~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
639 ms |
45904 KB |
Output is correct |
2 |
Correct |
637 ms |
45868 KB |
Output is correct |
3 |
Correct |
393 ms |
30412 KB |
Output is correct |
4 |
Correct |
62 ms |
6992 KB |
Output is correct |
5 |
Correct |
41 ms |
4728 KB |
Output is correct |
6 |
Correct |
107 ms |
10360 KB |
Output is correct |
7 |
Correct |
1 ms |
512 KB |
Output is correct |
8 |
Correct |
240 ms |
18328 KB |
Output is correct |
9 |
Correct |
312 ms |
23992 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
497 ms |
32764 KB |
Output is correct |
12 |
Correct |
593 ms |
39116 KB |
Output is correct |
13 |
Correct |
3 ms |
768 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
639 ms |
45904 KB |
Output is correct |
2 |
Correct |
637 ms |
45868 KB |
Output is correct |
3 |
Correct |
393 ms |
30412 KB |
Output is correct |
4 |
Correct |
62 ms |
6992 KB |
Output is correct |
5 |
Correct |
41 ms |
4728 KB |
Output is correct |
6 |
Correct |
107 ms |
10360 KB |
Output is correct |
7 |
Correct |
1 ms |
512 KB |
Output is correct |
8 |
Correct |
240 ms |
18328 KB |
Output is correct |
9 |
Correct |
312 ms |
23992 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
497 ms |
32764 KB |
Output is correct |
12 |
Correct |
593 ms |
39116 KB |
Output is correct |
13 |
Correct |
3 ms |
768 KB |
Output is correct |
14 |
Correct |
1 ms |
384 KB |
Output is correct |
15 |
Correct |
1 ms |
384 KB |
Output is correct |
16 |
Correct |
1 ms |
384 KB |
Output is correct |
17 |
Correct |
1 ms |
384 KB |
Output is correct |
18 |
Correct |
1 ms |
384 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
1 ms |
384 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
380 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
256 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
256 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
1 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
1 ms |
384 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
639 ms |
45904 KB |
Output is correct |
2 |
Correct |
637 ms |
45868 KB |
Output is correct |
3 |
Correct |
393 ms |
30412 KB |
Output is correct |
4 |
Correct |
62 ms |
6992 KB |
Output is correct |
5 |
Correct |
41 ms |
4728 KB |
Output is correct |
6 |
Correct |
107 ms |
10360 KB |
Output is correct |
7 |
Correct |
1 ms |
512 KB |
Output is correct |
8 |
Correct |
240 ms |
18328 KB |
Output is correct |
9 |
Correct |
312 ms |
23992 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
497 ms |
32764 KB |
Output is correct |
12 |
Correct |
593 ms |
39116 KB |
Output is correct |
13 |
Correct |
3 ms |
768 KB |
Output is correct |
14 |
Correct |
1 ms |
384 KB |
Output is correct |
15 |
Correct |
1 ms |
384 KB |
Output is correct |
16 |
Correct |
1 ms |
384 KB |
Output is correct |
17 |
Correct |
1 ms |
384 KB |
Output is correct |
18 |
Correct |
1 ms |
384 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
1 ms |
384 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
380 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
256 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
256 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
1 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
1 ms |
384 KB |
Output is correct |
39 |
Correct |
659 ms |
45804 KB |
Output is correct |
40 |
Correct |
635 ms |
45868 KB |
Output is correct |
41 |
Correct |
385 ms |
30360 KB |
Output is correct |
42 |
Correct |
59 ms |
7032 KB |
Output is correct |
43 |
Correct |
1 ms |
384 KB |
Output is correct |
44 |
Correct |
1 ms |
384 KB |
Output is correct |
45 |
Correct |
1 ms |
384 KB |
Output is correct |
46 |
Correct |
1 ms |
384 KB |
Output is correct |
47 |
Correct |
1 ms |
384 KB |
Output is correct |
48 |
Correct |
1 ms |
384 KB |
Output is correct |
49 |
Correct |
1 ms |
384 KB |
Output is correct |
50 |
Correct |
1 ms |
384 KB |
Output is correct |
51 |
Correct |
1 ms |
384 KB |
Output is correct |
52 |
Correct |
1 ms |
384 KB |
Output is correct |
53 |
Correct |
1 ms |
384 KB |
Output is correct |
54 |
Correct |
1 ms |
384 KB |
Output is correct |
55 |
Correct |
1 ms |
384 KB |
Output is correct |
56 |
Correct |
1 ms |
384 KB |
Output is correct |
57 |
Correct |
757 ms |
38544 KB |
Output is correct |
58 |
Correct |
687 ms |
38560 KB |
Output is correct |
59 |
Correct |
769 ms |
38660 KB |
Output is correct |
60 |
Correct |
759 ms |
38720 KB |
Output is correct |
61 |
Correct |
782 ms |
38752 KB |
Output is correct |
62 |
Correct |
714 ms |
38748 KB |
Output is correct |
63 |
Correct |
766 ms |
38308 KB |
Output is correct |
64 |
Correct |
752 ms |
38500 KB |
Output is correct |
65 |
Correct |
746 ms |
38496 KB |
Output is correct |
66 |
Correct |
751 ms |
38516 KB |
Output is correct |
67 |
Correct |
741 ms |
38832 KB |
Output is correct |
68 |
Correct |
745 ms |
38668 KB |
Output is correct |
69 |
Correct |
712 ms |
39084 KB |
Output is correct |
70 |
Correct |
729 ms |
38896 KB |
Output is correct |
71 |
Correct |
1 ms |
256 KB |
Output is correct |
72 |
Correct |
11 ms |
1536 KB |
Output is correct |
73 |
Correct |
12 ms |
1536 KB |
Output is correct |
74 |
Correct |
11 ms |
1536 KB |
Output is correct |
75 |
Correct |
11 ms |
1408 KB |
Output is correct |
76 |
Correct |
11 ms |
1408 KB |
Output is correct |
77 |
Correct |
11 ms |
1408 KB |
Output is correct |
78 |
Correct |
13 ms |
1664 KB |
Output is correct |
79 |
Correct |
11 ms |
1536 KB |
Output is correct |
80 |
Correct |
705 ms |
38628 KB |
Output is correct |
81 |
Correct |
724 ms |
38608 KB |
Output is correct |
82 |
Correct |
731 ms |
38600 KB |
Output is correct |
83 |
Correct |
759 ms |
38768 KB |
Output is correct |
84 |
Correct |
8 ms |
1280 KB |
Output is correct |
85 |
Correct |
7 ms |
1152 KB |
Output is correct |
86 |
Correct |
8 ms |
1280 KB |
Output is correct |
87 |
Correct |
9 ms |
1280 KB |
Output is correct |
88 |
Correct |
9 ms |
1280 KB |
Output is correct |
89 |
Correct |
8 ms |
1280 KB |
Output is correct |
90 |
Correct |
9 ms |
1280 KB |
Output is correct |
91 |
Correct |
11 ms |
1408 KB |
Output is correct |
92 |
Correct |
10 ms |
1408 KB |
Output is correct |
93 |
Correct |
10 ms |
1280 KB |
Output is correct |
94 |
Correct |
1 ms |
384 KB |
Output is correct |
95 |
Correct |
1 ms |
384 KB |
Output is correct |
96 |
Correct |
1 ms |
384 KB |
Output is correct |
97 |
Correct |
1 ms |
384 KB |
Output is correct |
98 |
Correct |
1 ms |
384 KB |
Output is correct |
99 |
Correct |
1 ms |
384 KB |
Output is correct |
100 |
Correct |
1 ms |
384 KB |
Output is correct |
101 |
Correct |
1 ms |
384 KB |
Output is correct |
102 |
Correct |
1 ms |
384 KB |
Output is correct |
103 |
Correct |
1 ms |
384 KB |
Output is correct |
104 |
Correct |
41 ms |
4728 KB |
Output is correct |
105 |
Correct |
104 ms |
10360 KB |
Output is correct |
106 |
Correct |
2 ms |
512 KB |
Output is correct |
107 |
Correct |
234 ms |
18328 KB |
Output is correct |
108 |
Correct |
315 ms |
23992 KB |
Output is correct |
109 |
Correct |
2 ms |
640 KB |
Output is correct |
110 |
Correct |
486 ms |
32640 KB |
Output is correct |
111 |
Correct |
597 ms |
38860 KB |
Output is correct |
112 |
Correct |
3 ms |
768 KB |
Output is correct |
113 |
Correct |
859 ms |
50532 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
269 ms |
48092 KB |
Output is correct |
2 |
Correct |
271 ms |
48224 KB |
Output is correct |
3 |
Correct |
270 ms |
47964 KB |
Output is correct |
4 |
Correct |
275 ms |
48476 KB |
Output is correct |
5 |
Correct |
265 ms |
47848 KB |
Output is correct |
6 |
Correct |
290 ms |
50880 KB |
Output is correct |
7 |
Correct |
288 ms |
50280 KB |
Output is correct |
8 |
Correct |
277 ms |
47196 KB |
Output is correct |
9 |
Correct |
270 ms |
46940 KB |
Output is correct |
10 |
Correct |
284 ms |
49884 KB |
Output is correct |
11 |
Correct |
1 ms |
384 KB |
Output is correct |
12 |
Correct |
203 ms |
58192 KB |
Output is correct |
13 |
Correct |
202 ms |
58224 KB |
Output is correct |
14 |
Correct |
207 ms |
58176 KB |
Output is correct |
15 |
Correct |
205 ms |
58308 KB |
Output is correct |
16 |
Correct |
206 ms |
58180 KB |
Output is correct |
17 |
Correct |
208 ms |
58304 KB |
Output is correct |
18 |
Correct |
204 ms |
58304 KB |
Output is correct |
19 |
Correct |
211 ms |
58304 KB |
Output is correct |
20 |
Correct |
1 ms |
384 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
6 ms |
2056 KB |
Output is correct |
23 |
Correct |
198 ms |
58176 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
639 ms |
45904 KB |
Output is correct |
2 |
Correct |
637 ms |
45868 KB |
Output is correct |
3 |
Correct |
393 ms |
30412 KB |
Output is correct |
4 |
Correct |
62 ms |
6992 KB |
Output is correct |
5 |
Correct |
41 ms |
4728 KB |
Output is correct |
6 |
Correct |
107 ms |
10360 KB |
Output is correct |
7 |
Correct |
1 ms |
512 KB |
Output is correct |
8 |
Correct |
240 ms |
18328 KB |
Output is correct |
9 |
Correct |
312 ms |
23992 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
497 ms |
32764 KB |
Output is correct |
12 |
Correct |
593 ms |
39116 KB |
Output is correct |
13 |
Correct |
3 ms |
768 KB |
Output is correct |
14 |
Correct |
3 ms |
768 KB |
Output is correct |
15 |
Correct |
6 ms |
1152 KB |
Output is correct |
16 |
Correct |
8 ms |
1536 KB |
Output is correct |
17 |
Correct |
3 ms |
768 KB |
Output is correct |
18 |
Correct |
6 ms |
1152 KB |
Output is correct |
19 |
Correct |
9 ms |
1664 KB |
Output is correct |
20 |
Correct |
3 ms |
768 KB |
Output is correct |
21 |
Correct |
6 ms |
1152 KB |
Output is correct |
22 |
Correct |
8 ms |
1536 KB |
Output is correct |
23 |
Correct |
0 ms |
384 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
384 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
1 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
1 ms |
384 KB |
Output is correct |
39 |
Correct |
1 ms |
384 KB |
Output is correct |
40 |
Correct |
1 ms |
384 KB |
Output is correct |
41 |
Correct |
1 ms |
384 KB |
Output is correct |
42 |
Correct |
11 ms |
1792 KB |
Output is correct |
43 |
Correct |
11 ms |
1792 KB |
Output is correct |
44 |
Correct |
9 ms |
1676 KB |
Output is correct |
45 |
Correct |
6 ms |
1928 KB |
Output is correct |
46 |
Correct |
11 ms |
1536 KB |
Output is correct |
47 |
Correct |
12 ms |
1536 KB |
Output is correct |
48 |
Correct |
7 ms |
1864 KB |
Output is correct |
49 |
Correct |
7 ms |
1928 KB |
Output is correct |
50 |
Correct |
12 ms |
1536 KB |
Output is correct |
51 |
Correct |
11 ms |
1536 KB |
Output is correct |
52 |
Correct |
6 ms |
2056 KB |
Output is correct |
53 |
Correct |
8 ms |
1680 KB |
Output is correct |
54 |
Correct |
11 ms |
1408 KB |
Output is correct |
55 |
Correct |
11 ms |
1408 KB |
Output is correct |
56 |
Correct |
8 ms |
1676 KB |
Output is correct |
57 |
Correct |
8 ms |
1616 KB |
Output is correct |
58 |
Correct |
7 ms |
1804 KB |
Output is correct |
59 |
Correct |
7 ms |
1932 KB |
Output is correct |
60 |
Correct |
11 ms |
1408 KB |
Output is correct |
61 |
Correct |
11 ms |
1408 KB |
Output is correct |
62 |
Correct |
9 ms |
1536 KB |
Output is correct |
63 |
Correct |
10 ms |
1536 KB |
Output is correct |
64 |
Correct |
11 ms |
1536 KB |
Output is correct |
65 |
Correct |
11 ms |
1536 KB |
Output is correct |
66 |
Correct |
7 ms |
1932 KB |
Output is correct |
67 |
Correct |
7 ms |
1932 KB |
Output is correct |
68 |
Correct |
6 ms |
2056 KB |
Output is correct |
69 |
Correct |
6 ms |
2056 KB |
Output is correct |
70 |
Correct |
9 ms |
1536 KB |
Output is correct |
71 |
Correct |
9 ms |
1536 KB |
Output is correct |
72 |
Correct |
7 ms |
1800 KB |
Output is correct |
73 |
Correct |
6 ms |
2056 KB |
Output is correct |
74 |
Correct |
9 ms |
1676 KB |
Output is correct |
75 |
Correct |
12 ms |
1512 KB |
Output is correct |
76 |
Correct |
8 ms |
1676 KB |
Output is correct |
77 |
Correct |
7 ms |
1680 KB |
Output is correct |
78 |
Correct |
8 ms |
1804 KB |
Output is correct |
79 |
Correct |
7 ms |
1804 KB |
Output is correct |
80 |
Correct |
7 ms |
1280 KB |
Output is correct |
81 |
Correct |
7 ms |
1152 KB |
Output is correct |
82 |
Correct |
8 ms |
1280 KB |
Output is correct |
83 |
Correct |
9 ms |
1280 KB |
Output is correct |
84 |
Correct |
9 ms |
1280 KB |
Output is correct |
85 |
Correct |
9 ms |
1280 KB |
Output is correct |
86 |
Correct |
9 ms |
1280 KB |
Output is correct |
87 |
Correct |
11 ms |
1408 KB |
Output is correct |
88 |
Correct |
10 ms |
1408 KB |
Output is correct |
89 |
Correct |
10 ms |
1408 KB |
Output is correct |
90 |
Correct |
1 ms |
384 KB |
Output is correct |
91 |
Correct |
1 ms |
384 KB |
Output is correct |
92 |
Correct |
1 ms |
384 KB |
Output is correct |
93 |
Correct |
1 ms |
384 KB |
Output is correct |
94 |
Correct |
1 ms |
384 KB |
Output is correct |
95 |
Correct |
1 ms |
384 KB |
Output is correct |
96 |
Correct |
1 ms |
384 KB |
Output is correct |
97 |
Correct |
1 ms |
384 KB |
Output is correct |
98 |
Correct |
1 ms |
384 KB |
Output is correct |
99 |
Correct |
1 ms |
384 KB |
Output is correct |
100 |
Correct |
1 ms |
512 KB |
Output is correct |
101 |
Correct |
2 ms |
640 KB |
Output is correct |
102 |
Correct |
3 ms |
768 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
639 ms |
45904 KB |
Output is correct |
2 |
Correct |
637 ms |
45868 KB |
Output is correct |
3 |
Correct |
393 ms |
30412 KB |
Output is correct |
4 |
Correct |
62 ms |
6992 KB |
Output is correct |
5 |
Correct |
41 ms |
4728 KB |
Output is correct |
6 |
Correct |
107 ms |
10360 KB |
Output is correct |
7 |
Correct |
1 ms |
512 KB |
Output is correct |
8 |
Correct |
240 ms |
18328 KB |
Output is correct |
9 |
Correct |
312 ms |
23992 KB |
Output is correct |
10 |
Correct |
2 ms |
640 KB |
Output is correct |
11 |
Correct |
497 ms |
32764 KB |
Output is correct |
12 |
Correct |
593 ms |
39116 KB |
Output is correct |
13 |
Correct |
3 ms |
768 KB |
Output is correct |
14 |
Correct |
1 ms |
384 KB |
Output is correct |
15 |
Correct |
1 ms |
384 KB |
Output is correct |
16 |
Correct |
1 ms |
384 KB |
Output is correct |
17 |
Correct |
1 ms |
384 KB |
Output is correct |
18 |
Correct |
1 ms |
384 KB |
Output is correct |
19 |
Correct |
1 ms |
384 KB |
Output is correct |
20 |
Correct |
1 ms |
384 KB |
Output is correct |
21 |
Correct |
1 ms |
384 KB |
Output is correct |
22 |
Correct |
1 ms |
384 KB |
Output is correct |
23 |
Correct |
1 ms |
380 KB |
Output is correct |
24 |
Correct |
1 ms |
384 KB |
Output is correct |
25 |
Correct |
1 ms |
384 KB |
Output is correct |
26 |
Correct |
1 ms |
384 KB |
Output is correct |
27 |
Correct |
1 ms |
384 KB |
Output is correct |
28 |
Correct |
1 ms |
256 KB |
Output is correct |
29 |
Correct |
1 ms |
384 KB |
Output is correct |
30 |
Correct |
1 ms |
384 KB |
Output is correct |
31 |
Correct |
1 ms |
384 KB |
Output is correct |
32 |
Correct |
1 ms |
256 KB |
Output is correct |
33 |
Correct |
1 ms |
384 KB |
Output is correct |
34 |
Correct |
1 ms |
384 KB |
Output is correct |
35 |
Correct |
1 ms |
384 KB |
Output is correct |
36 |
Correct |
1 ms |
384 KB |
Output is correct |
37 |
Correct |
1 ms |
384 KB |
Output is correct |
38 |
Correct |
1 ms |
384 KB |
Output is correct |
39 |
Correct |
659 ms |
45804 KB |
Output is correct |
40 |
Correct |
635 ms |
45868 KB |
Output is correct |
41 |
Correct |
385 ms |
30360 KB |
Output is correct |
42 |
Correct |
59 ms |
7032 KB |
Output is correct |
43 |
Correct |
1 ms |
384 KB |
Output is correct |
44 |
Correct |
1 ms |
384 KB |
Output is correct |
45 |
Correct |
1 ms |
384 KB |
Output is correct |
46 |
Correct |
1 ms |
384 KB |
Output is correct |
47 |
Correct |
1 ms |
384 KB |
Output is correct |
48 |
Correct |
1 ms |
384 KB |
Output is correct |
49 |
Correct |
1 ms |
384 KB |
Output is correct |
50 |
Correct |
1 ms |
384 KB |
Output is correct |
51 |
Correct |
1 ms |
384 KB |
Output is correct |
52 |
Correct |
1 ms |
384 KB |
Output is correct |
53 |
Correct |
1 ms |
384 KB |
Output is correct |
54 |
Correct |
1 ms |
384 KB |
Output is correct |
55 |
Correct |
1 ms |
384 KB |
Output is correct |
56 |
Correct |
1 ms |
384 KB |
Output is correct |
57 |
Correct |
757 ms |
38544 KB |
Output is correct |
58 |
Correct |
687 ms |
38560 KB |
Output is correct |
59 |
Correct |
769 ms |
38660 KB |
Output is correct |
60 |
Correct |
759 ms |
38720 KB |
Output is correct |
61 |
Correct |
782 ms |
38752 KB |
Output is correct |
62 |
Correct |
714 ms |
38748 KB |
Output is correct |
63 |
Correct |
766 ms |
38308 KB |
Output is correct |
64 |
Correct |
752 ms |
38500 KB |
Output is correct |
65 |
Correct |
746 ms |
38496 KB |
Output is correct |
66 |
Correct |
751 ms |
38516 KB |
Output is correct |
67 |
Correct |
741 ms |
38832 KB |
Output is correct |
68 |
Correct |
745 ms |
38668 KB |
Output is correct |
69 |
Correct |
712 ms |
39084 KB |
Output is correct |
70 |
Correct |
729 ms |
38896 KB |
Output is correct |
71 |
Correct |
1 ms |
256 KB |
Output is correct |
72 |
Correct |
11 ms |
1536 KB |
Output is correct |
73 |
Correct |
12 ms |
1536 KB |
Output is correct |
74 |
Correct |
11 ms |
1536 KB |
Output is correct |
75 |
Correct |
11 ms |
1408 KB |
Output is correct |
76 |
Correct |
11 ms |
1408 KB |
Output is correct |
77 |
Correct |
11 ms |
1408 KB |
Output is correct |
78 |
Correct |
13 ms |
1664 KB |
Output is correct |
79 |
Correct |
11 ms |
1536 KB |
Output is correct |
80 |
Correct |
705 ms |
38628 KB |
Output is correct |
81 |
Correct |
724 ms |
38608 KB |
Output is correct |
82 |
Correct |
731 ms |
38600 KB |
Output is correct |
83 |
Correct |
759 ms |
38768 KB |
Output is correct |
84 |
Correct |
8 ms |
1280 KB |
Output is correct |
85 |
Correct |
7 ms |
1152 KB |
Output is correct |
86 |
Correct |
8 ms |
1280 KB |
Output is correct |
87 |
Correct |
9 ms |
1280 KB |
Output is correct |
88 |
Correct |
9 ms |
1280 KB |
Output is correct |
89 |
Correct |
8 ms |
1280 KB |
Output is correct |
90 |
Correct |
9 ms |
1280 KB |
Output is correct |
91 |
Correct |
11 ms |
1408 KB |
Output is correct |
92 |
Correct |
10 ms |
1408 KB |
Output is correct |
93 |
Correct |
10 ms |
1280 KB |
Output is correct |
94 |
Correct |
1 ms |
384 KB |
Output is correct |
95 |
Correct |
1 ms |
384 KB |
Output is correct |
96 |
Correct |
1 ms |
384 KB |
Output is correct |
97 |
Correct |
1 ms |
384 KB |
Output is correct |
98 |
Correct |
1 ms |
384 KB |
Output is correct |
99 |
Correct |
1 ms |
384 KB |
Output is correct |
100 |
Correct |
1 ms |
384 KB |
Output is correct |
101 |
Correct |
1 ms |
384 KB |
Output is correct |
102 |
Correct |
1 ms |
384 KB |
Output is correct |
103 |
Correct |
1 ms |
384 KB |
Output is correct |
104 |
Correct |
41 ms |
4728 KB |
Output is correct |
105 |
Correct |
104 ms |
10360 KB |
Output is correct |
106 |
Correct |
2 ms |
512 KB |
Output is correct |
107 |
Correct |
234 ms |
18328 KB |
Output is correct |
108 |
Correct |
315 ms |
23992 KB |
Output is correct |
109 |
Correct |
2 ms |
640 KB |
Output is correct |
110 |
Correct |
486 ms |
32640 KB |
Output is correct |
111 |
Correct |
597 ms |
38860 KB |
Output is correct |
112 |
Correct |
3 ms |
768 KB |
Output is correct |
113 |
Correct |
859 ms |
50532 KB |
Output is correct |
114 |
Correct |
269 ms |
48092 KB |
Output is correct |
115 |
Correct |
271 ms |
48224 KB |
Output is correct |
116 |
Correct |
270 ms |
47964 KB |
Output is correct |
117 |
Correct |
275 ms |
48476 KB |
Output is correct |
118 |
Correct |
265 ms |
47848 KB |
Output is correct |
119 |
Correct |
290 ms |
50880 KB |
Output is correct |
120 |
Correct |
288 ms |
50280 KB |
Output is correct |
121 |
Correct |
277 ms |
47196 KB |
Output is correct |
122 |
Correct |
270 ms |
46940 KB |
Output is correct |
123 |
Correct |
284 ms |
49884 KB |
Output is correct |
124 |
Correct |
1 ms |
384 KB |
Output is correct |
125 |
Correct |
203 ms |
58192 KB |
Output is correct |
126 |
Correct |
202 ms |
58224 KB |
Output is correct |
127 |
Correct |
207 ms |
58176 KB |
Output is correct |
128 |
Correct |
205 ms |
58308 KB |
Output is correct |
129 |
Correct |
206 ms |
58180 KB |
Output is correct |
130 |
Correct |
208 ms |
58304 KB |
Output is correct |
131 |
Correct |
204 ms |
58304 KB |
Output is correct |
132 |
Correct |
211 ms |
58304 KB |
Output is correct |
133 |
Correct |
1 ms |
384 KB |
Output is correct |
134 |
Correct |
1 ms |
384 KB |
Output is correct |
135 |
Correct |
6 ms |
2056 KB |
Output is correct |
136 |
Correct |
198 ms |
58176 KB |
Output is correct |
137 |
Correct |
3 ms |
768 KB |
Output is correct |
138 |
Correct |
6 ms |
1152 KB |
Output is correct |
139 |
Correct |
8 ms |
1536 KB |
Output is correct |
140 |
Correct |
3 ms |
768 KB |
Output is correct |
141 |
Correct |
6 ms |
1152 KB |
Output is correct |
142 |
Correct |
9 ms |
1664 KB |
Output is correct |
143 |
Correct |
3 ms |
768 KB |
Output is correct |
144 |
Correct |
6 ms |
1152 KB |
Output is correct |
145 |
Correct |
8 ms |
1536 KB |
Output is correct |
146 |
Correct |
0 ms |
384 KB |
Output is correct |
147 |
Correct |
1 ms |
384 KB |
Output is correct |
148 |
Correct |
1 ms |
384 KB |
Output is correct |
149 |
Correct |
1 ms |
384 KB |
Output is correct |
150 |
Correct |
1 ms |
384 KB |
Output is correct |
151 |
Correct |
1 ms |
384 KB |
Output is correct |
152 |
Correct |
1 ms |
384 KB |
Output is correct |
153 |
Correct |
1 ms |
384 KB |
Output is correct |
154 |
Correct |
1 ms |
384 KB |
Output is correct |
155 |
Correct |
1 ms |
384 KB |
Output is correct |
156 |
Correct |
1 ms |
384 KB |
Output is correct |
157 |
Correct |
1 ms |
384 KB |
Output is correct |
158 |
Correct |
1 ms |
384 KB |
Output is correct |
159 |
Correct |
1 ms |
384 KB |
Output is correct |
160 |
Correct |
1 ms |
384 KB |
Output is correct |
161 |
Correct |
1 ms |
384 KB |
Output is correct |
162 |
Correct |
1 ms |
384 KB |
Output is correct |
163 |
Correct |
1 ms |
384 KB |
Output is correct |
164 |
Correct |
1 ms |
384 KB |
Output is correct |
165 |
Correct |
11 ms |
1792 KB |
Output is correct |
166 |
Correct |
11 ms |
1792 KB |
Output is correct |
167 |
Correct |
9 ms |
1676 KB |
Output is correct |
168 |
Correct |
6 ms |
1928 KB |
Output is correct |
169 |
Correct |
11 ms |
1536 KB |
Output is correct |
170 |
Correct |
12 ms |
1536 KB |
Output is correct |
171 |
Correct |
7 ms |
1864 KB |
Output is correct |
172 |
Correct |
7 ms |
1928 KB |
Output is correct |
173 |
Correct |
12 ms |
1536 KB |
Output is correct |
174 |
Correct |
11 ms |
1536 KB |
Output is correct |
175 |
Correct |
6 ms |
2056 KB |
Output is correct |
176 |
Correct |
8 ms |
1680 KB |
Output is correct |
177 |
Correct |
11 ms |
1408 KB |
Output is correct |
178 |
Correct |
11 ms |
1408 KB |
Output is correct |
179 |
Correct |
8 ms |
1676 KB |
Output is correct |
180 |
Correct |
8 ms |
1616 KB |
Output is correct |
181 |
Correct |
7 ms |
1804 KB |
Output is correct |
182 |
Correct |
7 ms |
1932 KB |
Output is correct |
183 |
Correct |
11 ms |
1408 KB |
Output is correct |
184 |
Correct |
11 ms |
1408 KB |
Output is correct |
185 |
Correct |
9 ms |
1536 KB |
Output is correct |
186 |
Correct |
10 ms |
1536 KB |
Output is correct |
187 |
Correct |
11 ms |
1536 KB |
Output is correct |
188 |
Correct |
11 ms |
1536 KB |
Output is correct |
189 |
Correct |
7 ms |
1932 KB |
Output is correct |
190 |
Correct |
7 ms |
1932 KB |
Output is correct |
191 |
Correct |
6 ms |
2056 KB |
Output is correct |
192 |
Correct |
6 ms |
2056 KB |
Output is correct |
193 |
Correct |
9 ms |
1536 KB |
Output is correct |
194 |
Correct |
9 ms |
1536 KB |
Output is correct |
195 |
Correct |
7 ms |
1800 KB |
Output is correct |
196 |
Correct |
6 ms |
2056 KB |
Output is correct |
197 |
Correct |
9 ms |
1676 KB |
Output is correct |
198 |
Correct |
12 ms |
1512 KB |
Output is correct |
199 |
Correct |
8 ms |
1676 KB |
Output is correct |
200 |
Correct |
7 ms |
1680 KB |
Output is correct |
201 |
Correct |
8 ms |
1804 KB |
Output is correct |
202 |
Correct |
7 ms |
1804 KB |
Output is correct |
203 |
Correct |
7 ms |
1280 KB |
Output is correct |
204 |
Correct |
7 ms |
1152 KB |
Output is correct |
205 |
Correct |
8 ms |
1280 KB |
Output is correct |
206 |
Correct |
9 ms |
1280 KB |
Output is correct |
207 |
Correct |
9 ms |
1280 KB |
Output is correct |
208 |
Correct |
9 ms |
1280 KB |
Output is correct |
209 |
Correct |
9 ms |
1280 KB |
Output is correct |
210 |
Correct |
11 ms |
1408 KB |
Output is correct |
211 |
Correct |
10 ms |
1408 KB |
Output is correct |
212 |
Correct |
10 ms |
1408 KB |
Output is correct |
213 |
Correct |
1 ms |
384 KB |
Output is correct |
214 |
Correct |
1 ms |
384 KB |
Output is correct |
215 |
Correct |
1 ms |
384 KB |
Output is correct |
216 |
Correct |
1 ms |
384 KB |
Output is correct |
217 |
Correct |
1 ms |
384 KB |
Output is correct |
218 |
Correct |
1 ms |
384 KB |
Output is correct |
219 |
Correct |
1 ms |
384 KB |
Output is correct |
220 |
Correct |
1 ms |
384 KB |
Output is correct |
221 |
Correct |
1 ms |
384 KB |
Output is correct |
222 |
Correct |
1 ms |
384 KB |
Output is correct |
223 |
Correct |
1 ms |
512 KB |
Output is correct |
224 |
Correct |
2 ms |
640 KB |
Output is correct |
225 |
Correct |
3 ms |
768 KB |
Output is correct |
226 |
Correct |
3 ms |
768 KB |
Output is correct |
227 |
Correct |
6 ms |
1188 KB |
Output is correct |
228 |
Correct |
8 ms |
1536 KB |
Output is correct |
229 |
Correct |
334 ms |
33452 KB |
Output is correct |
230 |
Correct |
458 ms |
41628 KB |
Output is correct |
231 |
Correct |
3 ms |
768 KB |
Output is correct |
232 |
Correct |
6 ms |
1152 KB |
Output is correct |
233 |
Correct |
8 ms |
1536 KB |
Output is correct |
234 |
Correct |
340 ms |
33048 KB |
Output is correct |
235 |
Correct |
469 ms |
41236 KB |
Output is correct |
236 |
Correct |
3 ms |
768 KB |
Output is correct |
237 |
Correct |
6 ms |
1152 KB |
Output is correct |
238 |
Correct |
8 ms |
1536 KB |
Output is correct |
239 |
Correct |
357 ms |
32976 KB |
Output is correct |
240 |
Correct |
485 ms |
41240 KB |
Output is correct |
241 |
Correct |
272 ms |
48092 KB |
Output is correct |
242 |
Correct |
277 ms |
48348 KB |
Output is correct |
243 |
Correct |
283 ms |
48092 KB |
Output is correct |
244 |
Correct |
279 ms |
48476 KB |
Output is correct |
245 |
Correct |
264 ms |
47836 KB |
Output is correct |
246 |
Correct |
290 ms |
51008 KB |
Output is correct |
247 |
Correct |
282 ms |
50272 KB |
Output is correct |
248 |
Correct |
277 ms |
47196 KB |
Output is correct |
249 |
Correct |
268 ms |
46948 KB |
Output is correct |
250 |
Correct |
278 ms |
49884 KB |
Output is correct |
251 |
Correct |
1 ms |
384 KB |
Output is correct |
252 |
Correct |
651 ms |
45860 KB |
Output is correct |
253 |
Correct |
658 ms |
45800 KB |
Output is correct |
254 |
Correct |
370 ms |
30232 KB |
Output is correct |
255 |
Correct |
58 ms |
7032 KB |
Output is correct |
256 |
Correct |
1 ms |
384 KB |
Output is correct |
257 |
Correct |
1 ms |
384 KB |
Output is correct |
258 |
Correct |
1 ms |
384 KB |
Output is correct |
259 |
Correct |
1 ms |
384 KB |
Output is correct |
260 |
Correct |
1 ms |
384 KB |
Output is correct |
261 |
Correct |
1 ms |
384 KB |
Output is correct |
262 |
Correct |
1 ms |
384 KB |
Output is correct |
263 |
Correct |
1 ms |
384 KB |
Output is correct |
264 |
Correct |
1 ms |
384 KB |
Output is correct |
265 |
Correct |
1 ms |
384 KB |
Output is correct |
266 |
Correct |
1 ms |
384 KB |
Output is correct |
267 |
Correct |
1 ms |
384 KB |
Output is correct |
268 |
Correct |
1 ms |
384 KB |
Output is correct |
269 |
Correct |
1 ms |
384 KB |
Output is correct |
270 |
Correct |
1 ms |
384 KB |
Output is correct |
271 |
Correct |
1 ms |
384 KB |
Output is correct |
272 |
Correct |
740 ms |
38784 KB |
Output is correct |
273 |
Correct |
690 ms |
38588 KB |
Output is correct |
274 |
Correct |
745 ms |
38728 KB |
Output is correct |
275 |
Correct |
694 ms |
38628 KB |
Output is correct |
276 |
Correct |
201 ms |
58176 KB |
Output is correct |
277 |
Correct |
198 ms |
58176 KB |
Output is correct |
278 |
Correct |
731 ms |
38848 KB |
Output is correct |
279 |
Correct |
711 ms |
38736 KB |
Output is correct |
280 |
Correct |
767 ms |
38244 KB |
Output is correct |
281 |
Correct |
778 ms |
38360 KB |
Output is correct |
282 |
Correct |
766 ms |
38592 KB |
Output is correct |
283 |
Correct |
763 ms |
38628 KB |
Output is correct |
284 |
Correct |
761 ms |
38576 KB |
Output is correct |
285 |
Correct |
796 ms |
38592 KB |
Output is correct |
286 |
Correct |
744 ms |
38956 KB |
Output is correct |
287 |
Correct |
710 ms |
38880 KB |
Output is correct |
288 |
Correct |
201 ms |
58176 KB |
Output is correct |
289 |
Correct |
198 ms |
58176 KB |
Output is correct |
290 |
Correct |
195 ms |
58180 KB |
Output is correct |
291 |
Correct |
217 ms |
58304 KB |
Output is correct |
292 |
Correct |
199 ms |
58184 KB |
Output is correct |
293 |
Correct |
201 ms |
58176 KB |
Output is correct |
294 |
Correct |
1 ms |
256 KB |
Output is correct |
295 |
Correct |
0 ms |
256 KB |
Output is correct |
296 |
Correct |
12 ms |
1792 KB |
Output is correct |
297 |
Correct |
11 ms |
1792 KB |
Output is correct |
298 |
Correct |
693 ms |
35620 KB |
Output is correct |
299 |
Correct |
707 ms |
35112 KB |
Output is correct |
300 |
Correct |
8 ms |
1676 KB |
Output is correct |
301 |
Correct |
6 ms |
1928 KB |
Output is correct |
302 |
Correct |
11 ms |
1536 KB |
Output is correct |
303 |
Correct |
11 ms |
1536 KB |
Output is correct |
304 |
Correct |
7 ms |
1808 KB |
Output is correct |
305 |
Correct |
7 ms |
1928 KB |
Output is correct |
306 |
Correct |
11 ms |
1536 KB |
Output is correct |
307 |
Correct |
11 ms |
1536 KB |
Output is correct |
308 |
Correct |
6 ms |
2056 KB |
Output is correct |
309 |
Correct |
8 ms |
1680 KB |
Output is correct |
310 |
Correct |
11 ms |
1408 KB |
Output is correct |
311 |
Correct |
11 ms |
1408 KB |
Output is correct |
312 |
Correct |
8 ms |
1676 KB |
Output is correct |
313 |
Correct |
8 ms |
1616 KB |
Output is correct |
314 |
Correct |
7 ms |
1804 KB |
Output is correct |
315 |
Correct |
7 ms |
1836 KB |
Output is correct |
316 |
Correct |
11 ms |
1408 KB |
Output is correct |
317 |
Correct |
11 ms |
1408 KB |
Output is correct |
318 |
Correct |
9 ms |
1536 KB |
Output is correct |
319 |
Correct |
10 ms |
1536 KB |
Output is correct |
320 |
Correct |
11 ms |
1536 KB |
Output is correct |
321 |
Correct |
11 ms |
1536 KB |
Output is correct |
322 |
Correct |
7 ms |
1804 KB |
Output is correct |
323 |
Correct |
7 ms |
1932 KB |
Output is correct |
324 |
Correct |
6 ms |
2056 KB |
Output is correct |
325 |
Correct |
6 ms |
2056 KB |
Output is correct |
326 |
Correct |
9 ms |
1536 KB |
Output is correct |
327 |
Correct |
9 ms |
1536 KB |
Output is correct |
328 |
Correct |
7 ms |
1800 KB |
Output is correct |
329 |
Correct |
6 ms |
2056 KB |
Output is correct |
330 |
Correct |
9 ms |
1676 KB |
Output is correct |
331 |
Correct |
11 ms |
1536 KB |
Output is correct |
332 |
Correct |
9 ms |
1676 KB |
Output is correct |
333 |
Correct |
8 ms |
1680 KB |
Output is correct |
334 |
Correct |
7 ms |
1804 KB |
Output is correct |
335 |
Correct |
7 ms |
1804 KB |
Output is correct |
336 |
Correct |
765 ms |
46120 KB |
Output is correct |
337 |
Correct |
849 ms |
49756 KB |
Output is correct |
338 |
Correct |
698 ms |
35620 KB |
Output is correct |
339 |
Correct |
716 ms |
36368 KB |
Output is correct |
340 |
Correct |
249 ms |
54336 KB |
Output is correct |
341 |
Correct |
301 ms |
50140 KB |
Output is correct |
342 |
Correct |
691 ms |
38688 KB |
Output is correct |
343 |
Correct |
725 ms |
38740 KB |
Output is correct |
344 |
Correct |
362 ms |
47204 KB |
Output is correct |
345 |
Correct |
288 ms |
51776 KB |
Output is correct |
346 |
Correct |
694 ms |
38580 KB |
Output is correct |
347 |
Correct |
692 ms |
38740 KB |
Output is correct |
348 |
Correct |
486 ms |
40112 KB |
Output is correct |
349 |
Correct |
471 ms |
42484 KB |
Output is correct |
350 |
Correct |
729 ms |
38632 KB |
Output is correct |
351 |
Correct |
781 ms |
38728 KB |
Output is correct |
352 |
Correct |
201 ms |
57664 KB |
Output is correct |
353 |
Correct |
458 ms |
42140 KB |
Output is correct |
354 |
Correct |
289 ms |
51664 KB |
Output is correct |
355 |
Correct |
285 ms |
51476 KB |
Output is correct |
356 |
Correct |
417 ms |
43760 KB |
Output is correct |
357 |
Correct |
233 ms |
55876 KB |
Output is correct |
358 |
Correct |
279 ms |
51524 KB |
Output is correct |
359 |
Correct |
284 ms |
51540 KB |
Output is correct |
360 |
Correct |
204 ms |
58176 KB |
Output is correct |
361 |
Correct |
203 ms |
58176 KB |
Output is correct |
362 |
Correct |
490 ms |
38904 KB |
Output is correct |
363 |
Correct |
493 ms |
38836 KB |
Output is correct |
364 |
Correct |
408 ms |
47456 KB |
Output is correct |
365 |
Correct |
325 ms |
50956 KB |
Output is correct |
366 |
Correct |
437 ms |
47584 KB |
Output is correct |
367 |
Correct |
497 ms |
45844 KB |
Output is correct |
368 |
Correct |
431 ms |
42996 KB |
Output is correct |
369 |
Correct |
377 ms |
46044 KB |
Output is correct |
370 |
Correct |
329 ms |
50144 KB |
Output is correct |
371 |
Correct |
441 ms |
43504 KB |
Output is correct |
372 |
Correct |
7 ms |
1280 KB |
Output is correct |
373 |
Correct |
7 ms |
1152 KB |
Output is correct |
374 |
Correct |
8 ms |
1280 KB |
Output is correct |
375 |
Correct |
9 ms |
1280 KB |
Output is correct |
376 |
Correct |
9 ms |
1280 KB |
Output is correct |
377 |
Correct |
9 ms |
1280 KB |
Output is correct |
378 |
Correct |
9 ms |
1408 KB |
Output is correct |
379 |
Correct |
11 ms |
1408 KB |
Output is correct |
380 |
Correct |
10 ms |
1408 KB |
Output is correct |
381 |
Correct |
9 ms |
1280 KB |
Output is correct |
382 |
Correct |
1 ms |
384 KB |
Output is correct |
383 |
Correct |
1 ms |
384 KB |
Output is correct |
384 |
Correct |
1 ms |
384 KB |
Output is correct |
385 |
Correct |
1 ms |
384 KB |
Output is correct |
386 |
Correct |
1 ms |
384 KB |
Output is correct |
387 |
Correct |
1 ms |
384 KB |
Output is correct |
388 |
Correct |
1 ms |
384 KB |
Output is correct |
389 |
Correct |
1 ms |
384 KB |
Output is correct |
390 |
Correct |
1 ms |
384 KB |
Output is correct |
391 |
Correct |
1 ms |
384 KB |
Output is correct |
392 |
Correct |
44 ms |
4728 KB |
Output is correct |
393 |
Correct |
104 ms |
10360 KB |
Output is correct |
394 |
Correct |
1 ms |
512 KB |
Output is correct |
395 |
Correct |
227 ms |
18336 KB |
Output is correct |
396 |
Correct |
310 ms |
23992 KB |
Output is correct |
397 |
Correct |
2 ms |
640 KB |
Output is correct |
398 |
Correct |
515 ms |
32676 KB |
Output is correct |
399 |
Correct |
641 ms |
38960 KB |
Output is correct |
400 |
Correct |
3 ms |
768 KB |
Output is correct |
401 |
Correct |
954 ms |
50532 KB |
Output is correct |