답안 #745689

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
745689 2023-05-21T02:16:22 Z 반딧불(#9962) Double Attendance (CCO22_day1problem3) C++17
25 / 25
538 ms 40388 KB
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

int n[2], k;
pair<ll, ll> arr[2][300002];
vector<ll> pl[2], pr[2];
ll DP[2][600002];
int ans;

inline int idx(int d, ll t){
    return upper_bound(pl[d].begin(), pl[d].end(), t) - pl[d].begin();
}

inline bool inside(int d, ll t){
    int x = idx(d, t);
    return x && arr[d][x].first <= t && t <= arr[d][x].second;
}

inline int sum(int d, ll L, ll R){
//    printf("%d %lld %lld: %d %d\n", d, L, R, lower_bound(pl[d].begin(), pl[d].end(), R) - pl[d].begin(),
//           lower_bound(pr[d].begin(), pr[d].end(), L) - pr[d].begin());
    return (upper_bound(pl[d].begin(), pl[d].end(), R) - pl[d].begin())
         - (lower_bound(pr[d].begin(), pr[d].end(), L) - pr[d].begin());
}

int main(){
    scanf("%d %d %d", &n[0], &n[1], &k); k*=2;
    for(int d=0; d<=1; d++){
        for(int i=1; i<=n[d]; i++){
            scanf("%lld %lld", &arr[d][i].first, &arr[d][i].second);
            arr[d][i].first = arr[d][i].first * 2 + 1;
            arr[d][i].second = arr[d][i].second * 2 - 1;
            pl[d].push_back(arr[d][i].first);
            pr[d].push_back(arr[d][i].second);
        }
        sort(arr[d]+1, arr[d]+n[d]+1);
        sort(pl[d].begin(), pl[d].end());
        sort(pr[d].begin(), pr[d].end());
    }
    arr[0][n[0]+1] = arr[1][n[1]+1] = make_pair(ll(2e18), ll(2e18));
    for(int i=0; i<=1; i++) for(int j=0; j<=600000; j++) DP[i][j] = 1e18;
    DP[0][0] = 0;
    for(int i=0; i<=n[0]+n[1]; i++){
        /// ���ķ� ������
        for(int s=0; s<2; s++){
            int e = !s;
            ll L = DP[s][i] + k;
            ll R = L;
            if(inside(s, DP[s][i])) R = max(R, arr[s][idx(s, DP[s][i])].second-k+1);
            ll S = sum(e,L,R);
            DP[e][i+S] = min(DP[e][i+S], R);
        }
        for(int s=0; s<2; s++){
            DP[s][i+1] = min(DP[s][i+1], arr[s][idx(s, DP[s][i])+1].first);
        }
//        printf("%d: %lld %lld\n", i, DP[0][i], DP[1][i]);
    }
    for(int i=0; i<=n[0]+n[1]; i++) if(DP[0][i] < 1e17 || DP[1][i] < 1e17) ans = i;
    printf("%d", ans);
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   30 |     scanf("%d %d %d", &n[0], &n[1], &k); k*=2;
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:33:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   33 |             scanf("%lld %lld", &arr[d][i].first, &arr[d][i].second);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 5 ms 9684 KB Output is correct
4 Correct 5 ms 9684 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 7 ms 9684 KB Output is correct
7 Correct 7 ms 9660 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 5 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 5 ms 9700 KB Output is correct
12 Correct 6 ms 9684 KB Output is correct
13 Correct 6 ms 9716 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9656 KB Output is correct
16 Correct 5 ms 9684 KB Output is correct
17 Correct 6 ms 9664 KB Output is correct
18 Correct 5 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9640 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 5 ms 9684 KB Output is correct
24 Correct 5 ms 9664 KB Output is correct
25 Correct 5 ms 9664 KB Output is correct
26 Correct 6 ms 9664 KB Output is correct
27 Correct 6 ms 9684 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 5 ms 9684 KB Output is correct
30 Correct 4 ms 9684 KB Output is correct
31 Correct 5 ms 9684 KB Output is correct
32 Correct 5 ms 9604 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 5 ms 9664 KB Output is correct
38 Correct 5 ms 9668 KB Output is correct
39 Correct 7 ms 9660 KB Output is correct
40 Correct 4 ms 9684 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 5 ms 9684 KB Output is correct
44 Correct 5 ms 9684 KB Output is correct
45 Correct 6 ms 9660 KB Output is correct
46 Correct 5 ms 9684 KB Output is correct
47 Correct 5 ms 9684 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 6 ms 9684 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 5 ms 9684 KB Output is correct
4 Correct 5 ms 9684 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 7 ms 9684 KB Output is correct
7 Correct 7 ms 9660 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 5 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 5 ms 9700 KB Output is correct
12 Correct 6 ms 9684 KB Output is correct
13 Correct 6 ms 9716 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9656 KB Output is correct
16 Correct 5 ms 9684 KB Output is correct
17 Correct 6 ms 9664 KB Output is correct
18 Correct 5 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9640 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 5 ms 9684 KB Output is correct
24 Correct 5 ms 9664 KB Output is correct
25 Correct 5 ms 9664 KB Output is correct
26 Correct 6 ms 9664 KB Output is correct
27 Correct 6 ms 9684 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 5 ms 9684 KB Output is correct
30 Correct 4 ms 9684 KB Output is correct
31 Correct 5 ms 9684 KB Output is correct
32 Correct 5 ms 9604 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 5 ms 9664 KB Output is correct
38 Correct 5 ms 9668 KB Output is correct
39 Correct 7 ms 9660 KB Output is correct
40 Correct 4 ms 9684 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 5 ms 9684 KB Output is correct
44 Correct 5 ms 9684 KB Output is correct
45 Correct 6 ms 9660 KB Output is correct
46 Correct 5 ms 9684 KB Output is correct
47 Correct 5 ms 9684 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 6 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 4 ms 9684 KB Output is correct
54 Correct 5 ms 9664 KB Output is correct
55 Correct 4 ms 9684 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9816 KB Output is correct
58 Correct 6 ms 9684 KB Output is correct
59 Correct 6 ms 9684 KB Output is correct
60 Correct 5 ms 9684 KB Output is correct
61 Correct 5 ms 9684 KB Output is correct
62 Correct 5 ms 9684 KB Output is correct
63 Correct 5 ms 9684 KB Output is correct
64 Correct 6 ms 9808 KB Output is correct
65 Correct 6 ms 9808 KB Output is correct
66 Correct 7 ms 9784 KB Output is correct
67 Correct 6 ms 9808 KB Output is correct
68 Correct 6 ms 9800 KB Output is correct
69 Correct 7 ms 9800 KB Output is correct
70 Correct 6 ms 9812 KB Output is correct
71 Correct 6 ms 9760 KB Output is correct
72 Correct 5 ms 9684 KB Output is correct
73 Correct 4 ms 9684 KB Output is correct
74 Correct 5 ms 9684 KB Output is correct
75 Correct 5 ms 9664 KB Output is correct
76 Correct 5 ms 9684 KB Output is correct
77 Correct 6 ms 9804 KB Output is correct
78 Correct 7 ms 9804 KB Output is correct
79 Correct 9 ms 9856 KB Output is correct
80 Correct 7 ms 9812 KB Output is correct
81 Correct 6 ms 9812 KB Output is correct
82 Correct 5 ms 9684 KB Output is correct
83 Correct 6 ms 9812 KB Output is correct
84 Correct 7 ms 9808 KB Output is correct
85 Correct 7 ms 9800 KB Output is correct
86 Correct 6 ms 9684 KB Output is correct
87 Correct 5 ms 9668 KB Output is correct
88 Correct 5 ms 9664 KB Output is correct
89 Correct 4 ms 9684 KB Output is correct
90 Correct 5 ms 9684 KB Output is correct
91 Correct 5 ms 9684 KB Output is correct
92 Correct 5 ms 9684 KB Output is correct
93 Correct 5 ms 9684 KB Output is correct
94 Correct 5 ms 9684 KB Output is correct
95 Correct 5 ms 9684 KB Output is correct
96 Correct 5 ms 9684 KB Output is correct
97 Correct 6 ms 9664 KB Output is correct
98 Correct 5 ms 9684 KB Output is correct
99 Correct 5 ms 9684 KB Output is correct
100 Correct 5 ms 9684 KB Output is correct
101 Correct 5 ms 9684 KB Output is correct
102 Correct 5 ms 9684 KB Output is correct
103 Correct 5 ms 9684 KB Output is correct
104 Correct 5 ms 9684 KB Output is correct
105 Correct 5 ms 9684 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9796 KB Output is correct
3 Correct 8 ms 9940 KB Output is correct
4 Correct 8 ms 9812 KB Output is correct
5 Correct 7 ms 9824 KB Output is correct
6 Correct 7 ms 9800 KB Output is correct
7 Correct 8 ms 9928 KB Output is correct
8 Correct 7 ms 9812 KB Output is correct
9 Correct 7 ms 9812 KB Output is correct
10 Correct 7 ms 9808 KB Output is correct
11 Correct 6 ms 9684 KB Output is correct
12 Correct 7 ms 9812 KB Output is correct
13 Correct 6 ms 9704 KB Output is correct
14 Correct 8 ms 9852 KB Output is correct
15 Correct 8 ms 9812 KB Output is correct
16 Correct 8 ms 9812 KB Output is correct
17 Correct 7 ms 9856 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 7 ms 9812 KB Output is correct
20 Correct 8 ms 9936 KB Output is correct
21 Correct 8 ms 9812 KB Output is correct
22 Correct 8 ms 9812 KB Output is correct
23 Correct 10 ms 9804 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9812 KB Output is correct
26 Correct 7 ms 9880 KB Output is correct
27 Correct 6 ms 9812 KB Output is correct
28 Correct 8 ms 9812 KB Output is correct
29 Correct 6 ms 9804 KB Output is correct
30 Correct 6 ms 9812 KB Output is correct
31 Correct 8 ms 9836 KB Output is correct
32 Correct 9 ms 9884 KB Output is correct
33 Correct 5 ms 9664 KB Output is correct
34 Correct 5 ms 9656 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9664 KB Output is correct
37 Correct 5 ms 9684 KB Output is correct
38 Correct 5 ms 9656 KB Output is correct
39 Correct 5 ms 9684 KB Output is correct
40 Correct 5 ms 9684 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 8 ms 9928 KB Output is correct
43 Correct 8 ms 9812 KB Output is correct
44 Correct 10 ms 9928 KB Output is correct
45 Correct 8 ms 9852 KB Output is correct
46 Correct 8 ms 9896 KB Output is correct
47 Correct 6 ms 9684 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 6 ms 9812 KB Output is correct
50 Correct 6 ms 9684 KB Output is correct
51 Correct 6 ms 9804 KB Output is correct
52 Correct 6 ms 9800 KB Output is correct
53 Correct 6 ms 9800 KB Output is correct
54 Correct 7 ms 9812 KB Output is correct
55 Correct 6 ms 9812 KB Output is correct
56 Correct 7 ms 9812 KB Output is correct
57 Correct 6 ms 9812 KB Output is correct
58 Correct 6 ms 9804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9684 KB Output is correct
2 Correct 6 ms 9684 KB Output is correct
3 Correct 5 ms 9684 KB Output is correct
4 Correct 5 ms 9684 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 7 ms 9684 KB Output is correct
7 Correct 7 ms 9660 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 5 ms 9684 KB Output is correct
10 Correct 5 ms 9684 KB Output is correct
11 Correct 5 ms 9700 KB Output is correct
12 Correct 6 ms 9684 KB Output is correct
13 Correct 6 ms 9716 KB Output is correct
14 Correct 5 ms 9684 KB Output is correct
15 Correct 5 ms 9656 KB Output is correct
16 Correct 5 ms 9684 KB Output is correct
17 Correct 6 ms 9664 KB Output is correct
18 Correct 5 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9640 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 5 ms 9684 KB Output is correct
24 Correct 5 ms 9664 KB Output is correct
25 Correct 5 ms 9664 KB Output is correct
26 Correct 6 ms 9664 KB Output is correct
27 Correct 6 ms 9684 KB Output is correct
28 Correct 5 ms 9684 KB Output is correct
29 Correct 5 ms 9684 KB Output is correct
30 Correct 4 ms 9684 KB Output is correct
31 Correct 5 ms 9684 KB Output is correct
32 Correct 5 ms 9604 KB Output is correct
33 Correct 5 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 5 ms 9684 KB Output is correct
37 Correct 5 ms 9664 KB Output is correct
38 Correct 5 ms 9668 KB Output is correct
39 Correct 7 ms 9660 KB Output is correct
40 Correct 4 ms 9684 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 5 ms 9684 KB Output is correct
44 Correct 5 ms 9684 KB Output is correct
45 Correct 6 ms 9660 KB Output is correct
46 Correct 5 ms 9684 KB Output is correct
47 Correct 5 ms 9684 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 6 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 4 ms 9684 KB Output is correct
54 Correct 5 ms 9664 KB Output is correct
55 Correct 4 ms 9684 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9816 KB Output is correct
58 Correct 6 ms 9684 KB Output is correct
59 Correct 6 ms 9684 KB Output is correct
60 Correct 5 ms 9684 KB Output is correct
61 Correct 5 ms 9684 KB Output is correct
62 Correct 5 ms 9684 KB Output is correct
63 Correct 5 ms 9684 KB Output is correct
64 Correct 6 ms 9808 KB Output is correct
65 Correct 6 ms 9808 KB Output is correct
66 Correct 7 ms 9784 KB Output is correct
67 Correct 6 ms 9808 KB Output is correct
68 Correct 6 ms 9800 KB Output is correct
69 Correct 7 ms 9800 KB Output is correct
70 Correct 6 ms 9812 KB Output is correct
71 Correct 6 ms 9760 KB Output is correct
72 Correct 5 ms 9684 KB Output is correct
73 Correct 4 ms 9684 KB Output is correct
74 Correct 5 ms 9684 KB Output is correct
75 Correct 5 ms 9664 KB Output is correct
76 Correct 5 ms 9684 KB Output is correct
77 Correct 6 ms 9804 KB Output is correct
78 Correct 7 ms 9804 KB Output is correct
79 Correct 9 ms 9856 KB Output is correct
80 Correct 7 ms 9812 KB Output is correct
81 Correct 6 ms 9812 KB Output is correct
82 Correct 5 ms 9684 KB Output is correct
83 Correct 6 ms 9812 KB Output is correct
84 Correct 7 ms 9808 KB Output is correct
85 Correct 7 ms 9800 KB Output is correct
86 Correct 6 ms 9684 KB Output is correct
87 Correct 5 ms 9668 KB Output is correct
88 Correct 5 ms 9664 KB Output is correct
89 Correct 4 ms 9684 KB Output is correct
90 Correct 5 ms 9684 KB Output is correct
91 Correct 5 ms 9684 KB Output is correct
92 Correct 5 ms 9684 KB Output is correct
93 Correct 5 ms 9684 KB Output is correct
94 Correct 5 ms 9684 KB Output is correct
95 Correct 5 ms 9684 KB Output is correct
96 Correct 5 ms 9684 KB Output is correct
97 Correct 6 ms 9664 KB Output is correct
98 Correct 5 ms 9684 KB Output is correct
99 Correct 5 ms 9684 KB Output is correct
100 Correct 5 ms 9684 KB Output is correct
101 Correct 5 ms 9684 KB Output is correct
102 Correct 5 ms 9684 KB Output is correct
103 Correct 5 ms 9684 KB Output is correct
104 Correct 5 ms 9684 KB Output is correct
105 Correct 5 ms 9684 KB Output is correct
106 Correct 5 ms 9684 KB Output is correct
107 Correct 6 ms 9796 KB Output is correct
108 Correct 8 ms 9940 KB Output is correct
109 Correct 8 ms 9812 KB Output is correct
110 Correct 7 ms 9824 KB Output is correct
111 Correct 7 ms 9800 KB Output is correct
112 Correct 8 ms 9928 KB Output is correct
113 Correct 7 ms 9812 KB Output is correct
114 Correct 7 ms 9812 KB Output is correct
115 Correct 7 ms 9808 KB Output is correct
116 Correct 6 ms 9684 KB Output is correct
117 Correct 7 ms 9812 KB Output is correct
118 Correct 6 ms 9704 KB Output is correct
119 Correct 8 ms 9852 KB Output is correct
120 Correct 8 ms 9812 KB Output is correct
121 Correct 8 ms 9812 KB Output is correct
122 Correct 7 ms 9856 KB Output is correct
123 Correct 6 ms 9684 KB Output is correct
124 Correct 7 ms 9812 KB Output is correct
125 Correct 8 ms 9936 KB Output is correct
126 Correct 8 ms 9812 KB Output is correct
127 Correct 8 ms 9812 KB Output is correct
128 Correct 10 ms 9804 KB Output is correct
129 Correct 6 ms 9684 KB Output is correct
130 Correct 6 ms 9812 KB Output is correct
131 Correct 7 ms 9880 KB Output is correct
132 Correct 6 ms 9812 KB Output is correct
133 Correct 8 ms 9812 KB Output is correct
134 Correct 6 ms 9804 KB Output is correct
135 Correct 6 ms 9812 KB Output is correct
136 Correct 8 ms 9836 KB Output is correct
137 Correct 9 ms 9884 KB Output is correct
138 Correct 5 ms 9664 KB Output is correct
139 Correct 5 ms 9656 KB Output is correct
140 Correct 5 ms 9684 KB Output is correct
141 Correct 5 ms 9664 KB Output is correct
142 Correct 5 ms 9684 KB Output is correct
143 Correct 5 ms 9656 KB Output is correct
144 Correct 5 ms 9684 KB Output is correct
145 Correct 5 ms 9684 KB Output is correct
146 Correct 5 ms 9684 KB Output is correct
147 Correct 8 ms 9928 KB Output is correct
148 Correct 8 ms 9812 KB Output is correct
149 Correct 10 ms 9928 KB Output is correct
150 Correct 8 ms 9852 KB Output is correct
151 Correct 8 ms 9896 KB Output is correct
152 Correct 6 ms 9684 KB Output is correct
153 Correct 5 ms 9684 KB Output is correct
154 Correct 6 ms 9812 KB Output is correct
155 Correct 6 ms 9684 KB Output is correct
156 Correct 6 ms 9804 KB Output is correct
157 Correct 6 ms 9800 KB Output is correct
158 Correct 6 ms 9800 KB Output is correct
159 Correct 7 ms 9812 KB Output is correct
160 Correct 6 ms 9812 KB Output is correct
161 Correct 7 ms 9812 KB Output is correct
162 Correct 6 ms 9812 KB Output is correct
163 Correct 6 ms 9804 KB Output is correct
164 Correct 5 ms 9684 KB Output is correct
165 Correct 208 ms 23208 KB Output is correct
166 Correct 483 ms 40212 KB Output is correct
167 Correct 496 ms 40188 KB Output is correct
168 Correct 8 ms 9812 KB Output is correct
169 Correct 8 ms 9812 KB Output is correct
170 Correct 34 ms 11816 KB Output is correct
171 Correct 35 ms 11756 KB Output is correct
172 Correct 478 ms 40140 KB Output is correct
173 Correct 470 ms 40200 KB Output is correct
174 Correct 508 ms 40304 KB Output is correct
175 Correct 7 ms 9812 KB Output is correct
176 Correct 422 ms 40312 KB Output is correct
177 Correct 6 ms 9812 KB Output is correct
178 Correct 406 ms 36296 KB Output is correct
179 Correct 6 ms 9812 KB Output is correct
180 Correct 409 ms 36476 KB Output is correct
181 Correct 118 ms 16828 KB Output is correct
182 Correct 219 ms 21712 KB Output is correct
183 Correct 171 ms 19252 KB Output is correct
184 Correct 518 ms 40200 KB Output is correct
185 Correct 528 ms 40252 KB Output is correct
186 Correct 533 ms 40256 KB Output is correct
187 Correct 307 ms 25928 KB Output is correct
188 Correct 157 ms 18692 KB Output is correct
189 Correct 185 ms 21396 KB Output is correct
190 Correct 511 ms 40116 KB Output is correct
191 Correct 522 ms 40332 KB Output is correct
192 Correct 514 ms 40232 KB Output is correct
193 Correct 282 ms 25328 KB Output is correct
194 Correct 243 ms 23648 KB Output is correct
195 Correct 245 ms 22796 KB Output is correct
196 Correct 518 ms 40264 KB Output is correct
197 Correct 506 ms 40244 KB Output is correct
198 Correct 493 ms 40260 KB Output is correct
199 Correct 293 ms 27748 KB Output is correct
200 Correct 146 ms 19280 KB Output is correct
201 Correct 346 ms 32780 KB Output is correct
202 Correct 497 ms 40160 KB Output is correct
203 Correct 503 ms 40236 KB Output is correct
204 Correct 507 ms 40224 KB Output is correct
205 Correct 375 ms 36284 KB Output is correct
206 Correct 125 ms 18896 KB Output is correct
207 Correct 469 ms 40244 KB Output is correct
208 Correct 5 ms 9684 KB Output is correct
209 Correct 5 ms 9664 KB Output is correct
210 Correct 5 ms 9660 KB Output is correct
211 Correct 5 ms 9684 KB Output is correct
212 Correct 5 ms 9664 KB Output is correct
213 Correct 5 ms 9684 KB Output is correct
214 Correct 5 ms 9684 KB Output is correct
215 Correct 4 ms 9684 KB Output is correct
216 Correct 5 ms 9684 KB Output is correct
217 Correct 538 ms 40216 KB Output is correct
218 Correct 510 ms 40312 KB Output is correct
219 Correct 503 ms 40264 KB Output is correct
220 Correct 516 ms 40240 KB Output is correct
221 Correct 514 ms 40388 KB Output is correct
222 Correct 149 ms 19392 KB Output is correct
223 Correct 142 ms 19384 KB Output is correct
224 Correct 162 ms 21376 KB Output is correct
225 Correct 132 ms 19264 KB Output is correct
226 Correct 205 ms 24992 KB Output is correct
227 Correct 213 ms 25020 KB Output is correct
228 Correct 208 ms 25108 KB Output is correct
229 Correct 204 ms 25136 KB Output is correct
230 Correct 205 ms 25156 KB Output is correct
231 Correct 213 ms 25080 KB Output is correct
232 Correct 206 ms 25016 KB Output is correct
233 Correct 203 ms 25032 KB Output is correct