답안 #834085

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
834085 2023-08-22T10:39:04 Z HollaFoil Arcade (NOI20_arcade) C++14
51 / 100
120 ms 4028 KB
#include <bits/stdc++.h>
using namespace std;

#define V 602
int m;

bool bfs(int rGraph[V][V], int s, int t, int parent[]) {
    bool visited[V];
    memset(visited, 0, sizeof(visited));
 
    queue<int> q;
    q.push(s);
    visited[s] = true;
    parent[s] = -1;
 
    while (!q.empty()) {
        int u = q.front();
        q.pop();
 
        for (int v = 0; v < 2*m+2; v++) {
            if (visited[v] == false && rGraph[u][v] > 0) {
                if (v == t) {
                    parent[v] = u;
                    return true;
                }
                q.push(v);
                parent[v] = u;
                visited[v] = true;
            }
        }
    }
 
    return false;
}

int fordFulkerson(int graph[V][V], int s, int t) {
    int u, v;
    int rGraph[V][V];
    for (u = 0; u < 2*m+2; u++)
        for (v = 0; v < 2*m+2; v++)
            rGraph[u][v] = graph[u][v];
 
    int parent[V];
 
    int max_flow = 0; 
    while (bfs(rGraph, s, t, parent)) {
        int path_flow = INT_MAX;
        for (v = t; v != s; v = parent[v]) {
            u = parent[v];
            path_flow = min(path_flow, rGraph[u][v]);
        }
        for (v = t; v != s; v = parent[v]) {
            u = parent[v];
            rGraph[u][v] -= path_flow;
            rGraph[v][u] += path_flow;
        }
        max_flow += path_flow;
    }
     return max_flow;
}

