답안 #914134

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
914134 2024-01-21T09:10:43 Z mychecksedad Maze (JOI23_ho_t3) C++17
94 / 100
2000 ms 122476 KB
/* Author : Mychecksdead  */
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define MOD (1000000000+7)
#define MOD1 (998244353)
#define pb push_back
#define all(x) x.begin(), x.end()
#define en cout << '\n'
const int N = 6e6+100, M = 1e5+10, K = 52, MX = 30;

int r, c, n, sx, sy, ex, ey, arr[4][2]={{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; 
string s[5000];
vector<vector<int>> dp;

void solve(){
  cin >> r >> c >> n >> sx >> sy >> ex >> ey;
  sx--, sy--, ex--, ey--;
  for(int i = 0; i < r; ++i) cin >> s[i];


  vector<vector<pair<int, int>>> C;
  vector<vector<int>> vis(r, vector<int>(c));
  vector<vector<array<int, 2>>> dist(r, vector<array<int, 2>>(c));
  vector<vector<int>> dp(r, vector<int>(c, MOD));
  for(int i = 0; i < r; ++i){
    for(int j = 0; j < c; ++j){
      if(s[i][j] == '#' || vis[i][j]) continue;
      queue<pair<int, int>> q;
      q.push({i, j});
      vis[i][j] = C.size() + 1;
      C.pb({});
      while(!q.empty()){
        int x = q.front().first, y = q.front().second;
        q.pop();
        C.back().pb({x, y});
        for(int l = 0; l < 4; ++l){
          int x1 = x + arr[l][0], x2 = y + arr[l][1];
          if(x1 >= 0 && x2 >= 0 && x1 < r && x2 < c && s[x1][x2] != '#' && !vis[x1][x2]){
            q.push({x1, x2});
            vis[x1][x2] = C.size();
          }
        }
      }
    }
  }
  auto comp = [&](const array<int, 2> &x, const array<int, 2> &y){
    return max(abs(dist[x[0]][x[1]][0]), abs(dist[x[0]][x[1]][1])) > max(abs(dist[y[0]][y[1]][0]), abs(dist[y[0]][y[1]][1]));
  };
  priority_queue<array<int, 2>, vector<array<int, 2>>, decltype(comp)> Q(comp);
  for(auto p: C[vis[sx][sy] - 1]){
    int x = 0, req = 4;
    for(int l = 0; l < 4; ++l){
      int a = arr[l][0] + p.first, b = arr[l][1] + p.second;
      if(a >= 0 && b >= 0 && a < r && b < c){
        if(vis[a][b] == vis[p.first][p.second]) ++x;
      }else --req;
    }
    dp[p.first][p.second] = 0;
    dist[p.first][p.second] = {0};
    if(x < req) Q.push({p.first, p.second});
  }
  int cur = 0;
  while(dp[ex][ey] == MOD){
    vector<pair<int, int>> Sn;

    while(!Q.empty()){
      int x = Q.top()[0], y = Q.top()[1]; Q.pop();
      // cout << x << ' '<< y << ' ' << cur << ' ' << dist[x][y][0] << ' ' << dist[x][y][1] << endl;

      int curx = dist[x][y][0], cury = dist[x][y][1];
      for(int l = 0; l < 4; ++l){
        int a = x + arr[l][0], b = y + arr[l][1];
        if(a >= 0 && b >= 0 && a < r && b < c){
          if(max(abs(curx + arr[l][0]), abs(cury + arr[l][1])) > n || abs(curx + arr[l][0]) + abs(cury + arr[l][1]) == 2*n){
            if(dp[a][b] == MOD && vis[a][b] > 0){
              for(auto p: C[vis[a][b] - 1]){
                dp[p.first][p.second] = cur + 1;
                Sn.pb(p);
              }
            }
            continue;
          }
          if(dp[a][b] < MOD){
            if(max(abs(dist[a][b][0]), abs(dist[a][b][1])) > max(abs(curx + arr[l][0]), abs(cury + arr[l][1]))){
              dist[a][b] = {curx + arr[l][0], cury + arr[l][1]};
            }
          }else{
            dp[a][b] = cur + 1;
            dist[a][b] = {curx + arr[l][0], cury + arr[l][1]};
            Sn.pb({a, b});
            Q.push({a, b});
          }
        }
      }
    }

    for(auto p: Sn){
      int x = 0, req = 4;
      for(int l = 0; l < 4; ++l){
        int a = arr[l][0] + p.first, b = arr[l][1] + p.second;
        if(a >= 0 && b >= 0 && a < r && b < c){
          if(dp[a][b] < MOD) ++x;
        }else --req;
      }
      if(x < req){
        Q.push({p.first, p.second});
        dist[p.first][p.second] = {0};
      }
    }
    ++cur;
  }
  // for(int i = 0; i < r; ++i){
  //   for(int j = 0 ;j < c; ++j) cout << dp[i][j] << ' ';
  //   en;
  // }
  cout << dp[ex][ey];
}


int main(){
  cin.tie(0); ios::sync_with_stdio(0);
  int tt = 1, aa;
  // freopen("in.txt", "r", stdin);
  // freopen("out.txt", "w", stdout);
  while(tt--){
    solve();
    en;
  }
  cerr<<"time taken : "<<(float)clock()/CLOCKS_PER_SEC<<" seconds\n";
  return 0;
} 

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:123:15: warning: unused variable 'aa' [-Wunused-variable]
  123 |   int tt = 1, aa;
      |               ^~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 0 ms 604 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 1 ms 600 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 0 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 600 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 13 ms 1752 KB Output is correct
20 Correct 5 ms 1592 KB Output is correct
21 Correct 4 ms 2044 KB Output is correct
22 Correct 12 ms 2136 KB Output is correct
23 Correct 15 ms 1628 KB Output is correct
24 Correct 4 ms 2200 KB Output is correct
25 Correct 4 ms 1904 KB Output is correct
26 Correct 4 ms 2136 KB Output is correct
27 Correct 4 ms 2176 KB Output is correct
28 Correct 10 ms 1628 KB Output is correct
29 Correct 40 ms 3408 KB Output is correct
30 Correct 7 ms 2408 KB Output is correct
31 Correct 10 ms 5332 KB Output is correct
32 Correct 40 ms 4500 KB Output is correct
33 Correct 39 ms 3164 KB Output is correct
34 Correct 8 ms 4872 KB Output is correct
35 Correct 10 ms 3992 KB Output is correct
36 Correct 22 ms 4680 KB Output is correct
37 Correct 36 ms 4504 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 529 ms 28324 KB Output is correct
40 Correct 14 ms 4756 KB Output is correct
41 Correct 12 ms 6256 KB Output is correct
42 Correct 64 ms 5564 KB Output is correct
43 Correct 30 ms 7580 KB Output is correct
44 Correct 59 ms 19620 KB Output is correct
45 Correct 67 ms 19100 KB Output is correct
46 Correct 91 ms 43960 KB Output is correct
47 Correct 438 ms 40192 KB Output is correct
48 Correct 415 ms 26644 KB Output is correct
49 Correct 69 ms 42568 KB Output is correct
50 Correct 74 ms 31512 KB Output is correct
51 Correct 334 ms 40064 KB Output is correct
52 Correct 265 ms 40636 KB Output is correct
53 Correct 496 ms 26764 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 1 ms 856 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 856 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 604 KB Output is correct
16 Correct 0 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 604 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 0 ms 604 KB Output is correct
26 Correct 1 ms 604 KB Output is correct
27 Correct 1 ms 604 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 0 ms 604 KB Output is correct
30 Correct 1 ms 604 KB Output is correct
31 Correct 1 ms 604 KB Output is correct
32 Correct 1 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 0 ms 604 KB Output is correct
3 Correct 0 ms 604 KB Output is correct
4 Correct 0 ms 604 KB Output is correct
5 Correct 1 ms 604 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 0 ms 604 KB Output is correct
8 Correct 1 ms 756 KB Output is correct
9 Correct 1 ms 600 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 600 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 0 ms 604 KB Output is correct
18 Correct 0 ms 600 KB Output is correct
19 Correct 0 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 600 KB Output is correct
22 Correct 1 ms 604 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 3 ms 1624 KB Output is correct
26 Correct 4 ms 2260 KB Output is correct
27 Correct 4 ms 2264 KB Output is correct
28 Correct 3 ms 2264 KB Output is correct
29 Correct 12 ms 2776 KB Output is correct
30 Correct 10 ms 2276 KB Output is correct
31 Correct 6 ms 2140 KB Output is correct
32 Correct 3 ms 2140 KB Output is correct
33 Correct 3 ms 2140 KB Output is correct
34 Correct 8 ms 4300 KB Output is correct
35 Correct 8 ms 5332 KB Output is correct
36 Correct 8 ms 5332 KB Output is correct
37 Correct 31 ms 6640 KB Output is correct
38 Correct 25 ms 5580 KB Output is correct
39 Correct 30 ms 14540 KB Output is correct
40 Correct 82 ms 43768 KB Output is correct
41 Correct 90 ms 43956 KB Output is correct
42 Correct 95 ms 43444 KB Output is correct
43 Correct 348 ms 62032 KB Output is correct
44 Correct 331 ms 44580 KB Output is correct
45 Correct 94 ms 49200 KB Output is correct
46 Correct 99 ms 49136 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 1 ms 856 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 856 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 604 KB Output is correct
16 Correct 0 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 604 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 0 ms 604 KB Output is correct
26 Correct 1 ms 604 KB Output is correct
27 Correct 1 ms 604 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 0 ms 604 KB Output is correct
30 Correct 1 ms 604 KB Output is correct
31 Correct 1 ms 604 KB Output is correct
32 Correct 1 ms 604 KB Output is correct
33 Correct 13 ms 1624 KB Output is correct
34 Correct 1 ms 604 KB Output is correct
35 Correct 1 ms 600 KB Output is correct
36 Correct 3 ms 1628 KB Output is correct
37 Correct 4 ms 1592 KB Output is correct
38 Correct 4 ms 2260 KB Output is correct
39 Correct 3 ms 2264 KB Output is correct
40 Correct 14 ms 2216 KB Output is correct
41 Correct 15 ms 1688 KB Output is correct
42 Correct 3 ms 2264 KB Output is correct
43 Correct 12 ms 2776 KB Output is correct
44 Correct 10 ms 2276 KB Output is correct
45 Correct 4 ms 2200 KB Output is correct
46 Correct 4 ms 1904 KB Output is correct
47 Correct 6 ms 2416 KB Output is correct
48 Correct 8 ms 2140 KB Output is correct
49 Correct 9 ms 2240 KB Output is correct
50 Correct 9 ms 2140 KB Output is correct
51 Correct 6 ms 2140 KB Output is correct
52 Correct 4 ms 2232 KB Output is correct
53 Correct 4 ms 2140 KB Output is correct
54 Correct 9 ms 1712 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 604 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 1 ms 856 KB Output is correct
6 Correct 0 ms 604 KB Output is correct
7 Correct 1 ms 856 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 1 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 604 KB Output is correct
16 Correct 0 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 0 ms 604 KB Output is correct
19 Correct 1 ms 604 KB Output is correct
20 Correct 1 ms 604 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 604 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 604 KB Output is correct
25 Correct 0 ms 604 KB Output is correct
26 Correct 1 ms 604 KB Output is correct
27 Correct 1 ms 604 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 0 ms 604 KB Output is correct
30 Correct 1 ms 604 KB Output is correct
31 Correct 1 ms 604 KB Output is correct
32 Correct 1 ms 604 KB Output is correct
33 Correct 13 ms 1624 KB Output is correct
34 Correct 1 ms 604 KB Output is correct
35 Correct 1 ms 600 KB Output is correct
36 Correct 3 ms 1628 KB Output is correct
37 Correct 4 ms 1592 KB Output is correct
38 Correct 4 ms 2260 KB Output is correct
39 Correct 3 ms 2264 KB Output is correct
40 Correct 14 ms 2216 KB Output is correct
41 Correct 15 ms 1688 KB Output is correct
42 Correct 3 ms 2264 KB Output is correct
43 Correct 12 ms 2776 KB Output is correct
44 Correct 10 ms 2276 KB Output is correct
45 Correct 4 ms 2200 KB Output is correct
46 Correct 4 ms 1904 KB Output is correct
47 Correct 6 ms 2416 KB Output is correct
48 Correct 8 ms 2140 KB Output is correct
49 Correct 9 ms 2240 KB Output is correct
50 Correct 9 ms 2140 KB Output is correct
51 Correct 6 ms 2140 KB Output is correct
52 Correct 4 ms 2232 KB Output is correct
53 Correct 4 ms 2140 KB Output is correct
54 Correct 9 ms 1712 KB Output is correct
55 Correct 40 ms 3420 KB Output is correct
56 Correct 8 ms 2412 KB Output is correct
57 Correct 8 ms 4304 KB Output is correct
58 Correct 24 ms 4504 KB Output is correct
59 Correct 9 ms 5332 KB Output is correct
60 Correct 37 ms 4460 KB Output is correct
61 Correct 39 ms 3164 KB Output is correct
62 Correct 8 ms 5332 KB Output is correct
63 Correct 30 ms 6792 KB Output is correct
64 Correct 25 ms 5516 KB Output is correct
65 Correct 8 ms 4872 KB Output is correct
66 Correct 12 ms 3848 KB Output is correct
67 Correct 18 ms 4840 KB Output is correct
68 Correct 24 ms 4900 KB Output is correct
69 Correct 22 ms 4504 KB Output is correct
70 Correct 25 ms 4504 KB Output is correct
71 Correct 23 ms 4760 KB Output is correct
72 Correct 23 ms 4760 KB Output is correct
73 Correct 31 ms 4760 KB Output is correct
74 Correct 4 ms 3420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 0 ms 604 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 1 ms 600 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 0 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 600 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 13 ms 1752 KB Output is correct
20 Correct 5 ms 1592 KB Output is correct
21 Correct 4 ms 2044 KB Output is correct
22 Correct 12 ms 2136 KB Output is correct
23 Correct 15 ms 1628 KB Output is correct
24 Correct 4 ms 2200 KB Output is correct
25 Correct 4 ms 1904 KB Output is correct
26 Correct 4 ms 2136 KB Output is correct
27 Correct 4 ms 2176 KB Output is correct
28 Correct 10 ms 1628 KB Output is correct
29 Correct 40 ms 3408 KB Output is correct
30 Correct 7 ms 2408 KB Output is correct
31 Correct 10 ms 5332 KB Output is correct
32 Correct 40 ms 4500 KB Output is correct
33 Correct 39 ms 3164 KB Output is correct
34 Correct 8 ms 4872 KB Output is correct
35 Correct 10 ms 3992 KB Output is correct
36 Correct 22 ms 4680 KB Output is correct
37 Correct 36 ms 4504 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 529 ms 28324 KB Output is correct
40 Correct 14 ms 4756 KB Output is correct
41 Correct 12 ms 6256 KB Output is correct
42 Correct 64 ms 5564 KB Output is correct
43 Correct 30 ms 7580 KB Output is correct
44 Correct 59 ms 19620 KB Output is correct
45 Correct 67 ms 19100 KB Output is correct
46 Correct 91 ms 43960 KB Output is correct
47 Correct 438 ms 40192 KB Output is correct
48 Correct 415 ms 26644 KB Output is correct
49 Correct 69 ms 42568 KB Output is correct
50 Correct 74 ms 31512 KB Output is correct
51 Correct 334 ms 40064 KB Output is correct
52 Correct 265 ms 40636 KB Output is correct
53 Correct 496 ms 26764 KB Output is correct
54 Correct 1 ms 604 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 1 ms 604 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 1 ms 856 KB Output is correct
59 Correct 0 ms 604 KB Output is correct
60 Correct 1 ms 856 KB Output is correct
61 Correct 1 ms 604 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 604 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 600 KB Output is correct
68 Correct 0 ms 604 KB Output is correct
69 Correct 0 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 0 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 604 KB Output is correct
75 Correct 1 ms 604 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 604 KB Output is correct
78 Correct 0 ms 604 KB Output is correct
79 Correct 1 ms 604 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 1 ms 604 KB Output is correct
82 Correct 0 ms 604 KB Output is correct
83 Correct 1 ms 604 KB Output is correct
84 Correct 1 ms 604 KB Output is correct
85 Correct 1 ms 604 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 0 ms 604 KB Output is correct
88 Correct 0 ms 604 KB Output is correct
89 Correct 0 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 0 ms 604 KB Output is correct
92 Correct 0 ms 604 KB Output is correct
93 Correct 1 ms 756 KB Output is correct
94 Correct 1 ms 600 KB Output is correct
95 Correct 1 ms 604 KB Output is correct
96 Correct 1 ms 604 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 1 ms 604 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 1 ms 600 KB Output is correct
101 Correct 1 ms 604 KB Output is correct
102 Correct 0 ms 604 KB Output is correct
103 Correct 0 ms 600 KB Output is correct
104 Correct 0 ms 604 KB Output is correct
105 Correct 1 ms 604 KB Output is correct
106 Correct 1 ms 600 KB Output is correct
107 Correct 1 ms 604 KB Output is correct
108 Correct 1 ms 604 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 3 ms 1624 KB Output is correct
111 Correct 4 ms 2260 KB Output is correct
112 Correct 4 ms 2264 KB Output is correct
113 Correct 3 ms 2264 KB Output is correct
114 Correct 12 ms 2776 KB Output is correct
115 Correct 10 ms 2276 KB Output is correct
116 Correct 6 ms 2140 KB Output is correct
117 Correct 3 ms 2140 KB Output is correct
118 Correct 3 ms 2140 KB Output is correct
119 Correct 8 ms 4300 KB Output is correct
120 Correct 8 ms 5332 KB Output is correct
121 Correct 8 ms 5332 KB Output is correct
122 Correct 31 ms 6640 KB Output is correct
123 Correct 25 ms 5580 KB Output is correct
124 Correct 30 ms 14540 KB Output is correct
125 Correct 82 ms 43768 KB Output is correct
126 Correct 90 ms 43956 KB Output is correct
127 Correct 95 ms 43444 KB Output is correct
128 Correct 348 ms 62032 KB Output is correct
129 Correct 331 ms 44580 KB Output is correct
130 Correct 94 ms 49200 KB Output is correct
131 Correct 99 ms 49136 KB Output is correct
132 Correct 13 ms 1624 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 3 ms 1628 KB Output is correct
136 Correct 4 ms 1592 KB Output is correct
137 Correct 4 ms 2260 KB Output is correct
138 Correct 3 ms 2264 KB Output is correct
139 Correct 14 ms 2216 KB Output is correct
140 Correct 15 ms 1688 KB Output is correct
141 Correct 3 ms 2264 KB Output is correct
142 Correct 12 ms 2776 KB Output is correct
143 Correct 10 ms 2276 KB Output is correct
144 Correct 4 ms 2200 KB Output is correct
145 Correct 4 ms 1904 KB Output is correct
146 Correct 6 ms 2416 KB Output is correct
147 Correct 8 ms 2140 KB Output is correct
148 Correct 9 ms 2240 KB Output is correct
149 Correct 9 ms 2140 KB Output is correct
150 Correct 6 ms 2140 KB Output is correct
151 Correct 4 ms 2232 KB Output is correct
152 Correct 4 ms 2140 KB Output is correct
153 Correct 9 ms 1712 KB Output is correct
154 Correct 40 ms 3420 KB Output is correct
155 Correct 8 ms 2412 KB Output is correct
156 Correct 8 ms 4304 KB Output is correct
157 Correct 24 ms 4504 KB Output is correct
158 Correct 9 ms 5332 KB Output is correct
159 Correct 37 ms 4460 KB Output is correct
160 Correct 39 ms 3164 KB Output is correct
161 Correct 8 ms 5332 KB Output is correct
162 Correct 30 ms 6792 KB Output is correct
163 Correct 25 ms 5516 KB Output is correct
164 Correct 8 ms 4872 KB Output is correct
165 Correct 12 ms 3848 KB Output is correct
166 Correct 18 ms 4840 KB Output is correct
167 Correct 24 ms 4900 KB Output is correct
168 Correct 22 ms 4504 KB Output is correct
169 Correct 25 ms 4504 KB Output is correct
170 Correct 23 ms 4760 KB Output is correct
171 Correct 23 ms 4760 KB Output is correct
172 Correct 31 ms 4760 KB Output is correct
173 Correct 4 ms 3420 KB Output is correct
174 Correct 15 ms 5784 KB Output is correct
175 Correct 53 ms 9236 KB Output is correct
176 Correct 65 ms 21168 KB Output is correct
177 Correct 132 ms 30892 KB Output is correct
178 Correct 69 ms 35292 KB Output is correct
179 Correct 173 ms 43260 KB Output is correct
180 Correct 262 ms 42848 KB Output is correct
181 Correct 264 ms 41984 KB Output is correct
182 Correct 296 ms 42628 KB Output is correct
183 Correct 336 ms 40768 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 0 ms 604 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 1 ms 600 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 0 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 600 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 13 ms 1752 KB Output is correct
20 Correct 5 ms 1592 KB Output is correct
21 Correct 4 ms 2044 KB Output is correct
22 Correct 12 ms 2136 KB Output is correct
23 Correct 15 ms 1628 KB Output is correct
24 Correct 4 ms 2200 KB Output is correct
25 Correct 4 ms 1904 KB Output is correct
26 Correct 4 ms 2136 KB Output is correct
27 Correct 4 ms 2176 KB Output is correct
28 Correct 10 ms 1628 KB Output is correct
29 Correct 40 ms 3408 KB Output is correct
30 Correct 7 ms 2408 KB Output is correct
31 Correct 10 ms 5332 KB Output is correct
32 Correct 40 ms 4500 KB Output is correct
33 Correct 39 ms 3164 KB Output is correct
34 Correct 8 ms 4872 KB Output is correct
35 Correct 10 ms 3992 KB Output is correct
36 Correct 22 ms 4680 KB Output is correct
37 Correct 36 ms 4504 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 529 ms 28324 KB Output is correct
40 Correct 14 ms 4756 KB Output is correct
41 Correct 12 ms 6256 KB Output is correct
42 Correct 64 ms 5564 KB Output is correct
43 Correct 30 ms 7580 KB Output is correct
44 Correct 59 ms 19620 KB Output is correct
45 Correct 67 ms 19100 KB Output is correct
46 Correct 91 ms 43960 KB Output is correct
47 Correct 438 ms 40192 KB Output is correct
48 Correct 415 ms 26644 KB Output is correct
49 Correct 69 ms 42568 KB Output is correct
50 Correct 74 ms 31512 KB Output is correct
51 Correct 334 ms 40064 KB Output is correct
52 Correct 265 ms 40636 KB Output is correct
53 Correct 496 ms 26764 KB Output is correct
54 Correct 1 ms 604 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 1 ms 604 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 1 ms 856 KB Output is correct
59 Correct 0 ms 604 KB Output is correct
60 Correct 1 ms 856 KB Output is correct
61 Correct 1 ms 604 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 604 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 600 KB Output is correct
68 Correct 0 ms 604 KB Output is correct
69 Correct 0 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 0 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 604 KB Output is correct
75 Correct 1 ms 604 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 604 KB Output is correct
78 Correct 0 ms 604 KB Output is correct
79 Correct 1 ms 604 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 1 ms 604 KB Output is correct
82 Correct 0 ms 604 KB Output is correct
83 Correct 1 ms 604 KB Output is correct
84 Correct 1 ms 604 KB Output is correct
85 Correct 1 ms 604 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 0 ms 604 KB Output is correct
88 Correct 0 ms 604 KB Output is correct
89 Correct 0 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 0 ms 604 KB Output is correct
92 Correct 0 ms 604 KB Output is correct
93 Correct 1 ms 756 KB Output is correct
94 Correct 1 ms 600 KB Output is correct
95 Correct 1 ms 604 KB Output is correct
96 Correct 1 ms 604 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 1 ms 604 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 1 ms 600 KB Output is correct
101 Correct 1 ms 604 KB Output is correct
102 Correct 0 ms 604 KB Output is correct
103 Correct 0 ms 600 KB Output is correct
104 Correct 0 ms 604 KB Output is correct
105 Correct 1 ms 604 KB Output is correct
106 Correct 1 ms 600 KB Output is correct
107 Correct 1 ms 604 KB Output is correct
108 Correct 1 ms 604 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 3 ms 1624 KB Output is correct
111 Correct 4 ms 2260 KB Output is correct
112 Correct 4 ms 2264 KB Output is correct
113 Correct 3 ms 2264 KB Output is correct
114 Correct 12 ms 2776 KB Output is correct
115 Correct 10 ms 2276 KB Output is correct
116 Correct 6 ms 2140 KB Output is correct
117 Correct 3 ms 2140 KB Output is correct
118 Correct 3 ms 2140 KB Output is correct
119 Correct 8 ms 4300 KB Output is correct
120 Correct 8 ms 5332 KB Output is correct
121 Correct 8 ms 5332 KB Output is correct
122 Correct 31 ms 6640 KB Output is correct
123 Correct 25 ms 5580 KB Output is correct
124 Correct 30 ms 14540 KB Output is correct
125 Correct 82 ms 43768 KB Output is correct
126 Correct 90 ms 43956 KB Output is correct
127 Correct 95 ms 43444 KB Output is correct
128 Correct 348 ms 62032 KB Output is correct
129 Correct 331 ms 44580 KB Output is correct
130 Correct 94 ms 49200 KB Output is correct
131 Correct 99 ms 49136 KB Output is correct
132 Correct 13 ms 1624 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 3 ms 1628 KB Output is correct
136 Correct 4 ms 1592 KB Output is correct
137 Correct 4 ms 2260 KB Output is correct
138 Correct 3 ms 2264 KB Output is correct
139 Correct 14 ms 2216 KB Output is correct
140 Correct 15 ms 1688 KB Output is correct
141 Correct 3 ms 2264 KB Output is correct
142 Correct 12 ms 2776 KB Output is correct
143 Correct 10 ms 2276 KB Output is correct
144 Correct 4 ms 2200 KB Output is correct
145 Correct 4 ms 1904 KB Output is correct
146 Correct 6 ms 2416 KB Output is correct
147 Correct 8 ms 2140 KB Output is correct
148 Correct 9 ms 2240 KB Output is correct
149 Correct 9 ms 2140 KB Output is correct
150 Correct 6 ms 2140 KB Output is correct
151 Correct 4 ms 2232 KB Output is correct
152 Correct 4 ms 2140 KB Output is correct
153 Correct 9 ms 1712 KB Output is correct
154 Correct 40 ms 3420 KB Output is correct
155 Correct 8 ms 2412 KB Output is correct
156 Correct 8 ms 4304 KB Output is correct
157 Correct 24 ms 4504 KB Output is correct
158 Correct 9 ms 5332 KB Output is correct
159 Correct 37 ms 4460 KB Output is correct
160 Correct 39 ms 3164 KB Output is correct
161 Correct 8 ms 5332 KB Output is correct
162 Correct 30 ms 6792 KB Output is correct
163 Correct 25 ms 5516 KB Output is correct
164 Correct 8 ms 4872 KB Output is correct
165 Correct 12 ms 3848 KB Output is correct
166 Correct 18 ms 4840 KB Output is correct
167 Correct 24 ms 4900 KB Output is correct
168 Correct 22 ms 4504 KB Output is correct
169 Correct 25 ms 4504 KB Output is correct
170 Correct 23 ms 4760 KB Output is correct
171 Correct 23 ms 4760 KB Output is correct
172 Correct 31 ms 4760 KB Output is correct
173 Correct 4 ms 3420 KB Output is correct
174 Correct 15 ms 5784 KB Output is correct
175 Correct 53 ms 9236 KB Output is correct
176 Correct 65 ms 21168 KB Output is correct
177 Correct 132 ms 30892 KB Output is correct
178 Correct 69 ms 35292 KB Output is correct
179 Correct 173 ms 43260 KB Output is correct
180 Correct 262 ms 42848 KB Output is correct
181 Correct 264 ms 41984 KB Output is correct
182 Correct 296 ms 42628 KB Output is correct
183 Correct 336 ms 40768 KB Output is correct
184 Correct 1186 ms 59144 KB Output is correct
185 Correct 120 ms 43784 KB Output is correct
186 Correct 126 ms 58884 KB Output is correct
187 Correct 102 ms 41108 KB Output is correct
188 Correct 184 ms 87472 KB Output is correct
189 Correct 809 ms 82420 KB Output is correct
190 Correct 380 ms 55316 KB Output is correct
191 Correct 181 ms 86952 KB Output is correct
192 Correct 801 ms 122476 KB Output is correct
193 Correct 661 ms 89240 KB Output is correct
194 Correct 145 ms 87964 KB Output is correct
195 Correct 136 ms 66080 KB Output is correct
196 Correct 500 ms 83160 KB Output is correct
197 Correct 354 ms 82480 KB Output is correct
198 Correct 357 ms 83284 KB Output is correct
199 Correct 574 ms 83464 KB Output is correct
200 Correct 414 ms 81628 KB Output is correct
201 Correct 670 ms 81612 KB Output is correct
202 Correct 1258 ms 55584 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 600 KB Output is correct
2 Correct 1 ms 604 KB Output is correct
3 Correct 1 ms 604 KB Output is correct
4 Correct 1 ms 604 KB Output is correct
5 Correct 0 ms 604 KB Output is correct
6 Correct 1 ms 604 KB Output is correct
7 Correct 1 ms 600 KB Output is correct
8 Correct 1 ms 604 KB Output is correct
9 Correct 1 ms 604 KB Output is correct
10 Correct 1 ms 604 KB Output is correct
11 Correct 0 ms 604 KB Output is correct
12 Correct 1 ms 604 KB Output is correct
13 Correct 1 ms 604 KB Output is correct
14 Correct 1 ms 600 KB Output is correct
15 Correct 0 ms 600 KB Output is correct
16 Correct 1 ms 604 KB Output is correct
17 Correct 1 ms 604 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 13 ms 1752 KB Output is correct
20 Correct 5 ms 1592 KB Output is correct
21 Correct 4 ms 2044 KB Output is correct
22 Correct 12 ms 2136 KB Output is correct
23 Correct 15 ms 1628 KB Output is correct
24 Correct 4 ms 2200 KB Output is correct
25 Correct 4 ms 1904 KB Output is correct
26 Correct 4 ms 2136 KB Output is correct
27 Correct 4 ms 2176 KB Output is correct
28 Correct 10 ms 1628 KB Output is correct
29 Correct 40 ms 3408 KB Output is correct
30 Correct 7 ms 2408 KB Output is correct
31 Correct 10 ms 5332 KB Output is correct
32 Correct 40 ms 4500 KB Output is correct
33 Correct 39 ms 3164 KB Output is correct
34 Correct 8 ms 4872 KB Output is correct
35 Correct 10 ms 3992 KB Output is correct
36 Correct 22 ms 4680 KB Output is correct
37 Correct 36 ms 4504 KB Output is correct
38 Correct 4 ms 3164 KB Output is correct
39 Correct 529 ms 28324 KB Output is correct
40 Correct 14 ms 4756 KB Output is correct
41 Correct 12 ms 6256 KB Output is correct
42 Correct 64 ms 5564 KB Output is correct
43 Correct 30 ms 7580 KB Output is correct
44 Correct 59 ms 19620 KB Output is correct
45 Correct 67 ms 19100 KB Output is correct
46 Correct 91 ms 43960 KB Output is correct
47 Correct 438 ms 40192 KB Output is correct
48 Correct 415 ms 26644 KB Output is correct
49 Correct 69 ms 42568 KB Output is correct
50 Correct 74 ms 31512 KB Output is correct
51 Correct 334 ms 40064 KB Output is correct
52 Correct 265 ms 40636 KB Output is correct
53 Correct 496 ms 26764 KB Output is correct
54 Correct 1 ms 604 KB Output is correct
55 Correct 1 ms 604 KB Output is correct
56 Correct 1 ms 604 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 1 ms 856 KB Output is correct
59 Correct 0 ms 604 KB Output is correct
60 Correct 1 ms 856 KB Output is correct
61 Correct 1 ms 604 KB Output is correct
62 Correct 1 ms 604 KB Output is correct
63 Correct 1 ms 604 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 604 KB Output is correct
66 Correct 1 ms 604 KB Output is correct
67 Correct 1 ms 600 KB Output is correct
68 Correct 0 ms 604 KB Output is correct
69 Correct 0 ms 604 KB Output is correct
70 Correct 1 ms 604 KB Output is correct
71 Correct 0 ms 604 KB Output is correct
72 Correct 1 ms 604 KB Output is correct
73 Correct 1 ms 604 KB Output is correct
74 Correct 1 ms 604 KB Output is correct
75 Correct 1 ms 604 KB Output is correct
76 Correct 1 ms 604 KB Output is correct
77 Correct 1 ms 604 KB Output is correct
78 Correct 0 ms 604 KB Output is correct
79 Correct 1 ms 604 KB Output is correct
80 Correct 1 ms 604 KB Output is correct
81 Correct 1 ms 604 KB Output is correct
82 Correct 0 ms 604 KB Output is correct
83 Correct 1 ms 604 KB Output is correct
84 Correct 1 ms 604 KB Output is correct
85 Correct 1 ms 604 KB Output is correct
86 Correct 1 ms 604 KB Output is correct
87 Correct 0 ms 604 KB Output is correct
88 Correct 0 ms 604 KB Output is correct
89 Correct 0 ms 604 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 0 ms 604 KB Output is correct
92 Correct 0 ms 604 KB Output is correct
93 Correct 1 ms 756 KB Output is correct
94 Correct 1 ms 600 KB Output is correct
95 Correct 1 ms 604 KB Output is correct
96 Correct 1 ms 604 KB Output is correct
97 Correct 1 ms 604 KB Output is correct
98 Correct 1 ms 604 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 1 ms 600 KB Output is correct
101 Correct 1 ms 604 KB Output is correct
102 Correct 0 ms 604 KB Output is correct
103 Correct 0 ms 600 KB Output is correct
104 Correct 0 ms 604 KB Output is correct
105 Correct 1 ms 604 KB Output is correct
106 Correct 1 ms 600 KB Output is correct
107 Correct 1 ms 604 KB Output is correct
108 Correct 1 ms 604 KB Output is correct
109 Correct 1 ms 604 KB Output is correct
110 Correct 3 ms 1624 KB Output is correct
111 Correct 4 ms 2260 KB Output is correct
112 Correct 4 ms 2264 KB Output is correct
113 Correct 3 ms 2264 KB Output is correct
114 Correct 12 ms 2776 KB Output is correct
115 Correct 10 ms 2276 KB Output is correct
116 Correct 6 ms 2140 KB Output is correct
117 Correct 3 ms 2140 KB Output is correct
118 Correct 3 ms 2140 KB Output is correct
119 Correct 8 ms 4300 KB Output is correct
120 Correct 8 ms 5332 KB Output is correct
121 Correct 8 ms 5332 KB Output is correct
122 Correct 31 ms 6640 KB Output is correct
123 Correct 25 ms 5580 KB Output is correct
124 Correct 30 ms 14540 KB Output is correct
125 Correct 82 ms 43768 KB Output is correct
126 Correct 90 ms 43956 KB Output is correct
127 Correct 95 ms 43444 KB Output is correct
128 Correct 348 ms 62032 KB Output is correct
129 Correct 331 ms 44580 KB Output is correct
130 Correct 94 ms 49200 KB Output is correct
131 Correct 99 ms 49136 KB Output is correct
132 Correct 13 ms 1624 KB Output is correct
133 Correct 1 ms 604 KB Output is correct
134 Correct 1 ms 600 KB Output is correct
135 Correct 3 ms 1628 KB Output is correct
136 Correct 4 ms 1592 KB Output is correct
137 Correct 4 ms 2260 KB Output is correct
138 Correct 3 ms 2264 KB Output is correct
139 Correct 14 ms 2216 KB Output is correct
140 Correct 15 ms 1688 KB Output is correct
141 Correct 3 ms 2264 KB Output is correct
142 Correct 12 ms 2776 KB Output is correct
143 Correct 10 ms 2276 KB Output is correct
144 Correct 4 ms 2200 KB Output is correct
145 Correct 4 ms 1904 KB Output is correct
146 Correct 6 ms 2416 KB Output is correct
147 Correct 8 ms 2140 KB Output is correct
148 Correct 9 ms 2240 KB Output is correct
149 Correct 9 ms 2140 KB Output is correct
150 Correct 6 ms 2140 KB Output is correct
151 Correct 4 ms 2232 KB Output is correct
152 Correct 4 ms 2140 KB Output is correct
153 Correct 9 ms 1712 KB Output is correct
154 Correct 40 ms 3420 KB Output is correct
155 Correct 8 ms 2412 KB Output is correct
156 Correct 8 ms 4304 KB Output is correct
157 Correct 24 ms 4504 KB Output is correct
158 Correct 9 ms 5332 KB Output is correct
159 Correct 37 ms 4460 KB Output is correct
160 Correct 39 ms 3164 KB Output is correct
161 Correct 8 ms 5332 KB Output is correct
162 Correct 30 ms 6792 KB Output is correct
163 Correct 25 ms 5516 KB Output is correct
164 Correct 8 ms 4872 KB Output is correct
165 Correct 12 ms 3848 KB Output is correct
166 Correct 18 ms 4840 KB Output is correct
167 Correct 24 ms 4900 KB Output is correct
168 Correct 22 ms 4504 KB Output is correct
169 Correct 25 ms 4504 KB Output is correct
170 Correct 23 ms 4760 KB Output is correct
171 Correct 23 ms 4760 KB Output is correct
172 Correct 31 ms 4760 KB Output is correct
173 Correct 4 ms 3420 KB Output is correct
174 Correct 15 ms 5784 KB Output is correct
175 Correct 53 ms 9236 KB Output is correct
176 Correct 65 ms 21168 KB Output is correct
177 Correct 132 ms 30892 KB Output is correct
178 Correct 69 ms 35292 KB Output is correct
179 Correct 173 ms 43260 KB Output is correct
180 Correct 262 ms 42848 KB Output is correct
181 Correct 264 ms 41984 KB Output is correct
182 Correct 296 ms 42628 KB Output is correct
183 Correct 336 ms 40768 KB Output is correct
184 Correct 1186 ms 59144 KB Output is correct
185 Correct 120 ms 43784 KB Output is correct
186 Correct 126 ms 58884 KB Output is correct
187 Correct 102 ms 41108 KB Output is correct
188 Correct 184 ms 87472 KB Output is correct
189 Correct 809 ms 82420 KB Output is correct
190 Correct 380 ms 55316 KB Output is correct
191 Correct 181 ms 86952 KB Output is correct
192 Correct 801 ms 122476 KB Output is correct
193 Correct 661 ms 89240 KB Output is correct
194 Correct 145 ms 87964 KB Output is correct
195 Correct 136 ms 66080 KB Output is correct
196 Correct 500 ms 83160 KB Output is correct
197 Correct 354 ms 82480 KB Output is correct
198 Correct 357 ms 83284 KB Output is correct
199 Correct 574 ms 83464 KB Output is correct
200 Correct 414 ms 81628 KB Output is correct
201 Correct 670 ms 81612 KB Output is correct
202 Correct 1258 ms 55584 KB Output is correct
203 Execution timed out 2085 ms 119036 KB Time limit exceeded
204 Halted 0 ms 0 KB -