답안 #292697

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
292697 2020-09-07T11:57:00 Z 최은수(#5797) 급행열차 20/19 (ROI19_express) C++17
100 / 100
2395 ms 848900 KB
#include<iostream>
#include<vector>
#include<algorithm>
#define ep emplace
#define eb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
typedef pair<int,int>pi;
typedef pair<ll,ll>pl;
const int inf=1e9+7;
const ll INF=1e18;
ll nv[2000];
inline void merge(vector<ll>&v,const vector<ll>&vi,ll w,int p)
{
    int n=v.size(),m=vi.size();
    int i=0,j=0;
    int nvs=0;
    while(i<n&&j<m)
    {
        if(v[i]<vi[j]+w)
            nv[nvs++]=v[i],i++;
        else
            nv[nvs++]=vi[j]+w,j++;
    }
    while(i<n||j<m)
    {
        if(i<n)
            nv[nvs++]=v[i],i++;
        else
            nv[nvs++]=vi[j]+w,j++;
    }
    v.clear();
    for(int i=0;i<nvs;i++)
    {
        ll&t=nv[i];
        if((int)v.size()>1&&t*(p-1)<=v[(int)v.size()-2]*p)
            v.pop_back();
        v.eb(t);
    }
    return;
}
inline void solve()
{
    int n,m,q,p;
    cin>>n>>m>>q>>p;
    vector<vector<ll> >vv(n+1);
    vector<vector<pl> >adj(n+1);
    for(int i=0;i<m;i++)
    {
        int u,v;
        ll d;
        cin>>u>>v>>d;
        adj[v].eb(u,d);
    }
    vv[1].eb(0);
    for(int i=1;i++<n;vv[i].shrink_to_fit())
        for(pl&t:adj[i])
            merge(vv[i],vv[t.fi],t.se,p);
    for(int qi=0;qi++<q;)
    {
        int i;
        ll r;
        cin>>i>>r;
        auto it=lower_bound(all(vv[i]),r);
        if(it!=vv[i].end()&&*it*(p-1)<=r*p)
            cout<<1;
        else
            cout<<0;
    }
    cout<<'\n';
    return;
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int t;
    cin>>t;
    while(t-->0)
        solve();
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 6 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 0 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 7 ms 384 KB Output is correct
13 Correct 8 ms 512 KB Output is correct
14 Correct 8 ms 384 KB Output is correct
15 Correct 7 ms 384 KB Output is correct
16 Correct 7 ms 384 KB Output is correct
17 Correct 7 ms 384 KB Output is correct
18 Correct 8 ms 384 KB Output is correct
19 Correct 7 ms 384 KB Output is correct
20 Correct 8 ms 384 KB Output is correct
21 Correct 7 ms 384 KB Output is correct
22 Correct 8 ms 384 KB Output is correct
23 Correct 6 ms 384 KB Output is correct
24 Correct 5 ms 384 KB Output is correct
25 Correct 6 ms 384 KB Output is correct
26 Correct 5 ms 384 KB Output is correct
27 Correct 5 ms 384 KB Output is correct
28 Correct 5 ms 384 KB Output is correct
29 Correct 6 ms 384 KB Output is correct
30 Correct 6 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 0 ms 384 KB Output is correct
6 Correct 0 ms 384 KB Output is correct
7 Correct 0 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 0 ms 384 KB Output is correct
10 Correct 5 ms 512 KB Output is correct
11 Correct 7 ms 768 KB Output is correct
12 Correct 4 ms 768 KB Output is correct
13 Correct 6 ms 640 KB Output is correct
14 Correct 4 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 3 ms 384 KB Output is correct
17 Correct 4 ms 384 KB Output is correct
18 Correct 3 ms 384 KB Output is correct
19 Correct 4 ms 384 KB Output is correct
20 Correct 3 ms 384 KB Output is correct
21 Correct 4 ms 384 KB Output is correct
22 Correct 4 ms 640 KB Output is correct
23 Correct 5 ms 768 KB Output is correct
24 Correct 3 ms 384 KB Output is correct
25 Correct 3 ms 384 KB Output is correct
26 Correct 3 ms 384 KB Output is correct
27 Correct 3 ms 384 KB Output is correct
28 Correct 2 ms 384 KB Output is correct
29 Correct 2 ms 384 KB Output is correct
30 Correct 2 ms 384 KB Output is correct
31 Correct 2 ms 384 KB Output is correct
32 Correct 10 ms 2048 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 396 ms 32376 KB Output is correct
3 Correct 306 ms 6880 KB Output is correct
4 Correct 283 ms 3648 KB Output is correct
5 Correct 250 ms 1012 KB Output is correct
6 Correct 307 ms 10836 KB Output is correct
7 Correct 289 ms 5696 KB Output is correct
8 Correct 331 ms 10972 KB Output is correct
9 Correct 282 ms 5648 KB Output is correct
10 Correct 289 ms 11088 KB Output is correct
11 Correct 260 ms 5632 KB Output is correct
12 Correct 78 ms 512 KB Output is correct
13 Correct 7 ms 384 KB Output is correct
14 Correct 6 ms 384 KB Output is correct
15 Correct 9 ms 384 KB Output is correct
16 Correct 8 ms 384 KB Output is correct
17 Correct 20 ms 384 KB Output is correct
18 Correct 102 ms 1040 KB Output is correct
19 Correct 16 ms 384 KB Output is correct
20 Correct 31 ms 384 KB Output is correct
21 Correct 31 ms 384 KB Output is correct
22 Correct 31 ms 384 KB Output is correct
23 Correct 172 ms 35020 KB Output is correct
24 Correct 484 ms 94304 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 396 ms 32376 KB Output is correct
3 Correct 306 ms 6880 KB Output is correct
4 Correct 283 ms 3648 KB Output is correct
5 Correct 250 ms 1012 KB Output is correct
6 Correct 307 ms 10836 KB Output is correct
7 Correct 289 ms 5696 KB Output is correct
8 Correct 331 ms 10972 KB Output is correct
9 Correct 282 ms 5648 KB Output is correct
10 Correct 289 ms 11088 KB Output is correct
11 Correct 260 ms 5632 KB Output is correct
12 Correct 78 ms 512 KB Output is correct
13 Correct 7 ms 384 KB Output is correct
14 Correct 6 ms 384 KB Output is correct
15 Correct 9 ms 384 KB Output is correct
16 Correct 8 ms 384 KB Output is correct
17 Correct 20 ms 384 KB Output is correct
18 Correct 102 ms 1040 KB Output is correct
19 Correct 16 ms 384 KB Output is correct
20 Correct 31 ms 384 KB Output is correct
21 Correct 31 ms 384 KB Output is correct
22 Correct 31 ms 384 KB Output is correct
23 Correct 172 ms 35020 KB Output is correct
24 Correct 484 ms 94304 KB Output is correct
25 Correct 576 ms 32832 KB Output is correct
26 Correct 581 ms 12152 KB Output is correct
27 Correct 579 ms 6612 KB Output is correct
28 Correct 519 ms 1976 KB Output is correct
29 Correct 457 ms 968 KB Output is correct
30 Correct 498 ms 1612 KB Output is correct
31 Correct 409 ms 17528 KB Output is correct
32 Correct 393 ms 8952 KB Output is correct
33 Correct 348 ms 12428 KB Output is correct
34 Correct 324 ms 6324 KB Output is correct
35 Correct 390 ms 17484 KB Output is correct
36 Correct 362 ms 8952 KB Output is correct
37 Correct 118 ms 512 KB Output is correct
38 Correct 8 ms 384 KB Output is correct
39 Correct 8 ms 768 KB Output is correct
40 Correct 2335 ms 848900 KB Output is correct
41 Correct 2347 ms 828436 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 3 ms 1152 KB Output is correct
9 Correct 3 ms 384 KB Output is correct
10 Correct 2 ms 384 KB Output is correct
11 Correct 2 ms 384 KB Output is correct
12 Correct 2 ms 384 KB Output is correct
13 Correct 2 ms 384 KB Output is correct
14 Correct 3 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 2 ms 384 KB Output is correct
17 Correct 3 ms 512 KB Output is correct
18 Correct 3 ms 768 KB Output is correct
19 Correct 2 ms 512 KB Output is correct
20 Correct 3 ms 800 KB Output is correct
21 Correct 4 ms 896 KB Output is correct
22 Correct 3 ms 640 KB Output is correct
23 Correct 3 ms 768 KB Output is correct
24 Correct 3 ms 768 KB Output is correct
25 Correct 4 ms 1024 KB Output is correct
26 Correct 1 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 360 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 2 ms 384 KB Output is correct
35 Correct 2 ms 384 KB Output is correct
36 Correct 2 ms 384 KB Output is correct
37 Correct 2 ms 384 KB Output is correct
38 Correct 2 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 3 ms 416 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 2 ms 384 KB Output is correct
43 Correct 7 ms 2048 KB Output is correct
44 Correct 6 ms 2176 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 1 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 3 ms 1152 KB Output is correct
9 Correct 3 ms 384 KB Output is correct
10 Correct 2 ms 384 KB Output is correct
11 Correct 2 ms 384 KB Output is correct
12 Correct 2 ms 384 KB Output is correct
13 Correct 2 ms 384 KB Output is correct
14 Correct 3 ms 384 KB Output is correct
15 Correct 3 ms 384 KB Output is correct
16 Correct 2 ms 384 KB Output is correct
17 Correct 3 ms 512 KB Output is correct
18 Correct 3 ms 768 KB Output is correct
19 Correct 2 ms 512 KB Output is correct
20 Correct 3 ms 800 KB Output is correct
21 Correct 4 ms 896 KB Output is correct
22 Correct 3 ms 640 KB Output is correct
23 Correct 3 ms 768 KB Output is correct
24 Correct 3 ms 768 KB Output is correct
25 Correct 4 ms 1024 KB Output is correct
26 Correct 1 ms 384 KB Output is correct
27 Correct 1 ms 384 KB Output is correct
28 Correct 1 ms 384 KB Output is correct
29 Correct 1 ms 384 KB Output is correct
30 Correct 1 ms 384 KB Output is correct
31 Correct 1 ms 360 KB Output is correct
32 Correct 1 ms 384 KB Output is correct
33 Correct 1 ms 384 KB Output is correct
34 Correct 2 ms 384 KB Output is correct
35 Correct 2 ms 384 KB Output is correct
36 Correct 2 ms 384 KB Output is correct
37 Correct 2 ms 384 KB Output is correct
38 Correct 2 ms 384 KB Output is correct
39 Correct 2 ms 384 KB Output is correct
40 Correct 3 ms 416 KB Output is correct
41 Correct 2 ms 384 KB Output is correct
42 Correct 2 ms 384 KB Output is correct
43 Correct 7 ms 2048 KB Output is correct
44 Correct 6 ms 2176 KB Output is correct
45 Correct 598 ms 8856 KB Output is correct
46 Correct 998 ms 35044 KB Output is correct
47 Correct 783 ms 47004 KB Output is correct
48 Correct 508 ms 1372 KB Output is correct
49 Correct 362 ms 1280 KB Output is correct
50 Correct 349 ms 888 KB Output is correct
51 Correct 2 ms 384 KB Output is correct
52 Correct 1 ms 328 KB Output is correct
53 Correct 27 ms 384 KB Output is correct
54 Correct 12 ms 384 KB Output is correct
55 Correct 307 ms 1240 KB Output is correct
56 Correct 706 ms 1328 KB Output is correct
57 Correct 484 ms 1108 KB Output is correct
58 Correct 362 ms 1432 KB Output is correct
59 Correct 698 ms 1288 KB Output is correct
60 Correct 383 ms 2584 KB Output is correct
61 Correct 811 ms 17352 KB Output is correct
62 Correct 1288 ms 12516 KB Output is correct
63 Correct 627 ms 9936 KB Output is correct
64 Correct 332 ms 888 KB Output is correct
65 Correct 1170 ms 159388 KB Output is correct
66 Correct 541 ms 38136 KB Output is correct
67 Correct 592 ms 47992 KB Output is correct
68 Correct 566 ms 55800 KB Output is correct
69 Correct 1093 ms 211524 KB Output is correct
70 Correct 744 ms 65272 KB Output is correct
71 Correct 1107 ms 409592 KB Output is correct
72 Correct 180 ms 504 KB Output is correct
73 Correct 587 ms 55928 KB Output is correct
74 Correct 673 ms 31968 KB Output is correct
75 Correct 74 ms 716 KB Output is correct
76 Correct 82 ms 820 KB Output is correct
77 Correct 73 ms 752 KB Output is correct
78 Correct 125 ms 960 KB Output is correct
79 Correct 311 ms 15788 KB Output is correct
80 Correct 305 ms 15872 KB Output is correct
81 Correct 306 ms 15852 KB Output is correct
82 Correct 316 ms 15828 KB Output is correct
83 Correct 2320 ms 820796 KB Output is correct
84 Correct 2374 ms 835916 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 6 ms 384 KB Output is correct
6 Correct 1 ms 384 KB Output is correct
7 Correct 1 ms 384 KB Output is correct
8 Correct 0 ms 384 KB Output is correct
9 Correct 0 ms 384 KB Output is correct
10 Correct 0 ms 384 KB Output is correct
11 Correct 0 ms 384 KB Output is correct
12 Correct 7 ms 384 KB Output is correct
13 Correct 8 ms 512 KB Output is correct
14 Correct 8 ms 384 KB Output is correct
15 Correct 7 ms 384 KB Output is correct
16 Correct 7 ms 384 KB Output is correct
17 Correct 7 ms 384 KB Output is correct
18 Correct 8 ms 384 KB Output is correct
19 Correct 7 ms 384 KB Output is correct
20 Correct 8 ms 384 KB Output is correct
21 Correct 7 ms 384 KB Output is correct
22 Correct 8 ms 384 KB Output is correct
23 Correct 6 ms 384 KB Output is correct
24 Correct 5 ms 384 KB Output is correct
25 Correct 6 ms 384 KB Output is correct
26 Correct 5 ms 384 KB Output is correct
27 Correct 5 ms 384 KB Output is correct
28 Correct 5 ms 384 KB Output is correct
29 Correct 6 ms 384 KB Output is correct
30 Correct 6 ms 384 KB Output is correct
31 Correct 0 ms 384 KB Output is correct
32 Correct 0 ms 384 KB Output is correct
33 Correct 0 ms 384 KB Output is correct
34 Correct 0 ms 384 KB Output is correct
35 Correct 0 ms 384 KB Output is correct
36 Correct 0 ms 384 KB Output is correct
37 Correct 0 ms 384 KB Output is correct
38 Correct 0 ms 384 KB Output is correct
39 Correct 0 ms 384 KB Output is correct
40 Correct 5 ms 512 KB Output is correct
41 Correct 7 ms 768 KB Output is correct
42 Correct 4 ms 768 KB Output is correct
43 Correct 6 ms 640 KB Output is correct
44 Correct 4 ms 384 KB Output is correct
45 Correct 3 ms 384 KB Output is correct
46 Correct 3 ms 384 KB Output is correct
47 Correct 4 ms 384 KB Output is correct
48 Correct 3 ms 384 KB Output is correct
49 Correct 4 ms 384 KB Output is correct
50 Correct 3 ms 384 KB Output is correct
51 Correct 4 ms 384 KB Output is correct
52 Correct 4 ms 640 KB Output is correct
53 Correct 5 ms 768 KB Output is correct
54 Correct 3 ms 384 KB Output is correct
55 Correct 3 ms 384 KB Output is correct
56 Correct 3 ms 384 KB Output is correct
57 Correct 3 ms 384 KB Output is correct
58 Correct 2 ms 384 KB Output is correct
59 Correct 2 ms 384 KB Output is correct
60 Correct 2 ms 384 KB Output is correct
61 Correct 2 ms 384 KB Output is correct
62 Correct 10 ms 2048 KB Output is correct
63 Correct 0 ms 384 KB Output is correct
64 Correct 396 ms 32376 KB Output is correct
65 Correct 306 ms 6880 KB Output is correct
66 Correct 283 ms 3648 KB Output is correct
67 Correct 250 ms 1012 KB Output is correct
68 Correct 307 ms 10836 KB Output is correct
69 Correct 289 ms 5696 KB Output is correct
70 Correct 331 ms 10972 KB Output is correct
71 Correct 282 ms 5648 KB Output is correct
72 Correct 289 ms 11088 KB Output is correct
73 Correct 260 ms 5632 KB Output is correct
74 Correct 78 ms 512 KB Output is correct
75 Correct 7 ms 384 KB Output is correct
76 Correct 6 ms 384 KB Output is correct
77 Correct 9 ms 384 KB Output is correct
78 Correct 8 ms 384 KB Output is correct
79 Correct 20 ms 384 KB Output is correct
80 Correct 102 ms 1040 KB Output is correct
81 Correct 16 ms 384 KB Output is correct
82 Correct 31 ms 384 KB Output is correct
83 Correct 31 ms 384 KB Output is correct
84 Correct 31 ms 384 KB Output is correct
85 Correct 172 ms 35020 KB Output is correct
86 Correct 484 ms 94304 KB Output is correct
87 Correct 576 ms 32832 KB Output is correct
88 Correct 581 ms 12152 KB Output is correct
89 Correct 579 ms 6612 KB Output is correct
90 Correct 519 ms 1976 KB Output is correct
91 Correct 457 ms 968 KB Output is correct
92 Correct 498 ms 1612 KB Output is correct
93 Correct 409 ms 17528 KB Output is correct
94 Correct 393 ms 8952 KB Output is correct
95 Correct 348 ms 12428 KB Output is correct
96 Correct 324 ms 6324 KB Output is correct
97 Correct 390 ms 17484 KB Output is correct
98 Correct 362 ms 8952 KB Output is correct
99 Correct 118 ms 512 KB Output is correct
100 Correct 8 ms 384 KB Output is correct
101 Correct 8 ms 768 KB Output is correct
102 Correct 2335 ms 848900 KB Output is correct
103 Correct 2347 ms 828436 KB Output is correct
104 Correct 0 ms 384 KB Output is correct
105 Correct 0 ms 384 KB Output is correct
106 Correct 2 ms 384 KB Output is correct
107 Correct 2 ms 384 KB Output is correct
108 Correct 1 ms 384 KB Output is correct
109 Correct 1 ms 384 KB Output is correct
110 Correct 1 ms 384 KB Output is correct
111 Correct 3 ms 1152 KB Output is correct
112 Correct 3 ms 384 KB Output is correct
113 Correct 2 ms 384 KB Output is correct
114 Correct 2 ms 384 KB Output is correct
115 Correct 2 ms 384 KB Output is correct
116 Correct 2 ms 384 KB Output is correct
117 Correct 3 ms 384 KB Output is correct
118 Correct 3 ms 384 KB Output is correct
119 Correct 2 ms 384 KB Output is correct
120 Correct 3 ms 512 KB Output is correct
121 Correct 3 ms 768 KB Output is correct
122 Correct 2 ms 512 KB Output is correct
123 Correct 3 ms 800 KB Output is correct
124 Correct 4 ms 896 KB Output is correct
125 Correct 3 ms 640 KB Output is correct
126 Correct 3 ms 768 KB Output is correct
127 Correct 3 ms 768 KB Output is correct
128 Correct 4 ms 1024 KB Output is correct
129 Correct 1 ms 384 KB Output is correct
130 Correct 1 ms 384 KB Output is correct
131 Correct 1 ms 384 KB Output is correct
132 Correct 1 ms 384 KB Output is correct
133 Correct 1 ms 384 KB Output is correct
134 Correct 1 ms 360 KB Output is correct
135 Correct 1 ms 384 KB Output is correct
136 Correct 1 ms 384 KB Output is correct
137 Correct 2 ms 384 KB Output is correct
138 Correct 2 ms 384 KB Output is correct
139 Correct 2 ms 384 KB Output is correct
140 Correct 2 ms 384 KB Output is correct
141 Correct 2 ms 384 KB Output is correct
142 Correct 2 ms 384 KB Output is correct
143 Correct 3 ms 416 KB Output is correct
144 Correct 2 ms 384 KB Output is correct
145 Correct 2 ms 384 KB Output is correct
146 Correct 7 ms 2048 KB Output is correct
147 Correct 6 ms 2176 KB Output is correct
148 Correct 598 ms 8856 KB Output is correct
149 Correct 998 ms 35044 KB Output is correct
150 Correct 783 ms 47004 KB Output is correct
151 Correct 508 ms 1372 KB Output is correct
152 Correct 362 ms 1280 KB Output is correct
153 Correct 349 ms 888 KB Output is correct
154 Correct 2 ms 384 KB Output is correct
155 Correct 1 ms 328 KB Output is correct
156 Correct 27 ms 384 KB Output is correct
157 Correct 12 ms 384 KB Output is correct
158 Correct 307 ms 1240 KB Output is correct
159 Correct 706 ms 1328 KB Output is correct
160 Correct 484 ms 1108 KB Output is correct
161 Correct 362 ms 1432 KB Output is correct
162 Correct 698 ms 1288 KB Output is correct
163 Correct 383 ms 2584 KB Output is correct
164 Correct 811 ms 17352 KB Output is correct
165 Correct 1288 ms 12516 KB Output is correct
166 Correct 627 ms 9936 KB Output is correct
167 Correct 332 ms 888 KB Output is correct
168 Correct 1170 ms 159388 KB Output is correct
169 Correct 541 ms 38136 KB Output is correct
170 Correct 592 ms 47992 KB Output is correct
171 Correct 566 ms 55800 KB Output is correct
172 Correct 1093 ms 211524 KB Output is correct
173 Correct 744 ms 65272 KB Output is correct
174 Correct 1107 ms 409592 KB Output is correct
175 Correct 180 ms 504 KB Output is correct
176 Correct 587 ms 55928 KB Output is correct
177 Correct 673 ms 31968 KB Output is correct
178 Correct 74 ms 716 KB Output is correct
179 Correct 82 ms 820 KB Output is correct
180 Correct 73 ms 752 KB Output is correct
181 Correct 125 ms 960 KB Output is correct
182 Correct 311 ms 15788 KB Output is correct
183 Correct 305 ms 15872 KB Output is correct
184 Correct 306 ms 15852 KB Output is correct
185 Correct 316 ms 15828 KB Output is correct
186 Correct 2320 ms 820796 KB Output is correct
187 Correct 2374 ms 835916 KB Output is correct
188 Correct 585 ms 8784 KB Output is correct
189 Correct 989 ms 35064 KB Output is correct
190 Correct 787 ms 47148 KB Output is correct
191 Correct 475 ms 1676 KB Output is correct
192 Correct 434 ms 1016 KB Output is correct
193 Correct 423 ms 1016 KB Output is correct
194 Correct 379 ms 1528 KB Output is correct
195 Correct 336 ms 1144 KB Output is correct
196 Correct 574 ms 11824 KB Output is correct
197 Correct 551 ms 9088 KB Output is correct
198 Correct 591 ms 12020 KB Output is correct
199 Correct 562 ms 8840 KB Output is correct
200 Correct 563 ms 12004 KB Output is correct
201 Correct 524 ms 9188 KB Output is correct
202 Correct 161 ms 632 KB Output is correct
203 Correct 157 ms 632 KB Output is correct
204 Correct 151 ms 504 KB Output is correct
205 Correct 62 ms 384 KB Output is correct
206 Correct 284 ms 888 KB Output is correct
207 Correct 340 ms 760 KB Output is correct
208 Correct 328 ms 924 KB Output is correct
209 Correct 481 ms 123256 KB Output is correct
210 Correct 643 ms 202600 KB Output is correct
211 Correct 519 ms 4996 KB Output is correct
212 Correct 2351 ms 842084 KB Output is correct
213 Correct 2395 ms 844032 KB Output is correct
214 Correct 4 ms 512 KB Output is correct
215 Correct 16 ms 896 KB Output is correct
216 Correct 52 ms 1656 KB Output is correct
217 Correct 60 ms 2424 KB Output is correct
218 Correct 92 ms 3192 KB Output is correct
219 Correct 135 ms 4604 KB Output is correct
220 Correct 183 ms 6136 KB Output is correct
221 Correct 45 ms 1144 KB Output is correct
222 Correct 154 ms 2168 KB Output is correct
223 Correct 358 ms 3312 KB Output is correct
224 Correct 589 ms 4856 KB Output is correct
225 Correct 947 ms 6324 KB Output is correct
226 Correct 1408 ms 8184 KB Output is correct
227 Correct 1872 ms 10476 KB Output is correct
228 Correct 1859 ms 11064 KB Output is correct