int main() {
    int n;
    cin >> n >> m;
    vector<int> timesold(m+1);
    vector<int> locationsold(m+1);
    for (int i = 0; i < m; i++) cin >> timesold[i+1];
    for (int i = 0; i < m; i++) cin >> locationsold[i+1];
    vector<int> times;
    vector<int> locations;
    times.push_back(0);
    locations.push_back(0);
    for (int i = 1; i < m+1; i++) {
        bool valid = true;
        for (int j = i+1; j < m+1; j++) {
            if (timesold[i] != timesold[j] || locationsold[i] != locationsold[j]) continue;
            valid = false;
            break;
        }
        if (valid) times.push_back(timesold[i]);
        if (valid) locations.push_back(locationsold[i]);
    }
    m = times.size()-1;


    int graph[V][V];
    for (int i = 0; i < 2*m+2; i++) {
        for (int j = 0; j < 2*m+2; j++) {
            graph[i][j] = 0;
        }
    }
    for (int i = 1; i < m+1; i++) {
        graph[0][i] = 1;
        graph[i+m][2*m+1] = 1;
    }
    for (int i = 1; i < m+1; i++) {
        for (int j = 1; j < m+1; j++) {
            if (i == j) continue;
            else if (times[i] > times[j]) continue;
            else if (times[j]-times[i] < abs(locations[i]-locations[j])) continue;
            else graph[i][j+m] = 1;
        }
    }
    cout << m - fordFulkerson(graph, 0, 2*m+1) << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
61 Correct 3 ms 3028 KB Output is correct
62 Correct 2 ms 3028 KB Output is correct
63 Correct 3 ms 3028 KB Output is correct
64 Correct 2 ms 3028 KB Output is correct
65 Correct 5 ms 3028 KB Output is correct
66 Correct 2 ms 3028 KB Output is correct
67 Correct 2 ms 3028 KB Output is correct
68 Correct 5 ms 3028 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 1 ms 3028 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 3 ms 3028 KB Output is correct
73 Correct 3 ms 3028 KB Output is correct
74 Correct 1 ms 3028 KB Output is correct
75 Correct 4 ms 3028 KB Output is correct
76 Correct 7 ms 3088 KB Output is correct
77 Correct 3 ms 3028 KB Output is correct
78 Correct 3 ms 3028 KB Output is correct
79 Correct 1 ms 3028 KB Output is correct
80 Correct 6 ms 3028 KB Output is correct
81 Correct 1 ms 3028 KB Output is correct
82 Correct 2 ms 3028 KB Output is correct
83 Correct 1 ms 3028 KB Output is correct
84 Correct 1 ms 3028 KB Output is correct
85 Correct 2 ms 3028 KB Output is correct
86 Correct 3 ms 3028 KB Output is correct
87 Correct 3 ms 3028 KB Output is correct
88 Correct 2 ms 3028 KB Output is correct
89 Correct 2 ms 3028 KB Output is correct
90 Correct 2 ms 3028 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
61 Correct 3 ms 3028 KB Output is correct
62 Correct 2 ms 3028 KB Output is correct
63 Correct 3 ms 3028 KB Output is correct
64 Correct 2 ms 3028 KB Output is correct
65 Correct 5 ms 3028 KB Output is correct
66 Correct 2 ms 3028 KB Output is correct
67 Correct 2 ms 3028 KB Output is correct
68 Correct 5 ms 3028 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 1 ms 3028 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 3 ms 3028 KB Output is correct
73 Correct 3 ms 3028 KB Output is correct
74 Correct 1 ms 3028 KB Output is correct
75 Correct 4 ms 3028 KB Output is correct
76 Correct 7 ms 3088 KB Output is correct
77 Correct 3 ms 3028 KB Output is correct
78 Correct 3 ms 3028 KB Output is correct
79 Correct 1 ms 3028 KB Output is correct
80 Correct 6 ms 3028 KB Output is correct
81 Correct 1 ms 3028 KB Output is correct
82 Correct 2 ms 3028 KB Output is correct
83 Correct 1 ms 3028 KB Output is correct
84 Correct 1 ms 3028 KB Output is correct
85 Correct 2 ms 3028 KB Output is correct
86 Correct 3 ms 3028 KB Output is correct
87 Correct 3 ms 3028 KB Output is correct
88 Correct 2 ms 3028 KB Output is correct
89 Correct 2 ms 3028 KB Output is correct
90 Correct 2 ms 3028 KB Output is correct
91 Correct 106 ms 3028 KB Output is correct
92 Correct 86 ms 3136 KB Output is correct
93 Correct 118 ms 3128 KB Output is correct
94 Correct 100 ms 3028 KB Output is correct
95 Correct 112 ms 3136 KB Output is correct
96 Correct 86 ms 3128 KB Output is correct
97 Correct 105 ms 3128 KB Output is correct
98 Correct 21 ms 3028 KB Output is correct
99 Correct 13 ms 3136 KB Output is correct
100 Correct 10 ms 3140 KB Output is correct
101 Correct 19 ms 3028 KB Output is correct
102 Correct 108 ms 3136 KB Output is correct
103 Correct 2 ms 3028 KB Output is correct
104 Correct 70 ms 3124 KB Output is correct
105 Correct 62 ms 3028 KB Output is correct
106 Correct 3 ms 3156 KB Output is correct
107 Correct 3 ms 3156 KB Output is correct
108 Correct 2 ms 3028 KB Output is correct
109 Correct 3 ms 3156 KB Output is correct
110 Correct 3 ms 3156 KB Output is correct
111 Correct 3 ms 3156 KB Output is correct
112 Correct 3 ms 3156 KB Output is correct
113 Correct 98 ms 3132 KB Output is correct
114 Correct 3 ms 3120 KB Output is correct
115 Correct 115 ms 3136 KB Output is correct
116 Correct 113 ms 3136 KB Output is correct
117 Correct 94 ms 3132 KB Output is correct
118 Correct 101 ms 3128 KB Output is correct
119 Correct 120 ms 3132 KB Output is correct
120 Correct 113 ms 3132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
61 Correct 3 ms 3028 KB Output is correct
62 Correct 2 ms 3028 KB Output is correct
63 Correct 3 ms 3028 KB Output is correct
64 Correct 2 ms 3028 KB Output is correct
65 Correct 5 ms 3028 KB Output is correct
66 Correct 2 ms 3028 KB Output is correct
67 Correct 2 ms 3028 KB Output is correct
68 Correct 5 ms 3028 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 1 ms 3028 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 3 ms 3028 KB Output is correct
73 Correct 3 ms 3028 KB Output is correct
74 Correct 1 ms 3028 KB Output is correct
75 Correct 4 ms 3028 KB Output is correct
76 Correct 7 ms 3088 KB Output is correct
77 Correct 3 ms 3028 KB Output is correct
78 Correct 3 ms 3028 KB Output is correct
79 Correct 1 ms 3028 KB Output is correct
80 Correct 6 ms 3028 KB Output is correct
81 Correct 1 ms 3028 KB Output is correct
82 Correct 2 ms 3028 KB Output is correct
83 Correct 1 ms 3028 KB Output is correct
84 Correct 1 ms 3028 KB Output is correct
85 Correct 2 ms 3028 KB Output is correct
86 Correct 3 ms 3028 KB Output is correct
87 Correct 3 ms 3028 KB Output is correct
88 Correct 2 ms 3028 KB Output is correct
89 Correct 2 ms 3028 KB Output is correct
90 Correct 2 ms 3028 KB Output is correct
91 Correct 106 ms 3028 KB Output is correct
92 Correct 86 ms 3136 KB Output is correct
93 Correct 118 ms 3128 KB Output is correct
94 Correct 100 ms 3028 KB Output is correct
95 Correct 112 ms 3136 KB Output is correct
96 Correct 86 ms 3128 KB Output is correct
97 Correct 105 ms 3128 KB Output is correct
98 Correct 21 ms 3028 KB Output is correct
99 Correct 13 ms 3136 KB Output is correct
100 Correct 10 ms 3140 KB Output is correct
101 Correct 19 ms 3028 KB Output is correct
102 Correct 108 ms 3136 KB Output is correct
103 Correct 2 ms 3028 KB Output is correct
104 Correct 70 ms 3124 KB Output is correct
105 Correct 62 ms 3028 KB Output is correct
106 Correct 3 ms 3156 KB Output is correct
107 Correct 3 ms 3156 KB Output is correct
108 Correct 2 ms 3028 KB Output is correct
109 Correct 3 ms 3156 KB Output is correct
110 Correct 3 ms 3156 KB Output is correct
111 Correct 3 ms 3156 KB Output is correct
112 Correct 3 ms 3156 KB Output is correct
113 Correct 98 ms 3132 KB Output is correct
114 Correct 3 ms 3120 KB Output is correct
115 Correct 115 ms 3136 KB Output is correct
116 Correct 113 ms 3136 KB Output is correct
117 Correct 94 ms 3132 KB Output is correct
118 Correct 101 ms 3128 KB Output is correct
119 Correct 120 ms 3132 KB Output is correct
120 Correct 113 ms 3132 KB Output is correct
121 Runtime error 57 ms 4028 KB Execution killed with signal 11
122 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
61 Correct 3 ms 3028 KB Output is correct
62 Correct 2 ms 3028 KB Output is correct
63 Correct 3 ms 3028 KB Output is correct
64 Correct 2 ms 3028 KB Output is correct
65 Correct 5 ms 3028 KB Output is correct
66 Correct 2 ms 3028 KB Output is correct
67 Correct 2 ms 3028 KB Output is correct
68 Correct 5 ms 3028 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 1 ms 3028 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 3 ms 3028 KB Output is correct
73 Correct 3 ms 3028 KB Output is correct
74 Correct 1 ms 3028 KB Output is correct
75 Correct 4 ms 3028 KB Output is correct
76 Correct 7 ms 3088 KB Output is correct
77 Correct 3 ms 3028 KB Output is correct
78 Correct 3 ms 3028 KB Output is correct
79 Correct 1 ms 3028 KB Output is correct
80 Correct 6 ms 3028 KB Output is correct
81 Correct 1 ms 3028 KB Output is correct
82 Correct 2 ms 3028 KB Output is correct
83 Correct 1 ms 3028 KB Output is correct
84 Correct 1 ms 3028 KB Output is correct
85 Correct 2 ms 3028 KB Output is correct
86 Correct 3 ms 3028 KB Output is correct
87 Correct 3 ms 3028 KB Output is correct
88 Correct 2 ms 3028 KB Output is correct
89 Correct 2 ms 3028 KB Output is correct
90 Correct 2 ms 3028 KB Output is correct
91 Correct 106 ms 3028 KB Output is correct
92 Correct 86 ms 3136 KB Output is correct
93 Correct 118 ms 3128 KB Output is correct
94 Correct 100 ms 3028 KB Output is correct
95 Correct 112 ms 3136 KB Output is correct
96 Correct 86 ms 3128 KB Output is correct
97 Correct 105 ms 3128 KB Output is correct
98 Correct 21 ms 3028 KB Output is correct
99 Correct 13 ms 3136 KB Output is correct
100 Correct 10 ms 3140 KB Output is correct
101 Correct 19 ms 3028 KB Output is correct
102 Correct 108 ms 3136 KB Output is correct
103 Correct 2 ms 3028 KB Output is correct
104 Correct 70 ms 3124 KB Output is correct
105 Correct 62 ms 3028 KB Output is correct
106 Correct 3 ms 3156 KB Output is correct
107 Correct 3 ms 3156 KB Output is correct
108 Correct 2 ms 3028 KB Output is correct
109 Correct 3 ms 3156 KB Output is correct
110 Correct 3 ms 3156 KB Output is correct
111 Correct 3 ms 3156 KB Output is correct
112 Correct 3 ms 3156 KB Output is correct
113 Correct 98 ms 3132 KB Output is correct
114 Correct 3 ms 3120 KB Output is correct
115 Correct 115 ms 3136 KB Output is correct
116 Correct 113 ms 3136 KB Output is correct
117 Correct 94 ms 3132 KB Output is correct
118 Correct 101 ms 3128 KB Output is correct
119 Correct 120 ms 3132 KB Output is correct
120 Correct 113 ms 3132 KB Output is correct
121 Runtime error 57 ms 4028 KB Execution killed with signal 11
122 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3028 KB Output is correct
2 Correct 3 ms 3028 KB Output is correct
3 Correct 2 ms 3028 KB Output is correct
4 Correct 4 ms 3028 KB Output is correct
5 Correct 5 ms 3136 KB Output is correct
6 Correct 3 ms 3028 KB Output is correct
7 Correct 2 ms 3028 KB Output is correct
8 Correct 6 ms 3108 KB Output is correct
9 Correct 3 ms 3028 KB Output is correct
10 Correct 2 ms 3028 KB Output is correct
11 Correct 1 ms 3028 KB Output is correct
12 Correct 2 ms 3028 KB Output is correct
13 Correct 6 ms 3028 KB Output is correct
14 Correct 4 ms 3028 KB Output is correct
15 Correct 2 ms 3028 KB Output is correct
16 Correct 2 ms 3028 KB Output is correct
17 Correct 1 ms 3028 KB Output is correct
18 Correct 3 ms 3028 KB Output is correct
19 Correct 2 ms 3028 KB Output is correct
20 Correct 2 ms 3028 KB Output is correct
21 Correct 2 ms 3028 KB Output is correct
22 Correct 4 ms 3132 KB Output is correct
23 Correct 2 ms 3028 KB Output is correct
24 Correct 5 ms 3140 KB Output is correct
25 Correct 5 ms 3028 KB Output is correct
26 Correct 1 ms 3028 KB Output is correct
27 Correct 5 ms 3136 KB Output is correct
28 Correct 2 ms 3028 KB Output is correct
29 Correct 1 ms 3028 KB Output is correct
30 Correct 1 ms 3028 KB Output is correct
31 Correct 2 ms 3028 KB Output is correct
32 Correct 3 ms 3028 KB Output is correct
33 Correct 2 ms 3028 KB Output is correct
34 Correct 2 ms 3028 KB Output is correct
35 Correct 2 ms 3028 KB Output is correct
36 Correct 4 ms 3028 KB Output is correct
37 Correct 6 ms 3028 KB Output is correct
38 Correct 4 ms 3156 KB Output is correct
39 Correct 2 ms 3028 KB Output is correct
40 Correct 2 ms 3028 KB Output is correct
41 Correct 2 ms 3028 KB Output is correct
42 Correct 5 ms 3028 KB Output is correct
43 Correct 5 ms 3028 KB Output is correct
44 Correct 2 ms 3028 KB Output is correct
45 Correct 4 ms 3028 KB Output is correct
46 Correct 5 ms 3028 KB Output is correct
47 Correct 4 ms 3028 KB Output is correct
48 Correct 3 ms 3028 KB Output is correct
49 Correct 1 ms 3028 KB Output is correct
50 Correct 2 ms 3028 KB Output is correct
51 Correct 1 ms 3028 KB Output is correct
52 Correct 1 ms 3028 KB Output is correct
53 Correct 3 ms 3028 KB Output is correct
54 Correct 2 ms 3028 KB Output is correct
55 Correct 5 ms 3028 KB Output is correct
56 Correct 3 ms 3028 KB Output is correct
57 Correct 2 ms 3028 KB Output is correct
58 Correct 3 ms 3028 KB Output is correct
59 Correct 2 ms 3028 KB Output is correct
60 Correct 3 ms 3028 KB Output is correct
61 Correct 3 ms 3028 KB Output is correct
62 Correct 2 ms 3028 KB Output is correct
63 Correct 3 ms 3028 KB Output is correct
64 Correct 2 ms 3028 KB Output is correct
65 Correct 5 ms 3028 KB Output is correct
66 Correct 2 ms 3028 KB Output is correct
67 Correct 2 ms 3028 KB Output is correct
68 Correct 5 ms 3028 KB Output is correct
69 Correct 2 ms 3028 KB Output is correct
70 Correct 1 ms 3028 KB Output is correct
71 Correct 2 ms 3028 KB Output is correct
72 Correct 3 ms 3028 KB Output is correct
73 Correct 3 ms 3028 KB Output is correct
74 Correct 1 ms 3028 KB Output is correct
75 Correct 4 ms 3028 KB Output is correct
76 Correct 7 ms 3088 KB Output is correct
77 Correct 3 ms 3028 KB Output is correct
78 Correct 3 ms 3028 KB Output is correct
79 Correct 1 ms 3028 KB Output is correct
80 Correct 6 ms 3028 KB Output is correct
81 Correct 1 ms 3028 KB Output is correct
82 Correct 2 ms 3028 KB Output is correct
83 Correct 1 ms 3028 KB Output is correct
84 Correct 1 ms 3028 KB Output is correct
85 Correct 2 ms 3028 KB Output is correct
86 Correct 3 ms 3028 KB Output is correct
87 Correct 3 ms 3028 KB Output is correct
88 Correct 2 ms 3028 KB Output is correct
89 Correct 2 ms 3028 KB Output is correct
90 Correct 2 ms 3028 KB Output is correct
91 Correct 106 ms 3028 KB Output is correct
92 Correct 86 ms 3136 KB Output is correct
93 Correct 118 ms 3128 KB Output is correct
94 Correct 100 ms 3028 KB Output is correct
95 Correct 112 ms 3136 KB Output is correct
96 Correct 86 ms 3128 KB Output is correct
97 Correct 105 ms 3128 KB Output is correct
98 Correct 21 ms 3028 KB Output is correct
99 Correct 13 ms 3136 KB Output is correct
100 Correct 10 ms 3140 KB Output is correct
101 Correct 19 ms 3028 KB Output is correct
102 Correct 108 ms 3136 KB Output is correct
103 Correct 2 ms 3028 KB Output is correct
104 Correct 70 ms 3124 KB Output is correct
105 Correct 62 ms 3028 KB Output is correct
106 Correct 3 ms 3156 KB Output is correct
107 Correct 3 ms 3156 KB Output is correct
108 Correct 2 ms 3028 KB Output is correct
109 Correct 3 ms 3156 KB Output is correct
110 Correct 3 ms 3156 KB Output is correct
111 Correct 3 ms 3156 KB Output is correct
112 Correct 3 ms 3156 KB Output is correct
113 Correct 98 ms 3132 KB Output is correct
114 Correct 3 ms 3120 KB Output is correct
115 Correct 115 ms 3136 KB Output is correct
116 Correct 113 ms 3136 KB Output is correct
117 Correct 94 ms 3132 KB Output is correct
118 Correct 101 ms 3128 KB Output is correct
119 Correct 120 ms 3132 KB Output is correct
120 Correct 113 ms 3132 KB Output is correct
121 Runtime error 57 ms 4028 KB Execution killed with signal 11
122 Halted 0 ms 0 KB -