Submission #955160

# Submission time Handle Problem Language Result Execution time Memory
955160 2024-03-29T14:07:43 Z Otalp Maze (JOI23_ho_t3) C++14
27 / 100
2000 ms 1457444 KB
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int, int>
#define ff first
#define ss second



vector<vector<int> > a, dp, us;




void solve(){
    int n, m, k;
    cin>>n>>m>>k;
    pii s, t;
    cin>>s.ff>>s.ss;
    cin>>t.ff>>t.ss;
    for(int i=0; i<=n + 2; i++){
        us.pb({});
        dp.pb({});
        a.pb({});
        for(int j=0; j<=m + 2; j++){
            dp[i].pb(0);
            us[i].pb(0);
            a[i].pb(0);
        }
    }
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            char c;
            cin>>c;
            if(c == '#') a[i][j] = 1;
            else a[i][j] = 0;
        }
    }
    vector<pii> nap = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
    deque<pair<pii, int>> h;
    h.pb({s, 0});
    while(h.size()){
        int x=h[0].ff.ff, y=h[0].ff.ss;
        if(us[x][y]){
            h.pop_front();
            continue;
        }
        dp[x][y] = h[0].ss;
        us[x][y] = 1;
        h.pop_front();
        for(pii d: nap){
            if(!us[x + d.ff][y + d.ss] and x + d.ff <= n and x + d.ff >= 1 and y + d.ss <= m and y + d.ss >= 1 and a[x + d.ff][y + d.ss] != 1){
                h.push_front({{x + d.ff, y + d.ss}, dp[x][y]});
                continue;
            }
        }
        for(int i=max(1, x - k); i<=min(n, x + k); i++){
            for(int j=max(1, y-k); j<=min(m, y + k); j++){
                if(!us[i][j] and !(abs(j - y) == k and abs(x - i) == k)){
                    h.pb({{i, j}, dp[x][y] + 1});
                }
            }
        }
    }
    for(int i=1; i<=n; i++){
        for(int j=1; j<=m; j++){
            //cout<<dp[i][j]<<' ';
        }
        //cout<<'\n';
    }
    cout<<dp[t.ff][t.ss];
}   


