# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
874555 | 2023-11-17T08:58:05 Z | efedmrlr | Maze (JOI23_ho_t3) | C++17 | 950 ms | 120700 KB |
#include <bits/stdc++.h> using namespace std; #define n_l '\n' #define dbg(...) cout << "[" << #__VA_ARGS__ << "]: "; cout << to_string(__VA_ARGS__) << endl template <typename T, size_t N> int SIZE(const T (&t)[N]){ return N; } template<typename T> int SIZE(const T &t){ return t.size(); } string to_string(const string s, int x1=0, int x2=1e9){ return '"' + ((x1 < s.size()) ? s.substr(x1, x2-x1+1) : "") + '"'; } string to_string(const char* s) { return to_string((string) s); } string to_string(const bool b) { return (b ? "true" : "false"); } string to_string(const char c){ return string({c}); } template<size_t N> string to_string(const bitset<N> &b, int x1=0, int x2=1e9){ string t = ""; for(int __iii__ = min(x1,SIZE(b)), __jjj__ = min(x2, SIZE(b)-1); __iii__ <= __jjj__; ++__iii__){ t += b[__iii__] + '0'; } return '"' + t + '"'; } template <typename A, typename... C> string to_string(const A (&v), int x1=0, int x2=1e9, C... coords); int l_v_l_v_l = 0, t_a_b_s = 0; template <typename A, typename B> string to_string(const pair<A, B> &p) { l_v_l_v_l++; string res = "(" + to_string(p.first) + ", " + to_string(p.second) + ")"; l_v_l_v_l--; return res; } template <typename A, typename... C> string to_string(const A (&v), int x1, int x2, C... coords) { int rnk = rank<A>::value; string tab(t_a_b_s, ' '); string res = ""; bool first = true; if(l_v_l_v_l == 0) res += n_l; res += tab + "["; x1 = min(x1, SIZE(v)), x2 = min(x2, SIZE(v)); auto l = begin(v); advance(l, x1); auto r = l; advance(r, (x2-x1) + (x2 < SIZE(v))); for (auto e = l; e != r; e = next(e)) { if (!first) { res += ", "; } first = false; l_v_l_v_l++; if(e != l){ if(rnk > 1) { res += n_l; t_a_b_s = l_v_l_v_l; }; } else{ t_a_b_s = 0; } res += to_string(*e, coords...); l_v_l_v_l--; } res += "]"; if(l_v_l_v_l == 0) res += n_l; return res; } void dbgm(){;} template<typename Heads, typename... Tails> void dbgm(Heads H, Tails... T){ cout << to_string(H) << " | "; dbgm(T...); } #define dbgm(...) cout << "[" << #__VA_ARGS__ << "]: "; dbgm(__VA_ARGS__); cout << endl #define lli long long int #define MP make_pair #define pb push_back #define REP(i,n) for(int (i) = 0; (i) < (n); (i)++) void fastio() { ios_base::sync_with_stdio(false); cin.tie(NULL); } const double EPS = 0.00001; const int INF = 1e9+500; const int N = 2e5+5; const int ALPH = 26; const int LGN = 25; const int MOD = 1e9+7; int n,m,q; int r,c; //X for rows Y for columns vector<vector<bool> > grid; struct Point { int x,y; Point(int x, int y) { this->x = x; this->y = y; } Point() { x = 0; y = 0; } Point(array<int,2> tmp) { x = tmp[0]; y = tmp[1]; } vector<Point> adj() { vector<Point> ret; if(x > 1) ret.pb(Point(x - 1, y)); if(y > 1) ret.pb(Point(x, y - 1)); if(x < r) ret.pb(Point(x + 1, y)); if(y < c) ret.pb(Point(x, y + 1)); return ret; } vector<Point> adj_diag() { vector<Point> ret = adj(); if(x > 1) { if(y > 1) ret.pb(Point(x - 1, y - 1)); if(y < c) ret.pb(Point(x - 1, y + 1)); } if(x < r) { if(y > 1) ret.pb(Point(x + 1, y - 1)); if(y < c) ret.pb(Point(x + 1, y + 1)); } return ret; } }; Point s,g; vector<vector<int> > dsts; void bfs() { queue<Point> que1, que2; int dist = 0; int rdist = 0; que1.push(s); dsts[s.x][s.y] = 0; que2.push(Point(-1, -1)); while(que1.size() || que2.size() > 1) { while(que1.size()) { auto cur = que1.front(); que1.pop(); auto adj = cur.adj(); for(auto c : adj) { if(grid[c.x][c.y]) { if(dsts[c.x][c.y] == INF) { que1.push(c); dsts[c.x][c.y] = dsts[cur.x][cur.y]; } } else { if(dsts[c.x][c.y] == INF) { que2.push(c); dsts[c.x][c.y] = dsts[cur.x][cur.y] + 1; } } } } while(que2.size() > 1) { if(dist == n) { while(que2.size()) { if(que2.front().x != -1) { que1.push(que2.front()); } que2.pop(); } que2.push(Point(-1,-1)); dist = 0; break; } auto cur = que2.front(); que2.pop(); if(cur.x == -1) { dist++; que2.push(Point(-1,-1)); continue; } auto adj = cur.adj_diag(); for(auto c : adj) { if(dsts[c.x][c.y] == INF) { dsts[c.x][c.y] = dsts[cur.x][cur.y]; que2.push(c); } } } } } inline void solve() { cin>>r>>c>>n; cin>>s.x>>s.y; cin>>g.x>>g.y; grid.assign(r + 3, vector<bool>(c + 3, 0)); dsts.assign(r + 3, vector<int>(c + 3, INF)); for(int i = 1; i<=r; i++) { for(int j = 1; j<=c; j++) { char tmp; cin>>tmp; if(tmp == '.') grid[i][j] = 1; else grid[i][j] = 0; } } bfs(); cout<<dsts[g.x][g.y]<<"\n"; } signed main() { //fastio(); int test = 1; //cin>>test; while(test--) { solve(); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 440 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 436 KB | Output is correct |
9 | Correct | 0 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 1 ms | 348 KB | Output is correct |
12 | Correct | 1 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 7 ms | 764 KB | Output is correct |
20 | Correct | 5 ms | 1372 KB | Output is correct |
21 | Correct | 6 ms | 604 KB | Output is correct |
22 | Correct | 9 ms | 772 KB | Output is correct |
23 | Correct | 7 ms | 604 KB | Output is correct |
24 | Correct | 5 ms | 1628 KB | Output is correct |
25 | Correct | 6 ms | 1628 KB | Output is correct |
26 | Correct | 8 ms | 856 KB | Output is correct |
27 | Correct | 8 ms | 704 KB | Output is correct |
28 | Correct | 7 ms | 760 KB | Output is correct |
29 | Correct | 18 ms | 1116 KB | Output is correct |
30 | Correct | 9 ms | 1116 KB | Output is correct |
31 | Correct | 15 ms | 1116 KB | Output is correct |
32 | Correct | 21 ms | 1192 KB | Output is correct |
33 | Correct | 16 ms | 1116 KB | Output is correct |
34 | Correct | 12 ms | 3420 KB | Output is correct |
35 | Correct | 15 ms | 3420 KB | Output is correct |
36 | Correct | 21 ms | 1116 KB | Output is correct |
37 | Correct | 20 ms | 1272 KB | Output is correct |
38 | Correct | 18 ms | 1116 KB | Output is correct |
39 | Correct | 182 ms | 8276 KB | Output is correct |
40 | Correct | 24 ms | 1372 KB | Output is correct |
41 | Correct | 17 ms | 4188 KB | Output is correct |
42 | Correct | 26 ms | 1364 KB | Output is correct |
43 | Correct | 31 ms | 3164 KB | Output is correct |
44 | Correct | 97 ms | 5676 KB | Output is correct |
45 | Correct | 97 ms | 6412 KB | Output is correct |
46 | Correct | 162 ms | 8016 KB | Output is correct |
47 | Correct | 205 ms | 8016 KB | Output is correct |
48 | Correct | 166 ms | 8024 KB | Output is correct |
49 | Correct | 122 ms | 30372 KB | Output is correct |
50 | Correct | 141 ms | 30372 KB | Output is correct |
51 | Correct | 209 ms | 8272 KB | Output is correct |
52 | Correct | 210 ms | 8152 KB | Output is correct |
53 | Correct | 173 ms | 7896 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 440 KB | Output is correct |
4 | Correct | 0 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 348 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 348 KB | Output is correct |
9 | Correct | 1 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 0 ms | 432 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 0 ms | 440 KB | Output is correct |
20 | Correct | 0 ms | 348 KB | Output is correct |
21 | Correct | 0 ms | 348 KB | Output is correct |
22 | Correct | 0 ms | 348 KB | Output is correct |
23 | Correct | 0 ms | 348 KB | Output is correct |
24 | Correct | 0 ms | 436 KB | Output is correct |
25 | Correct | 0 ms | 348 KB | Output is correct |
26 | Correct | 0 ms | 348 KB | Output is correct |
27 | Correct | 0 ms | 348 KB | Output is correct |
28 | Correct | 0 ms | 348 KB | Output is correct |
29 | Correct | 0 ms | 348 KB | Output is correct |
30 | Correct | 0 ms | 348 KB | Output is correct |
31 | Correct | 0 ms | 348 KB | Output is correct |
32 | Correct | 1 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 348 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 348 KB | Output is correct |
9 | Correct | 0 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 0 ms | 348 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 0 ms | 432 KB | Output is correct |
20 | Correct | 0 ms | 348 KB | Output is correct |
21 | Correct | 0 ms | 348 KB | Output is correct |
22 | Correct | 0 ms | 348 KB | Output is correct |
23 | Correct | 0 ms | 348 KB | Output is correct |
24 | Correct | 1 ms | 348 KB | Output is correct |
25 | Correct | 6 ms | 604 KB | Output is correct |
26 | Correct | 7 ms | 604 KB | Output is correct |
27 | Correct | 6 ms | 604 KB | Output is correct |
28 | Correct | 6 ms | 604 KB | Output is correct |
29 | Correct | 9 ms | 604 KB | Output is correct |
30 | Correct | 9 ms | 604 KB | Output is correct |
31 | Correct | 10 ms | 604 KB | Output is correct |
32 | Correct | 8 ms | 856 KB | Output is correct |
33 | Correct | 8 ms | 760 KB | Output is correct |
34 | Correct | 16 ms | 1116 KB | Output is correct |
35 | Correct | 15 ms | 1116 KB | Output is correct |
36 | Correct | 15 ms | 1116 KB | Output is correct |
37 | Correct | 23 ms | 1116 KB | Output is correct |
38 | Correct | 21 ms | 1116 KB | Output is correct |
39 | Correct | 58 ms | 3492 KB | Output is correct |
40 | Correct | 178 ms | 9692 KB | Output is correct |
41 | Correct | 155 ms | 8212 KB | Output is correct |
42 | Correct | 152 ms | 8136 KB | Output is correct |
43 | Correct | 217 ms | 7884 KB | Output is correct |
44 | Correct | 216 ms | 8020 KB | Output is correct |
45 | Correct | 216 ms | 12116 KB | Output is correct |
46 | Correct | 214 ms | 12372 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 440 KB | Output is correct |
4 | Correct | 0 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 348 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 348 KB | Output is correct |
9 | Correct | 1 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 0 ms | 432 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 0 ms | 440 KB | Output is correct |
20 | Correct | 0 ms | 348 KB | Output is correct |
21 | Correct | 0 ms | 348 KB | Output is correct |
22 | Correct | 0 ms | 348 KB | Output is correct |
23 | Correct | 0 ms | 348 KB | Output is correct |
24 | Correct | 0 ms | 436 KB | Output is correct |
25 | Correct | 0 ms | 348 KB | Output is correct |
26 | Correct | 0 ms | 348 KB | Output is correct |
27 | Correct | 0 ms | 348 KB | Output is correct |
28 | Correct | 0 ms | 348 KB | Output is correct |
29 | Correct | 0 ms | 348 KB | Output is correct |
30 | Correct | 0 ms | 348 KB | Output is correct |
31 | Correct | 0 ms | 348 KB | Output is correct |
32 | Correct | 1 ms | 348 KB | Output is correct |
33 | Correct | 7 ms | 604 KB | Output is correct |
34 | Correct | 1 ms | 348 KB | Output is correct |
35 | Correct | 1 ms | 440 KB | Output is correct |
36 | Correct | 6 ms | 604 KB | Output is correct |
37 | Correct | 5 ms | 1372 KB | Output is correct |
38 | Correct | 7 ms | 604 KB | Output is correct |
39 | Correct | 7 ms | 604 KB | Output is correct |
40 | Correct | 9 ms | 780 KB | Output is correct |
41 | Correct | 7 ms | 604 KB | Output is correct |
42 | Correct | 6 ms | 604 KB | Output is correct |
43 | Correct | 9 ms | 760 KB | Output is correct |
44 | Correct | 8 ms | 756 KB | Output is correct |
45 | Correct | 5 ms | 1628 KB | Output is correct |
46 | Correct | 6 ms | 1628 KB | Output is correct |
47 | Correct | 8 ms | 1116 KB | Output is correct |
48 | Correct | 9 ms | 804 KB | Output is correct |
49 | Correct | 10 ms | 604 KB | Output is correct |
50 | Correct | 9 ms | 604 KB | Output is correct |
51 | Correct | 9 ms | 768 KB | Output is correct |
52 | Correct | 8 ms | 760 KB | Output is correct |
53 | Correct | 9 ms | 604 KB | Output is correct |
54 | Correct | 7 ms | 604 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 440 KB | Output is correct |
4 | Correct | 0 ms | 344 KB | Output is correct |
5 | Correct | 1 ms | 348 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 348 KB | Output is correct |
9 | Correct | 1 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 0 ms | 432 KB | Output is correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 0 ms | 440 KB | Output is correct |
20 | Correct | 0 ms | 348 KB | Output is correct |
21 | Correct | 0 ms | 348 KB | Output is correct |
22 | Correct | 0 ms | 348 KB | Output is correct |
23 | Correct | 0 ms | 348 KB | Output is correct |
24 | Correct | 0 ms | 436 KB | Output is correct |
25 | Correct | 0 ms | 348 KB | Output is correct |
26 | Correct | 0 ms | 348 KB | Output is correct |
27 | Correct | 0 ms | 348 KB | Output is correct |
28 | Correct | 0 ms | 348 KB | Output is correct |
29 | Correct | 0 ms | 348 KB | Output is correct |
30 | Correct | 0 ms | 348 KB | Output is correct |
31 | Correct | 0 ms | 348 KB | Output is correct |
32 | Correct | 1 ms | 348 KB | Output is correct |
33 | Correct | 7 ms | 604 KB | Output is correct |
34 | Correct | 1 ms | 348 KB | Output is correct |
35 | Correct | 1 ms | 440 KB | Output is correct |
36 | Correct | 6 ms | 604 KB | Output is correct |
37 | Correct | 5 ms | 1372 KB | Output is correct |
38 | Correct | 7 ms | 604 KB | Output is correct |
39 | Correct | 7 ms | 604 KB | Output is correct |
40 | Correct | 9 ms | 780 KB | Output is correct |
41 | Correct | 7 ms | 604 KB | Output is correct |
42 | Correct | 6 ms | 604 KB | Output is correct |
43 | Correct | 9 ms | 760 KB | Output is correct |
44 | Correct | 8 ms | 756 KB | Output is correct |
45 | Correct | 5 ms | 1628 KB | Output is correct |
46 | Correct | 6 ms | 1628 KB | Output is correct |
47 | Correct | 8 ms | 1116 KB | Output is correct |
48 | Correct | 9 ms | 804 KB | Output is correct |
49 | Correct | 10 ms | 604 KB | Output is correct |
50 | Correct | 9 ms | 604 KB | Output is correct |
51 | Correct | 9 ms | 768 KB | Output is correct |
52 | Correct | 8 ms | 760 KB | Output is correct |
53 | Correct | 9 ms | 604 KB | Output is correct |
54 | Correct | 7 ms | 604 KB | Output is correct |
55 | Correct | 21 ms | 1116 KB | Output is correct |
56 | Correct | 9 ms | 1116 KB | Output is correct |
57 | Correct | 16 ms | 1216 KB | Output is correct |
58 | Correct | 21 ms | 1292 KB | Output is correct |
59 | Correct | 15 ms | 1116 KB | Output is correct |
60 | Correct | 20 ms | 1116 KB | Output is correct |
61 | Correct | 18 ms | 1232 KB | Output is correct |
62 | Correct | 15 ms | 1116 KB | Output is correct |
63 | Correct | 22 ms | 1116 KB | Output is correct |
64 | Correct | 21 ms | 1116 KB | Output is correct |
65 | Correct | 12 ms | 3420 KB | Output is correct |
66 | Correct | 15 ms | 3420 KB | Output is correct |
67 | Correct | 21 ms | 2140 KB | Output is correct |
68 | Correct | 23 ms | 1116 KB | Output is correct |
69 | Correct | 23 ms | 1116 KB | Output is correct |
70 | Correct | 23 ms | 1116 KB | Output is correct |
71 | Correct | 25 ms | 1116 KB | Output is correct |
72 | Correct | 22 ms | 1372 KB | Output is correct |
73 | Correct | 20 ms | 1268 KB | Output is correct |
74 | Correct | 17 ms | 1244 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 440 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 436 KB | Output is correct |
9 | Correct | 0 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 1 ms | 348 KB | Output is correct |
12 | Correct | 1 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 7 ms | 764 KB | Output is correct |
20 | Correct | 5 ms | 1372 KB | Output is correct |
21 | Correct | 6 ms | 604 KB | Output is correct |
22 | Correct | 9 ms | 772 KB | Output is correct |
23 | Correct | 7 ms | 604 KB | Output is correct |
24 | Correct | 5 ms | 1628 KB | Output is correct |
25 | Correct | 6 ms | 1628 KB | Output is correct |
26 | Correct | 8 ms | 856 KB | Output is correct |
27 | Correct | 8 ms | 704 KB | Output is correct |
28 | Correct | 7 ms | 760 KB | Output is correct |
29 | Correct | 18 ms | 1116 KB | Output is correct |
30 | Correct | 9 ms | 1116 KB | Output is correct |
31 | Correct | 15 ms | 1116 KB | Output is correct |
32 | Correct | 21 ms | 1192 KB | Output is correct |
33 | Correct | 16 ms | 1116 KB | Output is correct |
34 | Correct | 12 ms | 3420 KB | Output is correct |
35 | Correct | 15 ms | 3420 KB | Output is correct |
36 | Correct | 21 ms | 1116 KB | Output is correct |
37 | Correct | 20 ms | 1272 KB | Output is correct |
38 | Correct | 18 ms | 1116 KB | Output is correct |
39 | Correct | 182 ms | 8276 KB | Output is correct |
40 | Correct | 24 ms | 1372 KB | Output is correct |
41 | Correct | 17 ms | 4188 KB | Output is correct |
42 | Correct | 26 ms | 1364 KB | Output is correct |
43 | Correct | 31 ms | 3164 KB | Output is correct |
44 | Correct | 97 ms | 5676 KB | Output is correct |
45 | Correct | 97 ms | 6412 KB | Output is correct |
46 | Correct | 162 ms | 8016 KB | Output is correct |
47 | Correct | 205 ms | 8016 KB | Output is correct |
48 | Correct | 166 ms | 8024 KB | Output is correct |
49 | Correct | 122 ms | 30372 KB | Output is correct |
50 | Correct | 141 ms | 30372 KB | Output is correct |
51 | Correct | 209 ms | 8272 KB | Output is correct |
52 | Correct | 210 ms | 8152 KB | Output is correct |
53 | Correct | 173 ms | 7896 KB | Output is correct |
54 | Correct | 0 ms | 348 KB | Output is correct |
55 | Correct | 0 ms | 348 KB | Output is correct |
56 | Correct | 0 ms | 440 KB | Output is correct |
57 | Correct | 0 ms | 344 KB | Output is correct |
58 | Correct | 1 ms | 348 KB | Output is correct |
59 | Correct | 0 ms | 348 KB | Output is correct |
60 | Correct | 0 ms | 348 KB | Output is correct |
61 | Correct | 0 ms | 348 KB | Output is correct |
62 | Correct | 1 ms | 348 KB | Output is correct |
63 | Correct | 0 ms | 348 KB | Output is correct |
64 | Correct | 0 ms | 432 KB | Output is correct |
65 | Correct | 0 ms | 348 KB | Output is correct |
66 | Correct | 0 ms | 348 KB | Output is correct |
67 | Correct | 0 ms | 348 KB | Output is correct |
68 | Correct | 0 ms | 348 KB | Output is correct |
69 | Correct | 0 ms | 348 KB | Output is correct |
70 | Correct | 0 ms | 348 KB | Output is correct |
71 | Correct | 0 ms | 348 KB | Output is correct |
72 | Correct | 0 ms | 440 KB | Output is correct |
73 | Correct | 0 ms | 348 KB | Output is correct |
74 | Correct | 0 ms | 348 KB | Output is correct |
75 | Correct | 0 ms | 348 KB | Output is correct |
76 | Correct | 0 ms | 348 KB | Output is correct |
77 | Correct | 0 ms | 436 KB | Output is correct |
78 | Correct | 0 ms | 348 KB | Output is correct |
79 | Correct | 0 ms | 348 KB | Output is correct |
80 | Correct | 0 ms | 348 KB | Output is correct |
81 | Correct | 0 ms | 348 KB | Output is correct |
82 | Correct | 0 ms | 348 KB | Output is correct |
83 | Correct | 0 ms | 348 KB | Output is correct |
84 | Correct | 0 ms | 348 KB | Output is correct |
85 | Correct | 1 ms | 348 KB | Output is correct |
86 | Correct | 0 ms | 348 KB | Output is correct |
87 | Correct | 0 ms | 348 KB | Output is correct |
88 | Correct | 0 ms | 348 KB | Output is correct |
89 | Correct | 0 ms | 348 KB | Output is correct |
90 | Correct | 0 ms | 348 KB | Output is correct |
91 | Correct | 0 ms | 348 KB | Output is correct |
92 | Correct | 0 ms | 348 KB | Output is correct |
93 | Correct | 0 ms | 348 KB | Output is correct |
94 | Correct | 0 ms | 348 KB | Output is correct |
95 | Correct | 0 ms | 348 KB | Output is correct |
96 | Correct | 0 ms | 348 KB | Output is correct |
97 | Correct | 0 ms | 348 KB | Output is correct |
98 | Correct | 0 ms | 348 KB | Output is correct |
99 | Correct | 0 ms | 348 KB | Output is correct |
100 | Correct | 0 ms | 348 KB | Output is correct |
101 | Correct | 0 ms | 348 KB | Output is correct |
102 | Correct | 0 ms | 348 KB | Output is correct |
103 | Correct | 0 ms | 348 KB | Output is correct |
104 | Correct | 0 ms | 432 KB | Output is correct |
105 | Correct | 0 ms | 348 KB | Output is correct |
106 | Correct | 0 ms | 348 KB | Output is correct |
107 | Correct | 0 ms | 348 KB | Output is correct |
108 | Correct | 0 ms | 348 KB | Output is correct |
109 | Correct | 1 ms | 348 KB | Output is correct |
110 | Correct | 6 ms | 604 KB | Output is correct |
111 | Correct | 7 ms | 604 KB | Output is correct |
112 | Correct | 6 ms | 604 KB | Output is correct |
113 | Correct | 6 ms | 604 KB | Output is correct |
114 | Correct | 9 ms | 604 KB | Output is correct |
115 | Correct | 9 ms | 604 KB | Output is correct |
116 | Correct | 10 ms | 604 KB | Output is correct |
117 | Correct | 8 ms | 856 KB | Output is correct |
118 | Correct | 8 ms | 760 KB | Output is correct |
119 | Correct | 16 ms | 1116 KB | Output is correct |
120 | Correct | 15 ms | 1116 KB | Output is correct |
121 | Correct | 15 ms | 1116 KB | Output is correct |
122 | Correct | 23 ms | 1116 KB | Output is correct |
123 | Correct | 21 ms | 1116 KB | Output is correct |
124 | Correct | 58 ms | 3492 KB | Output is correct |
125 | Correct | 178 ms | 9692 KB | Output is correct |
126 | Correct | 155 ms | 8212 KB | Output is correct |
127 | Correct | 152 ms | 8136 KB | Output is correct |
128 | Correct | 217 ms | 7884 KB | Output is correct |
129 | Correct | 216 ms | 8020 KB | Output is correct |
130 | Correct | 216 ms | 12116 KB | Output is correct |
131 | Correct | 214 ms | 12372 KB | Output is correct |
132 | Correct | 7 ms | 604 KB | Output is correct |
133 | Correct | 1 ms | 348 KB | Output is correct |
134 | Correct | 1 ms | 440 KB | Output is correct |
135 | Correct | 6 ms | 604 KB | Output is correct |
136 | Correct | 5 ms | 1372 KB | Output is correct |
137 | Correct | 7 ms | 604 KB | Output is correct |
138 | Correct | 7 ms | 604 KB | Output is correct |
139 | Correct | 9 ms | 780 KB | Output is correct |
140 | Correct | 7 ms | 604 KB | Output is correct |
141 | Correct | 6 ms | 604 KB | Output is correct |
142 | Correct | 9 ms | 760 KB | Output is correct |
143 | Correct | 8 ms | 756 KB | Output is correct |
144 | Correct | 5 ms | 1628 KB | Output is correct |
145 | Correct | 6 ms | 1628 KB | Output is correct |
146 | Correct | 8 ms | 1116 KB | Output is correct |
147 | Correct | 9 ms | 804 KB | Output is correct |
148 | Correct | 10 ms | 604 KB | Output is correct |
149 | Correct | 9 ms | 604 KB | Output is correct |
150 | Correct | 9 ms | 768 KB | Output is correct |
151 | Correct | 8 ms | 760 KB | Output is correct |
152 | Correct | 9 ms | 604 KB | Output is correct |
153 | Correct | 7 ms | 604 KB | Output is correct |
154 | Correct | 21 ms | 1116 KB | Output is correct |
155 | Correct | 9 ms | 1116 KB | Output is correct |
156 | Correct | 16 ms | 1216 KB | Output is correct |
157 | Correct | 21 ms | 1292 KB | Output is correct |
158 | Correct | 15 ms | 1116 KB | Output is correct |
159 | Correct | 20 ms | 1116 KB | Output is correct |
160 | Correct | 18 ms | 1232 KB | Output is correct |
161 | Correct | 15 ms | 1116 KB | Output is correct |
162 | Correct | 22 ms | 1116 KB | Output is correct |
163 | Correct | 21 ms | 1116 KB | Output is correct |
164 | Correct | 12 ms | 3420 KB | Output is correct |
165 | Correct | 15 ms | 3420 KB | Output is correct |
166 | Correct | 21 ms | 2140 KB | Output is correct |
167 | Correct | 23 ms | 1116 KB | Output is correct |
168 | Correct | 23 ms | 1116 KB | Output is correct |
169 | Correct | 23 ms | 1116 KB | Output is correct |
170 | Correct | 25 ms | 1116 KB | Output is correct |
171 | Correct | 22 ms | 1372 KB | Output is correct |
172 | Correct | 20 ms | 1268 KB | Output is correct |
173 | Correct | 17 ms | 1244 KB | Output is correct |
174 | Correct | 29 ms | 1628 KB | Output is correct |
175 | Correct | 52 ms | 2140 KB | Output is correct |
176 | Correct | 105 ms | 7516 KB | Output is correct |
177 | Correct | 158 ms | 6304 KB | Output is correct |
178 | Correct | 206 ms | 7492 KB | Output is correct |
179 | Correct | 234 ms | 8444 KB | Output is correct |
180 | Correct | 235 ms | 8584 KB | Output is correct |
181 | Correct | 230 ms | 8092 KB | Output is correct |
182 | Correct | 227 ms | 8020 KB | Output is correct |
183 | Correct | 213 ms | 8996 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 440 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 436 KB | Output is correct |
9 | Correct | 0 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 1 ms | 348 KB | Output is correct |
12 | Correct | 1 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 7 ms | 764 KB | Output is correct |
20 | Correct | 5 ms | 1372 KB | Output is correct |
21 | Correct | 6 ms | 604 KB | Output is correct |
22 | Correct | 9 ms | 772 KB | Output is correct |
23 | Correct | 7 ms | 604 KB | Output is correct |
24 | Correct | 5 ms | 1628 KB | Output is correct |
25 | Correct | 6 ms | 1628 KB | Output is correct |
26 | Correct | 8 ms | 856 KB | Output is correct |
27 | Correct | 8 ms | 704 KB | Output is correct |
28 | Correct | 7 ms | 760 KB | Output is correct |
29 | Correct | 18 ms | 1116 KB | Output is correct |
30 | Correct | 9 ms | 1116 KB | Output is correct |
31 | Correct | 15 ms | 1116 KB | Output is correct |
32 | Correct | 21 ms | 1192 KB | Output is correct |
33 | Correct | 16 ms | 1116 KB | Output is correct |
34 | Correct | 12 ms | 3420 KB | Output is correct |
35 | Correct | 15 ms | 3420 KB | Output is correct |
36 | Correct | 21 ms | 1116 KB | Output is correct |
37 | Correct | 20 ms | 1272 KB | Output is correct |
38 | Correct | 18 ms | 1116 KB | Output is correct |
39 | Correct | 182 ms | 8276 KB | Output is correct |
40 | Correct | 24 ms | 1372 KB | Output is correct |
41 | Correct | 17 ms | 4188 KB | Output is correct |
42 | Correct | 26 ms | 1364 KB | Output is correct |
43 | Correct | 31 ms | 3164 KB | Output is correct |
44 | Correct | 97 ms | 5676 KB | Output is correct |
45 | Correct | 97 ms | 6412 KB | Output is correct |
46 | Correct | 162 ms | 8016 KB | Output is correct |
47 | Correct | 205 ms | 8016 KB | Output is correct |
48 | Correct | 166 ms | 8024 KB | Output is correct |
49 | Correct | 122 ms | 30372 KB | Output is correct |
50 | Correct | 141 ms | 30372 KB | Output is correct |
51 | Correct | 209 ms | 8272 KB | Output is correct |
52 | Correct | 210 ms | 8152 KB | Output is correct |
53 | Correct | 173 ms | 7896 KB | Output is correct |
54 | Correct | 0 ms | 348 KB | Output is correct |
55 | Correct | 0 ms | 348 KB | Output is correct |
56 | Correct | 0 ms | 440 KB | Output is correct |
57 | Correct | 0 ms | 344 KB | Output is correct |
58 | Correct | 1 ms | 348 KB | Output is correct |
59 | Correct | 0 ms | 348 KB | Output is correct |
60 | Correct | 0 ms | 348 KB | Output is correct |
61 | Correct | 0 ms | 348 KB | Output is correct |
62 | Correct | 1 ms | 348 KB | Output is correct |
63 | Correct | 0 ms | 348 KB | Output is correct |
64 | Correct | 0 ms | 432 KB | Output is correct |
65 | Correct | 0 ms | 348 KB | Output is correct |
66 | Correct | 0 ms | 348 KB | Output is correct |
67 | Correct | 0 ms | 348 KB | Output is correct |
68 | Correct | 0 ms | 348 KB | Output is correct |
69 | Correct | 0 ms | 348 KB | Output is correct |
70 | Correct | 0 ms | 348 KB | Output is correct |
71 | Correct | 0 ms | 348 KB | Output is correct |
72 | Correct | 0 ms | 440 KB | Output is correct |
73 | Correct | 0 ms | 348 KB | Output is correct |
74 | Correct | 0 ms | 348 KB | Output is correct |
75 | Correct | 0 ms | 348 KB | Output is correct |
76 | Correct | 0 ms | 348 KB | Output is correct |
77 | Correct | 0 ms | 436 KB | Output is correct |
78 | Correct | 0 ms | 348 KB | Output is correct |
79 | Correct | 0 ms | 348 KB | Output is correct |
80 | Correct | 0 ms | 348 KB | Output is correct |
81 | Correct | 0 ms | 348 KB | Output is correct |
82 | Correct | 0 ms | 348 KB | Output is correct |
83 | Correct | 0 ms | 348 KB | Output is correct |
84 | Correct | 0 ms | 348 KB | Output is correct |
85 | Correct | 1 ms | 348 KB | Output is correct |
86 | Correct | 0 ms | 348 KB | Output is correct |
87 | Correct | 0 ms | 348 KB | Output is correct |
88 | Correct | 0 ms | 348 KB | Output is correct |
89 | Correct | 0 ms | 348 KB | Output is correct |
90 | Correct | 0 ms | 348 KB | Output is correct |
91 | Correct | 0 ms | 348 KB | Output is correct |
92 | Correct | 0 ms | 348 KB | Output is correct |
93 | Correct | 0 ms | 348 KB | Output is correct |
94 | Correct | 0 ms | 348 KB | Output is correct |
95 | Correct | 0 ms | 348 KB | Output is correct |
96 | Correct | 0 ms | 348 KB | Output is correct |
97 | Correct | 0 ms | 348 KB | Output is correct |
98 | Correct | 0 ms | 348 KB | Output is correct |
99 | Correct | 0 ms | 348 KB | Output is correct |
100 | Correct | 0 ms | 348 KB | Output is correct |
101 | Correct | 0 ms | 348 KB | Output is correct |
102 | Correct | 0 ms | 348 KB | Output is correct |
103 | Correct | 0 ms | 348 KB | Output is correct |
104 | Correct | 0 ms | 432 KB | Output is correct |
105 | Correct | 0 ms | 348 KB | Output is correct |
106 | Correct | 0 ms | 348 KB | Output is correct |
107 | Correct | 0 ms | 348 KB | Output is correct |
108 | Correct | 0 ms | 348 KB | Output is correct |
109 | Correct | 1 ms | 348 KB | Output is correct |
110 | Correct | 6 ms | 604 KB | Output is correct |
111 | Correct | 7 ms | 604 KB | Output is correct |
112 | Correct | 6 ms | 604 KB | Output is correct |
113 | Correct | 6 ms | 604 KB | Output is correct |
114 | Correct | 9 ms | 604 KB | Output is correct |
115 | Correct | 9 ms | 604 KB | Output is correct |
116 | Correct | 10 ms | 604 KB | Output is correct |
117 | Correct | 8 ms | 856 KB | Output is correct |
118 | Correct | 8 ms | 760 KB | Output is correct |
119 | Correct | 16 ms | 1116 KB | Output is correct |
120 | Correct | 15 ms | 1116 KB | Output is correct |
121 | Correct | 15 ms | 1116 KB | Output is correct |
122 | Correct | 23 ms | 1116 KB | Output is correct |
123 | Correct | 21 ms | 1116 KB | Output is correct |
124 | Correct | 58 ms | 3492 KB | Output is correct |
125 | Correct | 178 ms | 9692 KB | Output is correct |
126 | Correct | 155 ms | 8212 KB | Output is correct |
127 | Correct | 152 ms | 8136 KB | Output is correct |
128 | Correct | 217 ms | 7884 KB | Output is correct |
129 | Correct | 216 ms | 8020 KB | Output is correct |
130 | Correct | 216 ms | 12116 KB | Output is correct |
131 | Correct | 214 ms | 12372 KB | Output is correct |
132 | Correct | 7 ms | 604 KB | Output is correct |
133 | Correct | 1 ms | 348 KB | Output is correct |
134 | Correct | 1 ms | 440 KB | Output is correct |
135 | Correct | 6 ms | 604 KB | Output is correct |
136 | Correct | 5 ms | 1372 KB | Output is correct |
137 | Correct | 7 ms | 604 KB | Output is correct |
138 | Correct | 7 ms | 604 KB | Output is correct |
139 | Correct | 9 ms | 780 KB | Output is correct |
140 | Correct | 7 ms | 604 KB | Output is correct |
141 | Correct | 6 ms | 604 KB | Output is correct |
142 | Correct | 9 ms | 760 KB | Output is correct |
143 | Correct | 8 ms | 756 KB | Output is correct |
144 | Correct | 5 ms | 1628 KB | Output is correct |
145 | Correct | 6 ms | 1628 KB | Output is correct |
146 | Correct | 8 ms | 1116 KB | Output is correct |
147 | Correct | 9 ms | 804 KB | Output is correct |
148 | Correct | 10 ms | 604 KB | Output is correct |
149 | Correct | 9 ms | 604 KB | Output is correct |
150 | Correct | 9 ms | 768 KB | Output is correct |
151 | Correct | 8 ms | 760 KB | Output is correct |
152 | Correct | 9 ms | 604 KB | Output is correct |
153 | Correct | 7 ms | 604 KB | Output is correct |
154 | Correct | 21 ms | 1116 KB | Output is correct |
155 | Correct | 9 ms | 1116 KB | Output is correct |
156 | Correct | 16 ms | 1216 KB | Output is correct |
157 | Correct | 21 ms | 1292 KB | Output is correct |
158 | Correct | 15 ms | 1116 KB | Output is correct |
159 | Correct | 20 ms | 1116 KB | Output is correct |
160 | Correct | 18 ms | 1232 KB | Output is correct |
161 | Correct | 15 ms | 1116 KB | Output is correct |
162 | Correct | 22 ms | 1116 KB | Output is correct |
163 | Correct | 21 ms | 1116 KB | Output is correct |
164 | Correct | 12 ms | 3420 KB | Output is correct |
165 | Correct | 15 ms | 3420 KB | Output is correct |
166 | Correct | 21 ms | 2140 KB | Output is correct |
167 | Correct | 23 ms | 1116 KB | Output is correct |
168 | Correct | 23 ms | 1116 KB | Output is correct |
169 | Correct | 23 ms | 1116 KB | Output is correct |
170 | Correct | 25 ms | 1116 KB | Output is correct |
171 | Correct | 22 ms | 1372 KB | Output is correct |
172 | Correct | 20 ms | 1268 KB | Output is correct |
173 | Correct | 17 ms | 1244 KB | Output is correct |
174 | Correct | 29 ms | 1628 KB | Output is correct |
175 | Correct | 52 ms | 2140 KB | Output is correct |
176 | Correct | 105 ms | 7516 KB | Output is correct |
177 | Correct | 158 ms | 6304 KB | Output is correct |
178 | Correct | 206 ms | 7492 KB | Output is correct |
179 | Correct | 234 ms | 8444 KB | Output is correct |
180 | Correct | 235 ms | 8584 KB | Output is correct |
181 | Correct | 230 ms | 8092 KB | Output is correct |
182 | Correct | 227 ms | 8020 KB | Output is correct |
183 | Correct | 213 ms | 8996 KB | Output is correct |
184 | Correct | 342 ms | 15708 KB | Output is correct |
185 | Correct | 249 ms | 9552 KB | Output is correct |
186 | Correct | 230 ms | 12628 KB | Output is correct |
187 | Correct | 310 ms | 11268 KB | Output is correct |
188 | Correct | 319 ms | 15892 KB | Output is correct |
189 | Correct | 414 ms | 15552 KB | Output is correct |
190 | Correct | 335 ms | 15552 KB | Output is correct |
191 | Correct | 310 ms | 15868 KB | Output is correct |
192 | Correct | 457 ms | 15724 KB | Output is correct |
193 | Correct | 430 ms | 15700 KB | Output is correct |
194 | Correct | 250 ms | 60652 KB | Output is correct |
195 | Correct | 284 ms | 60396 KB | Output is correct |
196 | Correct | 473 ms | 16384 KB | Output is correct |
197 | Correct | 462 ms | 15908 KB | Output is correct |
198 | Correct | 451 ms | 15812 KB | Output is correct |
199 | Correct | 477 ms | 15704 KB | Output is correct |
200 | Correct | 421 ms | 15956 KB | Output is correct |
201 | Correct | 424 ms | 16076 KB | Output is correct |
202 | Correct | 359 ms | 15704 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 0 ms | 440 KB | Output is correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Correct | 0 ms | 436 KB | Output is correct |
9 | Correct | 0 ms | 348 KB | Output is correct |
10 | Correct | 0 ms | 348 KB | Output is correct |
11 | Correct | 1 ms | 348 KB | Output is correct |
12 | Correct | 1 ms | 348 KB | Output is correct |
13 | Correct | 0 ms | 348 KB | Output is correct |
14 | Correct | 0 ms | 348 KB | Output is correct |
15 | Correct | 0 ms | 348 KB | Output is correct |
16 | Correct | 0 ms | 348 KB | Output is correct |
17 | Correct | 0 ms | 348 KB | Output is correct |
18 | Correct | 0 ms | 348 KB | Output is correct |
19 | Correct | 7 ms | 764 KB | Output is correct |
20 | Correct | 5 ms | 1372 KB | Output is correct |
21 | Correct | 6 ms | 604 KB | Output is correct |
22 | Correct | 9 ms | 772 KB | Output is correct |
23 | Correct | 7 ms | 604 KB | Output is correct |
24 | Correct | 5 ms | 1628 KB | Output is correct |
25 | Correct | 6 ms | 1628 KB | Output is correct |
26 | Correct | 8 ms | 856 KB | Output is correct |
27 | Correct | 8 ms | 704 KB | Output is correct |
28 | Correct | 7 ms | 760 KB | Output is correct |
29 | Correct | 18 ms | 1116 KB | Output is correct |
30 | Correct | 9 ms | 1116 KB | Output is correct |
31 | Correct | 15 ms | 1116 KB | Output is correct |
32 | Correct | 21 ms | 1192 KB | Output is correct |
33 | Correct | 16 ms | 1116 KB | Output is correct |
34 | Correct | 12 ms | 3420 KB | Output is correct |
35 | Correct | 15 ms | 3420 KB | Output is correct |
36 | Correct | 21 ms | 1116 KB | Output is correct |
37 | Correct | 20 ms | 1272 KB | Output is correct |
38 | Correct | 18 ms | 1116 KB | Output is correct |
39 | Correct | 182 ms | 8276 KB | Output is correct |
40 | Correct | 24 ms | 1372 KB | Output is correct |
41 | Correct | 17 ms | 4188 KB | Output is correct |
42 | Correct | 26 ms | 1364 KB | Output is correct |
43 | Correct | 31 ms | 3164 KB | Output is correct |
44 | Correct | 97 ms | 5676 KB | Output is correct |
45 | Correct | 97 ms | 6412 KB | Output is correct |
46 | Correct | 162 ms | 8016 KB | Output is correct |
47 | Correct | 205 ms | 8016 KB | Output is correct |
48 | Correct | 166 ms | 8024 KB | Output is correct |
49 | Correct | 122 ms | 30372 KB | Output is correct |
50 | Correct | 141 ms | 30372 KB | Output is correct |
51 | Correct | 209 ms | 8272 KB | Output is correct |
52 | Correct | 210 ms | 8152 KB | Output is correct |
53 | Correct | 173 ms | 7896 KB | Output is correct |
54 | Correct | 0 ms | 348 KB | Output is correct |
55 | Correct | 0 ms | 348 KB | Output is correct |
56 | Correct | 0 ms | 440 KB | Output is correct |
57 | Correct | 0 ms | 344 KB | Output is correct |
58 | Correct | 1 ms | 348 KB | Output is correct |
59 | Correct | 0 ms | 348 KB | Output is correct |
60 | Correct | 0 ms | 348 KB | Output is correct |
61 | Correct | 0 ms | 348 KB | Output is correct |
62 | Correct | 1 ms | 348 KB | Output is correct |
63 | Correct | 0 ms | 348 KB | Output is correct |
64 | Correct | 0 ms | 432 KB | Output is correct |
65 | Correct | 0 ms | 348 KB | Output is correct |
66 | Correct | 0 ms | 348 KB | Output is correct |
67 | Correct | 0 ms | 348 KB | Output is correct |
68 | Correct | 0 ms | 348 KB | Output is correct |
69 | Correct | 0 ms | 348 KB | Output is correct |
70 | Correct | 0 ms | 348 KB | Output is correct |
71 | Correct | 0 ms | 348 KB | Output is correct |
72 | Correct | 0 ms | 440 KB | Output is correct |
73 | Correct | 0 ms | 348 KB | Output is correct |
74 | Correct | 0 ms | 348 KB | Output is correct |
75 | Correct | 0 ms | 348 KB | Output is correct |
76 | Correct | 0 ms | 348 KB | Output is correct |
77 | Correct | 0 ms | 436 KB | Output is correct |
78 | Correct | 0 ms | 348 KB | Output is correct |
79 | Correct | 0 ms | 348 KB | Output is correct |
80 | Correct | 0 ms | 348 KB | Output is correct |
81 | Correct | 0 ms | 348 KB | Output is correct |
82 | Correct | 0 ms | 348 KB | Output is correct |
83 | Correct | 0 ms | 348 KB | Output is correct |
84 | Correct | 0 ms | 348 KB | Output is correct |
85 | Correct | 1 ms | 348 KB | Output is correct |
86 | Correct | 0 ms | 348 KB | Output is correct |
87 | Correct | 0 ms | 348 KB | Output is correct |
88 | Correct | 0 ms | 348 KB | Output is correct |
89 | Correct | 0 ms | 348 KB | Output is correct |
90 | Correct | 0 ms | 348 KB | Output is correct |
91 | Correct | 0 ms | 348 KB | Output is correct |
92 | Correct | 0 ms | 348 KB | Output is correct |
93 | Correct | 0 ms | 348 KB | Output is correct |
94 | Correct | 0 ms | 348 KB | Output is correct |
95 | Correct | 0 ms | 348 KB | Output is correct |
96 | Correct | 0 ms | 348 KB | Output is correct |
97 | Correct | 0 ms | 348 KB | Output is correct |
98 | Correct | 0 ms | 348 KB | Output is correct |
99 | Correct | 0 ms | 348 KB | Output is correct |
100 | Correct | 0 ms | 348 KB | Output is correct |
101 | Correct | 0 ms | 348 KB | Output is correct |
102 | Correct | 0 ms | 348 KB | Output is correct |
103 | Correct | 0 ms | 348 KB | Output is correct |
104 | Correct | 0 ms | 432 KB | Output is correct |
105 | Correct | 0 ms | 348 KB | Output is correct |
106 | Correct | 0 ms | 348 KB | Output is correct |
107 | Correct | 0 ms | 348 KB | Output is correct |
108 | Correct | 0 ms | 348 KB | Output is correct |
109 | Correct | 1 ms | 348 KB | Output is correct |
110 | Correct | 6 ms | 604 KB | Output is correct |
111 | Correct | 7 ms | 604 KB | Output is correct |
112 | Correct | 6 ms | 604 KB | Output is correct |
113 | Correct | 6 ms | 604 KB | Output is correct |
114 | Correct | 9 ms | 604 KB | Output is correct |
115 | Correct | 9 ms | 604 KB | Output is correct |
116 | Correct | 10 ms | 604 KB | Output is correct |
117 | Correct | 8 ms | 856 KB | Output is correct |
118 | Correct | 8 ms | 760 KB | Output is correct |
119 | Correct | 16 ms | 1116 KB | Output is correct |
120 | Correct | 15 ms | 1116 KB | Output is correct |
121 | Correct | 15 ms | 1116 KB | Output is correct |
122 | Correct | 23 ms | 1116 KB | Output is correct |
123 | Correct | 21 ms | 1116 KB | Output is correct |
124 | Correct | 58 ms | 3492 KB | Output is correct |
125 | Correct | 178 ms | 9692 KB | Output is correct |
126 | Correct | 155 ms | 8212 KB | Output is correct |
127 | Correct | 152 ms | 8136 KB | Output is correct |
128 | Correct | 217 ms | 7884 KB | Output is correct |
129 | Correct | 216 ms | 8020 KB | Output is correct |
130 | Correct | 216 ms | 12116 KB | Output is correct |
131 | Correct | 214 ms | 12372 KB | Output is correct |
132 | Correct | 7 ms | 604 KB | Output is correct |
133 | Correct | 1 ms | 348 KB | Output is correct |
134 | Correct | 1 ms | 440 KB | Output is correct |
135 | Correct | 6 ms | 604 KB | Output is correct |
136 | Correct | 5 ms | 1372 KB | Output is correct |
137 | Correct | 7 ms | 604 KB | Output is correct |
138 | Correct | 7 ms | 604 KB | Output is correct |
139 | Correct | 9 ms | 780 KB | Output is correct |
140 | Correct | 7 ms | 604 KB | Output is correct |
141 | Correct | 6 ms | 604 KB | Output is correct |
142 | Correct | 9 ms | 760 KB | Output is correct |
143 | Correct | 8 ms | 756 KB | Output is correct |
144 | Correct | 5 ms | 1628 KB | Output is correct |
145 | Correct | 6 ms | 1628 KB | Output is correct |
146 | Correct | 8 ms | 1116 KB | Output is correct |
147 | Correct | 9 ms | 804 KB | Output is correct |
148 | Correct | 10 ms | 604 KB | Output is correct |
149 | Correct | 9 ms | 604 KB | Output is correct |
150 | Correct | 9 ms | 768 KB | Output is correct |
151 | Correct | 8 ms | 760 KB | Output is correct |
152 | Correct | 9 ms | 604 KB | Output is correct |
153 | Correct | 7 ms | 604 KB | Output is correct |
154 | Correct | 21 ms | 1116 KB | Output is correct |
155 | Correct | 9 ms | 1116 KB | Output is correct |
156 | Correct | 16 ms | 1216 KB | Output is correct |
157 | Correct | 21 ms | 1292 KB | Output is correct |
158 | Correct | 15 ms | 1116 KB | Output is correct |
159 | Correct | 20 ms | 1116 KB | Output is correct |
160 | Correct | 18 ms | 1232 KB | Output is correct |
161 | Correct | 15 ms | 1116 KB | Output is correct |
162 | Correct | 22 ms | 1116 KB | Output is correct |
163 | Correct | 21 ms | 1116 KB | Output is correct |
164 | Correct | 12 ms | 3420 KB | Output is correct |
165 | Correct | 15 ms | 3420 KB | Output is correct |
166 | Correct | 21 ms | 2140 KB | Output is correct |
167 | Correct | 23 ms | 1116 KB | Output is correct |
168 | Correct | 23 ms | 1116 KB | Output is correct |
169 | Correct | 23 ms | 1116 KB | Output is correct |
170 | Correct | 25 ms | 1116 KB | Output is correct |
171 | Correct | 22 ms | 1372 KB | Output is correct |
172 | Correct | 20 ms | 1268 KB | Output is correct |
173 | Correct | 17 ms | 1244 KB | Output is correct |
174 | Correct | 29 ms | 1628 KB | Output is correct |
175 | Correct | 52 ms | 2140 KB | Output is correct |
176 | Correct | 105 ms | 7516 KB | Output is correct |
177 | Correct | 158 ms | 6304 KB | Output is correct |
178 | Correct | 206 ms | 7492 KB | Output is correct |
179 | Correct | 234 ms | 8444 KB | Output is correct |
180 | Correct | 235 ms | 8584 KB | Output is correct |
181 | Correct | 230 ms | 8092 KB | Output is correct |
182 | Correct | 227 ms | 8020 KB | Output is correct |
183 | Correct | 213 ms | 8996 KB | Output is correct |
184 | Correct | 342 ms | 15708 KB | Output is correct |
185 | Correct | 249 ms | 9552 KB | Output is correct |
186 | Correct | 230 ms | 12628 KB | Output is correct |
187 | Correct | 310 ms | 11268 KB | Output is correct |
188 | Correct | 319 ms | 15892 KB | Output is correct |
189 | Correct | 414 ms | 15552 KB | Output is correct |
190 | Correct | 335 ms | 15552 KB | Output is correct |
191 | Correct | 310 ms | 15868 KB | Output is correct |
192 | Correct | 457 ms | 15724 KB | Output is correct |
193 | Correct | 430 ms | 15700 KB | Output is correct |
194 | Correct | 250 ms | 60652 KB | Output is correct |
195 | Correct | 284 ms | 60396 KB | Output is correct |
196 | Correct | 473 ms | 16384 KB | Output is correct |
197 | Correct | 462 ms | 15908 KB | Output is correct |
198 | Correct | 451 ms | 15812 KB | Output is correct |
199 | Correct | 477 ms | 15704 KB | Output is correct |
200 | Correct | 421 ms | 15956 KB | Output is correct |
201 | Correct | 424 ms | 16076 KB | Output is correct |
202 | Correct | 359 ms | 15704 KB | Output is correct |
203 | Correct | 707 ms | 30816 KB | Output is correct |
204 | Correct | 464 ms | 16156 KB | Output is correct |
205 | Correct | 561 ms | 18976 KB | Output is correct |
206 | Correct | 740 ms | 32624 KB | Output is correct |
207 | Correct | 641 ms | 31184 KB | Output is correct |
208 | Correct | 851 ms | 31060 KB | Output is correct |
209 | Correct | 682 ms | 30804 KB | Output is correct |
210 | Correct | 641 ms | 31528 KB | Output is correct |
211 | Correct | 862 ms | 31036 KB | Output is correct |
212 | Correct | 871 ms | 30840 KB | Output is correct |
213 | Correct | 488 ms | 120688 KB | Output is correct |
214 | Correct | 542 ms | 120700 KB | Output is correct |
215 | Correct | 950 ms | 31728 KB | Output is correct |
216 | Correct | 918 ms | 31620 KB | Output is correct |
217 | Correct | 949 ms | 31592 KB | Output is correct |
218 | Correct | 922 ms | 30992 KB | Output is correct |
219 | Correct | 841 ms | 36848 KB | Output is correct |
220 | Correct | 858 ms | 41996 KB | Output is correct |
221 | Correct | 869 ms | 47620 KB | Output is correct |
222 | Correct | 878 ms | 47684 KB | Output is correct |
223 | Correct | 878 ms | 31044 KB | Output is correct |
224 | Correct | 879 ms | 31328 KB | Output is correct |
225 | Correct | 758 ms | 30800 KB | Output is correct |