int main(){
    solve();
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 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 1 ms 352 KB Output is correct
15 Correct 1 ms 356 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 352 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 7 ms 1124 KB Output is correct
20 Correct 5 ms 3296 KB Output is correct
21 Correct 7 ms 3404 KB Output is correct
22 Correct 9 ms 1628 KB Output is correct
23 Correct 6 ms 1280 KB Output is correct
24 Correct 7 ms 3816 KB Output is correct
25 Correct 7 ms 3824 KB Output is correct
26 Correct 9 ms 1372 KB Output is correct
27 Correct 8 ms 1384 KB Output is correct
28 Correct 6 ms 1304 KB Output is correct
29 Correct 16 ms 2908 KB Output is correct
30 Correct 8 ms 2360 KB Output is correct
31 Correct 18 ms 8280 KB Output is correct
32 Correct 21 ms 2916 KB Output is correct
33 Correct 14 ms 2920 KB Output is correct
34 Correct 20 ms 8736 KB Output is correct
35 Correct 17 ms 8660 KB Output is correct
36 Correct 21 ms 3176 KB Output is correct
37 Correct 20 ms 3184 KB Output is correct
38 Correct 16 ms 2912 KB Output is correct
39 Correct 174 ms 31624 KB Output is correct
40 Correct 24 ms 3676 KB Output is correct
41 Correct 21 ms 10032 KB Output is correct
42 Correct 26 ms 5208 KB Output is correct
43 Correct 28 ms 7904 KB Output is correct
44 Correct 107 ms 14304 KB Output is correct
45 Correct 91 ms 16604 KB Output is correct
46 Correct 199 ms 84852 KB Output is correct
47 Correct 205 ms 31576 KB Output is correct
48 Correct 192 ms 31620 KB Output is correct
49 Correct 188 ms 93344 KB Output is correct
50 Correct 151 ms 83820 KB Output is correct
51 Correct 208 ms 32848 KB Output is correct
52 Correct 215 ms 31908 KB Output is correct
53 Correct 171 ms 31564 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 0 ms 348 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 352 KB Output is correct
8 Correct 0 ms 344 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 9 ms 6236 KB Output is correct
13 Correct 9 ms 6436 KB Output is correct
14 Correct 9 ms 6232 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 352 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 352 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 380 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 352 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 1 ms 352 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 440 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 9 ms 6236 KB Output is correct
10 Correct 9 ms 6236 KB Output is correct
11 Correct 9 ms 6232 KB Output is correct
12 Correct 3 ms 348 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 352 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 352 KB Output is correct
21 Correct 1 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 20 ms 12100 KB Output is correct
25 Correct 17 ms 1880 KB Output is correct
26 Correct 66 ms 35676 KB Output is correct
27 Correct 7 ms 3172 KB Output is correct
28 Execution timed out 2158 ms 1417352 KB Time limit exceeded
29 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 0 ms 348 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 352 KB Output is correct
8 Correct 0 ms 344 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 9 ms 6236 KB Output is correct
13 Correct 9 ms 6436 KB Output is correct
14 Correct 9 ms 6232 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 352 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 352 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 380 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 352 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 1 ms 352 KB Output is correct
33 Correct 7 ms 1124 KB Output is correct
34 Correct 20 ms 12276 KB Output is correct
35 Correct 2 ms 444 KB Output is correct
36 Correct 21 ms 1380 KB Output is correct
37 Correct 6 ms 3296 KB Output is correct
38 Correct 76 ms 35680 KB Output is correct
39 Correct 7 ms 3168 KB Output is correct
40 Correct 8 ms 1116 KB Output is correct
41 Correct 7 ms 1136 KB Output is correct
42 Execution timed out 2083 ms 1457444 KB Time limit exceeded
43 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 0 ms 348 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 352 KB Output is correct
8 Correct 0 ms 344 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 1 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 9 ms 6236 KB Output is correct
13 Correct 9 ms 6436 KB Output is correct
14 Correct 9 ms 6232 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 436 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 348 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 352 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 352 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 380 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 352 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 1 ms 352 KB Output is correct
33 Correct 7 ms 1124 KB Output is correct
34 Correct 20 ms 12276 KB Output is correct
35 Correct 2 ms 444 KB Output is correct
36 Correct 21 ms 1380 KB Output is correct
37 Correct 6 ms 3296 KB Output is correct
38 Correct 76 ms 35680 KB Output is correct
39 Correct 7 ms 3168 KB Output is correct
40 Correct 8 ms 1116 KB Output is correct
41 Correct 7 ms 1136 KB Output is correct
42 Execution timed out 2083 ms 1457444 KB Time limit exceeded
43 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 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 1 ms 352 KB Output is correct
15 Correct 1 ms 356 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 352 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 7 ms 1124 KB Output is correct
20 Correct 5 ms 3296 KB Output is correct
21 Correct 7 ms 3404 KB Output is correct
22 Correct 9 ms 1628 KB Output is correct
23 Correct 6 ms 1280 KB Output is correct
24 Correct 7 ms 3816 KB Output is correct
25 Correct 7 ms 3824 KB Output is correct
26 Correct 9 ms 1372 KB Output is correct
27 Correct 8 ms 1384 KB Output is correct
28 Correct 6 ms 1304 KB Output is correct
29 Correct 16 ms 2908 KB Output is correct
30 Correct 8 ms 2360 KB Output is correct
31 Correct 18 ms 8280 KB Output is correct
32 Correct 21 ms 2916 KB Output is correct
33 Correct 14 ms 2920 KB Output is correct
34 Correct 20 ms 8736 KB Output is correct
35 Correct 17 ms 8660 KB Output is correct
36 Correct 21 ms 3176 KB Output is correct
37 Correct 20 ms 3184 KB Output is correct
38 Correct 16 ms 2912 KB Output is correct
39 Correct 174 ms 31624 KB Output is correct
40 Correct 24 ms 3676 KB Output is correct
41 Correct 21 ms 10032 KB Output is correct
42 Correct 26 ms 5208 KB Output is correct
43 Correct 28 ms 7904 KB Output is correct
44 Correct 107 ms 14304 KB Output is correct
45 Correct 91 ms 16604 KB Output is correct
46 Correct 199 ms 84852 KB Output is correct
47 Correct 205 ms 31576 KB Output is correct
48 Correct 192 ms 31620 KB Output is correct
49 Correct 188 ms 93344 KB Output is correct
50 Correct 151 ms 83820 KB Output is correct
51 Correct 208 ms 32848 KB Output is correct
52 Correct 215 ms 31908 KB Output is correct
53 Correct 171 ms 31564 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 1 ms 344 KB Output is correct
57 Correct 0 ms 348 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 352 KB Output is correct
61 Correct 0 ms 344 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 9 ms 6236 KB Output is correct
66 Correct 9 ms 6436 KB Output is correct
67 Correct 9 ms 6232 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 436 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 1 ms 352 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 352 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 380 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 352 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 1 ms 352 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 440 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 9 ms 6236 KB Output is correct
95 Correct 9 ms 6236 KB Output is correct
96 Correct 9 ms 6232 KB Output is correct
97 Correct 3 ms 348 KB Output is correct
98 Correct 1 ms 344 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 352 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 1 ms 348 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 20 ms 12100 KB Output is correct
110 Correct 17 ms 1880 KB Output is correct
111 Correct 66 ms 35676 KB Output is correct
112 Correct 7 ms 3172 KB Output is correct
113 Execution timed out 2158 ms 1417352 KB Time limit exceeded
114 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 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 1 ms 352 KB Output is correct
15 Correct 1 ms 356 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 352 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 7 ms 1124 KB Output is correct
20 Correct 5 ms 3296 KB Output is correct
21 Correct 7 ms 3404 KB Output is correct
22 Correct 9 ms 1628 KB Output is correct
23 Correct 6 ms 1280 KB Output is correct
24 Correct 7 ms 3816 KB Output is correct
25 Correct 7 ms 3824 KB Output is correct
26 Correct 9 ms 1372 KB Output is correct
27 Correct 8 ms 1384 KB Output is correct
28 Correct 6 ms 1304 KB Output is correct
29 Correct 16 ms 2908 KB Output is correct
30 Correct 8 ms 2360 KB Output is correct
31 Correct 18 ms 8280 KB Output is correct
32 Correct 21 ms 2916 KB Output is correct
33 Correct 14 ms 2920 KB Output is correct
34 Correct 20 ms 8736 KB Output is correct
35 Correct 17 ms 8660 KB Output is correct
36 Correct 21 ms 3176 KB Output is correct
37 Correct 20 ms 3184 KB Output is correct
38 Correct 16 ms 2912 KB Output is correct
39 Correct 174 ms 31624 KB Output is correct
40 Correct 24 ms 3676 KB Output is correct
41 Correct 21 ms 10032 KB Output is correct
42 Correct 26 ms 5208 KB Output is correct
43 Correct 28 ms 7904 KB Output is correct
44 Correct 107 ms 14304 KB Output is correct
45 Correct 91 ms 16604 KB Output is correct
46 Correct 199 ms 84852 KB Output is correct
47 Correct 205 ms 31576 KB Output is correct
48 Correct 192 ms 31620 KB Output is correct
49 Correct 188 ms 93344 KB Output is correct
50 Correct 151 ms 83820 KB Output is correct
51 Correct 208 ms 32848 KB Output is correct
52 Correct 215 ms 31908 KB Output is correct
53 Correct 171 ms 31564 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 1 ms 344 KB Output is correct
57 Correct 0 ms 348 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 352 KB Output is correct
61 Correct 0 ms 344 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 9 ms 6236 KB Output is correct
66 Correct 9 ms 6436 KB Output is correct
67 Correct 9 ms 6232 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 436 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 1 ms 352 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 352 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 380 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 352 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 1 ms 352 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 440 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 9 ms 6236 KB Output is correct
95 Correct 9 ms 6236 KB Output is correct
96 Correct 9 ms 6232 KB Output is correct
97 Correct 3 ms 348 KB Output is correct
98 Correct 1 ms 344 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 352 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 1 ms 348 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 20 ms 12100 KB Output is correct
110 Correct 17 ms 1880 KB Output is correct
111 Correct 66 ms 35676 KB Output is correct
112 Correct 7 ms 3172 KB Output is correct
113 Execution timed out 2158 ms 1417352 KB Time limit exceeded
114 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 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 1 ms 352 KB Output is correct
15 Correct 1 ms 356 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 352 KB Output is correct
18 Correct 0 ms 352 KB Output is correct
19 Correct 7 ms 1124 KB Output is correct
20 Correct 5 ms 3296 KB Output is correct
21 Correct 7 ms 3404 KB Output is correct
22 Correct 9 ms 1628 KB Output is correct
23 Correct 6 ms 1280 KB Output is correct
24 Correct 7 ms 3816 KB Output is correct
25 Correct 7 ms 3824 KB Output is correct
26 Correct 9 ms 1372 KB Output is correct
27 Correct 8 ms 1384 KB Output is correct
28 Correct 6 ms 1304 KB Output is correct
29 Correct 16 ms 2908 KB Output is correct
30 Correct 8 ms 2360 KB Output is correct
31 Correct 18 ms 8280 KB Output is correct
32 Correct 21 ms 2916 KB Output is correct
33 Correct 14 ms 2920 KB Output is correct
34 Correct 20 ms 8736 KB Output is correct
35 Correct 17 ms 8660 KB Output is correct
36 Correct 21 ms 3176 KB Output is correct
37 Correct 20 ms 3184 KB Output is correct
38 Correct 16 ms 2912 KB Output is correct
39 Correct 174 ms 31624 KB Output is correct
40 Correct 24 ms 3676 KB Output is correct
41 Correct 21 ms 10032 KB Output is correct
42 Correct 26 ms 5208 KB Output is correct
43 Correct 28 ms 7904 KB Output is correct
44 Correct 107 ms 14304 KB Output is correct
45 Correct 91 ms 16604 KB Output is correct
46 Correct 199 ms 84852 KB Output is correct
47 Correct 205 ms 31576 KB Output is correct
48 Correct 192 ms 31620 KB Output is correct
49 Correct 188 ms 93344 KB Output is correct
50 Correct 151 ms 83820 KB Output is correct
51 Correct 208 ms 32848 KB Output is correct
52 Correct 215 ms 31908 KB Output is correct
53 Correct 171 ms 31564 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 1 ms 344 KB Output is correct
57 Correct 0 ms 348 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 352 KB Output is correct
61 Correct 0 ms 344 KB Output is correct
62 Correct 0 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 9 ms 6236 KB Output is correct
66 Correct 9 ms 6436 KB Output is correct
67 Correct 9 ms 6232 KB Output is correct
68 Correct 1 ms 344 KB Output is correct
69 Correct 1 ms 436 KB Output is correct
70 Correct 1 ms 348 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 348 KB Output is correct
75 Correct 1 ms 352 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 1 ms 344 KB Output is correct
78 Correct 1 ms 352 KB Output is correct
79 Correct 0 ms 348 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 380 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 352 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 1 ms 352 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 1 ms 440 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 9 ms 6236 KB Output is correct
95 Correct 9 ms 6236 KB Output is correct
96 Correct 9 ms 6232 KB Output is correct
97 Correct 3 ms 348 KB Output is correct
98 Correct 1 ms 344 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 0 ms 348 KB Output is correct
101 Correct 1 ms 352 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 0 ms 352 KB Output is correct
104 Correct 1 ms 348 KB Output is correct
105 Correct 0 ms 352 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 348 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 20 ms 12100 KB Output is correct
110 Correct 17 ms 1880 KB Output is correct
111 Correct 66 ms 35676 KB Output is correct
112 Correct 7 ms 3172 KB Output is correct
113 Execution timed out 2158 ms 1417352 KB Time limit exceeded
114 Halted 0 ms 0 KB -